Re: [PATCH v1] drm/ci: uprev IGT

2024-12-12 Thread Dmitry Baryshkov
On Thu, Dec 12, 2024 at 11:36:29AM +0530, Vignesh Raman wrote: > Hi Dmitry, > > On 12/12/24 03:09, Dmitry Baryshkov wrote: > > On Wed, Dec 11, 2024 at 07:58:05PM +0530, Vignesh Raman wrote: > > > Uprev IGT to the latest version and update expectation files. > > > > > > Signed-off-by: Vignesh Rama

Re: [PATCH 11/48] drm/amdgpu/vcn: switch vcn helpers to be instance based

2024-12-12 Thread Lazar, Lijo
On 12/11/2024 4:23 AM, Alex Deucher wrote: > Pass the instance to the helpers. > > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 437 > drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 12 +- > drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 16 +-

Re: [PATCH v10 4/6] drm: consider GEM object shared when it is exported

2024-12-12 Thread Christian König
Am 11.12.24 um 17:14 schrieb Li, Yunxiang (Teddy): [Public] From: Koenig, Christian Sent: Wednesday, December 11, 2024 10:03 Am 11.12.24 um 15:02 schrieb Li, Yunxiang (Teddy): [Public] From: Koenig, Christian Sent: Wednesday, December 11, 2024 3:16 Am 10.12.24 um 18:59 schrieb Yunxiang Li:

Re: [PATCH 14/48] drm/amdgpu/vcn2.0: convert internal functions to use vcn_inst

2024-12-12 Thread Lazar, Lijo
On 12/11/2024 4:23 AM, Alex Deucher wrote: > Pass the vcn instance structure to these functions rather > than adev and the instance number. > > TODO: clean up the function internals to use the vinst state > directly rather than accessing it indirectly via adev->vcn.inst[]. > > Signed-off-by: A

[PATCH v2] drm/amd/display: Fix NULL pointer dereference in dmub_tracebuffer_show

2024-12-12 Thread Srinivasan Shanmugam
It corrects the issue by checking if 'adev->dm.dmub_srv' is NULL before accessing its 'meta_info' member. This ensures that we do not dereference a NULL pointer. Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:917 dmub_tracebuffer_show() warn:

Re: [PATCH drm-next] drm/amdgpu: simplify return statement in amdgpu_ras_eeprom_init

2024-12-12 Thread Alex Deucher
On Thu, Dec 12, 2024 at 9:18 AM Dheeraj Reddy Jonnalagadda wrote: > > Remove the logically dead code in the last return statement of > amdgpu_ras_eeprom_init. The condition res < 0 is redundant since > res is already checked for a negative value earlier. Replace > return res < 0 ? res : 0; with re

Re: [PATCH] drm/amdgpu: Use dbg level for VBIOS check messages

2024-12-12 Thread Alex Deucher
On Wed, Dec 11, 2024 at 11:24 PM Lijo Lazar wrote: > > Driver has different ways to fetch VBIOS. If one of the methods doesn't > find an authentic one, it will show misleading info messages eventhough > a subsequent method finds a valid VBIOS. Keep the message level at debug > and add device conte

Re: [PATCH -next] drm/amd/display: use swap() in update_phy_id_mapping()

2024-12-12 Thread Alex Deucher
Applied. Thanks! On Wed, Dec 11, 2024 at 8:47 PM Jiapeng Chong wrote: > > Use existing swap() function rather than duplicating its implementation. > > ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c:185:47-48: WARNING > opportunity for swap(). > ./drivers/gpu/drm/amd/display/amdgpu_dm/a

Re: [PATCH] amdkfd: wq_release signals dma_fence only when available

2024-12-12 Thread Felix Kuehling
On 2024-12-12 0:30, Zhu Lingshan wrote: > On 12/12/2024 12:19 PM, Felix Kuehling wrote: >> >> On 2024-12-11 22:06, Zhu Lingshan wrote: >>> kfd_process_wq_release() signals eviction fence by >>> dma_fence_signal() which wanrs if dma_fence >>> is NULL. >> That's news to me. Looking at the dma_fenc

Re: [PATCH 10/48] drm/amdgpu/vcn: move more instanced data to vcn_instance

