Re: [PATCH v4] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-05-25 Thread Greg KH
On Tue, May 25, 2021 at 11:37:13AM -0700, Hridya Valsaraju wrote: > This patch allows statistics to be enabled for each DMA-BUF in > sysfs by enabling the config CONFIG_DMABUF_SYSFS_STATS. > > The following stats will be exposed by the interface: > > /sys/kernel/dmabuf/buffers//exporter_name > /s

[PATCH 16/18] drm/i915/guc: Stop using mutex while sending CTB messages

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko We are no longer using descriptor to hold G2H replies and we are protecting access to the descriptor and command buffer by the separate spinlock, so we can stop using mutex. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- dri

[PATCH 18/18] drm/i915/guc: Always copy CT message to new allocation

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Since most of future CT traffic will be based on G2H requests, instead of copying incoming CT message to static buffer and then create new allocation for such request, always copy incoming CT message to new allocation. Also by doing it while reading CT header, we can safely

[PATCH 17/18] drm/i915/guc: Don't receive all G2H messages in irq handler

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko In irq handler try to receive just single G2H message, let other messages to be received from tasklet. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 67 --- dr

[PATCH 09/18] drm/i915/guc: Only rely on own CTB size

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko In upcoming GuC firmware, CTB size will be removed from the CTB descriptor so we must keep it locally for any calculations. While around, improve some debug messages and helpers. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --

[PATCH 00/18] Non-interface changing GuC CTBs updates

2021-05-25 Thread Matthew Brost
As discussed in [1] we are breaking that large series into a several smaller ones. This series is the non-interface changing part of step #2 - it makes all the changes needed before updating the GuC firwmare to a new version without breaking any old interfaces. A follow on series will be squashed

[PATCH 11/18] drm/i915/guc: Replace CTB array with explicit members

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Upcoming GuC firmware will always require just two CTBs and we also plan to configure them with different sizes, so definining them as array is no longer suitable. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- drivers/gpu/d

[PATCH 08/18] drm/i915: Promote ptrdiff() to i915_utils.h

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Generic helpers should be placed in i915_utils.h. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- drivers/gpu/drm/i915/i915_utils.h | 5 + drivers/gpu/drm/i915/i915_vma.h | 5 - 2 files changed, 5 insertions(+), 5 d

[PATCH 07/18] drm/i915/guc: Stop using fence/status from CTB descriptor

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Stop using fence/status from CTB descriptor as future GuC ABI will no longer support replies over CTB descriptor. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- .../gt/uc/abi/guc_communication_ctb_abi.h | 4 +- drivers/

[PATCH 02/18] drm/i915/guc: use probe_error log for CT enablement failure

2021-05-25 Thread Matthew Brost
From: Daniele Ceraolo Spurio We have a couple of failure injection points in the CT enablement path, so we need to use i915_probe_error() to select the appropriate log level. A new macro (CT_PROBE_ERROR) has been added to the set of CT logging macros to be used in this scenario and upcoming ones.

[PATCH 13/18] drm/i915/guc: Relax CTB response timeout

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko In upcoming patch we will allow more CTB requests to be sent in parallel to the GuC for processing, so we shouldn't assume any more that GuC will always reply without 10ms. Use bigger value from CONFIG_DRM_I915_GUC_CTB_TIMEOUT instead. v2: Add CONFIG_DRM_I915_GUC_CTB_TIME

[PATCH 01/18] drm/i915/guc: skip disabling CTBs before sanitizing the GuC

2021-05-25 Thread Matthew Brost
From: Daniele Ceraolo Spurio If we're about to sanitize the GuC, something might have going wrong beforehand, so we should avoid trying to talk to it. Even if GuC is still running fine, the sanitize will reset its internal state and clear the CTB registration, so there is still no need to explici

[PATCH 03/18] drm/i915/guc: enable only the user interrupt when using GuC submission

2021-05-25 Thread Matthew Brost
From: Daniele Ceraolo Spurio In GuC submission mode the CS is owned by the GuC FW, so all CS status interrupts are handled by it. We only need the user interrupt as that signals request completion. Since we're now starting the engines directly in GuC submission mode when selected, we can stop sw

[PATCH 15/18] drm/i915/guc: Ensure H2G buffer updates visible before tail update

2021-05-25 Thread Matthew Brost
Ensure H2G buffer updates are visible before descriptor tail updates by inserting a barrier between the H2G buffer update and the tail. The barrier is simple wmb() for SMEM and is register write for LMEM. This is needed if more than 1 H2G can be inflight at once. Signed-off-by: Matthew Brost Cc:

[PATCH 14/18] drm/i915/guc: Start protecting access to CTB descriptors

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko We want to stop using guc.send_mutex while sending CTB messages so we have to start protecting access to CTB send descriptor. For completeness protect also CTB receive descriptor. Add spinlock to struct intel_guc_ct_buffer and start using it. Signed-off-by: Michal Wajdec

[PATCH 06/18] drm/i915/guc: Drop guc->interrupts.enabled

