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

2024-08-22 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 1/6] drm/amd/display: Use max/min macro

2024-08-22 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

Re: two AMD cards failing with radeon driver

2024-08-22 Thread Krister Swenson
Sorry for the spam folks. I didn't realize that the new amdgpu driver would work on that old hardware. I'm using that driver now, hoping it will be more stable than radeon. I'm not sure why Ubuntu is set up to use the radeon driver by default. kms On Wed, Aug 21, 2024 at 1:52 PM Krister Swenson

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

2024-08-22 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] drivers:smumgr:Use min macro

2024-08-22 Thread Yang Ruibin
Instead of using the min() implementation of the ternary operator, use real macros. Signed-off-by: Yang Ruibin <11162...@vivo.com> --- drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c | 5 + drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c | 7 ++- drivers/gpu/drm/amd

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

2024-08-22 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 v5 2/4] drm/amd/display: Add support for minimum backlight quirk

2024-08-22 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

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

2024-08-22 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 4/6] drm/amd/display: Use max/min macro

2024-08-22 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] drm/amd/display: Fix wrong assignment in dce100_resource_construct()

2024-08-22 Thread Yuesong Li
Fix the assignment for i2c_speed_in_khz_hdcp. Fixex: commit b15cde19c32d ("drm/amd/display: Add i2c speed arbitration for dc_i2c and hdcp_i2c") Signed-off-by: Yuesong Li --- .../gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

Re: [PATCH v2 16/86] drm/ili9225: Run DRM default client setup

2024-08-22 Thread David Lechner
On 8/21/24 7:59 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. > > Signed-off-by: Thomas Zimmermann > Cc: David Lechner > --- Acked-by:

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

2024-08-22 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 0/6] drm/amd/display: Use max/min macro

2024-08-22 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 2/6] drm/amd/display: Use max/min macro

2024-08-22 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

two AMD cards failing with radeon driver

2024-08-22 Thread Krister Swenson
Hello all, I couldn't find a list to send mail to concerning the radeon driver. Is this an OK place? I'm desperate for help, as I have crippling issues with my AMD cards since updating to Ubuntu 24.04. This is my work machine, and it's seriously hampering my productivity. I have a bit of experie

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

2024-08-22 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 0/6] drm/amd/display: Use max/min macro

2024-08-22 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 v2 13/86] drm/hisilicon/kirin: Run DRM default client setup

2024-08-22 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.

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

2024-08-22 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

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

2024-08-22 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

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

2024-08-22 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 6/6] drm/amd/display: Use max/min macro

2024-08-22 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 6/6] drm/amd/display: Use max/min macro

2024-08-22 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

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

2024-08-22 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. > > >

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

2024-08-22 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

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

2024-08-22 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

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

2024-08-22 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

Re: [PATCH v2 44/86] drm/st7586: Run DRM default client setup

2024-08-22 Thread David Lechner
On 8/21/24 7:59 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. > > Signed-off-by: Thomas Zimmermann > Cc: David Lechner > --- Acked-by:

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

2024-08-22 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 4/6] drm/amd/display: Use max/min macro

2024-08-22 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] drivers:smumgr:Variable names should be consistent with other modules

2024-08-22 Thread Yang Ruibin
The variable highest_pcie_level_enabled is named hightest_pcie_level_enabled in other modules. Please ensure the consistency of variable naming and use min macros instead of the triadic operator. Signed-off-by: Yang Ruibin <11162...@vivo.com> --- .../amd/pm/powerplay/smumgr/iceland_smumgr.c

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

2024-08-22 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 2/6] drm/amd/display: Use max/min macro

2024-08-22 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 -next v2] drm/amd/display: Remove unused dcn35_fpga_funcs

2024-08-22 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

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

2024-08-22 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-22 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 -next v2 RESEND] drm/amd/display: Remove unused dcn35_fpga_funcs

2024-08-22 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 v1 5/6] drm/amd/display: Use max/min macro