2024-12-12 Thread Lazar, Lijo
On 12/11/2024 4:22 AM, Alex Deucher wrote: > Move more per instance data into the per instance structure. > > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 196 > drivers/gpu/drm/amd/a

Re: [PATCH 1/3] drm/amdgpu: don't access invalid sched

2024-12-12 Thread Christian König
Am 11.12.24 um 18:10 schrieb Pierre-Eric Pelloux-Prayer: Since 2320c9e6a768 ("drm/sched: memset() 'job' in drm_sched_job_init()") accessing job->base.sched can produce unexpected results as the initialisation of (*job)->base.sched done in amdgpu_job_alloc is overwritten by the memset. This commi

[PATCH] drm/amd/display: Fix NULL pointer dereference in dmub_tracebuffer_show

2024-12-12 Thread Srinivasan Shanmugam
It corrects the issue by checking if 'adev->dm.dmub_srv' is NULL before accessing its 'meta_info' member. This ensures that we do not dereference a NULL pointer. Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:917 dmub_tracebuffer_show() warn:

Re: [PATCH v1] drm/ci: uprev IGT

2024-12-12 Thread Helen Mae Koike Fornazier
Hi Vignesh, thanks for the patch. On Wed, 11 Dec 2024 11:28:05 -0300 Vignesh Raman wrote --- > Uprev IGT to the latest version and update expectation files. > > Signed-off-by: Vignesh Raman vignesh.ra...@collabora.com> > --- > > v1: > - Pipeline link - > https://gitlab.

RE: [PATCH v10 4/6] drm: consider GEM object shared when it is exported

2024-12-12 Thread Li, Yunxiang (Teddy)
[Public] > From: Koenig, Christian > Sent: Thursday, December 12, 2024 4:25 > Am 11.12.24 um 17:14 schrieb Li, Yunxiang (Teddy): > > [Public] > > > >> From: Koenig, Christian > >> Sent: Wednesday, December 11, 2024 10:03 Am 11.12.24 um 15:02 schrieb > >> Li, Yunxiang (Teddy): > >>> [Public] > >>

[PATCH drm-next] drm/amdgpu: simplify return statement in amdgpu_ras_eeprom_init

