RE: [Patch v2 2/3] drm/mst: Refactor the flow for payload allocation/removement

2023-08-07 Thread Lin, Wayne
[AMD Official Use Only - General] Thanks for your time, Lyude! Regards, Wayne > -Original Message- > From: Lyude Paul > Sent: Tuesday, August 8, 2023 4:23 AM > To: Lin, Wayne ; dri-devel@lists.freedesktop.org; > amd-...@lists.freedesktop.org > Cc: jani.nik...@intel.com;

RE: [PATCH 3/3] drm/mst: adjust the function drm_dp_remove_payload_part2()

2023-08-07 Thread Lin, Wayne
[AMD Official Use Only - General] > -Original Message- > From: Imre Deak > Sent: Tuesday, August 8, 2023 12:00 AM > To: Lin, Wayne > Cc: dri-devel@lists.freedesktop.org; amd-...@lists.freedesktop.org; > ly...@redhat.com; jani.nik...@intel.com; ville.syrj...@linux.intel.com; > Wentland,

Re: [PATCH v2 0/6] Adds support for ConfigFS to VKMS!

2023-08-07 Thread Brandon Ross Pollack
Some of these comments have been sitting for a while.  Would it be ok if yi...@chromium.org and myself picked these up and did an iteration so we could also get https://patchwork.kernel.org/project/dri-devel/patch/20230711013148.3155572-1-br...@chromium.org/ submitted?  These will enable a lot

Re: [PATCH v4 46/48] mm: shrinker: make memcg slab shrink lockless

2023-08-07 Thread Dave Chinner
On Mon, Aug 07, 2023 at 07:09:34PM +0800, Qi Zheng wrote: > Like global slab shrink, this commit also uses refcount+RCU method to make > memcg slab shrink lockless. This patch does random code cleanups amongst the actual RCU changes. Can you please move the cleanups to a spearate patch to reduce

[PATCH] Initial backport of vkms changes from 6.4, including jshargo and brpols configs changes

2023-08-07 Thread Brandon Pollack
WIP: Need to run all tast criticals and test the multidisplay tests that are WIP. BUG=b:283357160 TEST=Booted on a betty-arc-r device and ran autologin.py -a Change-Id: I13cef8cf019744813f51cfffed3d7ccb987834e8 Change-Id: Iae7d788bc4725dfdca044204fa1af27a5a1ec5a8 ---

[no subject]

