Re: [PATCH v2] docs/gpu: ci: update flake tests requirements

2024-09-26 Thread Vignesh Raman
Hi Maxime, On 26/09/24 12:56, Maxime Ripard wrote: On Thu, Sep 26, 2024 at 12:36:49PM GMT, Vignesh Raman wrote: Update the documentation to require linking to a relevant GitLab issue for each new flake entry instead of an email report. Added specific GitLab issue URLs for i915, xe and other dri

Re: [PATCH v1 4/9] drm/amd/pm: don't update runpm last_usage on debugfs getter

2024-09-26 Thread Lazar, Lijo
On 9/25/2024 1:24 PM, Pierre-Eric Pelloux-Prayer wrote: > Reading pm values from the GPU shouldn't prevent it to be suspended > by resetting the last active timestamp (eg: if an background app > monitors GPU sensors every second, it would prevent the autosuspend > sequence to trigger). > > Test

Re: radeon ARUBA NULL pointer dereference

2024-09-26 Thread Ewan Milne
Follow-up, qla2xxx appears to be fixed, most recent test was with: commit 684a64bf32b6e488004e0ad7f0d7e922798f65b6 (HEAD -> master, origin/master, origin/HEAD) Merge: f7fccaa77271 68898131d2df Author: Linus Torvalds Date: Tue Sep 24 15:44:18 2024 -0700 Merge tag 'nfs-for-6.12-1' of git://g

RE: [PATCH 6/7] drm/amdgpu: Check gmc requirement for reset on init

2024-09-26 Thread Xu, Feifei
[AMD Official Use Only - AMD Internal Distribution Only] >>+ refresh = (adev->init_lvl->level != AMDGPU_INIT_LEVEL_MINIMAL_XGMI) && >>+ (adev->gmc.reset_flags & AMDGPU_GMC_INIT_RESET_NPS); Is there a corner case that reloading with a different version tos and refreshing nps cha

Re: [PATCH v2 01/08] drm/amdgpu: Implement userqueue signal/wait IOCTL

