Re: [PATCH 37/39] drm: renesas: shmobile: Remove internal CRTC state tracking

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:49AM +0200, Geert Uytterhoeven wrote: > Now the suspend/resume methods no longer need to look at internal driver > state, the dpms and started fields in the shmob_drm_crtc structure can > be removed, as well as the

Re: [PATCH 36/39] drm: renesas: shmobile: Use suspend/resume helpers

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:48AM +0200, Geert Uytterhoeven wrote: > Replace the custom suspend/resume handling by calls into > drm_mode_config_helper_{suspend,resume}(). > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart > --- >

Re: [PATCH 33/39] drm: renesas: shmobile: Cleanup encoder

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:45AM +0200, Geert Uytterhoeven wrote: > Most unused callbacks can be NULL pointers these days. > Drop a bunch of empty encoder callbacks. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart > --- >

Re: [PATCH 32/39] drm: renesas: shmobile: Shutdown the display on remove

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:44AM +0200, Geert Uytterhoeven wrote: > When the device is unbound from the driver, the display may be active. > Make sure it gets shut down. > > Signed-off-by: Geert Uytterhoeven > --- >

Re: [PATCH 31/39] drm: renesas: shmobile: Turn vblank on/off when enabling/disabling CRTC

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:43AM +0200, Geert Uytterhoeven wrote: > The DRM core vblank handling mechanism requires drivers to forcefully > turn vblank reporting off when disabling the CRTC, and to restore the > vblank reporting status when enabling the CRTC.

Re: [PATCH 30/39] drm: renesas: shmobile: Wait for page flip when turning CRTC off

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:42AM +0200, Geert Uytterhoeven wrote: > Turning a CRTC off will prevent a queued page flip from ever completing, > potentially confusing userspace. Wait for queued page flips to complete > before turning the CRTC off to avoid

Re: [PATCH 29/39] drm: renesas: shmobile: Move shmob_drm_crtc_finish_page_flip()

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:41AM +0200, Geert Uytterhoeven wrote: > Move the shmob_drm_crtc_finish_page_flip() function up, to avoid having > to move it during the modification in the next change. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent

Re: [PATCH 28/39] drm: renesas: shmobile: Use drm_crtc_handle_vblank()

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:40AM +0200, Geert Uytterhoeven wrote: > Replace the call to the legacy drm_handle_vblank() function with a call > to the new drm_crtc_handle_vblank() helper. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart

Re: [PATCH 27/39] drm: renesas: shmobile: Rename shmob_drm_plane.plane

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:39AM +0200, Geert Uytterhoeven wrote: > Rename the "plane" member of the shmob_drm_plane subclass structure to > "base", to improve readability. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart > --- >

Re: [PATCH 26/39] drm: renesas: shmobile: Rename shmob_drm_connector.connector

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:38AM +0200, Geert Uytterhoeven wrote: > Rename the "connector" member of the shmob_drm_connector subclass > structure to "base", to improve readability. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart > ---

Re: [PATCH 25/39] drm: renesas: shmobile: Rename shmob_drm_crtc.crtc

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:37AM +0200, Geert Uytterhoeven wrote: > Rename the "crtc" member of the shmob_drm_crtc subclass structure to > "base", to improve readability. I'm not sure that's more readable to me, but I don't mind :-) Reviewed-by: Laurent

Re: [PATCH 24/39] drm: renesas: shmobile: Unify plane allocation

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:36AM +0200, Geert Uytterhoeven wrote: > Unify primary and overlay plane allocation: > - Enhance shmob_drm_plane_create() so it can be used to create the > primary plane, too, > - Move overlay plane creation next to primary

Re: [PATCH V4 1/8] drivers/acpi: Add support for Wifi band RF mitigations

2023-06-23 Thread Limonciello, Mario
On 6/23/2023 11:28 AM, Rafael J. Wysocki wrote: On Fri, Jun 23, 2023 at 5:57 PM Limonciello, Mario wrote: On 6/23/2023 9:52 AM, Rafael J. Wysocki wrote: On Wed, Jun 21, 2023 at 7:47 AM Evan Quan wrote: From: Mario Limonciello Due to electrical and mechanical constraints in certain

Re: [PATCH 23/39] drm: renesas: shmobile: Move interface handling to connector setup

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:35AM +0200, Geert Uytterhoeven wrote: > Move legacy interface handling to the connector setup code. > Set up bus_flags and bus_formats in display_info according to the > bus format and panel information from platform data, to make

Re: [PATCH V4 1/8] drivers/acpi: Add support for Wifi band RF mitigations

2023-06-23 Thread Rafael J. Wysocki
On Wed, Jun 21, 2023 at 7:47 AM Evan Quan wrote: > > From: Mario Limonciello > > Due to electrical and mechanical constraints in certain platform designs > there may be likely interference of relatively high-powered harmonics of > the (G-)DDR memory clocks with local radio module frequency bands

Re: [PATCH v1 0/2] udmabuf: Add back support for mapping hugetlb pages