2023-08-07 Thread Brandon Pollack
Any progress on this? Is it ok if yi...@chromium.org and I do the followups on this patch so that we can also submit the Hotplug patch I wrote (that's now archived?).

Re: [PATCH drm-misc-next 0/5] Nouveau VM_BIND uAPI Fixes

2023-08-07 Thread Dave Airlie
For the series: Reviewed-by: Dave Airlie On Tue, 8 Aug 2023 at 02:32, Danilo Krummrich wrote: > > The patch series provides a few fixes for the recently merged VM_BIND uAPI > mostly addressing a couple of warnings. > > It also contains one patch to slightly reduce the memory footprint of >

Re: [PATCH v4 45/48] mm: shrinker: make global slab shrink lockless

2023-08-07 Thread Dave Chinner
On Mon, Aug 07, 2023 at 07:09:33PM +0800, Qi Zheng wrote: > diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h > index eb342994675a..f06225f18531 100644 > --- a/include/linux/shrinker.h > +++ b/include/linux/shrinker.h > @@ -4,6 +4,8 @@ > > #include > #include > +#include >

Re: [PATCH v4 44/48] mm: shrinker: add a secondary array for shrinker_info::{map, nr_deferred}

2023-08-07 Thread Dave Chinner
On Mon, Aug 07, 2023 at 07:09:32PM +0800, Qi Zheng wrote: > Currently, we maintain two linear arrays per node per memcg, which are > shrinker_info::map and shrinker_info::nr_deferred. And we need to resize > them when the shrinker_nr_max is exceeded, that is, allocate a new array, > and then copy

Re: [PATCH RFC v5 02/10] drm: Introduce solid fill DRM plane property

2023-08-07 Thread Dmitry Baryshkov
On 8 August 2023 00:41:07 GMT+03:00, Jessica Zhang wrote: > > >On 8/4/2023 6:27 AM, Dmitry Baryshkov wrote: >> On Fri, 28 Jul 2023 at 20:03, Jessica Zhang >> wrote: >>> >>> Document and add support for solid_fill property to drm_plane. In >>> addition, add support for setting and getting

Re: [PATCH] drm/nouveau/sched: Don't pass user flags to drm_syncobj_find_fence()

2023-08-07 Thread Danilo Krummrich
On Mon, Aug 07, 2023 at 06:41:44PM -0500, Faith Ekstrand wrote: > The flags field in drm_syncobj_find_fence() takes SYNCOBJ_WAIT flags > from the syncobj UAPI whereas sync->flags is from the nouveau UAPI. What > we actually want is 0 flags which tells it to just try to find the > fence and then

Re: [Freedreno] [PATCH 1/2] drm/msm/dpu: move writeback's atomic_check to dpu_writeback.c

2023-08-07 Thread Abhinav Kumar
On 5/18/2023 7:30 PM, Dmitry Baryshkov wrote: dpu_encoder_phys_wb is the only user of encoder's atomic_check callback. Move corresponding checks to drm_writeback_connector's implementation and drop the dpu_encoder_phys_wb_atomic_check() function. Signed-off-by: Dmitry Baryshkov --- I dont

Re: [PATCH 3/3] drm/msm/dpu: drop dpu_encoder_phys_ops.atomic_mode_set

2023-08-07 Thread Abhinav Kumar
On 6/4/2023 7:45 AM, Dmitry Baryshkov wrote: The atomic_mode_set() callback only sets the phys_enc's IRQ data. As the INTF and WB are statically allocated to each encoder/phys_enc, drop the atomic_mode_set callback and set the IRQs during encoder init. For the CMD panel usecase some of IRQ

[PATCH] drm/nouveau/sched: Don't pass user flags to drm_syncobj_find_fence()

2023-08-07 Thread Faith Ekstrand
The flags field in drm_syncobj_find_fence() takes SYNCOBJ_WAIT flags from the syncobj UAPI whereas sync->flags is from the nouveau UAPI. What we actually want is 0 flags which tells it to just try to find the fence and then return without waiting. Signed-off-by: Faith Ekstrand Fixes:

Re: [PATCH v4 45/48] mm: shrinker: make global slab shrink lockless

2023-08-07 Thread Dave Chinner
On Mon, Aug 07, 2023 at 07:09:33PM +0800, Qi Zheng wrote: > The shrinker_rwsem is a global read-write lock in shrinkers subsystem, > which protects most operations such as slab shrink, registration and > unregistration of shrinkers, etc. This can easily cause problems in the > following cases.

Re: [PATCH v3 1/4] drm/msm/dpu: Move DPU encoder wide_bus_en setting

2023-08-07 Thread Jessica Zhang
On 8/2/2023 12:32 PM, Marijn Suijten wrote: I find this title very undescriptive, it doesn't really explain from/to where this move is happening nor why. On 2023-08-02 11:08:48, Jessica Zhang wrote: Move the setting of dpu_enc.wide_bus_en to dpu_encoder_virt_atomic_enable() so that it

Re: [PATCH v3 2/4] drm/msm/dpu: Enable widebus for DSI INTF

2023-08-07 Thread Jessica Zhang
On 8/2/2023 12:39 PM, Marijn Suijten wrote: On 2023-08-02 11:08:49, Jessica Zhang wrote: DPU supports a data-bus widen mode for DSI INTF. Enable this mode for all supported chipsets if widebus is enabled for DSI. Signed-off-by: Jessica Zhang ---

Re: [PATCH RFC v5 02/10] drm: Introduce solid fill DRM plane property

2023-08-07 Thread Jessica Zhang
On 8/4/2023 6:27 AM, Dmitry Baryshkov wrote: On Fri, 28 Jul 2023 at 20:03, Jessica Zhang wrote: Document and add support for solid_fill property to drm_plane. In addition, add support for setting and getting the values for solid_fill. To enable solid fill planes, userspace must assign a

Re: [PATCH v3 2/4] drm/msm/dpu: Enable widebus for DSI INTF

2023-08-07 Thread Jessica Zhang
On 8/2/2023 11:20 AM, Dmitry Baryshkov wrote: On Wed, 2 Aug 2023 at 21:09, Jessica Zhang wrote: DPU supports a data-bus widen mode for DSI INTF. Enable this mode for all supported chipsets if widebus is enabled for DSI. Signed-off-by: Jessica Zhang ---

[PATCH v2 2/2] drm/v3d: Expose the total GPU usage stats on sysfs

2023-08-07 Thread Maíra Canal
The previous patch exposed the accumulated amount of active time per client for each V3D queue. But this doesn't provide a global notion of the GPU usage. Therefore, provide the accumulated amount of active time for each V3D queue (BIN, RENDER, CSD, TFU and CACHE_CLEAN), considering all the jobs

[PATCH v2 1/2] drm/v3d: Implement show_fdinfo() callback for GPU usage stats

2023-08-07 Thread Maíra Canal
This patch exposes the accumulated amount of active time per client through the fdinfo infrastructure. The amount of active time is exposed for each V3D queue: BIN, RENDER, CSD, TFU and CACHE_CLEAN. In order to calculate the amount of active time per client, a CPU clock is used through the

[PATCH v2 0/2] drm/v3d: Expose GPU usage stats

2023-08-07 Thread Maíra Canal
This patchset exposes GPU usages stats both globally and per-file descriptor. The first patch exposes the accumulated amount of active time per client through the fdinfo infrastructure. The amount of active time is exposed for each V3D queue. Moreover, it exposes the number of jobs submitted to

Re: [PATCH -next] drm/mcde: remove redundant of_match_ptr

2023-08-07 Thread Linus Walleij
On Mon, Jul 31, 2023 at 3:19 PM Zhu Wang wrote: > The driver depends on CONFIG_OF, so it is not necessary to use > of_match_ptr here. > > Even for drivers that do not depend on CONFIG_OF, it's almost always > better to leave out the of_match_ptr(), since the only thing it can > possibly do is to

Re: [PATCH -next] drm/tve200: remove redundant of_match_ptr

2023-08-07 Thread Linus Walleij
On Mon, Jul 31, 2023 at 2:43 PM Zhu Wang wrote: > The driver depends on CONFIG_OF, so it is not necessary to use > of_match_ptr here. > > Even for drivers that do not depend on CONFIG_OF, it's almost always > better to leave out the of_match_ptr(), since the only thing it can > possibly do is to

Re: [PATCH] drm/nouveau/disp: Revert a NULL check inside nouveau_connector_get_modes

2023-08-07 Thread Lyude Paul
Ugh, thanks for catching this! Reviewed-by: Lyude Paul On Sat, 2023-08-05 at 12:18 +0200, Karol Herbst wrote: > The original commit adding that check tried to protect the kenrel against > a potential invalid NULL pointer access. > > However we call nouveau_connector_detect_depth once without a

Re: [Patch v2 2/3] drm/mst: Refactor the flow for payload allocation/removement

2023-08-07 Thread Lyude Paul
Oo! This is a wonderful idea so far - keeping track of the status of allocations like this solves a lot of problems, especially with regards to the fact this actually seems to make it possible for us to have much better handling of payload failures in drivers - especially in situations like

Re: [PATCH -next] drm: bridge: dw_hdmi: clean up some inconsistent indentings

2023-08-07 Thread Robert Foss
On Mon, Aug 7, 2023 at 2:43 AM Yang Li wrote: > > drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c:332 dw_hdmi_cec_suspend() warn: > inconsistent indenting > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6101 > Signed-off-by: Yang Li > --- >

Re: [Intel-gfx] [PATCH] drm/i915/guc: Fix potential null pointer deref in GuC 'steal id' test

2023-08-07 Thread John Harrison
On 8/3/2023 06:28, Andi Shyti wrote: Hi John, On Wed, Aug 02, 2023 at 11:49:40AM -0700, john.c.harri...@intel.com wrote: From: John Harrison It was noticed that if the very first 'stealing' request failed to create for some reason then the 'steal all ids' loop would immediately exit with

Re: [PATCH drm-misc-next v9 06/11] drm/nouveau: fence: separate fence alloc and emit

2023-08-07 Thread Danilo Krummrich
Hi Christian, On 8/7/23 20:07, Christian König wrote: Am 03.08.23 um 18:52 schrieb Danilo Krummrich: The new (VM_BIND) UAPI exports DMA fences through DRM syncobjs. Hence, in order to emit fences within DMA fence signalling critical sections (e.g. as typically done in the DRM GPU schedulers

Re: [PATCH drm-misc-next v9 06/11] drm/nouveau: fence: separate fence alloc and emit

2023-08-07 Thread Christian König
Am 03.08.23 um 18:52 schrieb Danilo Krummrich: The new (VM_BIND) UAPI exports DMA fences through DRM syncobjs. Hence, in order to emit fences within DMA fence signalling critical sections (e.g. as typically done in the DRM GPU schedulers run_job() callback) we need to separate fence allocation

Re: [Intel-gfx] [PATCH v1 3/3] drm/i915/gt: Timeout when waiting for idle in suspending

2023-08-07 Thread Rodrigo Vivi
On Wed, Aug 02, 2023 at 04:35:01PM -0700, Alan Previn wrote: > When suspending, add a timeout when calling > intel_gt_pm_wait_for_idle else if we have a lost > G2H event that holds a wakeref (which would be > indicating of a bug elsewhere in the driver), we > get to complete the suspend-resume

Re: [PATCH RFC v5 01/10] drm: Introduce pixel_source DRM plane property

2023-08-07 Thread Jessica Zhang
On 8/4/2023 6:15 AM, Sebastian Wick wrote: On Fri, Jul 28, 2023 at 7:03 PM Jessica Zhang wrote: Add support for pixel_source property to drm_plane and related documentation. In addition, force pixel_source to DRM_PLANE_PIXEL_SOURCE_FB in DRM_IOCTL_MODE_SETPLANE as to not break legacy

Re: [PATCH v1 1/3] drm/i915/guc: Flush context destruction worker at suspend

2023-08-07 Thread Rodrigo Vivi
On Wed, Aug 02, 2023 at 04:34:59PM -0700, Alan Previn wrote: > Suspend is not like reset, it can unroll, so we have to properly > flush pending context-guc-id deregistrations to complete before > we return from suspend calls. But if is 'unrolls' the execution should just continue, no?! In other

Re: [PATCH] drm/amdgpu: Clean up errors in vcn_v3_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:53 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: space required before the open brace '{' > ERROR: "foo * bar" should be "foo *bar" > ERROR: space required before the open parenthesis '(' > ERROR: that open brace {

Re: [PATCH] drm/amdgpu: Clean up errors in tonga_ih.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:50 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH] drm/amdgpu: Clean up errors in gfx_v7_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:49 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > ERROR: trailing statements should be on next line > ERROR: open brace '{' following struct go on the same line >

Re: [PATCH] drm/amdgpu: Clean up errors in vcn_v4_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:43 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > spaces required around that '==' (ctx:VxV) > ERROR: space required before the open parenthesis '(' > ERROR: that open brace { should be on the previous line > > Signed-off-by:

Re: [PATCH] drm/amdgpu: Clean up errors in uvd_v3_1.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:37 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c | 3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH] drm/amdgpu: Clean up errors in mxgpu_vi.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:35 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: spaces required around that '-=' (ctx:WxV) > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] drm/amdgpu: Clean up errors in nv.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:34 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/nv.c | 48 +++-- > 1 file

Re: [PATCH] drm/amdgpu: Clean up errors in amdgpu_virt.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:31 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: space required before the open parenthesis '(' > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] drm/amdgpu: Clean up errors in amdgpu_ring.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:28 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: spaces required around that ':' (ctx:VxW) > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v5 1/8] drm/msm/dpu: fix the irq index in dpu_encoder_phys_wb_wait_for_commit_done