2024-09-26 Thread Christian König
Am 26.09.24 um 11:31 schrieb Paneer Selvam, Arunpravin: Hi Christian, On 9/26/2024 2:57 PM, Christian König wrote: Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: [SNIP] +int amdgpu_userq_wait_ioctl(struct drm_device *dev, void *data, +    struct drm_file *filp) +{ +    stru

Re: [PATCH v2] drm/sched: Further optimise drm_sched_entity_push_job

2024-09-26 Thread Philipp Stanner
On Mon, 2024-09-23 at 15:35 +0100, Tvrtko Ursulin wrote: > > Ping Christian and Philipp - reasonably happy with v2? I think it's > the > only unreviewed patch from the series. Howdy, sry for the delay, I had been traveling. I have a few nits below regarding the commit message. Besides, I'm OK

Re: [PATCH v2] drm/sched: Further optimise drm_sched_entity_push_job

2024-09-26 Thread Philipp Stanner
On Tue, 2024-09-24 at 14:02 +0200, Christian König wrote: > Am 24.09.24 um 11:58 schrieb Tvrtko Ursulin: > > > > On 24/09/2024 10:45, Tvrtko Ursulin wrote: > > > > > > On 24/09/2024 09:20, Christian König wrote: > > > > Am 16.09.24 um 19:30 schrieb Tvrtko Ursulin: > > > > > From: Tvrtko Ursulin

[PATCH] drm/amdgpu: fix PTE copy corruption for sdma 7

2024-09-26 Thread Min, Frank
[AMD Official Use Only - AMD Internal Distribution Only] From: Frank Min Without setting dcc bit, there is ramdon PTE copy corruption on sdma 7. so add this bit and update the packet format accordingly. Signed-off-by: Frank Min --- drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c | 7 +-- 1 file c

Re: [PATCH v1 5/9] drm/amd/pm: use pm_runtime_get_if_active for debugfs getters

2024-09-26 Thread Lazar, Lijo
On 9/25/2024 8:02 PM, Pierre-Eric Pelloux-Prayer wrote: > > > Le 25/09/2024 à 15:35, Lazar, Lijo a écrit : >> >> >> On 9/25/2024 1:24 PM, Pierre-Eric Pelloux-Prayer wrote: >>> Don't wake up the GPU for reading pm values. Instead, take a runtime >>> powermanagement ref when trying to read it if

RE: [PATCH 5/7] drm/amdgpu: Place NPS mode request on unload

2024-09-26 Thread Xu, Feifei
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Feifei Xu -Original Message- From: amd-gfx On Behalf Of Lijo Lazar Sent: Tuesday, September 24, 2024 1:57 PM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander ; Koenig, Christian ; Bhardwaj,

RE: [PATCH 7/7] drm/amdgpu: Add NPS switch support for GC 9.4.3

2024-09-26 Thread Xu, Feifei
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Feifei Xu -Original Message- From: amd-gfx On Behalf Of Lijo Lazar Sent: Tuesday, September 24, 2024 1:57 PM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander ; Koenig, Christian ; Bhardwaj,

RE: [PATCH 2/7] drm/amdgpu: Add PSP interface for NPS switch

2024-09-26 Thread Xu, Feifei
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Feifei Xu -Original Message- From: amd-gfx On Behalf Of Lijo Lazar Sent: Tuesday, September 24, 2024 1:57 PM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander ; Koenig, Christian ; Bhardwaj,

RE: [PATCH 3/7] drm/amdgpu: Add gmc interface to request NPS mode

2024-09-26 Thread Xu, Feifei
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Feifei Xu -Original Message- From: amd-gfx On Behalf Of Lijo Lazar Sent: Tuesday, September 24, 2024 1:57 PM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander ; Koenig, Christian ; Bhardwaj,

Re: [PATCH v2] drm/sched: Further optimise drm_sched_entity_push_job

2024-09-26 Thread Christian König
Am 26.09.24 um 10:18 schrieb Philipp Stanner: On Tue, 2024-09-24 at 14:02 +0200, Christian König wrote: Am 24.09.24 um 11:58 schrieb Tvrtko Ursulin: On 24/09/2024 10:45, Tvrtko Ursulin wrote: On 24/09/2024 09:20, Christian König wrote: Am 16.09.24 um 19:30 schrieb Tvrtko Ursulin: From: Tvrtk

Re: [PATCH v1 4/9] drm/amd/pm: don't update runpm last_usage on debugfs getter

2024-09-26 Thread Pierre-Eric Pelloux-Prayer
Le 26/09/2024 à 10:55, Lazar, Lijo a écrit : On 9/25/2024 1:24 PM, Pierre-Eric Pelloux-Prayer wrote: Reading pm values from the GPU shouldn't prevent it to be suspended by resetting the last active timestamp (eg: if an background app monitors GPU sensors every second, it would prevent the a

Re: [PATCH v1 5/9] drm/amd/pm: use pm_runtime_get_if_active for debugfs getters

2024-09-26 Thread Lazar, Lijo
On 9/25/2024 1:24 PM, Pierre-Eric Pelloux-Prayer wrote: > Don't wake up the GPU for reading pm values. Instead, take a runtime > powermanagement ref when trying to read it iff the GPU is already > awake. > > This avoids spurious wake ups (eg: from applets). > > We use pm_runtime_get_if_in_acti

Re: [PATCH v2 01/08] drm/amdgpu: Implement userqueue signal/wait IOCTL

2024-09-26 Thread Christian König
Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: [SNIP] +int amdgpu_userq_wait_ioctl(struct drm_device *dev, void *data, + struct drm_file *filp) +{ + struct drm_amdgpu_userq_fence_info *fence_info = NULL; + struct drm_amdgpu_userq_wait *wait_info = dat

Re: [PATCH v2 01/08] drm/amdgpu: Implement userqueue signal/wait IOCTL

2024-09-26 Thread Paneer Selvam, Arunpravin
Hi Christian, On 9/26/2024 2:57 PM, Christian König wrote: Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: [SNIP] +int amdgpu_userq_wait_ioctl(struct drm_device *dev, void *data, +    struct drm_file *filp) +{ +    struct drm_amdgpu_userq_fence_info *fence_info = NULL; +    s

Re: [PATCH 6/7] drm/amdgpu: Check gmc requirement for reset on init

2024-09-26 Thread Lazar, Lijo
On 9/26/2024 2:31 PM, Xu, Feifei wrote: > [AMD Official Use Only - AMD Internal Distribution Only] > >>> + refresh = (adev->init_lvl->level != AMDGPU_INIT_LEVEL_MINIMAL_XGMI) && >>> + (adev->gmc.reset_flags & AMDGPU_GMC_INIT_RESET_NPS); > > Is there a corner case that reloadi

Re: [PATCH v1 6/9] drm/amd/pm: stop extra checks for runtime pm state

2024-09-26 Thread Lazar, Lijo
On 9/25/2024 7:59 PM, Pierre-Eric Pelloux-Prayer wrote: > > > Le 25/09/2024 à 15:37, Lazar, Lijo a écrit : >> >> >> On 9/25/2024 1:24 PM, Pierre-Eric Pelloux-Prayer wrote: >>> pm_runtime_get_if_in_use already checks if the GPU is active, >>> so there's no need for manually checking runtimepm s

Re: [PATCH v2 01/08] drm/amdgpu: Implement userqueue signal/wait IOCTL

2024-09-26 Thread Paneer Selvam, Arunpravin
Hi Christian, On 9/26/2024 3:04 PM, Christian König wrote: Am 26.09.24 um 11:31 schrieb Paneer Selvam, Arunpravin: Hi Christian, On 9/26/2024 2:57 PM, Christian König wrote: Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: [SNIP] +int amdgpu_userq_wait_ioctl(struct drm_device *dev, voi

Re: [PATCH v7 09/10] drm/amd/display: remove dc_edid handler from dm_helpers_parse_edid_caps

2024-09-26 Thread Melissa Wen
On 25/09/2024 14:55, Mario Limonciello wrote: Alex, Unfortunately I can't reproduce the regression on the APU I tried. However I do have a suspicion on a fix. Can you see if this helps?  If it does, we can squash it in. diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/dr

Re: [PATCH] drm/amdgpu: fix vbios fetching for SR-IOV

2024-09-26 Thread Lazar, Lijo
On 9/25/2024 11:50 PM, Alex Deucher wrote: > SR-IOV fetches the vbios from VRAM in some cases. > Re-enable the VRAM path for dGPUs and rename the function > to make it clear that it is not IGP specific. > > Fixes: 042658d17a54 ("drm/amdgpu: clean up vbios fetching code") > Signed-off-by: Alex D

Re: [PATCH v2 01/08] drm/amdgpu: Implement userqueue signal/wait IOCTL

2024-09-26 Thread Christian König
Am 26.09.24 um 12:26 schrieb Paneer Selvam, Arunpravin: Hi Christian, On 9/26/2024 3:04 PM, Christian König wrote: Am 26.09.24 um 11:31 schrieb Paneer Selvam, Arunpravin: Hi Christian, On 9/26/2024 2:57 PM, Christian König wrote: Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: [SNIP]

[PATCH v2] docs/gpu: ci: update flake tests requirements

2024-09-26 Thread Vignesh Raman
Update the documentation to require linking to a relevant GitLab issue for each new flake entry instead of an email report. Added specific GitLab issue URLs for i915, xe and other drivers. Signed-off-by: Vignesh Raman --- v2: - Add gitlab issue link for msm driver. --- Documentation/gpu/automa

Re: [PATCH v2] docs/gpu: ci: update flake tests requirements

2024-09-26 Thread Maxime Ripard
On Thu, Sep 26, 2024 at 12:36:49PM GMT, Vignesh Raman wrote: > Update the documentation to require linking to a relevant GitLab > issue for each new flake entry instead of an email report. Added > specific GitLab issue URLs for i915, xe and other drivers. > > Signed-off-by: Vignesh Raman > --- >

Re: [PATCH v2] docs/gpu: ci: update flake tests requirements

2024-09-26 Thread Dmitry Baryshkov
On Thu, Sep 26, 2024 at 12:36:49PM GMT, Vignesh Raman wrote: > Update the documentation to require linking to a relevant GitLab > issue for each new flake entry instead of an email report. Added > specific GitLab issue URLs for i915, xe and other drivers. > > Signed-off-by: Vignesh Raman > --- >

[PATCH v2 1/4] drm/amdgpu/sdma5: split out per instance resume function

2024-09-26 Thread jiadong.zhu
From: Jiadong Zhu Extract the resume sequence from sdma_v5_0_gfx_resume for starting/restarting an individual instance. Signed-off-by: Jiadong Zhu Acked-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 253 ++--- 1 file changed, 138 insertions(+), 115 deletion

[PATCH v2 2/4] drm/amdgpu/sdma5: implement ring reset callback for sdma5

2024-09-26 Thread jiadong.zhu
From: Jiadong Zhu Implement sdma queue reset callback via MMIO. v2: enter/exit safemode when sdma queue reset. Signed-off-by: Jiadong Zhu --- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 88 ++ 1 file changed, 88 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_

[PATCH v2 3/4] drm/amdgpu/sdma5.2: split out per instance resume function

2024-09-26 Thread jiadong.zhu
From: Jiadong Zhu Extract the resume sequence from sdma_v5_2_gfx_resume for starting/restarting an individual instance. Signed-off-by: Jiadong Zhu Acked-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 247 ++--- 1 file changed, 136 insertions(+), 111 deletion

[PATCH v2 4/4] drm/amdgpu/sdma5.2: implement ring reset callback for sdma5.2

2024-09-26 Thread jiadong.zhu
From: Jiadong Zhu Implement sdma queue reset callback via MMIO. v2: enter/exit safemode for mmio queue reset. Signed-off-by: Jiadong Zhu --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 91 ++ 1 file changed, 91 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v

Re: [PATCH v5 41/80] drm/tidss: Run DRM default client setup

2024-09-26 Thread Tomi Valkeinen
On 24/09/2024 10:12, 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 tidss driver specifies a preferred color mode of 32. As this is the defaul

Re: [PATCH v2 2/4] drm/amdgpu/sdma5: implement ring reset callback for sdma5

2024-09-26 Thread Alex Deucher
On Thu, Sep 26, 2024 at 3:58 AM wrote: > > From: Jiadong Zhu > > Implement sdma queue reset callback via MMIO. > > v2: enter/exit safemode when sdma queue reset. > > Signed-off-by: Jiadong Zhu Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 88 +

RE: [PATCH] drm/amdgpu: simplify vram alloc logic since 2GB limitation removed

2024-09-26 Thread Zhang, Yifan
[AMD Official Use Only - AMD Internal Distribution Only] -Original Message- From: Alex Deucher Sent: Thursday, September 26, 2024 1:17 AM To: Zhang, Yifan Cc: amd-gfx@lists.freedesktop.org; Yang, Philip ; Kuehling, Felix Subject: Re: [PATCH] drm/amdgpu: simplify vram alloc logic since

Re: [PATCH v1 5/9] drm/amd/pm: use pm_runtime_get_if_active for debugfs getters

2024-09-26 Thread Lazar, Lijo
On 9/26/2024 5:56 PM, Pierre-Eric Pelloux-Prayer wrote: > > > Le 26/09/2024 à 11:27, Lazar, Lijo a écrit : >> >> >> On 9/25/2024 1:24 PM, Pierre-Eric Pelloux-Prayer wrote: >>> Don't wake up the GPU for reading pm values. Instead, take a runtime >>> powermanagement ref when trying to read it if

Re: [PATCH] drm/amdgpu: fix vbios fetching for SR-IOV

2024-09-26 Thread Alex Deucher
On Thu, Sep 26, 2024 at 7:18 AM Lazar, Lijo wrote: > > > > On 9/25/2024 11:50 PM, Alex Deucher wrote: > > SR-IOV fetches the vbios from VRAM in some cases. > > Re-enable the VRAM path for dGPUs and rename the function > > to make it clear that it is not IGP specific. > > > > Fixes: 042658d17a54 ("

Re: [PATCH v2 4/4] drm/amdgpu/sdma5.2: implement ring reset callback for sdma5.2

2024-09-26 Thread Alex Deucher
On Thu, Sep 26, 2024 at 3:48 AM wrote: > > From: Jiadong Zhu > > Implement sdma queue reset callback via MMIO. > > v2: enter/exit safemode for mmio queue reset. > > Signed-off-by: Jiadong Zhu Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 91 ++

RE: [PATCH v3] drm/amd/display: Fix out-of-bounds access in 'dcn21_link_encoder_create'

2024-09-26 Thread Li, Roman
[Public] Reviewed-by: Roman Li > -Original Message- > From: SHANMUGAM, SRINIVASAN > Sent: Wednesday, September 25, 2024 11:10 AM > To: Siqueira, Rodrigo ; Pillai, Aurabindo > > Cc: amd-gfx@lists.freedesktop.org; SHANMUGAM, SRINIVASAN > ; Chung, ChiaHsuan (Tom) > ; Li, Roman ; Hung, Ale

Re: [PATCH] drm/amdgpu: bump driver version for cleared VRAM

2024-09-26 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Sep 26, 2024 at 10:02 AM Alex Deucher wrote: > > On Thu, Sep 26, 2024 at 10:00 AM Marek Olšák wrote: > > > > Is GTT cleared too? > > GTT has always been cleared since it's system memory. > > Alex > > > > > > Marek > > > > On Thu, Sep 26, 2024, 09:53 Alex

Re: [PATCH v2 03/08] drm/amdgpu: Add wait IOCTL timeline syncobj support

2024-09-26 Thread Christian König
Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: Add user fence wait IOCTL timeline syncobj support. v2:(Christian) - handle dma_fence_wait() return value. - shorten the variable name syncobj_timeline_points a bit. - move num_points up to avoid padding issues. Signed-off-by: Arun

Re: [PATCH v1 5/9] drm/amd/pm: use pm_runtime_get_if_active for debugfs getters

2024-09-26 Thread Pierre-Eric Pelloux-Prayer
Le 26/09/2024 à 11:27, Lazar, Lijo a écrit : On 9/25/2024 1:24 PM, Pierre-Eric Pelloux-Prayer wrote: Don't wake up the GPU for reading pm values. Instead, take a runtime powermanagement ref when trying to read it iff the GPU is already awake. This avoids spurious wake ups (eg: from applets

Re: [PATCH v2 06/08] drm/amdgpu: Add few optimizations to userq fence driver

2024-09-26 Thread Christian König
Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: Add few optimizations to userq fence driver. "Few optimization and fixes for userq fence driver". v1:(Christian): - Remove unnecessary comments. - In drm_exec_init call give num_bo_handles as last parameter it would making all

Re: [PATCH v2 07/08] drm/amdgpu: Add the missing error handling for xa_store() call

2024-09-26 Thread Christian König
Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: Add the missing error handling for xa_store() call in the function amdgpu_userq_fence_driver_alloc(). Signed-off-by: Arunpravin Paneer Selvam Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 6 --

Re: [PATCH v2 08/08] drm/amdgpu: add vm root BO lock before accessing the vm

2024-09-26 Thread Christian König
Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: Add a vm root BO lock before accessing the userqueue VM. Signed-off-by: Arunpravin Paneer Selvam --- .../gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/d

Re: [PATCH v2 02/08] drm/amdgpu: screen freeze and userq driver crash

2024-09-26 Thread Christian König
Am 25.09.24 um 21:59 schrieb Arunpravin Paneer Selvam: Screen freeze and userq fence driver crash while playing Xonotic v2: (Christian) - There is change that fence might signal in between testing and grabbing the lock. Hence we can move the lock above the if..else check and u

Re: [PATCH] drm/amdgpu: bump driver version for cleared VRAM

2024-09-26 Thread Alex Deucher
Ping? On Fri, Sep 6, 2024 at 2:04 PM Alex Deucher wrote: > > Driver now clears VRAM on allocation. Bump the > driver version so mesa knows when it will get > cleared vram by default. > > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- > 1 file changed, 2 in

RE: [PATCH] drm/amdgpu: bump driver version for cleared VRAM

2024-09-26 Thread Bhardwaj, Rajneesh
[Public] Reviewed-by: Rajneesh Bhardwaj -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Thursday, September 26, 2024 9:46 AM To: Deucher, Alexander ; Olsak, Marek Cc: amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: bump driver version for cleared VRAM

Re: [PATCH] drm/amdgpu: bump driver version for cleared VRAM

2024-09-26 Thread Marek Olšák
Is GTT cleared too? Marek On Thu, Sep 26, 2024, 09:53 Alex Deucher wrote: > Ping? > > On Fri, Sep 6, 2024 at 2:04 PM Alex Deucher > wrote: > > > > Driver now clears VRAM on allocation. Bump the > > driver version so mesa knows when it will get > > cleared vram by default. > > > > Signed-off-b

Re: [PATCH] drm/amdgpu: bump driver version for cleared VRAM

2024-09-26 Thread Alex Deucher
On Thu, Sep 26, 2024 at 10:00 AM Marek Olšák wrote: > > Is GTT cleared too? GTT has always been cleared since it's system memory. Alex > > Marek > > On Thu, Sep 26, 2024, 09:53 Alex Deucher wrote: >> >> Ping? >> >> On Fri, Sep 6, 2024 at 2:04 PM Alex Deucher >> wrote: >> > >> > Driver now c

Re: [PATCH] drm/amdgpu: simplify vram alloc logic since 2GB limitation removed

2024-09-26 Thread Alex Deucher
On Thu, Sep 26, 2024 at 10:45 AM Zhang, Yifan wrote: > > [AMD Official Use Only - AMD Internal Distribution Only] > > -Original Message- > From: Alex Deucher > Sent: Thursday, September 26, 2024 1:17 AM > To: Zhang, Yifan > Cc: amd-gfx@lists.freedesktop.org; Yang, Philip ; > Kuehling, F

Re: [PATCH v7 07/10] drm/amd/display: get SAD from drm_eld when parsing EDID caps

2024-09-26 Thread Alex Hung
Mario and Melissa, Another regression identified on this patch - DP Display is not listed as an audio device after this patch is applied. Cheers, Alex Hung On 9/18/24 15:38, Mario Limonciello wrote: From: Melissa Wen drm_edid_connector_update() updates display info, filling ELD with audio

Re: [PATCH 6/7] drm/amdgpu: Check gmc requirement for reset on init

2024-09-26 Thread Xu, Feifei
>>I guess you are referring to the below corner case 1) Place NPS request 2) Unload Driver 3) Reinstall driver with a different TOS (possible but quite unlikely) 4) Driver reload 5) Driver checks TOS version first and goes for a reset 6) reset_flag of GMC is not set, hence it d