2021-05-25 Thread Matthew Brost
Drop the variable guc->interrupts.enabled as this variable is just leading to bugs creeping into the code. e.g. A full GPU reset disables the GuC interrupts but forgot to clear guc->interrupts.enabled, guc->interrupts.enabled being true suppresses interrupts from getting re-enabled and now we are

[PATCH 10/18] drm/i915/guc: Don't repeat CTB layout calculations

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko We can retrieve offsets to cmds buffers and descriptor from actual pointers that we already keep locally. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 16 ++-- 1 file

[PATCH 04/18] drm/i915/guc: Remove sample_forcewake h2g action

2021-05-25 Thread Matthew Brost
From: Rodrigo Vivi This action is no-op in the GuC side for a few versions already and it is getting entirely removed soon, in an upcoming version. Time to remove before we face communication issues. Cc: Vinay Belgaumkar Signed-off-by: Rodrigo Vivi Signed-off-by: Matthew Brost Acked-by: Mich

[PATCH 12/18] drm/i915/guc: Update sizes of CTB buffers

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Future GuC will require CTB buffers sizes to be multiple of 4K. Make these changes now as this shouldn't impact us too much. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost Cc: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_

[PATCH 05/18] drm/i915/guc: Keep strict GuC ABI definitions

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Our fwif.h file is now mix of strict firmware ABI definitions and set of our helpers. In anticipation of upcoming changes to the GuC interface try to keep them separate in smaller maintainable files. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-b

Re: [Freedreno] [RFC PATCH 00/13] drm/msm: Add Display Stream Compression Support

2021-05-25 Thread Vinod Koul
Hello Jeff, On 21-05-21, 08:09, Jeffrey Hugo wrote: > On Fri, May 21, 2021 at 6:50 AM Vinod Koul wrote: > > > > Display Stream Compression (DSC) compresses the display stream in host which > > is later decoded by panel. This series enables this for Qualcomm msm driver. > > This was tested on Goog

Re: [RFC PATCH 02/13] dt-bindings: msm/dsi: Document Display Stream Compression (DSC) parameters

2021-05-25 Thread Vinod Koul
On 24-05-21, 10:08, Bjorn Andersson wrote: > On Mon 24 May 02:30 CDT 2021, Vinod Koul wrote: > > > On 21-05-21, 09:42, Bjorn Andersson wrote: > > > On Fri 21 May 07:49 CDT 2021, Vinod Koul wrote: > > > > > > > DSC enables streams to be compressed before we send to panel. This > > > > requires DSC

Re: [PATCH] drm/exynos: use pm_runtime_resume_and_get()