2023-08-07 Thread Abhinav Kumar
On 8/2/2023 3:04 AM, Dmitry Baryshkov wrote: Since commit 1e7ac595fa46 ("drm/msm/dpu: pass irq to dpu_encoder_helper_wait_for_irq()") the dpu_encoder_phys_wb_wait_for_commit_done expects the IRQ index rather than the IRQ index in phys_enc->intr table, however writeback got the older

Re: [PATCH] drm/amdgpu: Clean up errors in amdgpu_trace.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:26 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: space required after that ',' (ctx:VxV) > ERROR: "foo* bar" should be "foo *bar" > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 4 ++--

Re: [PATCH] drm/amdgpu: Clean up errors in mes_v11_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:24 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: else should follow close brace '}' > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-)

Re: [PATCH] drm/amdgpu: Clean up errors in amdgpu_atombios.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:23 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h | 9 +++-- > 1 file changed, 3

Re: [PATCH] drm/amdgpu: Clean up errors in soc21.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:21 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/soc21.c | 30 ++ > 1 file

Re: [PATCH] drm/amdgpu: Clean up errors in dce_v8_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:18 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > ERROR: code indent should use tabs where possible > ERROR: space required before the open brace '{' > >

Re: [PATCH] drm/amdgpu/jpeg: Clean up errors in vcn_v1_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:12 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: space required before the open parenthesis '(' > ERROR: space prohibited after that '~' (ctx:WxW) > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amdgpu: Clean up errors in mxgpu_nv.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:06 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: else should follow close brace '}' > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c