[PATCH v3] docs/gpu: ci: update flake tests requirements

2024-09-26 Thread Vignesh Raman
Update the documentation to specify linking to a relevant GitLab issue or email report for each new flake entry. Added specific GitLab issue urls for i915, msm and amdgpu driver. Acked-by: Abhinav Kumar # msm Acked-by: Dmitry Baryshkov # msm Signed-off-by: Vignesh Raman --- v2: - Add gitlab is

Re: [PATCH v2] docs/gpu: ci: update flake tests requirements

2024-09-26 Thread Abhinav Kumar
On 9/26/2024 12:06 AM, Vignesh Raman wrote: Update the documentation to require linking to a relevant GitLab issue for each new flake entry instead of an email report. Added specific GitLab issue URLs for i915, xe and other drivers. Signed-off-by: Vignesh Raman --- v2: - Add gitlab issue li

Re: [PATCH 6/7] drm/amdgpu: Check gmc requirement for reset on init

2024-09-26 Thread Lazar, Lijo
On 9/27/2024 9:26 AM, Xu, Feifei wrote: >>>I guess you are referring to the below corner case > >>>    1) Place NPS request > >>>     2) Unload Driver > >>>    3) Reinstall driver with a different TOS (possible but quite > unlikely) > >>>     4) Driver reload > >

