[PATCH v3 3/6] drm/radeon: use variable flags as parameter

2024-06-30 Thread Wu Hoi Pok
To be consistent with amdgpu driver, use "flags" as the parameter because it is already assigned as "ent->driver_data". Signed-off-by: Wu Hoi Pok --- drivers/gpu/drm/radeon/radeon_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/dri

RE: [PATCH V2] drm/amdgpu: sysfs node disable query error count during gpu reset

2024-06-30 Thread Yang, Stanley
[AMD Official Use Only - AMD Internal Distribution Only] Hi Thomas, I think we can optimize the amdgpu_ras_set_error_query_ready(adev, true) function calling during GPU recovery, amdgpu_ras_set_error_query_ready(tmp_adev, false) -> recovery start -> recovery done -> amdgpu_ras_set_error_query_r

[PATCH V2] drm/amdgpu: sysfs node disable query error count during gpu reset

2024-06-30 Thread YiPeng Chai
Sysfs node disable query error count during gpu reset. Signed-off-by: YiPeng Chai --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c in

[PATCH] drm/amdgpu: restore dcc bo tilling configs while moving

2024-06-30 Thread Min, Frank
[AMD Official Use Only - AMD Internal Distribution Only] From: Frank Min While moving buffer which as dcc tiling config, it is needed to restore its original dcc tiling. 1. extend copy flag to cover tiling bits 2. add logic to restore original dcc tiling config Signed-off-by: Frank Min ---

[PATCH AUTOSEL 6.6 10/12] drm/amdgpu: Indicate CU havest info to CP

2024-06-30 Thread Sasha Levin
From: Harish Kasiviswanathan [ Upstream commit 49c9ffabde555c841392858d8b9e6cf58998a50c ] To achieve full occupancy CP hardware needs to know if CUs in SE are symmetrically or asymmetrically harvested v2: Reset is_symmetric_cus for each loop Signed-off-by: Harish Kasiviswanathan Acked-by: Ale

[PATCH AUTOSEL 6.9 17/20] drm/amdgpu: init TA fw for psp v14

2024-06-30 Thread Sasha Levin
From: Likun Gao [ Upstream commit ed5a4484f074aa2bfb1dad99ff3628ea8da4acdc ] Add support to init TA firmware for psp v14. Signed-off-by: Likun Gao Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/psp_v14_0.c | 5 + 1 file chan

[PATCH AUTOSEL 6.9 16/20] drm/amd/display: change dram_clock_latency to 34us for dcn35

2024-06-30 Thread Sasha Levin
From: Paul Hsieh [ Upstream commit 6071607bfefefc50a3907c0ba88878846960d29a ] [Why & How] Current DRAM setting would cause underflow on customer platform. Modify dram_clock_change_latency_us from 11.72 to 34.0 us as per recommendation from HW team Reviewed-by: Nicholas Kazlauskas Acked-by: Za

[PATCH AUTOSEL 6.9 15/20] drm/amd/display: Change dram_clock_latency to 34us for dcn351

2024-06-30 Thread Sasha Levin
From: Daniel Miess [ Upstream commit c60e20f13c27662de36cd5538d6299760780db52 ] [Why] Intermittent underflow observed when using 4k144 display on dcn351 [How] Update dram_clock_change_latency_us from 11.72us to 34us Reviewed-by: Nicholas Kazlauskas Acked-by: Zaeem Mohamed Signed-off-by: Dani

[PATCH AUTOSEL 6.9 14/20] drm/amdgpu: Indicate CU havest info to CP

2024-06-30 Thread Sasha Levin
From: Harish Kasiviswanathan [ Upstream commit 49c9ffabde555c841392858d8b9e6cf58998a50c ] To achieve full occupancy CP hardware needs to know if CUs in SE are symmetrically or asymmetrically harvested v2: Reset is_symmetric_cus for each loop Signed-off-by: Harish Kasiviswanathan Acked-by: Ale

[PATCH] drm/amd/pm: avoid to load smu firmware for APUs

2024-06-30 Thread Tim Huang
Certain call paths still load the SMU firmware for APUs, which needs to be skipped. Signed-off-by: Tim Huang --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 8 +++- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 8 +++- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 8 +++- drivers/gpu/drm/amd/pm/a

[PATCH 7/7] drm/amdgpu: add firmware for PSP IP v14.0.4

2024-06-30 Thread Tim Huang
This patch is to add firmware for PSP 14.0.4. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v13_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v13_0.c index 407477b895d1..1

[PATCH 5/7] drm/amdgpu: add SMU IP v14.0.4 discovery support

2024-06-30 Thread Tim Huang
This patch is to add SMU 14.0.4 support Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index 43

[PATCH 3/7] drm/amd/pm: smu v14.0.4 reuse smu v14.0.0 dpmtable

2024-06-30 Thread Tim Huang
From: Li Ma Replace IP VERSION with smu->is_apu in if condition. And the dpmtable of smu v14.0.4 is same as smu v14.0.0. Signed-off-by: Li Ma Reviewed-by: Yifan Zhang --- .../gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c| 18 --- .../drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c | 30 +++