Re: [PATCH] drm/amdgpu: Clean up errors in dce_v10_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:04 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 30 +- > 1 file

Re: [PATCH] drm/jpeg: Clean up errors in jpeg_v2_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 3:00 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 3 +-- > 1 file changed, 1 insertion(+),

Re: [PATCH] drm/amdgpu: Clean up errors in uvd_v7_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:58 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: spaces required around that ':' (ctx:VxE) > that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c

Re: [PATCH] drm/amd: Clean up errors in amdgpu_cgs.c

2023-08-07 Thread Alex Deucher
Already fixed. On Wed, Aug 2, 2023 at 2:55 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: switch and case should be at the same indent > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 64 - > 1 file changed,

Re: [PATCH] drm/amdgpu/atomfirmware: Clean up errors in amdgpu_atomfirmware.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:51 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: spaces required around that '>=' (ctx:WxV) > ERROR: spaces required around that '!=' (ctx:WxV) > ERROR: code indent should use tabs where possible > > Signed-off-by:

Re: [PATCH] drm/amdgpu: Clean up errors in mmhub_v9_4.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:48 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: code indent should use tabs where possible > ERROR: space required before the open parenthesis '(' > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amdgpu: Clean up errors in vega20_ih.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:46 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: trailing statements should be on next line > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amdgpu: Clean up errors in ih_v6_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:43 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: trailing statements should be on next line > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amdgpu: Clean up errors in amdgpu_psp.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:40 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > ERROR: open brace '{' following enum go on the same line > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amdgpu: Clean up errors in vce_v3_0.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:38 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 9 +++-- > 1 file changed, 3