2023-06-23 Thread Jason Gunthorpe
On Fri, Jun 23, 2023 at 12:35:45PM -0400, Peter Xu wrote: > It seems the previous concern on using gup was majorly fork(), if this is it: > > https://patchwork.freedesktop.org/patch/210992/?series=39879=2#comment_414213 Fork and GUP have been fixed since that comment anyhow there is no longer a

Re: [PATCH v1 0/2] udmabuf: Add back support for mapping hugetlb pages

2023-06-23 Thread Peter Xu
On Fri, Jun 23, 2023 at 06:13:02AM +, Kasireddy, Vivek wrote: > Hi David, > > > > The first patch ensures that the mappings needed for handling mmap > > > operation would be managed by using the pfn instead of struct page. > > > The second patch restores support for mapping hugetlb pages

Re: [PATCH V4 1/8] drivers/acpi: Add support for Wifi band RF mitigations

2023-06-23 Thread Rafael J. Wysocki
On Fri, Jun 23, 2023 at 5:57 PM Limonciello, Mario wrote: > > > On 6/23/2023 9:52 AM, Rafael J. Wysocki wrote: > > On Wed, Jun 21, 2023 at 7:47 AM Evan Quan wrote: > >> From: Mario Limonciello > >> > >> Due to electrical and mechanical constraints in certain platform designs > >> there may be

Re: [PATCH v3 9/9] drm/mediatek: dp: Add support for embedded DisplayPort aux-bus

2023-06-23 Thread Nícolas F . R . A . Prado
On Tue, Apr 04, 2023 at 12:48:00PM +0200, AngeloGioacchino Del Regno wrote: > For the eDP case we can support using aux-bus on MediaTek DP: this > gives us the possibility to declare our panel as generic "panel-edp" > which will automatically configure the timings and available modes > via the

Re: [PATCH V4 1/8] drivers/acpi: Add support for Wifi band RF mitigations

2023-06-23 Thread Limonciello, Mario
On 6/23/2023 9:52 AM, Rafael J. Wysocki wrote: On Wed, Jun 21, 2023 at 7:47 AM Evan Quan wrote: From: Mario Limonciello Due to electrical and mechanical constraints in certain platform designs there may be likely interference of relatively high-powered harmonics of the (G-)DDR memory

Re: [PATCH 22/39] drm: renesas: shmobile: Use media bus formats in platform data

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:34AM +0200, Geert Uytterhoeven wrote: > Replace the custom shmob_drm_interface enumeration values with standard > media bus formats. This simplifies driver handling of bus formats and > prepares for DT support. > >

Re: [PATCH 21/39] drm: renesas: shmobile: Use struct videomode in platform data

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:33AM +0200, Geert Uytterhoeven wrote: > From: Laurent Pinchart > > Replace the drm_mode_modeinfo field with videomode that includes more > signal polarity flags. This simplifies driver handling of panel modes > and prepares for

Re: [PATCH 20/39] drm: renesas: shmobile: Replace .dev_private with container_of()

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:32AM +0200, Geert Uytterhoeven wrote: > Now that drm_device is embedded in shmob_drm_device, we can use > a container_of()-based helper to get the shmob_drm_device pointer from > the drm_device, instead of using the deprecated

Re: [PATCH 19/39] drm: renesas: shmobile: Convert container helpers to static inline functions

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:31AM +0200, Geert Uytterhoeven wrote: > Replace to conversion helper macros using container_of() by static > inline functions, to improve type-safety. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart > --- >

Re: [PATCH 2/3] drm/i915/gt: Fix context workarounds with non-masked regs

2023-06-23 Thread Lucas De Marchi
On Thu, Jun 22, 2023 at 04:37:21PM -0700, Kenneth Graunke wrote: On Thursday, June 22, 2023 11:27:30 AM PDT Lucas De Marchi wrote: Most of the context workarounds tweak masked registers, but not all. For masked registers, when writing the value it's sufficient to just write the wa->set_bits

Re: [PATCH 18/39] drm: renesas: shmobile: Embed drm_device in shmob_drm_device

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:30AM +0200, Geert Uytterhoeven wrote: > Embedding drm_device in shmob_drm_device allows us to use the DRM > managed API to allocate both structures in one go, simplifying error > handling. > > Signed-off-by: Geert Uytterhoeven

Re: [PATCH 17/39] drm: renesas: shmobile: Use drmm_universal_plane_alloc()

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:29AM +0200, Geert Uytterhoeven wrote: > According to the comments for drm_universal_plane_init(), the plane > structure should not be allocated with devm_kzalloc(). > > Fix lifetime issues by using drmm_universal_plane_alloc()

Re: [PATCH 16/39] drm: renesas: shmobile: Convert to use devm_request_irq()

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:28AM +0200, Geert Uytterhoeven wrote: > Convert to managed IRQ handling, to simplify cleanup. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c | 9

Re: [PATCH 15/39] drm: renesas: shmobile: Improve error handling

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:27AM +0200, Geert Uytterhoeven wrote: > Prepare for DT conversion, where panel probe can be deferred, by > streamlining error propagation and handling: > - Use dev_err_probe() to avoid printing error messages in case of >