[PATCH v2 0/7] Add support for dynamic NPS switch

2024-09-26 Thread Lijo Lazar
This series adds supports for dynamic NPS switch on GC v9.4.3/9.4.4 SOC variants. In order to do dynamic NPS switch a sysfs interface is provided to request a new NPS mode. If the device is part of a hive, all hive devices are required to be in the same NPS mode. Hence a hive device request is sa

[PATCH v2 2/7] drm/amdgpu: Add PSP interface for NPS switch

2024-09-26 Thread Lijo Lazar
Implement PSP ring command interface for memory partitioning on the fly on the supported asics. Signed-off-by: Rajneesh Bhardwaj Reviewed-by: Feifei Xu --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 25 + drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 1 + drivers/gpu/drm/amd

[PATCH v2 1/7] drm/amdgpu: Add option to refresh NPS data

2024-09-26 Thread Lijo Lazar
In certain use cases, NPS data needs to be refreshed again from discovery table. Add API parameter to refresh NPS data from discovery table. Signed-off-by: Lijo Lazar Reviewed-by: Rajneesh Bhardwaj --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 68 +++ drivers/gpu/drm/amd/a

[PATCH v2 5/7] drm/amdgpu: Place NPS mode request on unload

2024-09-26 Thread Lijo Lazar
If a user has requested NPS mode switch, place the request through PSP during unload of the driver. For devices which are part of a hive, all requests are placed together. If one of them fails, revert back to the current NPS mode. Signed-off-by: Lijo Lazar Signed-off-by: Rajneesh Bhardwaj Review