Re: [PATCH] drm/amdgpu: Clean up errors in cik_ih.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:35 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/cik_ih.c | 3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH] drm/amd/display: Clean up errors in dce_clk_mgr.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:26 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: spaces required around that '?' (ctx:VxE) > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c | 2 +- > 1 file changed, 1

Re: [PATCH] drm/amd/display: Clean up errors in display_mode_vba_30.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:20 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: else should follow close brace '}' > > Signed-off-by: Ran Sun > --- > .../gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c | 6 ++ > 1 file changed, 2

Re: [PATCH] drm/amd/display: Clean up errors in dcn10_dpp_dscl.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:16 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: else should follow close brace '}' > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c | 3 +-- > 1 file changed, 1 insertion(+),

Re: [PATCH] drm/amd/display: Clean up errors in dc_stream.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Wed, Aug 2, 2023 at 2:14 AM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 3 +-- > 1 file changed, 1

Re: [PATCH] drm/amd/display: Clean up errors in bios_parser2.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! As a follow up patch, care to drop the break statements after a return? On Tue, Aug 1, 2023 at 11:23 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: switch and case should be at the same indent > ERROR: code indent should use tabs where

[PATCH v4 6/9] interconnect: Fix locking for runpm vs reclaim

2023-08-07 Thread Rob Clark
From: Rob Clark For cases where icc_bw_set() can be called in callbaths that could deadlock against shrinker/reclaim, such as runpm resume, we need to decouple the icc locking. Introduce a new icc_bw_lock for cases where we need to serialize bw aggregation and update to decouple that from paths

[PATCH v4 9/9] drm/msm: Enable fence signalling annotations

2023-08-07 Thread Rob Clark
From: Rob Clark Now that the runpm/qos/interconnect lockdep vs reclaim issues are solved, we can enable the fence signalling annotations without lockdep making it's immediate displeasure known. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_ringbuffer.c | 1 + 1 file changed, 1

[PATCH v4 8/9] drm/sched: Add (optional) fence signaling annotation