2024-08-22 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 2/6] drm/amd/display: Use max/min macro

2024-08-22 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 5/6] drm/amd/display: Use max/min macro

2024-08-22 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 1/6] drm/amd/display: Use max/min macro

2024-08-22 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

Re: [PATCH v2 45/86] drm/st7735r: Run DRM default client setup

2024-08-22 Thread David Lechner
On 8/21/24 7:59 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. > > Signed-off-by: Thomas Zimmermann > Cc: David Lechner > --- Acked-by:

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

2024-08-22 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 1/3] drm/amdgpu: re-work VM syncing

2024-08-22 Thread Friedrich Vock
On 21.08.24 22:46, Felix Kuehling wrote: On 2024-08-21 08:03, Christian König wrote: Rework how VM operations synchronize to submissions. Provide an amdgpu_sync container to the backends instead of an reservation object and fill in the amdgpu_sync object in the higher layers of the code. No in

Re: [PATCH v2 40/86] drm/stm: Run DRM default client setup

2024-08-22 Thread Raphael Gallais-Pou
On 8/21/24 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. > > v2: > - use drm_client_setup_with_fourcc() > > Signed-off-by

Re: [PATCH 2/3] drm/amdgpu: sync to KFD fences before clearing PTEs

2024-08-22 Thread Christian König
Am 21.08.24 um 22:01 schrieb Felix Kuehling: On 2024-08-21 08:03, Christian König wrote: This patch tries to solve the basic problem we also need to sync to the KFD fences of the BO because otherwise it can be that we clear PTEs while the KFD queues are still running. This is going to trigger

[PATCH v3] drm/amdgpu/gfx9.4.3: Implement compute pipe reset

2024-08-22 Thread Prike Liang
Implement the compute pipe reset and driver will fallback to pipe reset when queue reset failed. Signed-off-by: Prike Liang --- v3: Use the dev log and filer out the gfx9.4.4 pipe reset support. v2: Convert the GC logic instance to physical instance in the register accessing process and use t

[PATCH] drm/amdgpu/mes: add mes mapping legacy queue switch

2024-08-22 Thread Jack Xiao
For mes11 old firmware has issue to map legacy queue, add a flag to switch mes to map legacy queue. Signed-off-by: Jack Xiao --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 1 + drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 49 +

[PATCH] drm/amd/display: let update_planes_and_stream_state define minimal state

