[PATCH 7/7] drm/amd/swsmu: support smu block discovery for smu v14

2024-04-13 Thread Alex Deucher
From: Kenneth Feng Support for smu ip block add for SMU v14. Signed-off-by: Kenneth Feng Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

[PATCH 4/7] drm/amd/swsmu: add pptable header for smu v14_0_2

2024-04-13 Thread Alex Deucher
From: Likun Gao Add pptable header for smu v14_0_2. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- .../amd/pm/swsmu/inc/smu_v14_0_2_pptable.h| 164 ++ 1 file changed, 164 insertions(+) create mode 100644

[PATCH 2/7] drm/amd/swsmu: add smu14 driver if file

2024-04-13 Thread Alex Deucher
From: Kenneth Feng Add initial smu14 driver if file v2: squash in updates (Alex) v3: squash in updates (Alex) v4: squash in updates (Alex) Signed-off-by: Kenneth Feng Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- .../swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h | 1836

[PATCH 5/7] drm/amd/swsmu: add smu v14_0_2 support

2024-04-13 Thread Alex Deucher
From: Likun Gao Add initial support for smu v14_0_2. v2: fix warnings (Alex) v3: squash in various fixes (Alex) v4: squash in various fixes (Alex) v5: remove hardcoded pptable id (Alex) v6: update fw version (Alex) v7: squash in more updates (Alex) v8: rebase, squash in pptable override

[PATCH 6/7] drm/amd/swsmu: support SMU_14_0_2 ppt_funcs

2024-04-13 Thread Alex Deucher
From: Likun Gao Add smu v14_0_2 ppt fucs support. v2: squash in updates (Alex) Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 3/7] drm/amd/swsmu: add smu v14_0_2 ppsmc file

2024-04-13 Thread Alex Deucher
From: Kenneth Feng Add initial smu v14_0_2 ppsmc file v2: Squash in updates (Alex) v3: Squash in updates (Alex) Signed-off-by: Kenneth Feng Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- .../pm/swsmu/inc/pmfw_if/smu_v14_0_2_ppsmc.h | 140 ++ 1 file changed, 140

[PATCH 1/7] drm/amd/swsmu: add smu14 ip support

2024-04-13 Thread Alex Deucher
From: Kenneth Feng Add initial swSMU support for smu 14 series ASIC. v2: rebase (Alex) Signed-off-by: Kenneth Feng Signed-off-by: Likun Gao Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h | 3 +-

[PATCH 1/2] drm/amdgpu: Load ipkeymgr drv for psp v14

2024-04-13 Thread Alex Deucher
From: Hawking Zhang while DBG_DRV is renamed to HAD_DRV for psp v14, part of its APIs/functionality is moved to a new component named Ipkeymgr_Drv. Signed-off-by: Hawking Zhang Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 15

[PATCH 2/2] drm/amdgpu: rename DBG_DRV to HAD_DRV for psp v14

2024-04-13 Thread Alex Deucher
From: Hawking Zhang Add a psp bl command enum for HAD_DRV. Signed-off-by: Hawking Zhang Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 1 + drivers/gpu/drm/amd/amdgpu/psp_v14_0.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)

Re: [PATCH] drm/amdgpu: replace tmz flag into buffer flag

2024-04-13 Thread Alex Deucher
On Fri, Apr 12, 2024 at 8:17 AM Min, Frank wrote: > > [AMD Official Use Only - General] > > From: Frank Min > > Replace tmz flag into buffer flag to make it easier to understand and extend > > Signed-off-by: Likun Gao > Signed-off-by: Frank Min Before you push this to amd-staging-drm-next,

[pull] amdgpu, amdkfd, radeon drm-next-6.10

2024-04-13 Thread Alex Deucher
Hi Dave, Sima, New stuff for 6.10. The following changes since commit bc55c344b06f7e6f99eb92d393ff0a84c1532514: drm/amdgpu/pm: Don't use OD table on Arcturus (2024-03-20 13:36:29 -0400) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git

Re: [PATCH v2 2/2] drm/amdgpu: Add support of gfx10 register dump

2024-04-13 Thread Alex Deucher
On Sat, Apr 13, 2024 at 12:35 AM Khatri, Sunil wrote: > > [AMD Official Use Only - General] > > -Original Message- > From: Alex Deucher > Sent: Saturday, April 13, 2024 1:56 AM > To: Khatri, Sunil > Cc: Khatri, Sunil ; Deucher, Alexander > ; Koenig, Christian ; >

[PATCH] drm/amdkfd: fix NULL pointer dereference

2024-04-13 Thread vitaly.prosyak
From: Vitaly Prosyak [ +0.006038] BUG: kernel NULL pointer dereference, address: 0028 [ +0.006969] #PF: supervisor read access in kernel mode [ +0.005139] #PF: error_code(0x) - not-present page [ +0.005139] PGD 0 P4D 0 [ +0.002530] Oops: [#1] PREEMPT SMP NOPTI [

Re: [PATCH] drm/amd: Only allow one entity to control ABM

2024-04-13 Thread Gergo Koteles
Hi> > ABM will reduce the backlight and compensate by adjusting brightness and > contrast of the image. It has 5 levels: 0, 1, 2, 3, 4. 0 means off. 4 means > maximum backlight reduction. IMO, 1 and 2 look okay. 3 and 4 can be quite > impactful, both to power and visual fidelity. I tried

Re: [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible

2024-04-13 Thread Pekka Paalanen
On Fri, 12 Apr 2024 10:28:52 -0400 Leo Li wrote: > On 2024-04-12 04:03, Pekka Paalanen wrote: > > On Thu, 11 Apr 2024 16:33:57 -0400 > > Leo Li wrote: > > ... > >> That begs the question of what can be nailed down and what can left to > >> independent implementation. I guess things like

Re: [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible

2024-04-13 Thread Pekka Paalanen
On Thu, 11 Apr 2024 16:33:57 -0400 Leo Li wrote: > On 2024-04-04 10:22, Marius Vlad wrote: > > On Thu, Apr 04, 2024 at 09:59:03AM -0400, Harry Wentland wrote: > >> > > Hi all, > >> > >> On 2024-04-04 06:24, Pekka Paalanen wrote: > >>> On Wed, 3 Apr 2024 17:32:46 -0400 > >>> Leo Li