Re: [PATCH 11/39] drm: renesas: shmobile: Remove backlight support

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:23AM +0200, Geert Uytterhoeven wrote: > From: Laurent Pinchart > > Backlight support should be implemented by panels, not by the LCDC > driver. As the feature is currently unused anyway, remove it. > > Signed-off-by: Laurent

[PATCH] drm/tests: Fix swapped test parameter names

2023-06-23 Thread Carlos Eduardo Gallo Filho
The "YVU420 DRM_MODE_FB_MODIFIERS set without modifier" test hadn't DRM_MODE_FB_MODIFIERS set, so that it was in fact testing another case, while the "YVU420 Normal sizes" test in turn was with DRM_MODE_FB_MODIFIERS set and without modifiers, what should be the case tested by the former, which

Re: [PATCH drm-next v5 03/14] drm: manager to keep track of GPUs VA mappings

2023-06-23 Thread Christian König
Am 23.06.23 um 15:55 schrieb Danilo Krummrich: [SNIP] How do you efficiently find only the mappings of a BO in one VM? Actually, I think this case should even be more efficient than with a BO having a list of GPUVAs (or mappings): *than with a BO having a list of VMs: Having a list of

Re: [PATCH 06/39] drm: renesas: shmobile: Add support for Runtime PM

2023-06-23 Thread Laurent Pinchart
On Fri, Jun 23, 2023 at 05:22:45PM +0200, Geert Uytterhoeven wrote: > On Fri, Jun 23, 2023 at 5:11 PM Laurent Pinchart wrote: > > On Fri, Jun 23, 2023 at 06:07:44PM +0300, Laurent Pinchart wrote: > > > On Thu, Jun 22, 2023 at 11:21:18AM +0200, Geert Uytterhoeven wrote: > > > > The SH-Mobile LCD

Re: [PATCH 01/39] dt-bindings: display: Add Renesas SH-Mobile LCDC bindings

2023-06-23 Thread Laurent Pinchart
On Fri, Jun 23, 2023 at 05:19:45PM +0200, Geert Uytterhoeven wrote: > On Fri, Jun 23, 2023 at 4:43 PM Laurent Pinchart wrote: > > On Thu, Jun 22, 2023 at 11:21:13AM +0200, Geert Uytterhoeven wrote: > > > Add device tree bindings for the LCD Controller (LCDC) found in Renesas > > > SuperH SH-Mobile

Re: [PATCH 10/39] drm: renesas: shmobile: Improve shmob_drm_format_info table

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:22AM +0200, Geert Uytterhoeven wrote: > Improve the table containing hardware information related to the > supported plane formats: > 1. Move (part of) the overlay format register settings from multiple > switch() statements

Re: [PATCH drm-next v5 03/14] drm: manager to keep track of GPUs VA mappings

2023-06-23 Thread Danilo Krummrich
On 6/23/23 09:16, Christian König wrote: Am 22.06.23 um 17:07 schrieb Danilo Krummrich: On 6/22/23 17:04, Danilo Krummrich wrote: On 6/22/23 16:42, Christian König wrote: Am 22.06.23 um 16:22 schrieb Danilo Krummrich: On 6/22/23 15:54, Christian König wrote: Am 20.06.23 um 14:23 schrieb

Re: [PATCH 06/39] drm: renesas: shmobile: Add support for Runtime PM

2023-06-23 Thread Geert Uytterhoeven
Hi Laurent, On Fri, Jun 23, 2023 at 5:11 PM Laurent Pinchart wrote: > On Fri, Jun 23, 2023 at 06:07:44PM +0300, Laurent Pinchart wrote: > > On Thu, Jun 22, 2023 at 11:21:18AM +0200, Geert Uytterhoeven wrote: > > > The SH-Mobile LCD Controller is part of a PM Domain on all relevant SoCs > > >

Re: [PATCH 01/39] dt-bindings: display: Add Renesas SH-Mobile LCDC bindings

2023-06-23 Thread Geert Uytterhoeven
Hi Laurent, On Fri, Jun 23, 2023 at 4:43 PM Laurent Pinchart wrote: > On Thu, Jun 22, 2023 at 11:21:13AM +0200, Geert Uytterhoeven wrote: > > Add device tree bindings for the LCD Controller (LCDC) found in Renesas > > SuperH SH-Mobile and ARM SH/R-Mobile SOCs. > > > > Based on a plain text

Re: [PATCH v2] drm/bridge: ps8640: Drop the ability of ps8640 to fetch the EDID

2023-06-23 Thread Robert Foss
On Fri, 16 Jun 2023 16:55:17 -0700, Douglas Anderson wrote: > In order to read the EDID from an eDP panel, you not only need to > power on the bridge chip itself but also the panel. In the ps8640 > driver, this was made to work by having the bridge chip manually power > the panel on by calling

Re: [PATCH 09/39] drm: renesas: shmobile: Add missing YCbCr formats