[PATCH 6/7] drm/amdgpu: enable mode2 reset for SMU IP v14.0.4

2024-06-30 Thread Tim Huang
Set the default reset method to mode2 for SMU 14.0.4. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/soc21.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index b43c50f1c7ad..6cc86d1

[PATCH 4/7] drm/amd/pm: add SMU IP v14.0.4 support

2024-06-30 Thread Tim Huang
This patch is to add SMU 14.0.4 support. Signed-off-by: Li Ma Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/pm

[PATCH 2/7] drm/amdgpu: add PSP IP v14.0.4 discovery support

2024-06-30 Thread Tim Huang
This patch is to add PSP 14.0.4 support. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index 8

[PATCH 1/7] drm/amdgpu: add PSP IP v14.0.4 support

2024-06-30 Thread Tim Huang
This patch is to add PSP 14.0.4 support. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/

[PATCH 2/3] drm/amdgpu: add VPE IP v6.1.3 discovery support

2024-06-30 Thread Tim Huang
This patch is to add VPE 6.1.3 support. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index c9

[PATCH 3/3] drm/amdgpu: add firmware for VPE IP v6.1.3

2024-06-30 Thread Tim Huang
This patch is to add firmware for VPE 6.1.3. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/vpe_v6_1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vpe_v6_1.c b/drivers/gpu/drm/amd/amdgpu/vpe_v6_1.c index 09315dd5a1ec..4587688

[PATCH 1/3] drm/amdgpu: add VPE IP v6.1.3 support

2024-06-30 Thread Tim Huang
This patch is to add VPE 6.1.3 support. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c index bad232859972..5acd20

[PATCH 1/2] drm/amdgpu: add NBIO IP v7.11.3 discovery support

2024-06-30 Thread Tim Huang
This patch is to add NBIO 7.11.3 support. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index

[PATCH 2/2] drm/amdgpu: Add NBIO IP v7.11.3 support

2024-06-30 Thread Tim Huang
Enable setting soc21 common clockgating for NBIO 7.11.3. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/soc21.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index b04c763015d3..b43c

[PATCH 3/3] drm/amdgpu: add firmware for SDMA IP v6.1.2

2024-06-30 Thread Tim Huang
This patch is to add firmware for SDMA 6.1.2. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c index c833b6b8373b..dab

[PATCH 2/3] drm/amdkfd: add KFD support for SDMA IP v6.1.2

2024-06-30 Thread Tim Huang
Enable KFD setting SDMA info for SDMA 6.1.2. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c index e6debd63a116.

[PATCH 1/3] drm/amdgpu: add SDMA IP v6.1.2 discovery support

2024-06-30 Thread Tim Huang
This patch is to add SDMA 6.1.2 support. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index 3

[PATCH 7/7] drm/amdgpu: add firmware for GC IP v11.5.2

2024-06-30 Thread Tim Huang
This patch is to add firmware for GC 11.5.2. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 4 drivers/gpu/drm/amd/amdgpu/imu_v11_0.c | 1 + drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/drivers

[PATCH 5/7] drm/amdgpu: add GC IP v11.5.2 to GC 11.5.0 family

2024-06-30 Thread Tim Huang
This patch is to add GC 11.5.2 to GC 11.5.0 family. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang Reviewed-by: Veerabadhran Gopalakrishnan --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery

[PATCH 6/7] drm/amdkfd: add KFD support for GC IP v11.5.2

2024-06-30 Thread Tim Huang
Enable KFD for GC 11.5.2. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 1 + drivers/gpu/drm/amd/amdkfd/kfd_device.c | 5 + 2 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kf

[PATCH 3/7] drm/amdgpu: add tmz support for GC IP v11.5.2

2024-06-30 Thread Tim Huang
Add tmz support for GC 11.5.2. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c index 3a7622611916..c02659025656 10

[PATCH 4/7] drm/amdgpu: add GC IP v11.5.2 soc21 support

2024-06-30 Thread Tim Huang
Add CG and PG flags for GFX IP v11.5.2 and PG flags for VCN IP v4.0.5. Signed-off-by: Saleemkhan Jamadar Signed-off-by: Li Ma Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang Reviewed-by: Veerabadhran Gopalakrishnan --- drivers/gpu/drm/amd/amdgpu/soc21.c | 26 ++ 1 f

[PATCH 2/7] drm/amdgpu: add GFXHUB IP v11.5.2 support

2024-06-30 Thread Tim Huang
This patch is to add GFXHUB 11.5.2 support. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c index cad883783834..b88

[PATCH 1/7] drm/amdgpu: initialize GC IP v11.5.2

2024-06-30 Thread Tim Huang
Initialize GC 11.5.2 and set gfx hw configuration. Signed-off-by: Tim Huang Reviewed-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11

amdgpu UBSAN warnings in 6.10.0-rc5

2024-06-30 Thread Jeff Layton
I've been testing some vfs patches (multigrain timestamps) on my personal desktop with a 6.10.0-rc5-ish kernel, and have hit a number of warnings in the amdgpu driver, including a UBSAN warning that looks like a potential array overrun: [8.772608] [ cut here ] [8.77