2021-05-25 Thread kernel test robot
Hi Inki, I love your patch! Yet something to improve: [auto build test ERROR on drm-exynos/exynos-drm-next] [also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip tegra-drm/drm/tegra/for-next v5.13-rc3 next-20210525] [cannot apply to drm/drm-next] [If your patch is applied to the

Re: [PATCH] drm/amdgpu: Fix kernel-doc

2021-05-25 Thread Alex Deucher
On Tue, May 25, 2021 at 10:56 PM Yang Li wrote: > > Fix function name in sdma_v5_2.c kernel-doc comment > to remove a warning found by clang_w1. > > drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:528: warning: expecting prototype > for sdma_v_0_ctx_switch_enable(). Prototype was for > sdma_v5_2_ctx_switch

Re: [PATCH 5/5] PCI: Support ASpeed VGA cards behind a misbehaving bridge

2021-05-25 Thread Dave Airlie
> > > > I think I would see if it's possible to call > > > > vga_arb_select_default_device() from vga_arbiter_add_pci_device() > > > > instead of from vga_arb_device_init(). > > > > > > > > I would also (as a separate patch) try to get rid of this loop in > > > > vga_arb_device_init(): > > > > > >

[PATCH] drm/amdgpu: Fix kernel-doc

2021-05-25 Thread Yang Li
Fix function name in sdma_v5_2.c kernel-doc comment to remove a warning found by clang_w1. drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:528: warning: expecting prototype for sdma_v_0_ctx_switch_enable(). Prototype was for sdma_v5_2_ctx_switch_enable() instead. Reported-by: Abaci Robot Signed-off-by: Y

Re: [PATCH 5/5] PCI: Support ASpeed VGA cards behind a misbehaving bridge

2021-05-25 Thread Huacai Chen
Hi, Bjorn, On Tue, May 25, 2021 at 9:55 PM Bjorn Helgaas wrote: > > On Tue, May 25, 2021 at 07:03:05PM +0800, Huacai Chen wrote: > > On Thu, May 20, 2021 at 3:33 AM Bjorn Helgaas wrote: > > > On Wed, May 19, 2021 at 10:17:14AM +0800, Huacai Chen wrote: > > > > On Wed, May 19, 2021 at 3:35 AM Bjo

Re: [PATCH] drm/radeon: remove the repeated declaration

2021-05-25 Thread Alex Deucher
Applied. Thanks! Alex On Tue, May 25, 2021 at 3:51 AM Shaokun Zhang wrote: > > Function 'r300_mc_wait_for_idle' and 'r600_mc_wait_for_idle' > are declared twice, remove the repeated declaration. > > Cc: Alex Deucher > Cc: "Christian König" > Signed-off-by: Shaokun Zhang > --- > drivers/gpu/

Re: [PATCH] drm/radeon/evergreen: Remove the repeated declaration

2021-05-25 Thread Alex Deucher
On Tue, May 25, 2021 at 8:33 AM Shaokun Zhang wrote: > > Function 'evergreen_print_gpu_status_regs' is declared twice, remove > the repeated declaration. > > Cc: Alex Deucher > Cc: "Christian König" > Signed-off-by: Shaokun Zhang Applied. Thanks! Alex > --- > drivers/gpu/drm/radeon/evergre

Re: [PATCH] drm/amd/display: Remove the repeated declaration

2021-05-25 Thread Alex Deucher
On Tue, May 25, 2021 at 6:51 AM Shaokun Zhang wrote: > > Function 'dc_power_down_on_boot' is declared twice, remove the > repeated declaration. > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Signed-off-by: Shaokun Zhang Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/d

Re: [Freedreno] [PATCH v2 4/6] drm/msm/dpu: replace IRQ lookup with the data in hw catalog

2021-05-25 Thread Dmitry Baryshkov
On 25/05/2021 00:57, abhin...@codeaurora.org wrote: On 2021-05-16 13:29, Dmitry Baryshkov wrote: The IRQ table in the dpu_hw_interrupts.h is big, ugly, and hard to maintain. There are only few interrupts used from that table. Newer generations use different IRQ locations. Move this data to hw ca

Re: [PATCH v5 3/3] drm_dp_cec: add MST support

2021-05-25 Thread kernel test robot
note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sam-McNally/drm-dp_mst-Add-self-tests-for-up-requests/20210525-090214 base: git://anongit.freedesktop.org/drm/drm-t

Re: [PATCH] drm/msm/disp/dpu1/dpu_encoder: Drop unnecessary NULL checks after container_of

2021-05-25 Thread Dmitry Baryshkov
On 25/05/2021 14:29, Guenter Roeck wrote: The result of container_of() operations is never NULL unless the embedded element is the first element of the structure. This is not the case here. The NULL checks on the result of container_of() are therefore unnecessary and misleading. Remove them. Thi

Re: [PATCH] drm/msm: remove unneeded variable ret

2021-05-25 Thread Dmitry Baryshkov
On 07/04/2021 16:06, Bernard Zhao wrote: This patch fix coccicheck warning: drivers/gpu/drm/msm/dp/dp_link.c:848:5-8: Unneeded variable: "ret". Return "0" on line 880 Also remove unneeded function return value check. Signed-off-by: Bernard Zhao Reviewed-by: Dmitry Baryshkov --- drivers

Re: [Intel-gfx] [PATCH] drm/i915: Add relocation exceptions for two other platforms

2021-05-25 Thread Dave Airlie
On Wed, 12 May 2021 at 03:05, Daniel Vetter wrote: > > On Tue, May 11, 2021 at 10:31:39AM +0200, Zbigniew Kempczyński wrote: > > We have established previously we stop using relocations starting > > from gen12 platforms with Tigerlake as an exception. Unfortunately > > we need extend transition pe

[PATCH 7/7] RFC: dma-buf: Add an API for importing sync files (v7)

2021-05-25 Thread Jason Ekstrand
This patch is analogous to the previous sync file export patch in that it allows you to import a sync_file into a dma-buf. Unlike the previous patch, however, this does add genuinely new functionality to dma-buf. Without this, the only way to attach a sync_file to a dma-buf is to submit a batch to

[PATCH 4/7] dma-buf: Document DMA_BUF_IOCTL_SYNC

2021-05-25 Thread Jason Ekstrand
This adds a new "DMA Buffer ioctls" section to the dma-buf docs and adds documentation for DMA_BUF_IOCTL_SYNC. Signed-off-by: Jason Ekstrand Cc: Daniel Vetter Cc: Christian König Cc: Sumit Semwal --- Documentation/driver-api/dma-buf.rst | 8 +++ include/uapi/linux/dma-buf.h | 32

[PATCH 6/7] RFC: dma-buf: Add an extra fence to dma_resv_get_singleton_unlocked

2021-05-25 Thread Jason Ekstrand
For dma-buf sync_file import, we want to get all the fences on a dma_resv plus one more. We could wrap the fence we get back in an array fence or we could make dma_resv_get_singleton_unlocked take "one more" to make this case easier. Signed-off-by: Jason Ekstrand Reviewed-by: Daniel Vetter Cc:

[PATCH 5/7] dma-buf: Add an API for exporting sync files (v11)

2021-05-25 Thread Jason Ekstrand
Modern userspace APIs like Vulkan are built on an explicit synchronization model. This doesn't always play nicely with the implicit synchronization used in the kernel and assumed by X11 and Wayland. The client -> compositor half of the synchronization isn't too bad, at least on intel, because we

[PATCH 3/7] dma-buf: Add dma_resv_get_singleton_unlocked (v5)

2021-05-25 Thread Jason Ekstrand
Add a helper function to get a single fence representing all fences in a dma_resv object. This fence is either the only one in the object or all not signaled fences of the object in a flatted out dma_fence_array. v2 (Jason Ekstrand): - Take reference of fences both for creating the dma_fence_arr

[PATCH 1/7] dma-buf: Add dma_fence_array_for_each (v2)

2021-05-25 Thread Jason Ekstrand
From: Christian König Add a helper to iterate over all fences in a dma_fence_array object. v2 (Jason Ekstrand) - Return NULL from dma_fence_array_first if head == NULL. This matches the iterator behavior of dma_fence_chain_for_each in that it iterates zero times if head == NULL. - Retur

[PATCH 2/7] dma-buf: Rename dma_resv helpers from _rcu to _unlocked (v2)

2021-05-25 Thread Jason Ekstrand
None of these helpers actually leak any RCU details to the caller. They all assume you have a genuine reference, take the RCU read lock, and retry if needed. Naming them with an _rcu is likely to cause callers more panic than needed. v2 (Jason Ekstrand): - Fix function argument indentation Sig

[PATCH 0/7] dma-buf: Add an API for exporting sync files (v11)

2021-05-25 Thread Jason Ekstrand
Modern userspace APIs like Vulkan are built on an explicit synchronization model. This doesn't always play nicely with the implicit synchronization used in the kernel and assumed by X11 and Wayland. The client -> compositor half of the synchronization isn't too bad, at least on intel, because we

[PATCH 13/17] drm/i915/guc: Start protecting access to CTB descriptors

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko We want to stop using guc.send_mutex while sending CTB messages so we have to start protecting access to CTB send descriptor. For completeness protect also CTB receive descriptor. Add spinlock to struct intel_guc_ct_buffer and start using it. Signed-off-by: Michal Wajdec

[PATCH 15/17] drm/i915/guc: Stop using mutex while sending CTB messages

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko We are no longer using descriptor to hold G2H replies and we are protecting access to the descriptor and command buffer by the separate spinlock, so we can stop using mutex. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- dri

[PATCH 12/17] drm/i915/guc: Relax CTB response timeout

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko In upcoming patch we will allow more CTB requests to be sent in parallel to the GuC for procesing, so we shouldn't assume any more that GuC will always reply without 10ms. Use bigger value from CONFIG_DRM_I915_GUC_CTB_TIMEOUT instead. v2: Add CONFIG_DRM_I915_GUC_CTB_TIMEO

[PATCH 14/17] drm/i915/guc: Ensure H2G buffer updates visible before tail update

2021-05-25 Thread Matthew Brost
Ensure H2G buffer updates are visible before descriptor tail updates by inserting a barrier between the H2G buffer update and the tail. The barrier is simple wmb() for SMEM and is register write for LMEM. This is needed if more than 1 H2G can be inflight at once. Signed-off-by: Matthew Brost Cc:

[PATCH 11/17] drm/i915/guc: Update sizes of CTB buffers

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Future GuC will require CTB buffers sizes to be multiple of 4K. Make these changes now as this shouldn't impact us too much. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost Cc: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_

[PATCH 06/17] drm/i915/guc: Stop using fence/status from CTB descriptor

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Stop using fence/status from CTB descriptor as future GuC ABI will no longer support replies over CTB descriptor. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- .../gt/uc/abi/guc_communication_ctb_abi.h | 4 +- drivers/

[PATCH 17/17] drm/i915/guc: Always copy CT message to new allocation

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Since most of future CT traffic will be based on G2H requests, instead of copying incoming CT message to static buffer and then create new allocation for such request, always copy incoming CT message to new allocation. Also by doing it while reading CT header, we can safely

[PATCH 10/17] drm/i915/guc: Replace CTB array with explicit members

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Upcoming GuC firmware will always require just two CTBs and we also plan to configure them with different sizes, so definining them as array is no longer suitable. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- drivers/gpu/d

[PATCH 08/17] drm/i915/guc: Only rely on own CTB size

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko In upcoming GuC firmware, CTB size will be removed from the CTB descriptor so we must keep it locally for any calculations. While around, improve some debug messages and helpers. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --

[PATCH 09/17] drm/i915/guc: Don't repeat CTB layout calculations

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko We can retrieve offsets to cmds buffers and descriptor from actual pointers that we already keep locally. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 16 ++-- 1 file

[PATCH 16/17] drm/i915/guc: Don't receive all G2H messages in irq handler

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko In irq handler try to receive just single G2H message, let other messages to be received from tasklet. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 67 --- dr

[PATCH 07/17] drm/i915: Promote ptrdiff() to i915_utils.h

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Generic helpers should be placed in i915_utils.h. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-by: Matthew Brost --- drivers/gpu/drm/i915/i915_utils.h | 5 + drivers/gpu/drm/i915/i915_vma.h | 5 - 2 files changed, 5 insertions(+), 5 d

[PATCH 03/17] drm/i915/guc: enable only the user interrupt when using GuC submission

2021-05-25 Thread Matthew Brost
From: Daniele Ceraolo Spurio In GuC submission mode the CS is owned by the GuC FW, so all CS status interrupts are handled by it. We only need the user interrupt as that signals request completion. Since we're now starting the engines directly in GuC submission mode when selected, we can stop sw

[PATCH 02/17] drm/i915/guc: use probe_error log for CT enablement failure

2021-05-25 Thread Matthew Brost
From: Daniele Ceraolo Spurio We have a couple of failure injection points in the CT enablement path, so we need to use i915_probe_error() to select the appropriate log level. A new macro (CT_PROBE_ERROR) has been added to the set of CT logging macros to be used in this scenario and upcoming ones.

[PATCH 05/17] drm/i915/guc: Keep strict GuC ABI definitions

2021-05-25 Thread Matthew Brost
From: Michal Wajdeczko Our fwif.h file is now mix of strict firmware ABI definitions and set of our helpers. In anticipation of upcoming changes to the GuC interface try to keep them separate in smaller maintainable files. Signed-off-by: Michal Wajdeczko Signed-off-by: Matthew Brost Reviewed-b

[PATCH 04/17] drm/i915/guc: Remove sample_forcewake h2g action

2021-05-25 Thread Matthew Brost
From: Rodrigo Vivi This action is no-op in the GuC side for a few versions already and it is getting entirely removed soon, in an upcoming version. Time to remove before we face communication issues. Cc: Vinay Belgaumkar Signed-off-by: Rodrigo Vivi Signed-off-by: Matthew Brost Acked-by: Mic

[PATCH 01/17] drm/i915/guc: skip disabling CTBs before sanitizing the GuC

2021-05-25 Thread Matthew Brost
From: Daniele Ceraolo Spurio If we're about to sanitize the GuC, something might have going wrong beforehand, so we should avoid trying to talk to it. Even if GuC is still running fine, the sanitize will reset its internal state and clear the CTB registration, so there is still no need to explici

[PATCH 00/17] Non-interface changing GuC CTBs updates

2021-05-25 Thread Matthew Brost
As discussed in [1] we are breaking that large series into a several smaller ones. This series is the non-interface changing part of step #2 - it makes all the changes needed before updating the GuC firwmare to a new version without breaking any old interfaces. A follow on series will be squashed

Re: [PATCH v4 09/17] drm/i915/pxp: Implement arb session teardown

2021-05-25 Thread kernel test robot
Hi Daniele, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-tip/drm-tip] [cannot apply to drm-intel/for-linux-next char-misc/char-misc-testing v5.13-rc3 next-20210525] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