2023-06-23 Thread Laurent Pinchart
On Thu, Jun 22, 2023 at 11:21:21AM +0200, Geert Uytterhoeven wrote: > The primary plane supports various YCbCr formats, and the CRTC code > already knows how to handle them. Enable support for the missing > formats by adding them to the table of supported modes. > > Signed-off-by: Geert

Re: [PATCH 06/39] drm: renesas: shmobile: Add support for Runtime PM

2023-06-23 Thread Laurent Pinchart
On Fri, Jun 23, 2023 at 06:07:44PM +0300, Laurent Pinchart wrote: > Hi Geert, > > Thank you for the patch. > > On Thu, Jun 22, 2023 at 11:21:18AM +0200, Geert Uytterhoeven wrote: > > The SH-Mobile LCD Controller is part of a PM Domain on all relevant SoCs > > (clock domain on all, power domain

Re: [PATCH 06/39] drm: renesas: shmobile: Add support for Runtime PM

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:18AM +0200, Geert Uytterhoeven wrote: > The SH-Mobile LCD Controller is part of a PM Domain on all relevant SoCs > (clock domain on all, power domain on some). Hence it may not be > sufficient to manage the LCDC module clock

Re: [PATCH 08/39] drm: renesas: shmobile: Use %p4cc to print fourcc code

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:20AM +0200, Geert Uytterhoeven wrote: > Replace the last printing of an hexadecimal fourcc format code by a > pretty-printed format name, using the "%p4cc" format specifier. > > Signed-off-by: Geert Uytterhoeven Reviewed-by:

Re: [PATCH 07/39] drm: renesas: shmobile: Restore indentation of shmob_drm_setup_clocks()

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:19AM +0200, Geert Uytterhoeven wrote: > Commit 56550d94cbaeaa19 ("Drivers: gpu: remove __dev* attributes.") > forgot to realign the continuation of the parameter section of > shmob_drm_setup_clocks(). > > Signed-off-by: Geert

Re: [PATCH 05/39] drm: renesas: shmobile: Correct encoder/connector types

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:17AM +0200, Geert Uytterhoeven wrote: > The first encoder output on the SH-Mobile LCD Controller is a DPI > parallel bus. However, at the time of introduction of the driver, no > encoder or connector types were defined yet for the

Re: [PATCH 03/39] drm: renesas: shmobile: Fix overlay plane disable

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:15AM +0200, Geert Uytterhoeven wrote: > Merely writing zero to the CHn Source Image Format Register is not > sufficient to disable a plane, as the programmed register value is not > propagated immediately to the current side. This

Re: [PATCH 04/39] drm: renesas: shmobile: Fix ARGB32 overlay format typo

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:16AM +0200, Geert Uytterhoeven wrote: > When configurating a CHn Source Image Format Register (LDBBSIFR), one > should use the corresponding LDBBSIFR_RPKF_* definition for overlay > planes, not the DDFR_PKF_* definition for the

Re: [PATCH 02/39] media: uapi: Add MEDIA_BUS_FMT_RGB666_2X9 variants

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:14AM +0200, Geert Uytterhoeven wrote: > Add the RGB666 9:9 formats MEDIA_BUS_FMT_RGB666_2X9_BE and > MEDIA_BUS_FMT_RGB666_2X9_LE. The former is supported by the SH-Mobile > LCD Controller. If MEDIA_BUS_FMT_RGB666_2X9_LE isn't

Re: [PATCH V4 1/8] drivers/acpi: Add support for Wifi band RF mitigations

2023-06-23 Thread Rafael J. Wysocki
On Wed, Jun 21, 2023 at 7:47 AM Evan Quan wrote: > > From: Mario Limonciello > > Due to electrical and mechanical constraints in certain platform designs > there may be likely interference of relatively high-powered harmonics of > the (G-)DDR memory clocks with local radio module frequency bands

Re: [PATCH 01/39] dt-bindings: display: Add Renesas SH-Mobile LCDC bindings

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Thu, Jun 22, 2023 at 11:21:13AM +0200, Geert Uytterhoeven wrote: > Add device tree bindings for the LCD Controller (LCDC) found in Renesas > SuperH SH-Mobile and ARM SH/R-Mobile SOCs. > > Based on a plain text prototype by Laurent Pinchart. > >

[PATCH] drm/kms: log when querying an object not included in lease

2023-06-23 Thread Simon Ser
User-space may query an existing object not included in a lease. Make it easier to debug such situations by logging a debug message. Signed-off-by: Simon Ser Reviewed-by: Daniel Vetter --- drivers/gpu/drm/drm_mode_object.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v5 1/2] drm/msm/dpu: retrieve DSI DSC struct through priv->dsi[0]

2023-06-23 Thread Kuogee Hsieh
On 6/22/2023 11:36 AM, Dmitry Baryshkov wrote: On Thu, 22 Jun 2023 at 20:25, Kuogee Hsieh wrote: Currently struct drm_dsc_config for DSI is populated at display setup during system boot up. This mechanism works fine with embedded display but not for pluggable displays as the struct