2024-08-22 Thread Melissa Wen
Artifacts appear when using dc->current_state as the minimal transition state in a scenario where update_planes_and_stream_state() would set the context as the new one because the update type is FULL. To prevent those artifacts, instead of defining the minimal state according to plane addition (cur

Re: [PATCH] drm/amdgpu/mes: add mes mapping legacy queue switch

2024-08-22 Thread Alex Deucher
On Thu, Aug 22, 2024 at 6:55 AM Jack Xiao wrote: > > For mes11 old firmware has issue to map legacy queue, > add a flag to switch mes to map legacy queue. > Reported-by: Andrew Worsley Link: https://lists.freedesktop.org/archives/amd-gfx/2024-August/112773.html > Signed-off-by: Jack Xiao > ---

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

2024-08-22 Thread Mario Limonciello
On 8/22/2024 01:12, Thomas Weißschuh wrote: 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 thr

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

2024-08-22 Thread Mario Limonciello
On 8/22/2024 01:14, Thomas Weißschuh wrote: 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'? Loo

Re: [PATCH v2 65/86] drm/amdgpu: Run DRM default client setup

2024-08-22 Thread Hamza Mahfooz
On 8/21/24 09:00, 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 amdgpu driver specifies a preferred color mode depending on the available vid

Re: [PATCH] drm/amdgpu: fix OLAND card ip_init failed during kdump caputrue kernel boot

2024-08-22 Thread Mario Limonciello
On 7/23/2024 04:42, Lu Yao wrote: [Why] When running kdump test on a machine with R7340 card, a hang is caused due to the failure of 'amdgpu_device_ip_init()', error message as follows: '[drm:amdgpu_device_ip_init [amdgpu]] *ERROR* hw_init of IP block failed -22' '[drm:uvd_v3_1_hw_init [

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

2024-08-22 Thread 于佼良
在 2024/8/22 14:57, 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

[PATCH v1] drivers:smumgr:Variable names should be consistent

2024-08-22 Thread Yang Ruibin
The variable highest_pcie_level_enabled is named hightest_pcie_level_enabled in other modules. Please ensure the consistency of variable naming and use min macros instead of the triadic operator. Signed-off-by: Yang Ruibin <11162...@vivo.com> --- .../drm/amd/pm/powerplay/smumgr/tonga_smumgr.c |

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

2024-08-22 Thread Ma Ke
Alex Deucher wrote: > 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

Re: [PATCH AUTOSEL 5.10 04/38] drm/amdgpu: fix uninitialized scalar variable warning

2024-08-22 Thread Pavel Machek
Hi! > From: Tim Huang > > [ Upstream commit 9a5f15d2a29d06ce5bd50919da7221cda92afb69 ] > > Clear warning that uses uninitialized value fw_size. This is queued for 5.15 and 6.10, but not 6.1, for example. Mistake? Best regards, Pa

Re: [PATCH v1] drivers:smumgr:Use min macro

2024-08-22 Thread Yang Ruibin
Sorry, please ignore this patch. Because the corresponding header file is not included, there may be compilation errors. 在 2024/8/22 14:57, Yang Ruibin 写道: Instead of using the min() implementation of the ternary operator, use real macros. Signed-off-by: Yang Ruibin <11162...@vivo.com> ---

Re: [PATCH] drm/amdgpu: Surface svm_attr_gobm, a RW module parameter

2024-08-22 Thread Philip Yang
On 2024-08-21 19:22, Ramesh Errabolu wrote: KFD's design of unified memory (UM) does not allow users to configure the size of buffer used in migrating buffer either from Sysmem to VRAM or vice versa. This is not true, app can change range granularit

Re: [PATCH v2 65/86] drm/amdgpu: Run DRM default client setup

2024-08-22 Thread Alex Deucher
On Wed, Aug 21, 2024 at 9:06 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 amdgpu driver specifies a preferred color mode depend

Re: [PATCH v2 1/4] drm/amdkfd: Document and define SVM events message macro

2024-08-22 Thread James Zhu
On 2024-07-30 16:15, Philip Yang wrote: Document how to use SMI system management interface to enable and receive SVM events. Document SVM event triggers. Define SVM events message string format macro that could be used by user mode for sscanf to parse the event. Add it to uAPI header file to ma

Re: [PATCH v2 3/4] drm/amdkfd: Increase SMI event fifo size

2024-08-22 Thread James Zhu
On 2024-07-30 16:15, Philip Yang wrote: SMI event fifo size 1KB was enough to report GPU vm fault or reset [JZ] There is a typo here. it should be NOT enough. event, increase it to 8KB to store about 100 migrate events, less chance to drop the migrate events if lots of migration happened in t

Re: [PATCH] drm/amd/pm: Drop unsupported features on smu v14_0_2

2024-08-22 Thread Alex Deucher
On Wed, Aug 21, 2024 at 10:12 PM Candice Li wrote: > > Drop unsupported features on smu v14_0_2. > > Signed-off-by: Candice Li > Reviewed-by: Yang Wang Acked-by: Alex Deucher > --- > .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 47 --- > 1 file changed, 47 deletions(-) > >

Re: [PATCH 1/4] new helper: drm_gem_prime_handle_to_dmabuf()

2024-08-22 Thread Thomas Zimmermann
Hi Am 12.08.24 um 08:59 schrieb Al Viro: Once something had been put into descriptor table, the only thing you can do with it is returning descriptor to userland - you can't withdraw it on subsequent failure exit, etc. You certainly can't count upon it staying in the same slot of descriptor tab

Re: [PATCH v2 4/4] drm/amdkfd: SMI report dropped event count

2024-08-22 Thread James Zhu
On 2024-07-30 16:15, Philip Yang wrote: Add new SMI event to report the dropped event count when the event kfifo is full. When the kfifo has space for two events, generate a dropped event record to report how many events were dropped, together with the next event to add to kfifo. After readin

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

2024-08-22 Thread Javier Martinez Canillas
Alex Deucher writes: Hello Alex, > 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. T

Re: [PATCH] drm/amdgpu: add list empty check to avoid null pointer issue

2024-08-22 Thread Michel Dänzer
On 2024-08-21 08:57, Yang Wang wrote: > Add list empty check to avoid null pointer issues in some corner cases. > - list_for_each_entry_safe() What corner cases? If the list is empty, list_for_each_entry_safe() should be mostly a no-op. -- Earthling Michel Dänzer \GNOME / Xwaylan

Re: [PATCH v6] drm/amdkfd: Change kfd/svm page fault drain handling

2024-08-22 Thread Philip Yang
On 2024-08-21 18:01, Xiaogang.Chen wrote: From: Xiaogang Chen When app unmap vm ranges(munmap) kfd/svm starts drain pending page fault and not handle any incoming pages fault of this process until a deferred work item got executed by default system wq. The

Re: [PATCH v5 20/44] drm/tests: Add a few tests around drm_fixed.h

2024-08-22 Thread kernel test robot
Hi Harry, kernel test robot noticed the following build errors: [auto build test ERROR on drm/drm-next] [also build test ERROR on drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip linus/master v6.11-rc4 next-20240822] [If

Re: [PATCH v2 1/4] drm/amdkfd: Document and define SVM events message macro

2024-08-22 Thread Philip Yang
On 2024-08-22 10:32, James Zhu wrote: On 2024-07-30 16:15, Philip Yang wrote: Document how to use SMI system management interface to enable and receive SVM events. Document SVM event triggers. Define SVM events message stri

Re: [PATCH v2 3/4] drm/amdkfd: Increase SMI event fifo size

2024-08-22 Thread Philip Yang
On 2024-08-22 10:34, James Zhu wrote: On 2024-07-30 16:15, Philip Yang wrote: SMI event fifo size 1KB was enough to report GPU vm fault or reset [JZ] There is a typo here. it should be NOT enough. It

RE: [PATCH] drm/amdkfd: fix missed queue reset on queue destroy

2024-08-22 Thread Kim, Jonathan
[Public] > -Original Message- > From: Kuehling, Felix > Sent: Wednesday, August 21, 2024 5:51 PM > To: Kim, Jonathan ; amd-gfx@lists.freedesktop.org > Cc: Kasiviswanathan, Harish ; Deucher, > Alexander > Subject: Re: [PATCH] drm/amdkfd: fix missed queue reset on queue destroy > > > On 20

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

2024-08-22 Thread Thomas Zimmermann
Am 21.08.24 um 21:11 schrieb 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.

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

2024-08-22 Thread Thomas Zimmermann
Am 21.08.24 um 21:11 schrieb 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.

[PATCH] drm/amdkfd: fix missed queue reset on queue destroy

2024-08-22 Thread Jonathan Kim
If a queue is being destroyed but causes a HWS hang on removal, the KFD may issue an unnecessary gpu reset if the destroyed queue can be fixed by a queue reset. This is because the queue has been removed from the KFD's queue list prior to the preemption action on destroy so the reset call will fai

[PATCH v4 1/3] drm/amd/display: use drm_crtc_vblank_on_config()

2024-08-22 Thread Hamza Mahfooz
Hook up drm_crtc_vblank_on_config() in amdgpu_dm. So, that we can enable PSR and other static screen optimizations more quickly, while avoiding stuttering issues that are accompanied by the following dmesg error: [drm:dc_dmub_srv_wait_idle [amdgpu]] *ERROR* Error waiting for DMUB idle: status=3

[PATCH v4 3/3] drm/amd/display: use a more lax vblank enable policy for older ASICs

2024-08-22 Thread Hamza Mahfooz
Ideally, we want to drop the legacy vblank enable for older ASICs. This should be possible now, since we can now specify how many frames we need to wait before disabling vblanking instead of being forced to either choose between no delay (which can still be buggy) and drm_vblank_offdelay (which is

[PATCH v4 2/3] drm/amd/display: use a more lax vblank enable policy for DCN35+

2024-08-22 Thread Hamza Mahfooz
Ideally, we want to enable immediate vblank disable, when possible and we should be able to do so on DCN35+, if PSR isn't supported by a given CRTC. Suggested-by: Leo Li Signed-off-by: Hamza Mahfooz --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 ++- 1 file changed, 6 insertions(

[PATCH v4 0/3] faster vblank disable

2024-08-22 Thread Hamza Mahfooz
Since, drm_crtc_vblank_on_config() was recently introduced, we want to apply laxer vblanking policies across the board, since: 1. It will allow us to shut down interrupts faster for better power savings. 2. As a payment towards tech debt, since drm_vblank_offdelay (which defaults to 5s) isn

Re: [PATCH] drm/amd/pm: Add support for new P2S table revision

2024-08-22 Thread Deucher, Alexander
[AMD Official Use Only - AMD Internal Distribution Only] Acked-by: Alex Deucher From: amd-gfx on behalf of Lijo Lazar Sent: Thursday, August 22, 2024 12:20 AM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander ; Kamal, Asad ; Kamal, Asa

Re: [PATCH v1] drivers:smumgr:Variable names should be consistent

2024-08-22 Thread Alex Deucher
On Thu, Aug 22, 2024 at 3:49 AM Yang Ruibin <11162...@vivo.com> wrote: > > The variable highest_pcie_level_enabled is named > hightest_pcie_level_enabled in other modules. hightest is a typo. It should be highest. Please fix up the misspellings instead. Alex > Please ensure the consistency of

Re: [PATCH v2 78/86] drm/radeon: Run DRM default client setup

2024-08-22 Thread Alex Deucher
On Wed, Aug 21, 2024 at 9:06 AM Thomas Zimmermann wrote: > > Rework fbdev probing to support fbdev_probe in struct drm_driver > and remove the old fb_probe callback. Provide an initializer macro > for struct drm_driver that sets the callback according to the kernel > configuration. > > Call drm_cl

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

2024-08-22 Thread Alex Deucher
Applied. Thanks! 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 > Fix

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

2024-08-22 Thread Alex Deucher
On Thu, Aug 22, 2024 at 5:20 AM Jinjie Ruan wrote: > > dcn35_fpga_funcs is not used anywhere, remove it. This will lead to warnings about unused functions. The fpga specific functions should be removed as well. I'd suggest compile testing your changes first to catch these types of warnings. Al

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

2024-08-22 Thread Alex Deucher
On Wed, Aug 21, 2024 at 8:29 PM Al Viro wrote: > > 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 desc

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

2024-08-22 Thread Alex Deucher
On Thu, Aug 22, 2024 at 2:57 AM Yu Jiaoliang wrote: > > *** 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 > dr

Re: [PATCH v4 1/3] drm/amd/display: use drm_crtc_vblank_on_config()

2024-08-22 Thread Harry Wentland
On 2024-08-22 11:58, Hamza Mahfooz wrote: > Hook up drm_crtc_vblank_on_config() in amdgpu_dm. So, that we can enable > PSR and other static screen optimizations more quickly, while avoiding > stuttering issues that are accompanied by the following dmesg error: > > [drm:dc_dmub_srv_wait_idle [am

Re: [PATCH v4 0/3] faster vblank disable

2024-08-22 Thread Harry Wentland
On 2024-08-22 11:58, Hamza Mahfooz wrote: > Since, drm_crtc_vblank_on_config() was recently introduced, we want to > apply laxer vblanking policies across the board, since: > > 1. It will allow us to shut down interrupts faster for better power >savings. > > 2. As a payment towards tech debt,

[PATCH 0/2] Fix for lightup issue on Lenovo 4k60 HDMI

2024-08-22 Thread Fangzhi Zuo
338567d176 ("drm/amd/display: Fix MST BW calculation Regression") has been merged with a mistake being fixed by "drm/amd/display: Fix a mistake in revert commit" Fix dsc enablement for Synaptics Cascaded Panamera hub is included in "drm/amd/display: Fix Synaptics Cascaded DSC Determination" Ple

[PATCH 2/2] drm/amd/display: Fix Synaptics Cascaded DSC Determination

2024-08-22 Thread Fangzhi Zuo
Synaptics Cascaded Panamera topology needs to unconditionally acquire root aux for dsc decoding. Signed-off-by: Fangzhi Zuo --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/am

[PATCH 1/2] drm/amd/display: Fix a mistake in revert commit

2024-08-22 Thread Fangzhi Zuo
[why] It is to fix in try_disable_dsc() due to misrevert patch of "drm/amd/display: Fix MST BW calculation Regression" [How] Fix restoring minimum compression bw by 'max_kbps', instead of native bw 'stream_kbps' Signed-off-by: Fangzhi Zuo --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_

[PATCH] drm/amdgpu/smu13.0.7: print index for profiles

2024-08-22 Thread Alex Deucher
Print the index for the profiles. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3543 Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0

[PATCH 0/1] DC Patches August 22, 2024

2024-08-22 Thread Zaeem Mohamed
This is an additional patch to be included in this week's promotion series: * Uses SPDX Copyright for spl_os_types.h Cc: Daniel Wheeler Zaeem Mohamed (1): drm/amdgpu/display: SPDX copyright for spl_os_types.h .../gpu/drm/amd/display/dc/spl/spl_os_types.h | 29 +++ 1 file chan

[PATCH 1/1] drm/amdgpu/display: SPDX copyright for spl_os_types.h

2024-08-22 Thread Zaeem Mohamed
Use appropriate SPDX copyright for spl_os_types.h Signed-off-by: Zaeem Mohamed --- .../gpu/drm/amd/display/dc/spl/spl_os_types.h | 29 +++ 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/spl/spl_os_types.h b/drivers/gpu/drm/amd/displ

[PATCH 1/2] drm/amdgpu: align pp_power_profile_mode with kernel docs

2024-08-22 Thread Alex Deucher
The kernel doc says you need to select manual mode to adjust this, but the code only allows you to adjust it when manual mode is not selected. Remove the manual mode check. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++ 1 file changed, 2 insertions(+), 4 d

[PATCH 2/2] drm/amdgpu/swsmu: fix ordering for setting workload_mask

2024-08-22 Thread Alex Deucher
No change in functionality for the current code, but we need to set the index properly before changing it if we ever use a non-0 index. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/am

RE: [PATCH 2/2] drm/amdgpu/swsmu: fix ordering for setting workload_mask

2024-08-22 Thread Feng, Kenneth
[AMD Official Use Only - AMD Internal Distribution Only] Series is Reviewed-by: Kenneth Feng -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Friday, August 23, 2024 10:12 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 2/2] drm/amdgpu/swsmu

RE: [PATCH] drm/amdgpu/smu13.0.7: print index for profiles

2024-08-22 Thread Feng, Kenneth
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Kenneth Feng -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Friday, August 23, 2024 5:55 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH] drm/amdgpu/smu13.0.7: print ind

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

2024-08-22 Thread kernel test robot
Hi Jinjie, kernel test robot noticed the following build warnings: [auto build test WARNING on next-20240821] url: https://github.com/intel-lab-lkp/linux/commits/Jinjie-Ruan/drm-amd-display-Remove-unused-dcn35_fpga_funcs/20240822-095139 base: next-20240821 patch link: https

  1   2   >