[PATCH v1 6/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/module

[PATCH v1 5/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/spl/dc_spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c b/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c index 9eccdb38

[PATCH v1 4/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c index b12651246

[PATCH v1 3/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resour

[PATCH v1 2/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c b/drivers/gpu/drm/amd/displ

[PATCH v1 1/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parse

[PATCH v1 0/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
*** BLURB HERE *** Yu Jiaoliang (6): drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drivers/gpu/drm/amd/display/dc/bios/b

[PATCH v1 6/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/module

[PATCH v1 5/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/spl/dc_spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c b/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c index 9eccdb38

[PATCH v1 4/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c index b12651246

[PATCH v1 3/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resour

[PATCH v1 2/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c b/drivers/gpu/drm/amd/displ

[PATCH v1 1/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parse

[PATCH v1 0/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
*** BLURB HERE *** Yu Jiaoliang (6): drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drivers/gpu/drm/amd/display/dc/bios/b

[PATCH v1 6/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/module

[PATCH v1 5/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/spl/dc_spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c b/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c index 9eccdb38

[PATCH v1 4/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c index b12651246

[PATCH v1 3/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resour

[PATCH v1 2/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c b/drivers/gpu/drm/amd/displ

[PATCH v1 1/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parse

[PATCH v1 0/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
*** BLURB HERE *** Yu Jiaoliang (6): drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drivers/gpu/drm/amd/display/dc/bios/b

Re: [PATCH 4/7] drm/ttm: move LRU walk defines into new internal header

2024-08-21 Thread Thomas Hellström
On Wed, 2024-08-21 at 14:00 +0200, Thomas Hellström wrote: > Hi, > > On Wed, 2024-08-21 at 11:48 +0200, Christian König wrote: > > Am 21.08.24 um 10:57 schrieb Thomas Hellström: > > > On Wed, 2024-08-21 at 10:14 +0200, Christian König wrote: > > > > Am 20.08.24 um 18:00 schrieb Thomas Hellström: >

Re: [PATCH] gpu: drm: Use devm_clk_get_enabled() helpers

2024-08-21 Thread Rong Qianfeng
在 2024/8/22 13:32, Anand Moon 写道: [Some people who received this message don't often get email from linux.am...@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hi Rong, On Tue, 20 Aug 2024 at 18:30, Rong Qianfeng wrote: Replace devm_clk_get() and

[PATCH v3 3/3] arm64: dts: mediatek: mt8186: Add svs node

2024-08-21 Thread Rohit Agarwal
Add clock/irq/efuse setting in svs nodes for mt8186 SoC. Signed-off-by: Rohit Agarwal --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index

[PATCH v3 2/3] arm64: dts: mediatek: mt8186: Add power domain for DPI

2024-08-21 Thread Rohit Agarwal
Add power domain phandle to the DPI controller in mediatek mt8186 SoC. Signed-off-by: Rohit Agarwal --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index 4763ed5d

[PATCH v3 1/3] dt-bindings: display: mediatek: dpi: Add power domains

2024-08-21 Thread Rohit Agarwal
Add power domain binding to the mediatek DPI controller for MT8186. Also, add power domain binding for other SoCs like MT6795 and MT8173 that already had power domain property. Signed-off-by: Rohit Agarwal --- .../bindings/display/mediatek/mediatek,dpi.yaml | 17 + 1 file changed

[PATCH v3 0/3] Devicetree updates for MT8186

2024-08-21 Thread Rohit Agarwal
Hi, Changes in v3: - Update some formatting errors in the bindings patch. Changes in v2: - Update the binding to include power domain in only some specific variants. This series updates the DPI node to add power domain and adds the Mediatek SVS node as well to MT8186. Thanks, Rohit. Rohit

Re: [PATCH v2 56/86] drm/mgag200: Run DRM default client setup

2024-08-21 Thread Jocelyn Falempe
On 21/08/2024 14:59, Thomas Zimmermann wrote: Call drm_client_setup_with_fourcc() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. Thanks for this whole series. Reviewed-by: Jocelyn Falempe v

Re: [PATCH v2 51/86] drm/ast: Run DRM default client setup

2024-08-21 Thread Jocelyn Falempe
On 21/08/2024 14:59, Thomas Zimmermann wrote: Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The ast driver specifies a preferred color mode of 32. As this is the default

[PATCH v1 6/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/module

[PATCH v1 5/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/spl/dc_spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c b/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c index 9eccdb38

[PATCH v1 4/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c index b12651246

[PATCH v1 3/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resour

[PATCH v1 2/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c b/drivers/gpu/drm/amd/displ

[PATCH v1 1/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
Use the macro instead of ternary operator. Signed-off-by: Yu Jiaoliang --- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parse

[PATCH v1 0/6] drm/amd/display: Use max/min macro

2024-08-21 Thread Yu Jiaoliang
*** BLURB HERE *** Yu Jiaoliang (6): drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drm/amd/display: Use max/min macro drivers/gpu/drm/amd/display/dc/bios/b

Re: [PATCH v3 2/3] Subject: [PATCH] drm/mediatek/dp: Add HDCP2.x feature for DisplayPort

2024-08-21 Thread 胡俊光

[PATCH -next] backlight: 88pm860x_bl: Simplify with scoped for each OF child loop

2024-08-21 Thread Jinjie Ruan
Use scoped for_each_child_of_node_scoped() when iterating over device nodes to make code a bit simpler. Signed-off-by: Jinjie Ruan --- drivers/video/backlight/88pm860x_bl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/88pm860x_bl.c b/drivers/v

Re: [PATCH v5 2/4] drm/amd/display: Add support for minimum backlight quirk

2024-08-21 Thread Thomas Weißschuh
On 2024-08-21 15:54:14+, Mario Limonciello wrote: > On 8/18/2024 01:56, Thomas Weißschuh wrote: > > Not all platforms provide correct PWM backlight capabilities through ATIF. > > I don't think correct is an accurate term here. How about 'optimial'? Looks typoed to me :-) What about this? N

Re: [PATCH v5 1/4] drm: Add panel backlight quirks

2024-08-21 Thread Thomas Weißschuh
On 2024-08-21 15:51:17+, Mario Limonciello wrote: > On 8/18/2024 01:56, Thomas Weißschuh wrote: > > Panels using a PWM-controlled backlight source do not have a standard > > way to communicate their valid PWM ranges. > > On x86 the ranges are read from ACPI through driver-specific tables. > > T

Re: [PATCH v5 0/4] drm: Minimum backlight overrides and implementation for amdgpu

2024-08-21 Thread Thomas Weißschuh
Hi Mario, (+ a question for Dustin inside) On 2024-08-21 15:45:46+, Mario Limonciello wrote: > On 8/18/2024 01:56, Thomas Weißschuh wrote: > > The value of "min_input_signal" returned from ATIF on a Framework AMD 13 > > is "12". This leads to a fairly bright minimum display backlight. > > >

[PULL] drm-intel-fixes

2024-08-21 Thread Joonas Lahtinen
Hi Dave & Sima, Here goes drm-intel-fixes towards v6.11-rc5. Just one HDCP timeout fix this week. Regards, Joonas *** drm-intel-fixes-2024-08-22: - Fix for HDCP timeouts The following changes since commit 47ac09b91befbb6a235ab620c32af719f8208399: Linux 6.11-rc4 (2024-08-18 13:17:27 -0700)

Re: [PATCH v3 2/3] Subject: [PATCH] drm/mediatek/dp: Add HDCP2.x feature for DisplayPort

2024-08-21 Thread 胡俊光

[PATCH] MAINTAINERS: udmabuf: Add myself as co-maintainer for udmabuf driver

2024-08-21 Thread Vivek Kasireddy
I would like to help maintain the udmabuf driver, in light of the recent changes that converted the driver to use folios instead of pages. Furthermore, I also contribute to Qemu's virtio-gpu module (and UI modules), that are primary users of udmabuf driver. Cc: Gerd Hoffmann Cc: Daniel Vetter Si

Re: [PATCH] include: uapi: drm: drm_mode: fix documentation and coding style issue

2024-08-21 Thread Shuah Khan
On 8/21/24 14:20, Nihar Chaithanya wrote: Fix documentation and coding style issue in include/uapi/drm/drm_mode.h. Changes include: - Adding description of function parameter. - Correcting block comment style. Fix documentation warnings in include/uapi/drm/drm_mode.h encountered from make htmldo

Re: [PATCH] gpu: drm: Use devm_clk_get_enabled() helpers

2024-08-21 Thread Rong Qianfeng
在 2024/8/22 8:35, Julian Calaby 写道: [Some people who received this message don't often get email from julian.cal...@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hi Rong, On Tue, Aug 20, 2024 at 10:59 PM Rong Qianfeng wrote: Replace devm_clk_get

Re: drm/bridge/imx8mp-hdmi-tx: Allow inexact pixel clock frequencies (Was: [PATCH V8 10/12] drm/bridge: imx: add bridge wrapper driver for i.MX8MP DWC HDMI)

2024-08-21 Thread Adam Ford
On Wed, Aug 21, 2024 at 7:45 AM Adam Ford wrote: > > On Tue, Aug 20, 2024 at 10:58 PM Dominique MARTINET > wrote: > > > > Adam Ford wrote on Tue, Aug 20, 2024 at 09:49:03PM -0500: > > > > > However, this check is a bit overcautious in that it only allows exact > > > > > rate matches. IIRC HDMI al

[PATCH -next v2 RESEND] drm/amd/display: Remove unused dcn35_fpga_funcs

2024-08-21 Thread Jinjie Ruan
dcn35_fpga_funcs is not used anywhere, remove it. Signed-off-by: Jinjie Ruan --- v2: - Remove it instead of making it static. --- .../gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn3

[PATCH -next v2] drm/amd/display: Remove unused dcn35_fpga_funcs

2024-08-21 Thread Jinjie Ruan
dcn35_fpga_funcsc is not used anywhere, remove it. Signed-off-by: Jinjie Ruan --- v2: - Remove it instead of making it static. --- .../gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn

Re: [PATCH 2/4] amdgpu: fix a race in kfd_mem_export_dmabuf()

2024-08-21 Thread Al Viro
On Wed, Aug 14, 2024 at 06:15:46PM -0400, Felix Kuehling wrote: > > On 2024-08-12 02:59, Al Viro wrote: > > Using drm_gem_prime_handle_to_fd() to set dmabuf up and insert it into > > descriptor table, only to have it looked up by file descriptor and > > remove it from descriptor table is not just

Re: [PATCH v4 3/4] dt-bindings: display: rockchip: Add schema for RK3588 HDMI TX Controller

2024-08-21 Thread Cristian Ciocaltea
On 8/22/24 12:38 AM, Heiko Stuebner wrote: > > > Am 21. August 2024 23:28:55 MESZ schrieb Conor Dooley : >> Cristian, Heiko, >> >> On Wed, Aug 21, 2024 at 11:38:01PM +0300, Cristian Ciocaltea wrote: >>> On 8/21/24 6:07 PM, Conor Dooley wrote: On Tue, Aug 20, 2024 at 11:12:45PM +0300, Cristia

[PATCH V3 9/9] ARM: bcm2835_defconfig: Enable SUSPEND

2024-08-21 Thread Stefan Wahren
Since the Raspberry Pi supports Suspend-To-Idle now, this option should be enabled. This should make power management testing easier. Signed-off-by: Stefan Wahren Reviewed-by: Florian Fainelli --- arch/arm/configs/bcm2835_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/c

Re: [PATCH net-next v19 03/13] netdev: support binding dma-buf to netdevice

2024-08-21 Thread Jakub Kicinski
On Wed, 21 Aug 2024 11:36:31 -0400 Mina Almasry wrote: > Additionally I'm wondering if we should disable adding mp-bound > devices as slaves completely, regardless of xdp. My concern is that if > the lower device is using unreadable memory, then the upper device may > see unreadable memory in its c

Re: [PATCH 0/2] drm/panel: simple: Add support for JDI TX26D202VM0BWA panel

2024-08-21 Thread Frank Li
l-simple-lvds-dual-ports.yaml| 2 ++ > drivers/gpu/drm/panel/panel-simple.c | 38 > ++ > 2 files changed, 40 insertions(+) > --- > base-commit: eb8c5ca373cbb018a84eb4db25c863302c9b6314 > change-id: 20240821-jdi-a5e016700cfe > > Best regards, > --- > Frank Li >

[PATCH 2/2] drm/panel: simple: Add support for JDI TX26D202VM0BWA panel

2024-08-21 Thread Frank Li
From: Liu Ying Add support for Japan Display Inc. 10.1" TX26D202VM0BWA WUXGA(1920x1200) TFT LCD panel with LVDS interface. The panel has dual LVDS channels. Signed-off-by: Liu Ying Signed-off-by: Dong Aisheng Signed-off-by: Frank Li --- drivers/gpu/drm/panel/panel-simple.c | 38 +

[PATCH 1/2] dt-bindings: display: panel-simple-lvds-dual-ports: add jdi,tx26d202vm0bwa

2024-08-21 Thread Frank Li
Add compatible string jdi,tx26d202vm0bwa for below panel: Japan Display Inc. 10.1" WUXGA (1920x1200) TFT LCD panel Signed-off-by: Frank Li --- .../devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devi

[PATCH 0/2] drm/panel: simple: Add support for JDI TX26D202VM0BWA panel

2024-08-21 Thread Frank Li
/panel-simple-lvds-dual-ports.yaml| 2 ++ drivers/gpu/drm/panel/panel-simple.c | 38 ++ 2 files changed, 40 insertions(+) --- base-commit: eb8c5ca373cbb018a84eb4db25c863302c9b6314 change-id: 20240821-jdi-a5e016700cfe Best regards, --- Frank Li

[PATCH V3 7/9] usb: dwc2: Refactor backup/restore of registers

2024-08-21 Thread Stefan Wahren
The DWC2 runtime PM code reuses similar patterns to backup and restore the registers. So consolidate them in USB mode specific variants. This also has the advantage it is usable for further PM improvements. Signed-off-by: Stefan Wahren --- drivers/usb/dwc2/core.h | 12 + drivers/usb/dwc2/

[PATCH V3 RFC 8/9] usb: dwc2: Implement recovery after PM domain off

2024-08-21 Thread Stefan Wahren
According to the dt-bindings there are some platforms, which have a dedicated USB power domain for DWC2 IP core supply. If the power domain is switched off during system suspend then all USB register will lose their settings. Use GUSBCFG_TOUTCAL as a canary to detect that the power domain has been

[PATCH V3 0/9] ARM: bcm2835: Implement initial S2Idle for Raspberry Pi

2024-08-21 Thread Stefan Wahren
This series implement the initial S2Idle support for the Raspberry Pi, which was a long time on my TODO list [1]. The changes allow to suspend and resume the Raspberry Pi via debug UART. The focus is on the BCM2835 SoC, because it's less complex than its successors and have enough documentation. T

[PATCH V3 2/9] drm/vc4: hdmi: Handle error case of pm_runtime_resume_and_get

2024-08-21 Thread Stefan Wahren
The commit 0f5251339eda ("drm/vc4: hdmi: Make sure the controller is powered in detect") introduced the necessary power management handling to avoid register access while controller is powered down. Unfortunately it just print a warning if pm_runtime_resume_and_get() fails and proceed anyway. This

[PATCH V3 6/9] drm/vc4: v3d: add PM suspend/resume support

2024-08-21 Thread Stefan Wahren
Add suspend/resume support for the VC4 V3D component in order to handle suspend to idle properly. Signed-off-by: Stefan Wahren --- drivers/gpu/drm/vc4/vc4_v3d.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_v3d.c b/drivers/gpu/drm/vc4/vc4_v3d.c index bf5c4e36c94e.

[PATCH V3 3/9] drm/vc4: Get the rid of DRM_ERROR()

2024-08-21 Thread Stefan Wahren
DRM_ERROR() has been deprecated in favor of pr_err(). However, we should prefer to use drm_err() whenever possible so we get device- specific output with the error message. In error case of kcalloc, we can simply drop DRM_ERROR(), because kcalloc already logs errors. Suggested-by: Maíra Canal Sig

[PATCH V3 5/9] drm/vc4: v3d: simplify clock retrieval

2024-08-21 Thread Stefan Wahren
Common pattern of handling deferred probe can be simplified with dev_err_probe() and devm_clk_get_optional(). This results in much less code. Signed-off-by: Stefan Wahren Reviewed-by: Maíra Canal --- drivers/gpu/drm/vc4/vc4_v3d.c | 18 +++--- 1 file changed, 3 insertions(+), 15 dele

[PATCH V3 4/9] drm/vc4: hdmi: add PM suspend/resume support

2024-08-21 Thread Stefan Wahren
Add suspend/resume support for the VC4 HDMI component in order to handle suspend to idle properly. Since the HDMI power domain is powered down during suspend, this makes connector status polling pointless. Link: https://lore.kernel.org/dri-devel/7003512d-7303-4f41-b0d6-a8af5bf8e...@gmx.net/ Signe

[PATCH V3 1/9] mailbox: bcm2835: Fix timeout during suspend mode

2024-08-21 Thread Stefan Wahren
During noirq suspend phase the Raspberry Pi power driver suffer of firmware property timeouts. The reason is that the IRQ of the underlying BCM2835 mailbox is disabled and rpi_firmware_property_list() will always run into a timeout [1]. Since the VideoCore side isn't consider as a wakeup source, s

Re: [PATCH v4 3/4] dt-bindings: display: rockchip: Add schema for RK3588 HDMI TX Controller

2024-08-21 Thread Heiko Stuebner
Am 21. August 2024 23:28:55 MESZ schrieb Conor Dooley : >Cristian, Heiko, > >On Wed, Aug 21, 2024 at 11:38:01PM +0300, Cristian Ciocaltea wrote: >> On 8/21/24 6:07 PM, Conor Dooley wrote: >> > On Tue, Aug 20, 2024 at 11:12:45PM +0300, Cristian Ciocaltea wrote: >> >> On 8/20/24 7:14 PM, Conor Doo

Re: [PATCH v4 3/4] dt-bindings: display: rockchip: Add schema for RK3588 HDMI TX Controller

2024-08-21 Thread Conor Dooley
Cristian, Heiko, On Wed, Aug 21, 2024 at 11:38:01PM +0300, Cristian Ciocaltea wrote: > On 8/21/24 6:07 PM, Conor Dooley wrote: > > On Tue, Aug 20, 2024 at 11:12:45PM +0300, Cristian Ciocaltea wrote: > >> On 8/20/24 7:14 PM, Conor Dooley wrote: > >>> On Tue, Aug 20, 2024 at 03:37:44PM +0300, Cristi

Re: [PATCH v5 4/4] drm: panel-backlight-quirks: Add Framework 13 glossy and 2.8k panels

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: From: "Dustin L. Howett" I have tested these panels on the Framework Laptop 13 AMD with firmware revision 3.05 (latest at time of submission). Signed-off-by: Dustin L. Howett When you send someone else's patch you need to add your own S-o-b as we

Re: [PATCH v5 3/4] drm: panel-backlight-quirks: Add Framework 13 matte panel

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: The value of "min_input_signal" returned from ATIF on a Framework AMD 13 is "12". This leads to a fairly bright minimum display backlight. Add a quirk to override that the minimum backlight PWM to "0" which leads to a much lower minimum brightness, whi

Re: [PATCH v5 2/4] drm/amd/display: Add support for minimum backlight quirk

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: Not all platforms provide correct PWM backlight capabilities through ATIF. I don't think correct is an accurate term here. How about 'optimial'? Use the generic drm panel minimum backlight quirk infrastructure to override the capabilities where nec

[PATCH] include: uapi: drm: drm_mode: fix documentation and coding style issue

2024-08-21 Thread Nihar Chaithanya
Fix documentation and coding style issue in include/uapi/drm/drm_mode.h. Changes include: - Adding description of function parameter. - Correcting block comment style. Fix documentation warnings in include/uapi/drm/drm_mode.h encountered from make htmldocs: ./include/uapi/drm/drm_mode.h:869: warni

[PATCH] drm: komeda: Fix an issue related to normalized zpos

2024-08-21 Thread hongchi.peng
We use komeda_crtc_normalize_zpos to normalize zpos of affected planes to their blending zorder in CU. If there's only one slave plane in affected planes and its layer_split property is enabled, order++ for its split layer, so that when calculating the normalized_zpos of master planes, the split la

[PATCH] drm: komeda: Fix an issue related to normalized zpos

2024-08-21 Thread hongchi.peng
We use komeda_crtc_normalize_zpos to normalize zpos of affected planes to their blending zorder in CU. If there's only one slave plane in affected planes and its layer_split property is enabled, order++ for its split layer, so that when calculating the normalized_zpos of master planes, the split la

[PATCH v1] ImgTec powerVR DRM driver: Convert to use time_before macro

2024-08-21 Thread Chen Yufan
Use time_before instead of direct subtraction for readability. Signed-off-by: Chen Yufan --- drivers/gpu/drm/imagination/pvr_ccb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imagination/pvr_ccb.c b/drivers/gpu/drm/imagination/pvr_ccb.c index 4deeac7ed..b

回复: [PATCH] drm: komeda: Fix an issue related to normalized zpos

2024-08-21 Thread Peng Hongchi/彭洪驰
Hi, all: I'm sorry that I forgot to add a pair of brackets, and I'll send it again soon. Best Regards, Hongchi Peng -邮件原件- 发件人: hongchi.peng 发送时间: 2024年8月21日 16:19 收件人: liviu.du...@arm.com 抄送: maarten.lankho...@linux.intel.com; mrip...@kernel.org; tzimmerm...@suse.de; airl...@gmail.c

Re: [PATCH v5 1/4] drm: Add panel backlight quirks

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: Panels using a PWM-controlled backlight source do not have a standard way to communicate their valid PWM ranges. On x86 the ranges are read from ACPI through driver-specific tables. The built-in ranges are not necessarily correct, or may grow stale if a

Re: [PATCH 2/2] drm/amdgpu: Use drm_print_memory_stats helper from fdinfo

2024-08-21 Thread Alex Deucher
On Wed, Aug 21, 2024 at 4:43 PM Alex Deucher wrote: > > On Tue, Aug 13, 2024 at 9:57 AM Tvrtko Ursulin wrote: > > > > From: Tvrtko Ursulin > > > > Convert fdinfo memory stats to use the common drm_print_memory_stats > > helper. > > > > This achieves alignment with the common keys as documented i

Re: [PATCH 1/2] Documentation/gpu: Document the situation with unqualified drm-memory-

2024-08-21 Thread Alex Deucher
On Tue, Aug 13, 2024 at 9:57 AM Tvrtko Ursulin wrote: > > From: Tvrtko Ursulin > > Currently it is not well defined what is drm-memory- compared to other > categories. > > In practice the only driver which emits these keys is amdgpu and in them > exposes the current resident buffer object memory

Re: [PATCH v5 0/4] drm: Minimum backlight overrides and implementation for amdgpu

2024-08-21 Thread Mario Limonciello
On 8/18/2024 01:56, Thomas Weißschuh wrote: The value of "min_input_signal" returned from ATIF on a Framework AMD 13 is "12". This leads to a fairly bright minimum display backlight. Introduce a quirk to override "min_input_signal" to "0" which leads to a much lower minimum brightness, which is

Re: [PATCH 2/2] drm/amdgpu: Use drm_print_memory_stats helper from fdinfo

2024-08-21 Thread Alex Deucher
On Tue, Aug 13, 2024 at 9:57 AM Tvrtko Ursulin wrote: > > From: Tvrtko Ursulin > > Convert fdinfo memory stats to use the common drm_print_memory_stats > helper. > > This achieves alignment with the common keys as documented in > drm-usage-stats.rst, adding specifically drm-total- key the driver

Re: [PATCH v4 3/4] dt-bindings: display: rockchip: Add schema for RK3588 HDMI TX Controller

2024-08-21 Thread Cristian Ciocaltea
On 8/21/24 6:07 PM, Conor Dooley wrote: > On Tue, Aug 20, 2024 at 11:12:45PM +0300, Cristian Ciocaltea wrote: >> On 8/20/24 7:14 PM, Conor Dooley wrote: >>> On Tue, Aug 20, 2024 at 03:37:44PM +0300, Cristian Ciocaltea wrote: On 8/19/24 7:53 PM, Conor Dooley wrote: > On Mon, Aug 19, 2024 at

Re: [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static

2024-08-21 Thread Alex Deucher
Applied 1-4. Alex On Wed, Aug 21, 2024 at 2:33 AM Jinjie Ruan wrote: > > The sparse tool complains as follows: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c:6853:56: > warning: > symbol 'core_dcn4_g6_temp_read_blackout_table' was not declar

Re: [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static

2024-08-21 Thread Alex Deucher
On Wed, Aug 21, 2024 at 2:33 AM Jinjie Ruan wrote: > > The sparse tool complains as follows: > > drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:1071:22: > warning: > symbol 'dcn35_fpga_funcs' was not declared. Should it be static? > > This symbol is not used outsid

Re: [PATCH RESEND] drm/amd/display: avoid using null object of framebuffer

2024-08-21 Thread Alex Deucher
On Wed, Aug 21, 2024 at 3:45 AM Ma Ke wrote: > > Instead of using state->fb->obj[0] directly, get object from framebuffer > by calling drm_gem_fb_get_obj() and return error code when object is > null to avoid using null object of framebuffer. > > Cc: sta...@vger.kernel.org > Fixes: 5d945cbcd4b1 ("

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

2024-08-21 Thread Gustavo A. R. Silva
Use the `DEFINE_RAW_FLEX()` helper for an on-stack definition of a flexible structure where the size of the flexible-array member is known at compile-time, and refactor the rest of the code, accordingly. So, with this, fix the following warning: drivers/gpu/drm/nouveau/dispnv50/disp.c:779:47: war

Re: [PATCH 2/3] drm/fourcc: define Intel Xe2 related tile4 ccs modifiers

2024-08-21 Thread Maarten Lankhorst
Acked-by: Maarten Lankhorst Den 2024-08-17 kl. 02:06, skrev Lucas De Marchi: > On Fri, Aug 16, 2024 at 02:52:28PM GMT, Juha-Pekka Heikkila wrote: >> Add Tile4 type ccs modifiers to indicate presence of compression on Xe2. >> Here is defined I915_FORMAT_MOD_4_TILED_LNL_CCS which is meant for >> in

[PATCH V3] video/aperture: optionally match the device in sysfb_disable()

2024-08-21 Thread Alex Deucher
In aperture_remove_conflicting_pci_devices(), we currently only call sysfb_disable() on vga class devices. This leads to the following problem when the pimary device is not VGA compatible: 1. A PCI device with a non-VGA class is the boot display 2. That device is probed first and it is not a VGA

Re: [PATCH v2 13/86] drm/hisilicon/kirin: Run DRM default client setup

2024-08-21 Thread John Stultz
On Wed, Aug 21, 2024 at 6:04 AM Thomas Zimmermann wrote: > > Call drm_client_setup() to run the kernel's default client setup > for DRM. Set fbdev_probe in struct drm_driver, so that the client > setup can start the common fbdev client. > > The kirin driver specifies a preferred color mode of 32.

Re: [RFC PATCH 7/7] media: i2c: tc358743: export InfoFrames to debugfs

2024-08-21 Thread Hans Verkuil
On 21/08/2024 18:12, Dave Stevenson wrote: > Hi Hans > > This is a very useful little series - thanks. > > On Wed, 21 Aug 2024 at 15:16, Hans Verkuil wrote: >> >> Export InfoFrames to debugfs. > > I had a tc358743 to hand, so thought this warranted a quick test. > I think you have an off-by-one

[pull] amdgpu drm-fixes-6.11

2024-08-21 Thread Alex Deucher
Hi Dave, Sima, Fixes for 6.11. The following changes since commit fee9d135e2fd5963a7f466cd1ef2060731a1ab29: Merge tag 'mediatek-drm-fixes-20240805' of https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux into drm-fixes (2024-08-16 13:16:47 +1000) are available in the Git repos

Re: [PATCH v2 47/86] drm/vc4: Run DRM default client setup

2024-08-21 Thread Dave Stevenson
On Wed, 21 Aug 2024 at 14:04, Thomas Zimmermann wrote: > > Call drm_client_setup_with_fourcc() to run the kernel's default client > setup for DRM. Set fbdev_probe in struct drm_driver, so that the client > setup can start the common fbdev client. > > v2: > - use drm_client_setup_with_fourcc() > >

Re: [PATCH net-next v19 03/13] netdev: support binding dma-buf to netdevice

2024-08-21 Thread Taehee Yoo
On Thu, Aug 22, 2024 at 12:36 AM Mina Almasry wrote: > > On Wed, Aug 21, 2024 at 5:15 AM Taehee Yoo wrote: > > > > On Tue, Aug 20, 2024 at 1:01 PM Mina Almasry wrote: > > > > > > On Mon, Aug 19, 2024 at 6:53 PM Jakub Kicinski wrote: > > > > > > > > On Mon, 19 Aug 2024 00:44:27 +0900 Taehee Yoo

Re: [PATCH v2 07/11] dt-bindings: chrome: Add ports to google,cros-ec-typec for DP altmode

2024-08-21 Thread Lee Jones
On Wed, 14 Aug 2024, Stephen Boyd wrote: > Add a DT graph binding to google,cros-ec-typec so that it can combine > DisplayPort (DP) and USB SuperSpeed (SS) data into a USB type-c endpoint > that is connected to the usb-c-connector node's SS endpoint. This also > allows us to connect the DP and USB

Re: [RFC PATCH 7/7] media: i2c: tc358743: export InfoFrames to debugfs

2024-08-21 Thread Dave Stevenson
Hi Hans This is a very useful little series - thanks. On Wed, 21 Aug 2024 at 15:16, Hans Verkuil wrote: > > Export InfoFrames to debugfs. I had a tc358743 to hand, so thought this warranted a quick test. I think you have an off-by-one on the length that this exposes. log_status is giving me st

Re: [PATCH 4/7] drm/msm/A6xx: Implement preemption for A7XX targets

2024-08-21 Thread Connor Abbott
On Mon, Aug 19, 2024 at 9:09 PM Akhil P Oommen wrote: > > On Thu, Aug 15, 2024 at 08:26:14PM +0200, Antonino Maniscalco wrote: > > This patch implements preemption feature for A6xx targets, this allows > > the GPU to switch to a higher priority ringbuffer if one is ready. A6XX > > hardware as such

Re: [PATCH net-next v19 03/13] netdev: support binding dma-buf to netdevice

2024-08-21 Thread Mina Almasry
On Wed, Aug 21, 2024 at 5:15 AM Taehee Yoo wrote: > > On Tue, Aug 20, 2024 at 1:01 PM Mina Almasry wrote: > > > > On Mon, Aug 19, 2024 at 6:53 PM Jakub Kicinski wrote: > > > > > > On Mon, 19 Aug 2024 00:44:27 +0900 Taehee Yoo wrote: > > > > > @@ -9537,6 +9540,10 @@ static int dev_xdp_attach(stru

Re: [PATCH v2 27/86] drm/meson: Run DRM default client setup

2024-08-21 Thread Neil Armstrong
On 21/08/2024 14:59, Thomas Zimmermann wrote: Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The meson driver specifies a preferred color mode of 32. As this is the defaul

Re: [PATCH v4 3/4] dt-bindings: display: rockchip: Add schema for RK3588 HDMI TX Controller

2024-08-21 Thread Conor Dooley
On Tue, Aug 20, 2024 at 11:12:45PM +0300, Cristian Ciocaltea wrote: > On 8/20/24 7:14 PM, Conor Dooley wrote: > > On Tue, Aug 20, 2024 at 03:37:44PM +0300, Cristian Ciocaltea wrote: > >> On 8/19/24 7:53 PM, Conor Dooley wrote: > >>> On Mon, Aug 19, 2024 at 01:29:30AM +0300, Cristian Ciocaltea wrote

Re: [PATCH v5] drm/i915/hwmon: expose fan speed

2024-08-21 Thread Andi Shyti
> > > + /* > > > + * HW register value is accumulated count of pulses from > > > + * PWM fan with the scale of 2 pulses per rotation. > > > + */ > > > + rotations = pulses / 2; > > > + > > > + time = jiffies_delta_to_msecs(time_now - fi->time_prev); > > > + if (unlikely(!time)) { > > > +

  1   2   3   >