Re: [PATCH v2 3/4] drm: Remove references to removed transitional helpers

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Fri, Jun 09, 2023 at 03:44:29PM +0200, Geert Uytterhoeven wrote: > The transitional helpers were removed a long time ago, but some > references stuck. Remove them. > > Fixes: 21ebe615c16994f3 ("drm: Remove transitional helpers") > Signed-off-by: Geert

Re: [PATCH v2 2/4] drm/todo: Convert list of fbconv links to footnotes

2023-06-23 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Fri, Jun 09, 2023 at 03:44:28PM +0200, Geert Uytterhoeven wrote: > Convert the references to fbconv links to footnotes, so they can be > navigated. > > Signed-off-by: Geert Uytterhoeven > --- > v2: > - New. > --- > Documentation/gpu/todo.rst | 10

Re: [PATCH] dma-buf: keep the signaling time of merged fences v2

2023-06-23 Thread Alex Deucher
On Fri, Jun 23, 2023 at 5:09 AM Christian König wrote: > > Some Android CTS is testing for that. > > v2: use the current time if the fence is still in the signaling path and > the timestamp not yet available. > > Signed-off-by: Christian König Acked-by: Alex Deucher > --- >

[PATCH 7/7] drm/msm/dpu: merge dpu_csc_blk and dpu_dsc_blk into dpu_simple_blk

2023-06-23 Thread Dmitry Baryshkov
Merge struct dpu_csc_blk and struct dpu_dsc_blk into new struct dpu_simple_blk, which contains just base and length. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git

[PATCH 3/7] drm/msm/dpu: Drop unused num argument from relevant macros

2023-06-23 Thread Dmitry Baryshkov
From: Ryan McCann Drop unused parameter "num" from all VIG and DMA sub-block macros. Update calls to relevant macros to reflect change. Signed-off-by: Ryan McCann [DB: also added VIG_SBLK and VIG_SBLK_ROT] Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 62

[PATCH 2/7] drm/msm/dpu: drop the field `name' from DPU_HW_SUBBLK_INFO

2023-06-23 Thread Dmitry Baryshkov
There is little point in having a separate field with the name in the sub-block info. Ryan pointed out that some (most) of of sub-blocks do not even fill this field. The handling code also usually knows, which sub-block it is now looking at. Drop the unused field completely. Suggested-by: Ryan

[PATCH 6/7] drm/msm/dpu: drop DPU_HW_SUBBLK_INFO macro

2023-06-23 Thread Dmitry Baryshkov
As the subblock info is now mostly gone, inline and drop the macro DPU_HW_SUBBLK_INFO. Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h| 31 +-- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git

[PATCH 0/7] drm/msm/dpu: simplify DPU sub-blocks info

2023-06-23 Thread Dmitry Baryshkov
Ryan pointed out [1] that some (most) of of sub-blocks do not fill the field `name'. Further research showed that we can drop the fields `name' and `id' and further simplify the catalog. The handling code also usually knows, which sub-block it is now looking at. Drop unused field and arguments

[PATCH 5/7] drm/msm/dpu: deduplicate some (most) of SSPP sub-blocks

2023-06-23 Thread Dmitry Baryshkov
As we have dropped the variadic parts of SSPP sub-blocks declarations, deduplicate them now, reducing memory cruft. Do not deduplicate the VIG sub-blocks for different platforms since this is pending another cleanup/rework (of scaler version). Signed-off-by: Dmitry Baryshkov ---

[PATCH 4/7] drm/msm/dpu: drop the `smart_dma_priority' field from struct dpu_sspp_sub_blks

2023-06-23 Thread Dmitry Baryshkov
In preparation to deduplicating SSPP subblocks, drop the (unused) `smart_dma_priority' field from struct dpu_sspp_sub_blks. If it is needed later (e.g. for SmartDMA v1), it should be added to the SSPP declarations themselves. Signed-off-by: Dmitry Baryshkov ---

[PATCH 1/7] drm/msm/dpu: drop the `id' field from DPU_HW_SUBBLK_INFO

2023-06-23 Thread Dmitry Baryshkov
The field `id' is not used for subblocks. The handling code usually knows, which sub-block it is now looking at. Drop the field completely. Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 24 ++- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h|

Re: [PATCH] drm/ttm: fix warning that we shouldn't mix && and ||

2023-06-23 Thread Alex Deucher
On Fri, Jun 23, 2023 at 3:09 AM Christian König wrote: > > Trivial warning fix. > > Signed-off-by: Christian König > Fixes: 4481913607e5 ("drm/ttm: fix bulk_move corruption when adding a entry") Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/ttm/ttm_resource.c | 2 +- > 1 file changed, 1

Re: [PATCH v3 9/9] drm/mediatek: dp: Add support for embedded DisplayPort aux-bus

2023-06-23 Thread Nícolas F . R . A . Prado
On Tue, Apr 04, 2023 at 12:48:00PM +0200, AngeloGioacchino Del Regno wrote: > For the eDP case we can support using aux-bus on MediaTek DP: this > gives us the possibility to declare our panel as generic "panel-edp" > which will automatically configure the timings and available modes > via the

Re: [PATCH 0/3] MediaTek DRM: Clean up CMDQ support and ifdefs

2023-06-23 Thread Alexandre Mergnat
On 23/06/2023 11:49, AngeloGioacchino Del Regno wrote: This series changes MediaTek CMDQ support to use the mtk-cmdq-helper functions, removing duplicated cmdq setup code in mtk-drm and also removing all instances of `#if IS_REACHABLE(CONFIG_MTK_CMDQ)` while keeping compatibility with both