[Bug 213211] New: kernel BUG at drivers/gpu/drm/qxl/qxl_display.c:293!

2021-05-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213211 Bug ID: 213211 Summary: kernel BUG at drivers/gpu/drm/qxl/qxl_display.c:293! Product: Drivers Version: 2.5 Kernel Version: 4.12.6 Hardware: All OS: Linux Tree

Re: [Intel-gfx] [RFC PATCH 18/97] drm/i915/guc: Don't receive all G2H messages in irq handler

2021-05-25 Thread Michal Wajdeczko
On 25.05.2021 20:15, Matthew Brost wrote: > On Thu, May 06, 2021 at 12:13:32PM -0700, Matthew Brost wrote: >> From: Michal Wajdeczko >> >> In irq handler try to receive just single G2H message, let other >> messages to be received from tasklet. >> >> Signed-off-by: Michal Wajdeczko >> Signed-o

Re: [PATCH 2/2] drm/amdgpu: Fix an error code in kfd_mem_attach_dmabuf()

2021-05-25 Thread Felix Kuehling
Am 2021-05-25 um 8:47 a.m. schrieb Dan Carpenter: > If amdgpu_gem_prime_export() fails, then this code accidentally > returns zero/success instead of a negative error code. > > Fixes: 190f2d7696c8 ("drm/amdgpu: Add DMA mapping of GTT BOs") > Signed-off-by: Dan Carpenter Thank you for catching the

