[PATCH -next] drm/amdgpu: Improve documentation for amdgpu_sdma_register_on_reset_callbacks

2025-04-07 Thread Yang Li
The function amdgpu_sdma_register_on_reset_callbacks lacked detailed parameter descriptions in its documentation. This patch improves the documentation by adding specific details about the parameters and their usage, enhancing clarity for developers. Reported-by: Abaci Robot Closes: https://bugzi

Re: CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP is broken, was Re: [RFC PATCH 0/6] Deep talk about folio vmap

2025-04-07 Thread Huan Yang
在 2025/4/7 14:43, Muchun Song 写道: On Apr 7, 2025, at 11:37, Muchun Song wrote: On Apr 7, 2025, at 11:21, Huan Yang wrote: 在 2025/4/7 10:57, Muchun Song 写道: On Apr 7, 2025, at 09:59, Huan Yang wrote: 在 2025/4/4 18:07, Muchun Song 写道: On Apr 4, 2025, at 17:38, Muchun Song wrote:

[PATCH 27/34] drm/vc4: convert to devm_drm_bridge_alloc() API

2025-04-07 Thread Luca Ceresoli
This is the new API for allocating DRM bridges. This driver already implements refcounting of the struct vc4_dsi, which embeds struct drm_bridge. Now this is a duplicate of the refcounting implemented by the DRM bridge core, so convert the vc4_dsi_get/put() calls into drm_bridge_get/put() calls an

Re: [PATCH 02/34] platform: arm64: acer-aspire1-ec: convert to devm_drm_bridge_alloc() API

2025-04-07 Thread Luca Ceresoli
Hello Ilpo, On Mon, 7 Apr 2025 19:46:59 +0300 (EEST) Ilpo Järvinen wrote: > On Mon, 7 Apr 2025, Luca Ceresoli wrote: > > > This is the new API for allocating DRM bridges. > > > > Signed-off-by: Luca Ceresoli > > > > --- > > > > Cc: "Bryan O'Donoghue" > > Cc: "Ilpo Järvinen" > > Cc: Hans d

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-07 Thread T.J. Mercier
On Mon, Apr 7, 2025 at 4:46 AM Christian König wrote: > > Am 05.04.25 um 03:57 schrieb T.J. Mercier: > > On Fri, Apr 4, 2025 at 1:47 AM Christian König > > wrote: > >> Hi Maxime, > >> > >> Am 03.04.25 um 17:47 schrieb Maxime Ripard: > >>> On Thu, Apr 03, 2025 at 09:39:52AM +0200, Christian König

Re: [PATCH 3/4] drm/mediatek: Add mipi dsi driver for mt8196

2025-04-07 Thread 胡俊光

Re: [PATCH 3/4] backlight: ktz8866: improve current sinks setting