[PATCH v2 6/7] drm/amdgpu: Check gmc requirement for reset on init

2024-09-26 Thread Lijo Lazar
Add a callback to check if there is any condition detected by GMC block for reset on init. One case is if a pending NPS change request is detected. If reset is done because of NPS switch, refresh NPS info from discovery table. Signed-off-by: Lijo Lazar --- v2: Move NPS request check ahead of TOS

[PATCH v2 4/7] drm/amdgpu: Add sysfs interfaces for NPS mode

2024-09-26 Thread Lijo Lazar
Add a sysfs interface to see available NPS modes to switch to - cat /sys/bus/pci/devices/../available_memory_paritition Make the current_memory_partition sysfs node read/write for requesting a new NPS mode. The request is only cached and at a later point a driver unload/reload is required

[PATCH v2 2/7] drm/amdgpu: Add PSP interface for NPS switch

2024-09-26 Thread Lijo Lazar
Implement PSP ring command interface for memory partitioning on the fly on the supported asics. Signed-off-by: Rajneesh Bhardwaj Reviewed-by: Feifei Xu --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 25 + drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 1 + drivers/gpu/drm/amd

[PATCH v2 0/7] Add support for dynamic NPS switch

2024-09-26 Thread Lijo Lazar
This series adds supports for dynamic NPS switch on GC v9.4.3/9.4.4 SOC variants. In order to do dynamic NPS switch a sysfs interface is provided to request a new NPS mode. If the device is part of a hive, all hive devices are required to be in the same NPS mode. Hence a hive device request is sa