Re: [PATCH v10 07/11] drm/etnaviv: Add support for the dma coherent device

2023-06-23 Thread Sui Jingfeng
Hi, On 2023/6/23 19:52, Robin Murphy wrote: On 2023-06-20 10:47, Sui Jingfeng wrote: From: Sui Jingfeng Loongson CPUs maintain cache coherency by hardware, which means that the data in the CPU cache is identical to the data in main system memory. As for the peripheral device, most of

[PATCH v2 3/3] dt-bindings: display: msm: sm8550-mdss: document displayport controller subnode

2023-06-23 Thread Neil Armstrong
Document the optional displayport controller subnode of the SM8550 MDSS. Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- .../devicetree/bindings/display/msm/qcom,sm8550-mdss.yaml | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v2 1/3] dt-bindings: display: msm: sm8350-mdss: document displayport controller subnode

2023-06-23 Thread Neil Armstrong
Document the optional displayport controller subnode of the SM8350 MDSS. Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/display/msm/qcom,sm8350-mdss.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v2 0/3] dt-bindings: display: msm: document the SM8[345]50 displayport MDSS subnode

2023-06-23 Thread Neil Armstrong
Document the displayport subnode to fix the bindings check error: arch/arm64/boot/dts/qcom/sm8550-mtp.dtb: display-subsystem@ae0: Unevaluated properties are not allowed ('displayport-controller@ae9' was unexpected) From schema:

[PATCH v2 2/3] dt-bindings: display: msm: sm8450-mdss: document displayport controller subnode

2023-06-23 Thread Neil Armstrong
Document the optional displayport controller subnode of the SM8450 MDSS. Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- .../devicetree/bindings/display/msm/qcom,sm8450-mdss.yaml | 8 1 file changed, 8 insertions(+) diff --git

Re: [PATCH] drm/amd/amdgpu: Properly tune the size of struct

2023-06-23 Thread kernel test robot
Hi Su, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v6.4-rc7 next-20230623] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH v10 07/11] drm/etnaviv: Add support for the dma coherent device

2023-06-23 Thread Robin Murphy
On 2023-06-20 10:47, Sui Jingfeng wrote: From: Sui Jingfeng Loongson CPUs maintain cache coherency by hardware, which means that the data in the CPU cache is identical to the data in main system memory. As for the peripheral device, most of Loongson chips chose to define the peripherals as DMA

Re: [PATCH 1/2] drm/msm/dpu: fix DSC 1.2 block lengths

2023-06-23 Thread Dmitry Baryshkov
On 23/06/2023 09:54, Marijn Suijten wrote: On 2023-06-22 22:47:04, Abhinav Kumar wrote: On 6/22/2023 6:37 PM, Dmitry Baryshkov wrote: All DSC_BLK_1_2 declarations incorrectly pass 0x29c as the block length. This includes the common block itself, enc subblocks and some empty space around.

Re: [PATCH v2 1/2] dt-bindings: backlight: document new property default-brightness-level

2023-06-23 Thread Daniel Thompson
On Fri, Jun 23, 2023 at 10:19:57AM +0300, Alexandru Ardelean wrote: > On Thu, Jun 22, 2023 at 5:13 AM Rob Herring wrote: > > > +++ b/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml > > >default-on: > > > -description: enable the backlight at boot. > > > +

Re: [PATCH] drm: mediatek: mtk_dsi: Fix NO_EOT_PACKET settings/handling

2023-06-23 Thread Alexandre Mergnat
On 23/06/2023 11:47, AngeloGioacchino Del Regno wrote: Il 23/05/23 12:42, AngeloGioacchino Del Regno ha scritto: Due to the initial confusion about MIPI_DSI_MODE_EOT_PACKET, properly renamed to MIPI_DSI_MODE_NO_EOT_PACKET, reflecting its actual meaning, both the DSI_TXRX_CON register setting

Re: [PATCH 1/2] drm/msm/dpu: fix DSC 1.2 block lengths

2023-06-23 Thread Dmitry Baryshkov
On 23/06/2023 08:47, Abhinav Kumar wrote: On 6/22/2023 6:37 PM, Dmitry Baryshkov wrote: All DSC_BLK_1_2 declarations incorrectly pass 0x29c as the block length. This includes the common block itself, enc subblocks and some empty space around. Change that to pass 0x4 instead, the length of

Re: [PATCH 05/29] drm/panfrost: dynamically allocate the drm-panfrost shrinker