2025-04-07 Thread kernel test robot
Hi Pengyu, kernel test robot noticed the following build errors: [auto build test ERROR on lee-backlight/for-backlight-next] [also build test ERROR on lee-leds/for-leds-next lee-backlight/for-backlight-fixes linus/master v6.15-rc1 next-20250407] [If your patch is applied to the wrong git tree

Re: [PATCH] drm: Fix the length of event_string in drm_dev_wedged_event()

2025-04-07 Thread Raag Jadav
On Tue, Apr 08, 2025 at 09:32:19AM +0800, jiangf...@kylinos.cn wrote: > From: Feng Jiang > > The format of the event_string value is `WEDGED=[,..,]`, > so method should be appended after 'WEDGED=' rather than overwriting it. It's already appending it, the fix is rather for the potential array ov

Re: [RFC] PCI: add CONFIG_MMU dependency

2025-04-07 Thread Martin K. Petersen
Arnd, > It turns out that there are no platforms that have PCI but don't have > an MMU, so adding a Kconfig dependency on CONFIG_PCI simplifies build > testing kernels for those platforms a lot, and avoids a lot of > inadvertent build regressions. > > Add a dependency for CONFIG_PCI and remove a

[PATCH 5.10.y] drm/amd/display: Skip inactive planes within ModeSupportAndSystemConfiguration

2025-04-07 Thread jianqi.ren.cn
From: Hersen Wu [ Upstream commit a54f7e866cc73a4cb71b8b24bb568ba35c8969df ] [Why] Coverity reports Memory - illegal accesses. [How] Skip inactive planes. Reviewed-by: Alex Hung Acked-by: Tom Chung Signed-off-by: Hersen Wu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher [get_pipe_id

Re:Re: [PATCH v5 04/16] drm/atomic: Introduce helper to lookup connector by encoder

2025-04-07 Thread Andy Yan
Hello Maxime and Dmitry, At 2025-03-23 10:22:27, "Dmitry Baryshkov" wrote: >On Fri, Mar 21, 2025 at 10:46:56AM +0100, Maxime Ripard wrote: >> On Tue, Mar 18, 2025 at 09:00:29PM +0200, Dmitry Baryshkov wrote: >> > On Tue, Mar 18, 2025 at 04:51:19PM +0100, Maxime Ripard wrote: >> > > On Fri, Mar

Re: [PATCH 3/4] backlight: ktz8866: improve current sinks setting

2025-04-07 Thread kernel test robot
Hi Pengyu, kernel test robot noticed the following build errors: [auto build test ERROR on lee-backlight/for-backlight-next] [also build test ERROR on lee-leds/for-leds-next lee-backlight/for-backlight-fixes linus/master v6.15-rc1 next-20250407] [If your patch is applied to the wrong git tree

Re: [PATCH 04/10] panel/auo-a030jtn01: Use refcounted allocation in place of devm_kzalloc()

2025-04-07 Thread Dixit, Ashutosh
On Mon, 07 Apr 2025 16:22:40 -0700, Dixit, Ashutosh wrote: > > On Mon, 07 Apr 2025 08:49:23 -0700, Imre Deak wrote: > > > > Hi, > > > > On Tue, Apr 01, 2025 at 12:03:47PM -0400, Anusha Srivatsa wrote: > > > Move to using the new API devm_drm_panel_alloc() to allocate the > > > panel. > > > > > > Si

Re: [PATCH v3 2/2] drm: bridge: Add support for Solomon SSD2825 RGB/DSI bridge

2025-04-07 Thread Svyatoslav Ryhel
нд, 23 лют. 2025 р. о 17:33 Svyatoslav Ryhel пише: > > SSD2825 is a cost-effective MIPI Bridge Chip solution targeting mainly > smartphones. It can convert 24bit RGB interface into 4-lane MIPI-DSI > interface to drive display modules of up to 800 x 1366, while supporting > AMOLED, a-si LCD or LTPS

Re: [PATCH v2 12/18] drm/bridge: cdns-dsi: Drop checks that shouldn't be in .mode_valid()

2025-04-07 Thread Tomi Valkeinen
Hi, On 07/04/2025 20:59, Aradhya Bhatia wrote: Hi Tomi, On 02/04/25 19:00, Tomi Valkeinen wrote: The docs say about mode_valid(): "it is not allowed to look at anything else but the passed-in mode, and validate it against configuration-invariant hardware constraints" We're doing a lot more t

Re: [PATCH][next] drm/nouveau: chan: Avoid -Wflex-array-member-not-at-end warnings

2025-04-07 Thread Kees Cook
On Mon, Apr 07, 2025 at 01:57:48PM -0600, Gustavo A. R. Silva wrote: > > > On 07/04/25 13:50, Kees Cook wrote: > > On Thu, Apr 03, 2025 at 10:45:18AM -0600, Gustavo A. R. Silva wrote: > > > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > > > getting ready to enable it, globa

Re: [PATCH 4/4] backlight: ktz8866: add definitions to make it more readable

2025-04-07 Thread kernel test robot
Hi Pengyu, kernel test robot noticed the following build errors: [auto build test ERROR on lee-backlight/for-backlight-next] [also build test ERROR on lee-leds/for-leds-next lee-backlight/for-backlight-fixes linus/master v6.15-rc1 next-20250407] [If your patch is applied to the wrong git tree

[PATCH 1/4] dt-bindings: soc: mediatek: add mipi yaml for MT8196

2025-04-07 Thread Bincai Liu
Add compatible string to support mipi for MT8196. Signed-off-by: Bincai Liu --- Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml b/Documentation/devicetree/bindings/phy/med

[PATCH 4/4] drm/mediatek: dsi: Enable runtime PM

2025-04-07 Thread Bincai Liu
This power is new added in MT8196. So runtime PM is enable to turn off dsi power to reduce power consumption. Signed-off-by: Bincai Liu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/m

[PATCH 0/4] Add dsi support for mt8196

2025-04-07 Thread Bincai Liu
Bincai Liu (4): dt-bindings: soc: mediatek: add mipi yaml for MT8196 dt-bindings: soc: mediatek: add dsi yaml for MT8196 drm/mediatek: Add mipi dsi driver for mt8196 drm/mediatek: dsi: Enable runtime PM .../display/mediatek/mediatek,dsi.yaml| 1 + .../bindings/phy/mediatek,dsi-p

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-07 Thread Christian König
Am 05.04.25 um 03:57 schrieb T.J. Mercier: > On Fri, Apr 4, 2025 at 1:47 AM Christian König > wrote: >> Hi Maxime, >> >> Am 03.04.25 um 17:47 schrieb Maxime Ripard: >>> On Thu, Apr 03, 2025 at 09:39:52AM +0200, Christian König wrote: > For the UMA GPU case where there is no device memory or e

[PATCH 6.6.y] drm/amd/display: Check link_index before accessing dc->links[]

2025-04-07 Thread jianqi.ren.cn
From: Alex Hung [ Upstream commit 8aa2864044b9d13e95fe224f32e808afbf79ecdf ] [WHY & HOW] dc->links[] has max size of MAX_LINKS and NULL is return when trying to access with out-of-bound index. This fixes 3 OVERRUN and 1 RESOURCE_LEAK issues reported by Coverity. Reviewed-by: Harry Wentland Ac

[PATCH 00/34] drm: convert all bridges to devm_drm_bridge_alloc()

2025-04-07 Thread Luca Ceresoli
devm_drm_bridge_alloc() is the new API to allocate and initialize a DRM bridge, and the only one supported from now on. It is also necessary for implementing reference counting and thus needed to support removal of bridges from a still existing DRM pipeline without use-after-free. This series conv

[PATCH] drm: Fix the length of event_string in drm_dev_wedged_event()

2025-04-07 Thread jiangfeng
From: Feng Jiang The format of the event_string value is `WEDGED=[,..,]`, so method should be appended after 'WEDGED=' rather than overwriting it. Fixes: b7cf9f4ac1b8 ("drm: Introduce device wedged event") Signed-off-by: Feng Jiang --- drivers/gpu/drm/drm_drv.c | 3 ++- 1 file changed, 2 inser

Re: [PATCH v2 16/32] Introduce drm_gpuvm_sm_map_ops_flags enums for sm_map_ops

2025-04-07 Thread kernel test robot
Hi Himal, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-xe/drm-xe-next] [cannot apply to linus/master v6.15-rc1 next-20250407] [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][next] drm/nouveau: fence: Avoid -Wflex-array-member-not-at-end warning

2025-04-07 Thread Kees Cook
On Wed, Apr 02, 2025 at 03:28:10PM -0600, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Use the `DEFINE_RAW_FLEX()` helper for an on-stack definition of > a flexible structure where the size of the flexi

Re: [PATCH][next] drm/nouveau: chan: Avoid -Wflex-array-member-not-at-end warnings

2025-04-07 Thread Gustavo A. R. Silva
[..] - struct { - struct nvif_chan_v0 chan; - char name[TASK_COMM_LEN+16]; - } args; + DEFINE_RAW_FLEX(struct nvif_chan_v0, args, name, TASK_COMM_LEN + 16); struct nvif_device *device = &cli->device; struct nouveau_channel *chan;

[PATCH 5.15.y] drm/amd/display: Skip inactive planes within ModeSupportAndSystemConfiguration

2025-04-07 Thread jianqi.ren.cn
From: Hersen Wu [ Upstream commit a54f7e866cc73a4cb71b8b24bb568ba35c8969df ] [Why] Coverity reports Memory - illegal accesses. [How] Skip inactive planes. Reviewed-by: Alex Hung Acked-by: Tom Chung Signed-off-by: Hersen Wu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher [get_pipe_id

Re: [PATCH 04/10] panel/auo-a030jtn01: Use refcounted allocation in place of devm_kzalloc()

2025-04-07 Thread Dixit, Ashutosh
On Mon, 07 Apr 2025 18:40:24 -0700, Dixit, Ashutosh wrote: > > On Mon, 07 Apr 2025 17:18:23 -0700, Dixit, Ashutosh wrote: > > > > On Mon, 07 Apr 2025 16:22:40 -0700, Dixit, Ashutosh wrote: > > > > > > On Mon, 07 Apr 2025 08:49:23 -0700, Imre Deak wrote: > > > > > > > > Hi, > > > > > > > > On Tue, A

[PATCH 2/3] drm/i915/display: export function to count dsc slices

2025-04-07 Thread Arun R Murthy
Export the function to calculate dsc slice count. This will be used in minimum hblank calculation. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/i915/display/intel_dp_mst.c | 4 ++-- drivers/gpu/drm/i915/display/intel_dp_mst.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --

[PATCH 1/3] drm/drm_dp_helper: export link symbol cycles calculation

2025-04-07 Thread Arun R Murthy
Link symbol cycles are required for the calculation of the minimum HBlank calculation. Signed-off-by: Arun R Murthy --- drivers/gpu/drm/display/drm_dp_helper.c | 10 ++ include/drm/display/drm_dp_helper.h | 5 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dri

[PATCH 0/3] Rework/Correction on minimum hblank calculation

2025-04-07 Thread Arun R Murthy
(-) --- base-commit: c4fc93b0ec49f4b0105c142502b7d1d5de379950 change-id: 20250407-hblank-49b340aeba31 Best regards, -- Arun R Murthy

[PATCH v4 1/3] lib/vsprintf: Add support for generic FourCCs by extending %p4cc

2025-04-07 Thread Aditya Garg
From: Hector Martin %p4cc is designed for DRM/V4L2 FourCCs with their specific quirks, but it's useful to be able to print generic 4-character codes formatted as an integer. Extend it to add format specifiers for printing generic 32-bit FourCCs with various endian semantics: %p4ch Host byte or

Re: [PATCH] drm/vc4: fix uninitialized smatch warnings

2025-04-07 Thread Dan Carpenter
On Mon, Apr 07, 2025 at 09:13:59AM +0200, Maxime Ripard wrote: > On Sat, Apr 05, 2025 at 10:45:03AM +0800, sunlim...@linux.dev wrote: > > From: sunliming > > > > Fix below smatch warnings: > > drivers/gpu/drm/vc4/vc4_gem.c:604 vc4_lock_bo_reservations() error: > > uninitialized symbol 'ret'. > >

Re: [PATCH v12 4/5] drm/bridge: Update the bridge enable/disable doc

2025-04-07 Thread Tomi Valkeinen
Hi, On 06/04/2025 16:16, Aradhya Bhatia wrote: Now that the bridges get pre-enabled before the CRTC is enabled, and get post-disabled after the CRTC is disabled, update the function descriptions to accurately reflect the updated scenario. The enable sequence for the display pipeline looks like:

[RFC] PCI: add CONFIG_MMU dependency

2025-04-07 Thread Arnd Bergmann
From: Arnd Bergmann It turns out that there are no platforms that have PCI but don't have an MMU, so adding a Kconfig dependency on CONFIG_PCI simplifies build testing kernels for those platforms a lot, and avoids a lot of inadvertent build regressions. Add a dependency for CONFIG_PCI and remove

Re: [PATCH v2 13/30] panel/jadard-jd9365da-h3: Use refcounted allocation in place of devm_kzalloc()

2025-04-07 Thread Neil Armstrong
On 03/04/2025 16:16, Anusha Srivatsa wrote: Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- v2: none. --- drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a

Re: [PATCH 00/46] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part3

2025-04-07 Thread Neil Armstrong
On 03/04/2025 22:20, Anusha Srivatsa wrote: Start converting drivers to use the API - devm_drm_panel_alloc(). Final set of drivers. Part 1 of the conversion : https://patchwork.freedesktop.org/series/147082/ Part 2 of the conversion : https://patchwork.freedesktop.org/series/147157/ Signed-off

Re: CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP is broken, was Re: [RFC PATCH 0/6] Deep talk about folio vmap

2025-04-07 Thread Huan Yang
在 2025/4/7 15:22, Muchun Song 写道: On Apr 7, 2025, at 15:09, Huan Yang wrote: 在 2025/4/7 14:43, Muchun Song 写道: On Apr 7, 2025, at 11:37, Muchun Song wrote: On Apr 7, 2025, at 11:21, Huan Yang wrote: 在 2025/4/7 10:57, Muchun Song 写道: On Apr 7, 2025, at 09:59, Huan Yang wrote: 在

Re: Need Help Enabling HDMI on Debix Model A

2025-04-07 Thread Tarang Raval
Hi Laurent, Thanks for the response. > On Mon, Apr 07, 2025 at 11:10:23AM +, Tarang Raval wrote: > > Hi Laurent, > > > > I’m trying to bring up HDMI on the Debix Model A board using the > > mainline kernel, but I’m currently facing issues. > > > > I saw that you tested the patch for HDMI supp

[PATCH v3 2/2] drm/panic: Add support to scanout buffer as array of pages

2025-04-07 Thread Jocelyn Falempe
Some drivers like virtio-gpu, don't map the scanout buffer in the kernel. Calling vmap() in a panic handler is not safe, and writing an atomic_vmap() API is more complex than expected [1]. So instead, pass the array of pages of the scanout buffer to the panic handler, and map only one page at a tim

[PATCH v3 0/2] drm/panic: Add support to scanout buffer as array of pages

2025-04-07 Thread Jocelyn Falempe
Some drivers like virtio-gpu, don't map the scanout buffer in the kernel. Calling vmap() in a panic handler is not safe, and writing an atomic_vmap() API is more complex than expected [1]. So instead, pass the array of pages of the scanout buffer to the panic handler, and map only one page at a tim

[PATCH RESEND v13 1/5] drm/plane: Add new plane property IN_FORMATS_ASYNC

2025-04-07 Thread Arun R Murthy
There exists a property IN_FORMATS which exposes the plane supported modifiers/formats to the user. In some platforms when asynchronous flip are used all of modifiers/formats mentioned in IN_FORMATS are not supported. This patch adds a new plane property IN_FORMATS_ASYNC to expose the async flip su

Re: [PATCH v3 0/3] Use proper printk format in appletbdrm

2025-04-07 Thread Andy Shevchenko
On Mon, Apr 07, 2025 at 07:05:13PM +0530, Aditya Garg wrote: > The vsprint patch was originally being sent as a seperate patch [1], and > I was waiting it to be taken up. But as suggested by Petr, I'm sending > them via DRM. Your message is detached from the thread, make sure you use proper tools

Re: [PATCH v3 0/3] Use proper printk format in appletbdrm

2025-04-07 Thread Aditya Garg
> On 7 Apr 2025, at 7:26 PM, Andy Shevchenko > wrote: > > On Mon, Apr 07, 2025 at 07:05:13PM +0530, Aditya Garg wrote: >> The vsprint patch was originally being sent as a seperate patch [1], and >> I was waiting it to be taken up. But as suggested by Petr, I'm sending >> them via DRM. > > >

Re: [PATCH v2] drm/imagination: loop counters moved to loop scope

2025-04-07 Thread Matt Coster
On Wed, 02 Apr 2025 09:40:05 +0100, Alexandru Dadu wrote: > Reduce the scope of some loop counters as these aren't needed outside > the loops they're used in. > > Applied, thanks! [1/1] drm/imagination: loop counters moved to loop scope commit: 81feddc12613567d8206a9697d068711140e9c47

[PATCH 1/2] drm/simpledrm: Do not upcast in release helpers

2025-04-07 Thread Thomas Zimmermann
The res pointer passed to simpledrm_device_release_clocks() and simpledrm_device_release_regulators() points to an instance of struct simpledrm_device. No need to upcast from struct drm_device. The upcast is harmless, as DRM device is the first field in struct simpledrm_device. Signed-off-by: Thom

[PATCH 2/2] drm/sysfb: simpledrm: Remove unused helper simpledrm_device_of_dev()

2025-04-07 Thread Thomas Zimmermann
After moving most of the mode-setting pipeline into drm_sysfb_helper.c, simpledrm_device_of_dev() is no longer being used. Remove it. Signed-off-by: Thomas Zimmermann Reported-by: Jocelyn Falempe Closes: https://lore.kernel.org/dri-devel/20250407131344.139878-1-jfale...@redhat.com/ Fixes: 177df

Re: [PATCH 2/2] drm/sysfb: simpledrm: Remove unused helper simpledrm_device_of_dev()

2025-04-07 Thread Jocelyn Falempe
On 07/04/2025 15:47, Thomas Zimmermann wrote: After moving most of the mode-setting pipeline into drm_sysfb_helper.c, simpledrm_device_of_dev() is no longer being used. Remove it. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann Reported-by: Jocel

Re: [PATCH 2/2] drm/sysfb: simpledrm: Remove unused helper simpledrm_device_of_dev()

2025-04-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > After moving most of the mode-setting pipeline into drm_sysfb_helper.c, > simpledrm_device_of_dev() is no longer being used. Remove it. > > Signed-off-by: Thomas Zimmermann > Reported-by: Jocelyn Falempe > Closes: > https://lore.kernel.org/dri-devel/20250407131344.1

Re: [PATCH 1/2] drm/simpledrm: Do not upcast in release helpers

2025-04-07 Thread Jocelyn Falempe
On 07/04/2025 15:47, Thomas Zimmermann wrote: The res pointer passed to simpledrm_device_release_clocks() and simpledrm_device_release_regulators() points to an instance of struct simpledrm_device. No need to upcast from struct drm_device. The upcast is harmless, as DRM device is the first field

Re: [PATCH 1/2] drm/simpledrm: Do not upcast in release helpers

2025-04-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The res pointer passed to simpledrm_device_release_clocks() and > simpledrm_device_release_regulators() points to an instance of > struct simpledrm_device. No need to upcast from struct drm_device. > The upcast is harmless, as DRM device is the first field in struct >

Re: [PATCH 1/4] dt-bindings: backlight: kinetic, ktz8866: add ktz8866 slave compatible

2025-04-07 Thread Krzysztof Kozlowski
On 07/04/2025 11:51, Pengyu Luo wrote: > Kinetic ktz8866, found in many android devices, nowadays, some oem use > dual ktz8866 to support a larger panel and higher brightness, add the Just one space after 'and'. > binding for slave case. > > Signed-off-by: Pengyu Luo > --- > .../leds/backligh

[PATCH v3 0/3] Use proper printk format in appletbdrm

2025-04-07 Thread Aditya Garg
The vsprint patch was originally being sent as a seperate patch [1], and I was waiting it to be taken up. But as suggested by Petr, I'm sending them via DRM. v2: Remove printf tests, will merge later through Kees' tree v3: Re-add printf tests, since 6.15-rc1 has the necessary commits merged now.

Re: [PATCH v4 2/4] drm/panthor: Add driver IOCTL for setting BO labels

2025-04-07 Thread Liviu Dudau
On Wed, Apr 02, 2025 at 12:54:27PM +0100, Adrián Larumbe wrote: > Allow UM to label a BO for which it possesses a DRM handle. > > Signed-off-by: Adrián Larumbe > --- > drivers/gpu/drm/panthor/panthor_drv.c | 40 +++ > drivers/gpu/drm/panthor/panthor_gem.h | 2 ++ > inclu

Re: [PATCH 1/2] dt-bindings: msm: qcom,mdss: Document interconnect paths

2025-04-07 Thread Rob Herring (Arm)
On Sun, 06 Apr 2025 22:55:03 +0200, Luca Weiss wrote: > Document two interconnect paths found on the MDSS on MSM8953. > > Signed-off-by: Luca Weiss > --- > There's also some interconnect paths defined in the mdp5 schema, both > drivers accept it. Newer mdss schemas seem to prefer mdp0-mem + cpu

[PATCH v3 3/3] drm/appletbdrm: use %p4cl instead of %p4cc

2025-04-07 Thread Aditya Garg
From: Aditya Garg Due to lack of a proper printk format, %p4cc was being used instead of %p4cl for the purpose of printing FourCCs. But the disadvange was that they were being printed in a reverse order. %p4cl should correct this issue. Signed-off-by: Aditya Garg --- drivers/gpu/drm/tiny/apple

Re: [PATCH v3 3/3] drm/appletbdrm: use %p4cl instead of %p4cc

2025-04-07 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig Le Mon , Apr 07, 2025 at 07:07:54PM +0530, Aditya Garg a écrit : > From: Aditya Garg > > Due to lack of a proper printk format, %p4cc was being used instead of > %p4cl for the purpose of printing FourCCs. But the disadvange was that > they were being printed in a

Re: [PATCH v3 2/3] printf: add tests for generic FourCCs

2025-04-07 Thread Aditya Garg
On 07/04/25 7:07 pm, Aditya Garg wrote: > From: Aditya Garg > > This patch adds support for kunit tests of generic 32-bit FourCCs added to > vsprintf. > > Acked-by: Tamir Duberstein > Reviewed-by: Andy Shevchenko > Signed-off-by: Aditya Garg > --- Petr are you fine with this here?

Re: [RFC] PCI: add CONFIG_MMU dependency

2025-04-07 Thread Jeff Hugo
On 4/7/2025 4:38 AM, Arnd Bergmann wrote: From: Arnd Bergmann It turns out that there are no platforms that have PCI but don't have an MMU, so adding a Kconfig dependency on CONFIG_PCI simplifies build testing kernels for those platforms a lot, and avoids a lot of inadvertent build regressions.

Re: [PATCH 3/4] backlight: ktz8866: improve current sinks setting

2025-04-07 Thread Daniel Thompson
On Mon, Apr 07, 2025 at 05:51:18PM +0800, Pengyu Luo wrote: > I polled all registers when the module was loading, found that > current sinks have already been configured. Bootloader would set > when booting. So checking it before setting the all channels. Can you rephrase this so the problem and s

[PATCH] drm/amd/display: Add error check for avi and vendor infoframe setup function

2025-04-07 Thread Wentao Liang
The function fill_stream_properties_from_drm_display_mode() calls the function drm_hdmi_avi_infoframe_from_display_mode() and the function drm_hdmi_vendor_infoframe_from_display_mode(), but does not check its return value. Log the error messages to prevent silent failure if either function fails.

Re: [PATCH v2 7/7] drm/xe/pt: unify xe_pt_svm_pre_commit with userptr

2025-04-07 Thread Matthew Auld
On 04/04/2025 18:02, Matthew Brost wrote: On Fri, Apr 04, 2025 at 09:19:34AM +0100, Matthew Auld wrote: On 03/04/2025 22:25, Matthew Brost wrote: On Fri, Mar 28, 2025 at 06:10:36PM +, Matthew Auld wrote: We now use the same notifier lock for SVM and userptr, with that we can combine xe_pt_

Re: CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP is broken, was Re: [RFC PATCH 0/6] Deep talk about folio vmap

2025-04-07 Thread Muchun Song
> On Apr 7, 2025, at 15:09, Huan Yang wrote: > > > 在 2025/4/7 14:43, Muchun Song 写道: >> >>> On Apr 7, 2025, at 11:37, Muchun Song wrote: >>> >>> >>> On Apr 7, 2025, at 11:21, Huan Yang wrote: 在 2025/4/7 10:57, Muchun Song 写道: >> On Apr 7, 2025, at 09:59, Huan Y

Re: [PATCH v2 0/4] kbuild: resurrect generic header check facility

2025-04-07 Thread Jani Nikula
On Fri, 04 Apr 2025, Masahiro Yamada wrote: > On Wed, Apr 2, 2025 at 9:47 PM Jani Nikula wrote: >> >> Another go at hiding the turds. >> >> In v1 [1] I hid the build artifacts under .hdrtest subdirectories, one in >> each >> $(obj) directory, but the feedback from Linus [2] was to have one top l

Re: [PATCH] drm/vc4: fix uninitialized smatch warnings

2025-04-07 Thread Maxime Ripard
On Sat, Apr 05, 2025 at 10:45:03AM +0800, sunlim...@linux.dev wrote: > From: sunliming > > Fix below smatch warnings: > drivers/gpu/drm/vc4/vc4_gem.c:604 vc4_lock_bo_reservations() error: > uninitialized symbol 'ret'. > > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Closes: h

[PATCH] Fixed the warning at ./drivers/gpu/drm/amd/include/amd_shared.h:369

2025-04-07 Thread Kevin Paul Reddy Janagari
warning: Incorrect use of kernel-doc format: * @DC_HDCP_LC_ENABLE_SW_FALLBACK If set, upon HDCP Locality Check FW Signed-off-by: Kevin Paul Reddy Janagari --- drivers/gpu/drm/amd/include/amd_shared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/

[PATCH v4 03/16] drm/vkms: Allow to configure multiple planes via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet Create a default subgroup at /config/vkms/planes to allow to create as many planes as required. Reviewed-by: Louis Chauvet Signed-off-by: Louis Chauvet Co-developed-by: José Expósito Signed-off-by: José Expósito --- Documentation/gpu/vkms.rst | 16 - driver

[PATCH v4 01/16] drm/vkms: Expose device creation and destruction

2025-04-07 Thread José Expósito
In preparation for configfs support, expose vkms_create() and vkms_destroy(). Reviewed-by: Louis Chauvet Co-developed-by: Louis Chauvet Signed-off-by: Louis Chauvet Signed-off-by: José Expósito --- drivers/gpu/drm/vkms/vkms_drv.c | 4 ++-- drivers/gpu/drm/vkms/vkms_drv.h | 20 +++

[PATCH v4 09/16] drm/vkms: Allow to attach encoders and CRTCs via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet Create a default subgroup at /config/vkms/encoders/encoder/possible_crtcs that will contain symbolic links to the possible CRTCs for the encoder. Signed-off-by: Louis Chauvet Co-developed-by: José Expósito Signed-off-by: José Expósito --- Documentation/gpu/vkms.rst

[PATCH v4 07/16] drm/vkms: Allow to attach planes and CRTCs via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet Create a default subgroup at /config/vkms/planes/plane/possible_crtcs that will contain symbolic links to the possible CRTCs for the plane. Signed-off-by: Louis Chauvet Co-developed-by: José Expósito Signed-off-by: José Expósito --- Documentation/gpu/vkms.rst |

[PATCH v4 08/16] drm/vkms: Allow to configure multiple encoders via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet Create a default subgroup at /config/vkms/encoders to allow to create as many encoders as required. Signed-off-by: Louis Chauvet Co-developed-by: José Expósito Signed-off-by: José Expósito --- Documentation/gpu/vkms.rst | 6 ++ drivers/gpu/drm/vkms/vkms_configf

[PATCH v4 02/16] drm/vkms: Add and remove VKMS instances via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet Allow to create, enable, disable and destroy VKMS instances using configfs. For the moment, it is not possible to add pipeline items, so trying to enable the device will fail printing an informative error to the log. Reviewed-by: Louis Chauvet Signed-off-by: Louis Chauvet

[PATCH v4 14/16] drm/vkms: Allow to configure connector status

2025-04-07 Thread José Expósito
Allow to store the connector status in vkms_config_connector and add a getter and a setter functions as well a KUnit test. This change only adds the configuration, the connector status is not used yet. Signed-off-by: José Expósito --- drivers/gpu/drm/vkms/tests/vkms_config_test.c | 24 +

[PATCH v4 10/16] drm/vkms: Allow to configure multiple connectors via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet Create a default subgroup at /config/vkms/connectors to allow to create as many connectors as required. Signed-off-by: Louis Chauvet Co-developed-by: José Expósito Signed-off-by: José Expósito --- Documentation/gpu/vkms.rst | 6 ++ drivers/gpu/drm/vkms/vkms_con

[PATCH v4 06/16] drm/vkms: Allow to configure CRTC writeback support via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet When a CRTC is created, add a `writeback` file to allow to enable or disable writeback connector support Signed-off-by: Louis Chauvet Co-developed-by: José Expósito Signed-off-by: José Expósito --- Documentation/gpu/vkms.rst | 4 +++ drivers/gpu/drm/vkms/vkms_c

[PATCH v4 15/16] drm/vkms: Allow to update the connector status

2025-04-07 Thread José Expósito
Implement the drm_connector_funcs.detect() callback to update the connector status by returning the status stored in the configuration. Signed-off-by: José Expósito --- drivers/gpu/drm/vkms/vkms_connector.c | 28 +++ drivers/gpu/drm/vkms/vkms_connector.h | 3 +++ 2 files

[PATCH v4 13/16] drm/vkms: Remove completed task from the TODO list

2025-04-07 Thread José Expósito
Remove the configfs related TODO items from the "Runtime Configuration" section. Reviewed-by: Louis Chauvet Signed-off-by: José Expósito --- Documentation/gpu/vkms.rst | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Documentation/gpu/vkms.rst b/Documentation/gpu/vkms

[PATCH v4 00/16] drm/vkms: Add configfs support

2025-04-07 Thread José Expósito
Hi everyone, This series allow to configure one or more VKMS instances without having to reload the driver using configfs. The series is structured in 3 blocks: - Patches 1..11: Basic device configuration. For simplicity, I kept the available options as minimal as possible. - Patches 12

[PATCH v4 11/16] drm/vkms: Allow to attach connectors and encoders via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet Create a default subgroup at /config/vkms/connectors/connector/possible_encoders that will contain symbolic links to the possible encoders for the connector. Signed-off-by: Louis Chauvet Co-developed-by: José Expósito Signed-off-by: José Expósito --- Documentation/gpu/vkm

[PATCH v4 16/16] drm/vkms: Allow to configure connector status via configfs

2025-04-07 Thread José Expósito
When a connector is created, add a `status` file to allow to update the connector status to: - 1 connector_status_connected - 2 connector_status_disconnected - 3 connector_status_unknown If the device is enabled, updating the status hot-plug or unplugs the connector. Signed-off-by: José Expós

[PATCH v4 04/16] drm/vkms: Allow to configure the plane type via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet When a plane is created, add a `type` file to allow to set the type: - 0 overlay - 1 primary - 2 cursor Signed-off-by: Louis Chauvet Co-developed-by: José Expósito Signed-off-by: José Expósito --- Documentation/gpu/vkms.rst | 5 +++ drivers/gpu/drm/vkms/vkm

[PATCH v4 05/16] drm/vkms: Allow to configure multiple CRTCs via configfs

2025-04-07 Thread José Expósito
From: Louis Chauvet Create a default subgroup at /config/vkms/crtcs to allow to create as many CRTCs as required. Signed-off-by: Louis Chauvet Co-developed-by: José Expósito Signed-off-by: José Expósito --- Documentation/gpu/vkms.rst | 6 ++ drivers/gpu/drm/vkms/vkms_configfs.c |

Re: [PATCH v2 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-07 Thread Thomas Zimmermann
Hi Am 04.04.25 um 15:50 schrieb Marcus Folkesson: Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. The controller has a SPI, I2C and 8bit parallel interface, this driver is for the I2C interface only. Signed-off-by: Marcus Folkesson Reviewed-by: Thomas Zimmermann I have a fe

Re: [PATCH v3 1/7] drm/panthor: Add performance counter uAPI

2025-04-07 Thread Lukas Zapolskas
On 01/04/2025 16:48, Lukas Zapolskas wrote: This patch extends the DEV_QUERY ioctl to return information about the performance counter setup for userspace, and introduces the new ioctl DRM_PANTHOR_PERF_CONTROL in order to allow for the sampling of performance counters. The new design is inspi

Re: [PATCH v3 5/7] drm/panthor: Implement the counter sampler and sample handling

2025-04-07 Thread Lukas Zapolskas
On 01/04/2025 16:48, Lukas Zapolskas wrote: From: Adrián Larumbe The sampler aggregates counter and set requests coming from userspace and mediates interactions with the FW interface, to ensure that user sessions cannot override the global configuration. From the top-level interface, the s

RE: [PATCH v11 0/5] Expose modifiers/formats supported by async flips

2025-04-07 Thread Murthy, Arun R
> -Original Message- > From: Xaver Hugl > Sent: Friday, April 4, 2025 2:41 AM > To: Murthy, Arun R > Cc: dri-devel@lists.freedesktop.org; intel-...@lists.freedesktop.org; intel- > x...@lists.freedesktop.org; Jani Nikula ; Borah, > Chaitanya Kumar ; Syrjala, Ville > ; Ville Syrjälä ; > Ku

Re: CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP is broken, was Re: [RFC PATCH 0/6] Deep talk about folio vmap

2025-04-07 Thread Muchun Song
> On Apr 7, 2025, at 16:59, Christoph Hellwig wrote: > > On Mon, Apr 07, 2025 at 02:43:20PM +0800, Muchun Song wrote: >> By the way, in case you truly struggle to comprehend the fundamental >> aspects of HVO, I would like to summarize for you the user-visible >> behaviors in comparison to the

Re: [PATCH v9 0/5] drm/bridge: add devm_drm_bridge_alloc() with bridge refcount

2025-04-07 Thread Louis Chauvet
Le 26/03/2025 à 18:47, Luca Ceresoli a écrit : This series improves the way DRM bridges are allocated and initialized and makes them reference-counted. The goal of reference counting is to avoid use-after-free by drivers which got a pointer to a bridge and keep it stored and used even after th

[PATCH v2 16/32] Introduce drm_gpuvm_sm_map_ops_flags enums for sm_map_ops

2025-04-07 Thread Himal Prasad Ghimiray
- DRM_GPUVM_SM_MAP_NOT_MADVISE: Default sm_map operations for the input range. - DRM_GPUVM_SKIP_GEM_OBJ_VA_SPLIT_MADVISE: This flag is used by drm_gpuvm_sm_map_ops_create to iterate over GPUVMA's in the user-provided range and split the existing non-GEM object VMA if the start or end of the in

Re: [PATCH v2 00/30] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part2

2025-04-07 Thread Neil Armstrong
On 03/04/2025 16:16, Anusha Srivatsa wrote: Start converting drivers to use the API - devm_drm_panel_alloc(). Sending next 30 drivers. Sending in batches for easier review. Part 1 of the series : https://patchwork.freedesktop.org/series/147082/ Signed-off-by: Anusha Srivatsa --- Changes in v2

Re: [PATCH v20 09/10] drm/shmem-helper: Switch drm_gem_shmem_vmap/vunmap to use pin/unpin

2025-04-07 Thread Boris Brezillon
On Fri, 4 Apr 2025 16:58:20 +0200 Thomas Zimmermann wrote: > Hi > > Am 04.04.25 um 16:52 schrieb Boris Brezillon: > > On Fri, 4 Apr 2025 10:01:50 +0200 > > Thomas Zimmermann wrote: > > > In your case, vmap an pin both intent to hold the shmem pages in memory. > They might be build o

Re: [PATCH 2/4] backlight: ktz8866: add slave handler

2025-04-07 Thread Krzysztof Kozlowski
On 07/04/2025 11:51, Pengyu Luo wrote: > Kinetic ktz8866, found in many android devices, nowadays, some oem use > dual ktz8866 to support a larger panel and higher brightness, original > driver would only handle half backlight region on these devices, > registering it twice is unreasonable, so add

[PATCH] fbdev/nvidiafb: Correct const string length in nvidiafb_setup()

2025-04-07 Thread Zijun Hu
} else if (!strncmp(this_opt, "noaccel", 7)) { noaccel = 1; } else if (!strncmp(this_opt, "noscale", 7)) { noscale = 1; --- base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8 change-id: 20250407-fix_nvidia-a9d72c98a808 Best regards, -- Zijun Hu

Re: [PATCH v3 02/11] tee: add close_context to TEE driver operation

2025-04-07 Thread Jens Wiklander
Hi Amir, On Fri, Mar 28, 2025 at 3:48 AM Amirreza Zarrabi wrote: > > The tee_context can be used to manage TEE user resources, including > those allocated by the driver for the TEE on behalf of the user. > The release() callback is invoked only when all resources, such as > tee_shm, are released

Re: [PATCH v3 0/3] Use proper printk format in appletbdrm

2025-04-07 Thread Andy Shevchenko
On Mon, Apr 07, 2025 at 07:57:08PM +0530, Aditya Garg wrote: > On 07-04-2025 07:52 pm, Andy Shevchenko wrote: > > On Mon, Apr 07, 2025 at 02:17:00PM +, Aditya Garg wrote: > >>> On 7 Apr 2025, at 7:26 PM, Andy Shevchenko > >>> wrote: > >>> On Mon, Apr 07, 2025 at 07:05:13PM +0530, Aditya Garg

[PATCH] gma500/cdv: fix null pointer dereference in cdv_intel_dp_get_modes

2025-04-07 Thread Chenyuan Yang
In cdv_intel_dp_get_modes(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. This is similar to the fix commit cb520c3f366c ("drm/gma500: fix null pointer dereference in cdv_in

[PATCH 11/34] drm/bridge: dw-hdmi: convert to devm_drm_bridge_alloc() API

2025-04-07 Thread Luca Ceresoli
This is the new API for allocating DRM bridges. Signed-off-by: Luca Ceresoli --- Cc: Cristian Ciocaltea --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/

[PATCH RESEND V2 1/1] dt-bindings: display: nwl-dsi: Allow 'data-lanes' property for port@1

2025-04-07 Thread Frank Li
This controller support scalable data lanes from 1 to 4. Add the 'data-lanes' property to configure the number of MIPI display panel lanes selected for boards. Change $ref of port@1 from 'port' to 'port-base' and add 'endpoint' property referencing video-interfaces.yaml. Allow 'data-lanes' values

[PATCH v5 10/11] drm/display: bridge-connector: handle CEC adapters

2025-04-07 Thread Dmitry Baryshkov
Implement necessary glue code to let DRM bridge drivers to implement CEC adapters support. Signed-off-by: Dmitry Baryshkov Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_bridge_connector.c | 83 ++ include/drm/drm_bridge.h | 26

  1   2   3   >