Re: [Intel-gfx] [RFC PATCH 15/97] drm/i915/guc: Relax CTB response timeout

2021-05-25 Thread Michal Wajdeczko
On 25.05.2021 20:08, Matthew Brost wrote: > On Thu, May 06, 2021 at 12:13:29PM -0700, Matthew Brost wrote: >> From: Michal Wajdeczko >> >> In upcoming patch we will allow more CTB requests to be sent in >> parallel to the GuC for procesing, so we shouldn't assume any more >> that GuC will alway

Re: [PATCH 6/6] RFC: dma-buf: Add an API for importing sync files (v6)

2021-05-25 Thread Daniel Vetter
On Tue, May 25, 2021 at 9:19 PM Jason Ekstrand wrote: > > On Tue, May 25, 2021 at 10:37 AM Daniel Vetter wrote: > > > > On Mon, May 24, 2021 at 03:59:54PM -0500, Jason Ekstrand wrote: > > > This patch is analogous to the previous sync file export patch in that > > > it allows you to import a sync

Re: [PATCH 6/6] RFC: dma-buf: Add an API for importing sync files (v6)

2021-05-25 Thread Jason Ekstrand
On Tue, May 25, 2021 at 10:37 AM Daniel Vetter wrote: > > On Mon, May 24, 2021 at 03:59:54PM -0500, Jason Ekstrand wrote: > > This patch is analogous to the previous sync file export patch in that > > it allows you to import a sync_file into a dma-buf. Unlike the previous > > patch, however, this