2023-06-23 Thread Steven Price
On 22/06/2023 09:39, Qi Zheng wrote: > From: Qi Zheng > > In preparation for implementing lockless slab shrink, > we need to dynamically allocate the drm-panfrost shrinker, > so that it can be freed asynchronously using kfree_rcu(). > Then it doesn't need to wait for RCU read-side critical >

[PATCH 3/3] drm/mediatek: Move CMDQ setup to mtk_drm_cmdq_init() function

2023-06-23 Thread AngeloGioacchino Del Regno
In order to enhance human readability, separating the optional CMDQ mailbox initialization from the rest of the CRTC creation machinery, move it to a new mtk_drm_cmdq_init() function. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 83

[PATCH 2/3] drm/mediatek: Remove all preprocessor ifs for CONFIG_MTK_CMDQ

2023-06-23 Thread AngeloGioacchino Del Regno
Since this driver was migrated to use the MediaTek CMDQ helpers, it's not anymore necessary to exclude CMDQ related code with preprocessor if branches, as CMDQ is optional and the helpers are providing the necessary inline functions to manage the case in which CONFIG_MTK_CMDQ is not set. Clean up

[PATCH 1/3] drm/mediatek: Dynamically allocate CMDQ and use helper functions

2023-06-23 Thread AngeloGioacchino Del Regno
Instead of stack allocating the cmdq_client and cmdq_handle structures switch them to pointers, allowing us to migrate this driver to use the common functions provided by mtk-cmdq-helper. In order to do this, it was also necessary to add a `priv` pointer to struct cmdq_client, as that's used to

[PATCH 0/3] MediaTek DRM: Clean up CMDQ support and ifdefs

2023-06-23 Thread AngeloGioacchino Del Regno
This series changes MediaTek CMDQ support to use the mtk-cmdq-helper functions, removing duplicated cmdq setup code in mtk-drm and also removing all instances of `#if IS_REACHABLE(CONFIG_MTK_CMDQ)` while keeping compatibility with both CONFIG_MTK_CMDQ=n and =m/=y. This applies on top of [1] and

Re: [PATCH] drm: mediatek: mtk_dsi: Fix NO_EOT_PACKET settings/handling

2023-06-23 Thread AngeloGioacchino Del Regno
Il 23/05/23 12:42, AngeloGioacchino Del Regno ha scritto: Due to the initial confusion about MIPI_DSI_MODE_EOT_PACKET, properly renamed to MIPI_DSI_MODE_NO_EOT_PACKET, reflecting its actual meaning, both the DSI_TXRX_CON register setting for bit (HSTX_)DIS_EOT and the later calculation for

[PATCH] drm/ast: Fix default resolution when no monitor is connected on DP

2023-06-23 Thread Jocelyn Falempe
Since commit fae7d186403e ("drm/probe-helper: Default to 640x480 if no EDID on DP") The default resolution is now 640x480 when no monitor is connected. But Aspeed graphics is mostly used in servers, where no monitor is attached. This also affects the "remote" resolution to 640x480, which is

Re: [PATCH v2 06/14] drm/ast: Set PCI config before accessing I/O registers

2023-06-23 Thread Sui Jingfeng
Hi, On 2023/6/23 17:02, Thomas Zimmermann wrote: Hi Am 22.06.23 um 17:42 schrieb Sui Jingfeng: [...] +    ret = ast_init_pci_config(pdev); +    if (ret) +    return ERR_PTR(ret); + Is the calling to ast_init_pci_config() absolute necessary ? I'm asking this question because I think

[PATCH] dma-buf: keep the signaling time of merged fences v2

2023-06-23 Thread Christian König
Some Android CTS is testing for that. v2: use the current time if the fence is still in the signaling path and the timestamp not yet available. Signed-off-by: Christian König --- drivers/dma-buf/dma-fence-unwrap.c | 20 +--- drivers/dma-buf/dma-fence.c| 5 +++--

Re: [PATCH v2 00/10] drm/panel and i2c-hid: Allow panels and touchscreens to power sequence together

2023-06-23 Thread Maxime Ripard
On Tue, Jun 13, 2023 at 08:56:39AM -0700, Doug Anderson wrote: > Hi, > > On Tue, Jun 13, 2023 at 5:06 AM Maxime Ripard wrote: > > > > > > What I'm trying to say is: could we just make it work by passing a bunch > > > > of platform_data, 2-3 callbacks and a device registration from the panel > >

Re: [PATCH] drm/mgag200: set variable mgag200_modeset storage-class-specifier to static

2023-06-23 Thread Jocelyn Falempe
On 23/06/2023 10:28, Thomas Zimmermann wrote: Am 17.05.23 um 15:41 schrieb Tom Rix: smatch reports drivers/gpu/drm/mgag200/mgag200_drv.c:23:5: warning: symbol    'mgag200_modeset' was not declared. Should it be static? This variable is only used in its defining file, so it should be static

Re: [PATCH v2 06/14] drm/ast: Set PCI config before accessing I/O registers

2023-06-23 Thread Thomas Zimmermann
Hi Am 22.06.23 um 17:42 schrieb Sui Jingfeng: [...] +    ret = ast_init_pci_config(pdev); +    if (ret) +    return ERR_PTR(ret); + Is the calling to ast_init_pci_config() absolute necessary ? I'm asking this question because I think this function is needed to be run only when the chip