2023-08-07 Thread Rob Clark
From: Rob Clark Based on https://lore.kernel.org/dri-devel/20200604081224.863494-10-daniel.vet...@ffwll.ch/ but made to be optional. Signed-off-by: Rob Clark Reviewed-by: Luben Tuikov --- drivers/gpu/drm/scheduler/sched_main.c | 9 + include/drm/gpu_scheduler.h| 2 ++ 2

[PATCH v4 7/9] interconnect: Teach lockdep about icc_bw_lock order

2023-08-07 Thread Rob Clark
From: Rob Clark Teach lockdep that icc_bw_lock is needed in code paths that could deadlock if they trigger reclaim. Signed-off-by: Rob Clark --- drivers/interconnect/core.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/interconnect/core.c

[PATCH v4 5/9] PM / QoS: Teach lockdep about dev_pm_qos_mtx locking order

2023-08-07 Thread Rob Clark
From: Rob Clark Annotate dev_pm_qos_mtx to teach lockdep to scream about allocations that could trigger reclaim under dev_pm_qos_mtx. Signed-off-by: Rob Clark --- drivers/base/power/qos.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/base/power/qos.c

Re: [PATCH] drm/amd/display: Clean up errors in dcn316_smu.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 11:03 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > ERROR: code indent should use tabs where possible > > Signed-off-by: Ran Sun > --- >

[PATCH v4 3/9] PM / QoS: Fix constraints alloc vs reclaim locking

2023-08-07 Thread Rob Clark
From: Rob Clark In the process of adding lockdep annotation for drm GPU scheduler's job_run() to detect potential deadlock against shrinker/reclaim, I hit this lockdep splat: == WARNING: possible circular locking dependency detected

[PATCH v4 4/9] PM / QoS: Decouple request alloc from dev_pm_qos_mtx

2023-08-07 Thread Rob Clark
From: Rob Clark Similar to the previous patch, move the allocation out from under dev_pm_qos_mtx, by speculatively doing the allocation and handle any race after acquiring dev_pm_qos_mtx by freeing the redundant allocation. Signed-off-by: Rob Clark --- drivers/base/power/qos.c | 13

[PATCH v4 1/9] PM / devfreq: Drop unneed locking to appease lockdep

2023-08-07 Thread Rob Clark
From: Rob Clark In the process of adding lockdep annotation for GPU job_run() path to catch potential deadlocks against the shrinker/reclaim path, I turned up this lockdep splat: == WARNING: possible circular locking dependency detected

[PATCH v4 2/9] PM / devfreq: Teach lockdep about locking order

2023-08-07 Thread Rob Clark
From: Rob Clark This will make it easier to catch places doing allocations that can trigger reclaim under devfreq->lock. Because devfreq->lock is held over various devfreq_dev_profile callbacks, there might be some fallout if those callbacks do allocations that can trigger reclaim, but I've

[PATCH v4 0/9] drm/msm+PM+icc: Make job_run() reclaim-safe

2023-08-07 Thread Rob Clark
From: Rob Clark Inspired by https://lore.kernel.org/dri-devel/20200604081224.863494-10-daniel.vet...@ffwll.ch/ it seemed like a good idea to get rid of memory allocation in job_run() fence signaling path, and use lockdep annotations to yell at us about anything that could deadlock against

Re: [PATCH] drm/amd/display: Clean up errors in dcn316_clk_mgr.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 11:01 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > > Signed-off-by: Ran Sun > --- > .../gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c | 6 ++ > 1

Re: [PATCH] drm/amd/display: Clean up errors in dcn315_smu.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:58 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > ERROR: code indent should use tabs where possible > > Signed-off-by: Ran Sun > --- >

Re: [PATCH 00/11] fbdev/sbus: Initializers for struct fb_ops

2023-08-07 Thread Sam Ravnborg
Hi Thomas, On Sun, Aug 06, 2023 at 01:58:51PM +0200, Thomas Zimmermann wrote: > Add initializer macros for struct fb_ops of drivers that operate > on SBUS-based framebuffers. Also add a Kconfig token to select the > correct dependencies. > > All drivers for SBUS-based framebuffers use the

Re: [PATCH] drm/amd/display: Clean up errors in dce112_hw_sequencer.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:54 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: space required before the open brace '{' > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/display/dc/dce112/dce112_hw_sequencer.c | 2 +- > 1 file changed, 1