[PATCH] drm/amdgpu: Fix clang warning: unused label 'exit'

2021-05-25 Thread Andrey Grodzovsky
Problem: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:332:1: warning: unused label 'exit' [-Wunused-label] exit: ^ Fix: Put #ifdef CONFIG_64BIT around exit Reported-by: kernel test robot Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed,

Re: [PATCH v9 03/10] mm/rmap: Split try_to_munlock from try_to_unmap

2021-05-25 Thread Liam Howlett
* Alistair Popple [210524 09:29]: > The behaviour of try_to_unmap_one() is difficult to follow because it > performs different operations based on a fairly large set of flags used > in different combinations. > > TTU_MUNLOCK is one such flag. However it is exclusively used by > try_to_munlock() w

RE: [Intel-gfx] [PATCH v4 14/17] drm/i915/pxp: User interface for Protected buffer

2021-05-25 Thread Tang, CQ
> -Original Message- > From: Intel-gfx On Behalf Of > Daniele Ceraolo Spurio > Sent: Monday, May 24, 2021 10:48 PM > To: intel-...@lists.freedesktop.org > Cc: Vetter, Daniel ; Huang Sean Z > ; dri-devel@lists.freedesktop.org; Chris Wilson > ; Kondapally Kalyan > ; Bommu, Krishnaiah > >

Re: [Freedreno] [PATCH] drm/msm/dp: remove the repeated declaration

2021-05-25 Thread abhinavk
On 2021-05-25 05:22, Shaokun Zhang wrote: Function 'dp_catalog_audio_enable' is declared twice, remove the repeated declaration. Cc: Rob Clark Cc: Abhinav Kumar Signed-off-by: Shaokun Zhang Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_catalog.h | 1 - 1 file changed, 1 deletio

Re: [Freedreno] [PATCH] drm/msm/dp: Drop unnecessary NULL checks after container_of

2021-05-25 Thread abhinavk
On 2021-05-24 20:20, Guenter Roeck wrote: The result of container_of() operations is never NULL unless the embedded element is the first element of the structure. This is not the case here. The NULL check on the result of container_of() is therefore unnecessary and misleading. Remove it. This

Re: [RFC PATCH 19/97] drm/i915/guc: Always copy CT message to new allocation

2021-05-25 Thread Matthew Brost
On Thu, May 06, 2021 at 12:13:33PM -0700, Matthew Brost wrote: > From: Michal Wajdeczko > > Since most of future CT traffic will be based on G2H requests, > instead of copying incoming CT message to static buffer and then > create new allocation for such request, always copy incoming CT > message

Re: [RFC PATCH 18/97] drm/i915/guc: Don't receive all G2H messages in irq handler

2021-05-25 Thread Matthew Brost
On Thu, May 06, 2021 at 12:13:32PM -0700, Matthew Brost wrote: > From: Michal Wajdeczko > > In irq handler try to receive just single G2H message, let other > messages to be received from tasklet. > > Signed-off-by: Michal Wajdeczko > Signed-off-by: Matthew Brost > --- > drivers/gpu/drm/i915/

Re: [RFC PATCH 15/97] drm/i915/guc: Relax CTB response timeout

2021-05-25 Thread Matthew Brost
On Thu, May 06, 2021 at 12:13:29PM -0700, Matthew Brost wrote: > From: Michal Wajdeczko > > In upcoming patch we will allow more CTB requests to be sent in > parallel to the GuC for procesing, so we shouldn't assume any more > that GuC will always reply without 10ms. > > Use bigger value from CO

Re: [Intel-gfx] [RFC PATCH 60/97] drm/i915: Track 'serial' counts for virtual engines

2021-05-25 Thread Matthew Brost
On Tue, May 25, 2021 at 11:16:12AM +0100, Tvrtko Ursulin wrote: > > On 06/05/2021 20:14, Matthew Brost wrote: > > From: John Harrison > > > > The serial number tracking of engines happens at the backend of > > request submission and was expecting to only be given physical > > engines. However, i

Re: [PATCH 10/11] drm/simple-helper: drm_gem_simple_display_pipe_prepare_fb as default

2021-05-25 Thread Daniel Vetter
On Tue, May 25, 2021 at 07:48:12PM +0200, Noralf Trønnes wrote: > > It's tedious to review this all the time, and my audit showed that > > arcpgu actually forgot to set this. > > > > Make this the default and stop worrying. > > > > Again I sprinkled WARN_ON_ONCE on top to make sure we don't have >

Re: [PATCH 10/11] drm/simple-helper: drm_gem_simple_display_pipe_prepare_fb as default

2021-05-25 Thread Noralf Trønnes
> It's tedious to review this all the time, and my audit showed that > arcpgu actually forgot to set this. > > Make this the default and stop worrying. > > Again I sprinkled WARN_ON_ONCE on top to make sure we don't have > strange combinations of hooks: cleanup_fb without prepare_fb doesn't > make