Re: [PATCH] drm/mgag200: set variable mgag200_modeset storage-class-specifier to static

2023-06-23 Thread Thomas Zimmermann
Am 17.05.23 um 15:41 schrieb Tom Rix: smatch reports drivers/gpu/drm/mgag200/mgag200_drv.c:23:5: warning: symbol 'mgag200_modeset' was not declared. Should it be static? This variable is only used in its defining file, so it should be static Signed-off-by: Tom Rix Reviewed-by: Thomas

Re: [PATCH v3] drm/sched: Call drm_sched_fence_set_parent() from drm_sched_fence_scheduled()

2023-06-23 Thread Boris Brezillon
On Fri, 23 Jun 2023 09:52:04 +0200 Boris Brezillon wrote: > Drivers that can delegate waits to the firmware/GPU pass the scheduled > fence to drm_sched_job_add_dependency(), and issue wait commands to > the firmware/GPU at job submission time. For this to be possible, they > need all their

[PATCH v3] drm/sched: Call drm_sched_fence_set_parent() from drm_sched_fence_scheduled()

2023-06-23 Thread Boris Brezillon
Drivers that can delegate waits to the firmware/GPU pass the scheduled fence to drm_sched_job_add_dependency(), and issue wait commands to the firmware/GPU at job submission time. For this to be possible, they need all their 'native' dependencies to have a valid parent since this is where the

Re: [Intel-gfx] [PATCH 3/4] drm/ttm: Don't leak a resource on eviction error

2023-06-23 Thread Andi Shyti
Hi Christian and Thomas, > > > > > diff --git a/drivers/gpu/drm/ttm/ttm_bo.c > > > > > b/drivers/gpu/drm/ttm/ttm_bo.c > > > > > index 615d30c4262d..89530f2a027f 100644 > > > > > --- a/drivers/gpu/drm/ttm/ttm_bo.c > > > > > +++ b/drivers/gpu/drm/ttm/ttm_bo.c > > > > > @@ -462,14 +462,14 @@ static

Re: [PATCH 1/3] dt-bindings: display: msm: sm8350-mdss: document displayport controller subnode

2023-06-23 Thread Neil Armstrong
On 23/06/2023 09:27, Marijn Suijten wrote: On 2023-06-21 11:26:25, Neil Armstrong wrote: Document the optional document displayport controller subnode document the optional *document*? Same in the other patches IIRC. oops, will re-spin with this fixed thanks! - Marijn of the SM8350

[PATCH 14/29] jbd2, ext4: dynamically allocate the jbd2-journal shrinker

2023-06-23 Thread Qi Zheng
From: Qi Zheng In preparation for implementing lockless slab shrink, we need to dynamically allocate the jbd2-journal shrinker, so that it can be freed asynchronously using kfree_rcu(). Then it doesn't need to wait for RCU read-side critical section when releasing the struct journal_s.

[PATCH 10/29] vmw_balloon: dynamically allocate the vmw-balloon shrinker

2023-06-23 Thread Qi Zheng
In preparation for implementing lockless slab shrink, we need to dynamically allocate the vmw-balloon shrinker, so that it can be freed asynchronously using kfree_rcu(). Then it doesn't need to wait for RCU read-side critical section when releasing the struct vmballoon. Signed-off-by: Qi Zheng

Re: [PATCH 24/29] mm: vmscan: make global slab shrink lockless

2023-06-23 Thread Alan Huang
> 2023年6月23日 上午12:42,Qi Zheng 写道: > > > > On 2023/6/22 23:12, Vlastimil Babka wrote: >> On 6/22/23 10:53, 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 >>>

[PATCH 20/29] zsmalloc: dynamically allocate the mm-zspool shrinker

2023-06-23 Thread Qi Zheng
In preparation for implementing lockless slab shrink, we need to dynamically allocate the mm-zspool shrinker, so that it can be freed asynchronously using kfree_rcu(). Then it doesn't need to wait for RCU read-side critical section when releasing the struct zs_pool. Signed-off-by: Qi Zheng ---

[PATCH 06/29] dm: dynamically allocate the dm-bufio shrinker

2023-06-23 Thread Qi Zheng
In preparation for implementing lockless slab shrink, we need to dynamically allocate the dm-bufio shrinker, so that it can be freed asynchronously using kfree_rcu(). Then it doesn't need to wait for RCU read-side critical section when releasing the struct dm_bufio_client. Signed-off-by: Qi Zheng

[PATCH 14/29] jbd2, ext4: dynamically allocate the jbd2-journal shrinker

2023-06-23 Thread Qi Zheng
In preparation for implementing lockless slab shrink, we need to dynamically allocate the jbd2-journal shrinker, so that it can be freed asynchronously using kfree_rcu(). Then it doesn't need to wait for RCU read-side critical section when releasing the struct journal_s. Signed-off-by: Qi Zheng

<    1   2   3   >