Re: [PATCH] drm/amd/display: Clean up errors in dce110_hw_sequencer.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:53 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: space required before the open brace '{' > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 2 +- > 1 file changed, 1

Re: [PATCH] drm/amd/display: Clean up errors in dce110_timing_generator.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:52 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: spaces required around that '=' (ctx:WxV) > > Signed-off-by: Ran Sun > --- > .../gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c | 4 ++-- > 1 file

Re: [PATCH] drm/amd/dc: Clean up errors in hpd_regs.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:47 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: space required after that ',' (ctx:VxV) > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/display/dc/gpio/hpd_regs.h | 10 +- > 1 file changed, 5

Re: [PATCH] drm/amd/display: Clean up errors in ddc_regs.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:44 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: space required after that ',' (ctx:VxV) > > Signed-off-by: Ran Sun > --- > .../gpu/drm/amd/display/dc/gpio/ddc_regs.h| 40 +-- > 1 file changed,

Re: [PATCH] drm/amd/display: Clean up errors in color_gamma.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:40 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: trailing whitespace > ERROR: else should follow close brace '}' > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 5 ++---

Re: [PATCH] drm/amd/pm: Clean up errors in amdgpu_pm.c

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:31 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > ERROR: space required before the open parenthesis '(' > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amd/pm: Clean up errors in sislands_smc.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:25 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > .../gpu/drm/amd/pm/legacy-dpm/sislands_smc.h | 63 +++ > 1 file

Re: [PATCH] drm/amd/pm: Clean up errors in r600_dpm.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:15 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/legacy-dpm/r600_dpm.h | 3 +-- > 1 file changed, 1

Re: [PATCH] drivers/amd/pm: Clean up errors in smu8_smumgr.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 10:10 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > ERROR: space prohibited before that ',' (ctx:WxW) > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amd/pm: Clean up errors in smu8_smumgr.h

2023-08-07 Thread Alex Deucher
Need to be careful with these changes to make sure we aren't changing the size calculations somewhere. Alex On Tue, Aug 1, 2023 at 10:03 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: Use C99 flexible arrays > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amd/pm: Clean up errors in smu75.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 9:59 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: space prohibited before open square bracket '[' > ERROR: "foo * bar" should be "foo *bar" > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amd/pm: Clean up errors in smu73.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 9:56 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > ERROR: space prohibited before open square bracket '[' > ERROR: "foo * bar" should be "foo *bar" > >

Re: [PATCH RFC v5 09/10] drm/msm/dpu: Use DRM solid_fill property

2023-08-07 Thread Jessica Zhang
On 7/31/2023 5:52 PM, Dmitry Baryshkov wrote: On 01/08/2023 03:39, Jessica Zhang wrote: On 7/30/2023 9:15 PM, Dmitry Baryshkov wrote: On 28/07/2023 20:02, Jessica Zhang wrote: Drop DPU_PLANE_COLOR_FILL_FLAG and check the DRM solid_fill property to determine if the plane is solid fill. In

Re: [PATCH] drm/amd/pm: Clean up errors in hwmgr.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 9:48 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > ERROR: Use C99 flexible arrays > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h |

Re: [PATCH] drm/amd/pm: Clean up errors in hardwaremanager.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 9:39 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/powerplay/inc/hardwaremanager.h | 3 +-- > 1 file

Re: [PATCH] drm/amd/pm: Clean up errors in pp_thermal.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 9:38 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/powerplay/inc/pp_thermal.h | 6 ++ > 1 file changed,

Re: [PATCH] drm/amd/pm: Clean up errors in smu7.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 9:31 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/powerplay/inc/smu7.h | 6 ++ > 1 file changed, 2

Re: [PATCH] drm/amd/pm: Clean up errors in smu7_fusion.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 9:29 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > ERROR: space prohibited before open square bracket '[' > > Signed-off-by: Ran Sun > --- >

Re: [PATCH] drm/amd/pm: Clean up errors in smu71.h

2023-08-07 Thread Alex Deucher
Applied. Thanks! On Tue, Aug 1, 2023 at 9:23 PM Ran Sun wrote: > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > ERROR: space prohibited before open square bracket '[' > > Signed-off-by: Ran Sun > --- >

  1   2   3   >