Re: [RFC PATCH 38/97] drm/i915/guc: Optimize CTB writes and reads

2021-05-25 Thread Matthew Brost
On Mon, May 24, 2021 at 03:31:25PM +0200, Michal Wajdeczko wrote: > > > On 06.05.2021 21:13, Matthew Brost wrote: > > CTB writes are now in the path of command submission and should be > > optimized for performance. Rather than reading CTB descriptor values > > (e.g. head, tail, size) which could

Re: [RFC PATCH 35/97] drm/i915/guc: Improve error message for unsolicited CT response

2021-05-25 Thread Matthew Brost
On Mon, May 24, 2021 at 01:59:54PM +0200, Michal Wajdeczko wrote: > > > On 06.05.2021 21:13, Matthew Brost wrote: > > Improve the error message when a unsolicited CT response is received by > > printing fence that couldn't be found, the last fence, and all requests > > with a response outstanding

Re: [RFC PATCH 36/97] drm/i915/guc: Add non blocking CTB send function

2021-05-25 Thread Matthew Brost
On Mon, May 24, 2021 at 02:21:42PM +0200, Michal Wajdeczko wrote: > > > On 06.05.2021 21:13, Matthew Brost wrote: > > Add non blocking CTB send function, intel_guc_send_nb. In order to > > support a non blocking CTB send function a spin lock is needed to > > spin lock was added in 16/97 > > > p

Re: [Intel-gfx] [RFC PATCH 36/97] drm/i915/guc: Add non blocking CTB send function

2021-05-25 Thread Matthew Brost
On Tue, May 25, 2021 at 10:21:00AM +0100, Tvrtko Ursulin wrote: > > On 06/05/2021 20:13, Matthew Brost wrote: > > Add non blocking CTB send function, intel_guc_send_nb. In order to > > support a non blocking CTB send function a spin lock is needed to > > protect the CTB descriptors fields. Also th

Re: [Intel-gfx] [RFC PATCH 39/97] drm/i915/guc: Increase size of CTB buffers

2021-05-25 Thread Matthew Brost
On Tue, May 25, 2021 at 10:24:09AM +0100, Tvrtko Ursulin wrote: > > On 06/05/2021 20:13, Matthew Brost wrote: > > With the introduction of non-blocking CTBs more than one CTB can be in > > flight at a time. Increasing the size of the CTBs should reduce how > > often software hits the case where no

Re: [v4 4/4] drm/panel-simple: Add Samsung ATNA33XC20

2021-05-25 Thread Doug Anderson
Hi, On Tue, May 25, 2021 at 12:31 AM Rajeev Nandan wrote: > > Add Samsung 13.3" FHD eDP AMOLED panel. > > Signed-off-by: Rajeev Nandan > --- > > Changes in v4: > - New > > drivers/gpu/drm/panel/panel-simple.c | 34 ++ > 1 file changed, 34 insertions(+) > > diff -

Re: [v4 3/4] dt-bindings: display: simple: Add Samsung ATNA33XC20

2021-05-25 Thread Doug Anderson
Hi, On Tue, May 25, 2021 at 12:31 AM Rajeev Nandan wrote: > > Add Samsung 13.3" FHD eDP AMOLED panel. > > Signed-off-by: Rajeev Nandan > --- > > Changes in v4: > - New > > Documentation/devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [v4 2/4] drm/panel-simple: Support for delays between GPIO & regulator

2021-05-25 Thread Doug Anderson
Hi, On Tue, May 25, 2021 at 12:31 AM Rajeev Nandan wrote: > > Some panels datasheets may specify a delay between the enable GPIO and > the regulator. Support this in panel-simple. > > Signed-off-by: Rajeev Nandan > --- > > Changes in v4: > - New > > drivers/gpu/drm/panel/panel-simple.c | 23 +++

Re: [v4 1/4] drm/panel-simple: Add basic DPCD backlight support