[PATCH v2 1/7] drm/amdgpu: Add option to refresh NPS data

2024-09-26 Thread Lijo Lazar
In certain use cases, NPS data needs to be refreshed again from discovery table. Add API parameter to refresh NPS data from discovery table. Signed-off-by: Lijo Lazar Reviewed-by: Rajneesh Bhardwaj --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 68 +++ drivers/gpu/drm/amd/a

[PATCH v2 7/7] drm/amdgpu: Add NPS switch support for GC 9.4.3

2024-09-26 Thread Lijo Lazar
Add dynamic NPS switch support for GC 9.4.3 variants. Only GC v9.4.3 and GC v9.4.4 currently support this. NPS switch is only supported if an SOC supports multiple NPS modes. Signed-off-by: Lijo Lazar Signed-off-by: Rajneesh Bhardwaj Reviewed-by: Feifei Xu --- drivers/gpu/drm/amd/amdgpu/amdgpu

[PATCH v2 3/7] drm/amdgpu: Add gmc interface to request NPS mode

2024-09-26 Thread Lijo Lazar
Add a common interface in GMC to request NPS mode through PSP. Also add a variable in hive and gmc control to track the last requested mode. Signed-off-by: Rajneesh Bhardwaj Signed-off-by: Lijo Lazar Reviewed-by: Feifei Xu --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 16 dri

[PATCH v2] drm/amdgpu: simplify vram alloc logic since 2GB limitation removed

2024-09-26 Thread Yifan Zhang
This is a followup of commit b2dba064c9bd ("drm/amdgpu: Handle sg size limit for contiguous allocation"). 2GB limitation in VRAM allocation is removed in above commit. The remaing_size calculation was to address the 2GB limitation in contiguous VRAM allocation, thus no longer needed. Simplify vram