2024-12-12 Thread Dheeraj Reddy Jonnalagadda
Remove the logically dead code in the last return statement of amdgpu_ras_eeprom_init. The condition res < 0 is redundant since res is already checked for a negative value earlier. Replace return res < 0 ? res : 0; with return 0 to improve clarity. Fixes: 63d4c081a556 ("drm/amdgpu: Optimize EEPROM

[PATCH -next] drm/amd/display: use swap() in update_phy_id_mapping()

2024-12-12 Thread Jiapeng Chong
Use existing swap() function rather than duplicating its implementation. ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c:185:47-48: WARNING opportunity for swap(). ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c:125:53-54: WARNING opportunity for swap(). Reported-by: Abaci Robot

[bug report] drm/amd/display: Make DMCUB tracebuffer debugfs chronological

2024-12-12 Thread Dan Carpenter
Hello Leo Li, Commit 5a498172c8d0 ("drm/amd/display: Make DMCUB tracebuffer debugfs chronological") from Nov 26, 2024 (linux-next), leads to the following Smatch static checker warning: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:917 dmub_tracebuffer_show()

Re: [PATCH 6.1.y] drm/amd/display: Don't refer to dc_sink in is_dsc_need_re_compute

2024-12-12 Thread Greg KH
On Wed, Dec 11, 2024 at 06:15:44PM +0800, jianqi.ren...@windriver.com wrote: > From: Wayne Lin > > [ Upstream commit fcf6a49d79923a234844b8efe830a61f3f0584e4 ] > > [Why] > When unplug one of monitors connected after mst hub, encounter null pointer > dereference. > > It's due to dc_sink get rel

Re: [PATCH v10 1/4] drm: Introduce device wedged event

2024-12-12 Thread Raag Jadav
On Wed, Dec 11, 2024 at 06:14:12PM +0100, Maxime Ripard wrote: > On Wed, Dec 04, 2024 at 01:17:17PM +0200, Raag Jadav wrote: > > + misc maintainers > > > > On Tue, Dec 03, 2024 at 11:18:00AM +0100, Christian König wrote: > > > Am 03.12.24 um 06:00 schrieb Raag Jadav: > > > > On Mon, Dec 02, 2024 a

Re: [PATCH] drm/amd/display: Fix NULL pointer dereference in dmub_tracebuffer_show

2024-12-12 Thread Dan Carpenter
On Thu, Dec 12, 2024 at 03:07:58PM +0530, Srinivasan Shanmugam wrote: > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c > b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c > index 11a7ac54f91c..0092d4a1e59d 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgp

Re: [PATCH v10 0/2] drm/atomic: Ease async flip restrictions

2024-12-12 Thread André Almeida
Hi Dmitry, Em 11/12/2024 16:35, Dmitry Baryshkov escreveu: On Wed, Dec 11, 2024 at 12:25:07AM -0300, André Almeida wrote: Hi, The goal of this work is to find a nice way to allow amdgpu to perform async page flips in the overlay plane as well, not only on the primary one. Currently, when using

Re: [PATCH v2] drm/amd/display: Fix NULL pointer dereference in dmub_tracebuffer_show

2024-12-12 Thread Dan Carpenter
Thanks! regards, dan carpenter

Re: [PATCH] amdkfd: wq_release signals dma_fence only when available

2024-12-12 Thread Chen, Xiaogang
On 12/11/2024 11:30 PM, Zhu Lingshan wrote: On 12/12/2024 12:19 PM, Felix Kuehling wrote: On 2024-12-11 22:06, Zhu Lingshan wrote: kfd_process_wq_release() signals eviction fence by dma_fence_signal() which wanrs if dma_fence is NULL. That's news to me. Looking at the dma_fence_signal impleme

Re: [PATCH v10 4/6] drm: consider GEM object shared when it is exported

2024-12-12 Thread Christian König
Am 12.12.24 um 15:04 schrieb Li, Yunxiang (Teddy): [Public] From: Koenig, Christian Sent: Thursday, December 12, 2024 4:25 Am 11.12.24 um 17:14 schrieb Li, Yunxiang (Teddy): [Public] From: Koenig, Christian Sent: Wednesday, December 11, 2024 10:03 Am 11.12.24 um 15:02 schrieb Li, Yunxiang

Patch "[PATCH 6.1.y] drm/amd/display: Don't refer to dc_sink in is_dsc_need_re_compute" has been added to the 5.4-stable tree

2024-12-12 Thread gregkh
This is a note to let you know that I've just added the patch titled [PATCH 6.1.y] drm/amd/display: Don't refer to dc_sink in is_dsc_need_re_compute to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filen

[PATCH v2 7/7] drm/amdgpu: Apply sign extension to seq64

2024-12-12 Thread Arunpravin Paneer Selvam
Apply sign extension to seq64 va address. Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c index

[PATCH v2 5/7] drm/amdgpu: Modify the MES process va end limit

2024-12-12 Thread Arunpravin Paneer Selvam
From: Christian König Modify the MES process va end limit to max pfn. Signed-off-by: Christian König Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 3 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 2 +- drivers/gpu/drm/amd/amdgpu/mes_userqueue.

[PATCH v2 6/7] drm/amdgpu: Fix wait IOCTL lockup issues.

2024-12-12 Thread Arunpravin Paneer Selvam
Fix the wait IOCTL lockup issue. [Dec 6 17:53] watchdog: BUG: soft lockup - CPU#4 stuck for 26s! [Xwayland:cs0:2634] [ +0.02] RIP: 0010:amdgpu_userq_wait_ioctl+0x3ce/0xfe0 [amdgpu] [ +0.03] RSP: 0018:ada901f4fc38 EFLAGS: 0202 [ +0.03] RAX: 0001 RBX:

[PATCH v2 2/7] drm/amdgpu: Fix NULL ptr dereference issue for non userq fences

2024-12-12 Thread Arunpravin Paneer Selvam
Add the correct fences count variable [num_fences] in the fences array iteration to handle the userq / non-userq fences. v2:(Christian) - All fences in the array either come from some reservation object or drm_syncobj. If any of those are NULL then there is a bug somewhere else. Signed-

[PATCH v2 3/7] drm/amdgpu: Fix the use-after-free issue in wait IOCTL

2024-12-12 Thread Arunpravin Paneer Selvam
The xarray pointer which has the userqueue xarray structure reference should be cleared when the userqueue gets destroyed. Otherwise, we may access the freed xa memory and see the below warnings. warning 1: BUG: KASAN: slab-use-after-free in _raw_spin_lock+0x7a/0xe0 [ +0.44] Call Trace: [ +0

[PATCH v2 4/7] drm/amdgpu: Fix out-of-bounds issue in user fence

2024-12-12 Thread Arunpravin Paneer Selvam
Fix out-of-bounds issue in userq fence create when accessing the userq xa structure. Added a lock to protect the race condition. BUG: KASAN: slab-out-of-bounds in amdgpu_userq_fence_create+0x726/0x880 [amdgpu] [ +0.06] Call Trace: [ +0.05] [ +0.05] dump_stack_lvl+0x6c/0x90 [ +0.

[PATCH v2 1/7] drm/amdgpu: Add mqd for userq compute queue

2024-12-12 Thread Arunpravin Paneer Selvam
Add mqd for userq compute queue for gfx11/gfx12 Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c| 4 drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c| 4 drivers/gpu/drm/amd/include/v11_structs.h | 4 ++-- drivers/gpu/drm/amd/include/v12_structs.h | 4 ++

Re: [PATCH] drm/amdgpu/vcn: reset fw_shared under SRIOV

2024-12-12 Thread Zhang, Bokun
[AMD Official Use Only - AMD Internal Distribution Only] Please help us review this patch. Thanks! From: Bokun Zhang Sent: Wednesday, December 11, 2024 4:48 PM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Bokun Subject: [PATCH] drm/amdgpu/vcn: reset fw_shared

[PATCH v11 3/5] Documentation/gpu: Clarify drm memory stats definition

2024-12-12 Thread Yunxiang Li
Define how to handle buffers with multiple possible placement so we don't get incompatible implementations. Callout the resident requirement for drm-purgeable- explicitly. Remove the requirement for there to be only drm-memory- or only drm-resident-, it's not what's implemented and having both is b

[PATCH v11 4/5] drm/amdgpu: remove unused function parameter

2024-12-12 Thread Yunxiang Li
amdgpu_vm_bo_invalidate doesn't use the adev parameter and not all callers have a reference to adev handy, so remove it for cleanliness. Signed-off-by: Yunxiang Li Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c

[PATCH v11 5/5] drm/amdgpu: track bo memory stats at runtime

2024-12-12 Thread Yunxiang Li
Before, every time fdinfo is queried we try to lock all the BOs in the VM and calculate memory usage from scratch. This works okay if the fdinfo is rarely read and the VMs don't have a ton of BOs. If either of these conditions is not true, we get a massive performance hit. In this new revision, we

[PATCH v11 2/5] drm: make drm-active- stats optional

2024-12-12 Thread Yunxiang Li
When memory stats is generated fresh everytime by going though all the BOs, their active information is quite easy to get. But if the stats are tracked with BO's state this becomes harder since the job scheduling part doesn't really deal with individual buffers. Make drm-active- optional to enable

[PATCH v11 0/5] rework bo mem stats tracking

2024-12-12 Thread Yunxiang Li
Right now every time the fdinfo is read, we go through the vm lists and lock all the BOs to calcuate the statistics. This causes a lot of lock contention when the VM is actively used. It gets worse if there is a lot of shared BOs or if there's a lot of submissions. We have seen submissions lock-up

[PATCH v11 1/5] drm: add drm_memory_stats_is_zero

2024-12-12 Thread Yunxiang Li
Add a helper to check if the memory stats is zero, this will be used to check for memory accounting errors. Signed-off-by: Yunxiang Li Reviewed-by: Christian König CC: dri-de...@lists.freedesktop.org --- drivers/gpu/drm/drm_file.c | 10 ++ include/drm/drm_file.h | 1 + 2 files cha

Re: [PATCH] drm/amdgpu/vcn: reset fw_shared under SRIOV

2024-12-12 Thread Alex Deucher
On Wed, Dec 11, 2024 at 4:48 PM Bokun Zhang wrote: > > - The previous patch only considered the case for baremetal > and not applicable for SRIOV code path. We also need to > init fw_share for SRIOV VF > > Signed-off-by: Bokun Zhang Fixes: c4b519b70d9f ("drm/amdgpu/vcn: reset fw_shared when

RE: [PATCH 1/6] drm/amdgpu/nbio7.7: fix IP version check

2024-12-12 Thread Wang, Yang(Kevin)
[AMD Official Use Only - AMD Internal Distribution Only] Series is Reviewed-by: Yang Wang Best Regards, Kevin -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Friday, December 13, 2024 06:09 To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 1/6]

RE: [PATCH 1/2] drm/amdgpu/nbio7.7: fix IP version check

2024-12-12 Thread Wang, Yang(Kevin)
[AMD Official Use Only - AMD Internal Distribution Only] Series is Reviewed-by: Yang Wang Best Regards, Kevin -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Friday, December 13, 2024 05:54 To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 1/2]

Recall: [PATCH 1/2] drm/amdgpu/nbio7.7: fix IP version check

2024-12-12 Thread Wang, Yang(Kevin)
Wang, Yang(Kevin) would like to recall the message, "[PATCH 1/2] drm/amdgpu/nbio7.7: fix IP version check".

Re: [PATCH 1/1] drm/amdgpu: Use device wedged event

2024-12-12 Thread Sharma, Shashank
[AMD Official Use Only - AMD Internal Distribution Only] Looks good to me as well, With Christian's comment accommodated: Acked-by: Shashank Sharma Regards Shashank From: Koenig, Christian Sent: Friday, December 13, 2024 8:34 AM To: André Almeida ; Raag Jadav ;

[PATCH] amdkfd: enlarge the hashtable of kfd_process

2024-12-12 Thread Zhu Lingshan
This commit enlarges the hashtable size of kfd_process to 256 Signed-off-by: Zhu Lingshan --- drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h index 9e5ca0b93b2

[PATCH V2] amdkfd: wq_release signals dma_fence only when available

2024-12-12 Thread Zhu Lingshan
kfd_process_wq_release() signals eviction fence by dma_fence_signal() which wanrs if dma_fence is NULL. kfd_process->ef is initialized by kfd_process_device_init_vm() through ioctl. That means the fence is NULL for a new created kfd_process, and close a kfd_process right after open it will trigger

Re: [PATCH 1/1] drm/amdgpu: Use device wedged event

2024-12-12 Thread Christian König
Am 12.12.24 um 20:09 schrieb André Almeida: Use DRM's device wedged event to notify userspace that a reset had happened. For now, only use `none` method meant for telemetry capture. Signed-off-by: André Almeida --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ 1 file changed, 3 inserti

[PATCH 2/2] drm/amdgpu/nbio7.0: fix IP version check

2024-12-12 Thread Alex Deucher
Use the helper function rather than reading it directly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c index 49e953f86ced4

[PATCH 1/2] drm/amdgpu/nbio7.7: fix IP version check

2024-12-12 Thread Alex Deucher
Use the helper function rather than reading it directly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c index 1ac730328516f

[PATCH 4/6] drm/amdgpu/mmhub4.1: fix IP version check

2024-12-12 Thread Alex Deucher
Use the helper function rather than reading it directly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c index 0fbc

[PATCH 3/6] drm/amdgpu/nbio7.11: fix IP version check

2024-12-12 Thread Alex Deucher
Use the helper function rather than reading it directly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c index 814ab59fdd

[PATCH 2/6] drm/amdgpu/nbio7.0: fix IP version check

2024-12-12 Thread Alex Deucher
Use the helper function rather than reading it directly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c index 49e953f86ced4

[PATCH 5/6] drm/amdgpu/gfx12: fix IP version check

2024-12-12 Thread Alex Deucher
Use the helper function rather than reading it directly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c index 035fc392526d3

[PATCH 6/6] drm/amdgpu/smu14.0.2: fix IP version check

2024-12-12 Thread Alex Deucher
Use the helper function rather than reading it directly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/s

[PATCH 1/6] drm/amdgpu/nbio7.7: fix IP version check

2024-12-12 Thread Alex Deucher
Use the helper function rather than reading it directly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c index 1ac730328516f