2021-05-25 Thread Doug Anderson
Hi, On Tue, May 25, 2021 at 12:31 AM Rajeev Nandan wrote: > > @@ -171,6 +172,19 @@ struct panel_desc { > > /** @connector_type: LVDS, eDP, DSI, DPI, etc. */ > int connector_type; > + > + /** > +* @uses_dpcd_backlight: Panel supports eDP dpcd backlight control. > +

Re: [Intel-gfx] [RFC PATCH 44/97] drm/i915/guc: Implement GuC submission tasklet

2021-05-25 Thread Matthew Brost
On Tue, May 25, 2021 at 10:43:32AM +0100, Tvrtko Ursulin wrote: > > On 06/05/2021 20:13, Matthew Brost wrote: > > Implement GuC submission tasklet for new interface. The new GuC > > interface uses H2G to submit contexts to the GuC. Since H2G use a single > > channel, a single tasklet submits is us

Re: [PATCH 7/7] drm/msm/mdp5: provide dynamic bandwidth management

2021-05-25 Thread kernel test robot
Hi Dmitry, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.13-rc3 next-20210525] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--bas

Re: [PATCH 1/2] iommu/arm-smmu-qcom: Skip the TTBR1 quirk for db820c.

2021-05-25 Thread Bjorn Andersson
On Tue 30 Mar 10:31 CDT 2021, Will Deacon wrote: > On Tue, Mar 30, 2021 at 08:03:36AM -0700, Rob Clark wrote: > > On Tue, Mar 30, 2021 at 2:34 AM Will Deacon wrote: > > > > > > On Mon, Mar 29, 2021 at 09:02:50PM -0700, Rob Clark wrote: > > > > On Mon, Mar 29, 2021 at 7:47 AM Will Deacon wrote: >

Re: [Intel-gfx] [RFC PATCH 55/97] drm/i915/guc: Update intel_gt_wait_for_idle to work with GuC

2021-05-25 Thread Matthew Brost
On Tue, May 25, 2021 at 11:06:00AM +0100, Tvrtko Ursulin wrote: > > On 06/05/2021 20:14, Matthew Brost wrote: > > When running the GuC the GPU can't be considered idle if the GuC still > > has contexts pinned. As such, a call has been added in > > intel_gt_wait_for_idle to idle the UC and in turn

Re: [Intel-gfx] [RFC PATCH 53/97] drm/i915/guc: Disable semaphores when using GuC scheduling

2021-05-25 Thread Matthew Brost
On Tue, May 25, 2021 at 10:52:01AM +0100, Tvrtko Ursulin wrote: > > On 06/05/2021 20:14, Matthew Brost wrote: > > Disable semaphores when using GuC scheduling as semaphores are broken in > > the current GuC firmware. > > What is "current"? Given that the patch itself is like year and a half old.

Re: [RFC PATCH 12/97] drm/i915/guc: Don't repeat CTB layout calculations

2021-05-25 Thread Matthew Brost
On Tue, May 25, 2021 at 03:07:06PM +0200, Michal Wajdeczko wrote: > > > On 25.05.2021 04:53, Matthew Brost wrote: > > On Thu, May 06, 2021 at 12:13:26PM -0700, Matthew Brost wrote: > >> From: Michal Wajdeczko > >> > >> We can retrieve offsets to cmds buffers and descriptor from > >> actual point

Re: [RFC PATCH 37/97] drm/i915/guc: Add stall timer to non blocking CTB send function

2021-05-25 Thread Matthew Brost
On Tue, May 25, 2021 at 04:15:15PM +0200, Michal Wajdeczko wrote: > > > On 24.05.2021 20:35, Matthew Brost wrote: > > On Mon, May 24, 2021 at 02:58:12PM +0200, Michal Wajdeczko wrote: > >> > >> > >> On 06.05.2021 21:13, Matthew Brost wrote: > >>> Implement a stall timer which fails H2G CTBs once

Re: [Intel-gfx] [RFC PATCH 00/97] Basic GuC submission support in the i915

2021-05-25 Thread Matthew Brost
On Tue, May 25, 2021 at 11:32:26AM +0100, Tvrtko Ursulin wrote: > > On 06/05/2021 20:13, Matthew Brost wrote: > > Basic GuC submission support. This is the first bullet point in the > > upstreaming plan covered in the following RFC [1]. > > > > At a very high level the GuC is a piece of firmware

Re: [RFC PATCH 17/97] drm/i915/guc: Stop using mutex while sending CTB messages

2021-05-25 Thread Matthew Brost
On Thu, May 06, 2021 at 12:13:31PM -0700, Matthew Brost wrote: > From: Michal Wajdeczko > > We are no longer using descriptor to hold G2H replies and we are > protecting access to the descriptor and command buffer by the > separate spinlock, so we can stop using mutex. > > Signed-off-by: Michal

Re: [PATCH] drm/msm/disp/dpu1/dpu_encoder: Drop unnecessary NULL checks after container_of

2021-05-25 Thread Bjorn Andersson
On Tue 25 May 06:29 CDT 2021, Guenter Roeck wrote: > The result of container_of() operations is never NULL unless the embedded > element is the first element of the structure. This is not the case here. > The NULL checks on the result of container_of() are therefore unnecessary > and misleading. R

Re: [PATCH] drm/msm/dp: remove the repeated declaration

2021-05-25 Thread Bjorn Andersson
On Tue 25 May 07:22 CDT 2021, Shaokun Zhang wrote: > Function 'dp_catalog_audio_enable' is declared twice, remove the > repeated declaration. > > Cc: Rob Clark > Cc: Abhinav Kumar Reviewed-by: Bjorn Andersson > Signed-off-by: Shaokun Zhang > --- > drivers/gpu/drm/msm/dp/dp_catalog.h | 1 -

Re: [PATCH 11/11] drm/tiny: drm_gem_simple_display_pipe_prepare_fb is the default

2021-05-25 Thread Daniel Vetter
On Fri, May 21, 2021 at 04:09:13PM +0200, Noralf Trønnes wrote: > > > Den 21.05.2021 11.09, skrev Daniel Vetter: > > Goes through all the drivers and deletes the default hook since it's > > the default now. > > > > Signed-off-by: Daniel Vetter > > Acked-by: Noralf Trønnes Can you perhaps als

  1   2   3   >