Re: [PATCH] drm/amdgpu: fix KFDMemoryTest.PtraceAccessInvisibleVram fail on SRIOV

2024-08-09 Thread Felix Kuehling
On 2024-08-07 04:36, Samuel Zhang wrote: Ptrace access VRAM bo will first try sdma access in amdgpu_ttm_access_memory_sdma(), if fails, it will fallback to mmio access. Since ptrace only access 8 bytes at a time and amdgpu_ttm_access_memory_sdma() only allow PAGE_SIZE bytes access, it returns

Re: [PATCH] drm/amdkfd: keep create queue success if cwsr save area doesn't match

2024-08-09 Thread Felix Kuehling
Maybe we can turn this check into a warnings if, and only if the exp_hw_support module param is set. That way we don't water down the checks on the production code path but allow experimental setups to run without a seat belt. Regards,   Felix On 2024-08-09 01:39, Zhang, Yifan wrote: [AMD O

[RFC PATCH] drm/amd/display/dc: Refactor remove duplications

2024-08-09 Thread Luan Icaro Pinto Arcanjo
From: LipArcanjo All dce command_table_helper's shares a copy-pasted collection of copy-pasted functions, which are: phy_id_to_atom, clock_source_id_to_atom_phy_clk_src_id, and engine_bp_to_atom. This patch removes the multiple copy-pasted by creating a common command table and make the command_

[PATCH] drm/amd/display: change the panel power savings level without a modeset

2024-08-09 Thread Hamza Mahfooz
We don't actually need to request that the compositor does a full modeset to modify the panel power savings level, we can instead just make a request to DMUB, to set the new level dynamically. Cc: Harry Wentland Cc: Leo Li Cc: Mario Limonciello Cc: Sebastian Wick Signed-off-by: Hamza Mahfooz

Re: [PATCH 22/24] drm/amd/display: Adjust cursor position

2024-08-09 Thread Rodrigo Siqueira Jordao
On 8/8/24 4:06 PM, Melissa Wen wrote: On 07/08/2024 04:55, Tom Chung wrote: From: Rodrigo Siqueira [why & how] When the commit 9d84c7ef8a87 ("drm/amd/display: Correct cursor position on horizontal mirror") was introduced, it used the wrong calculation for the position copy for X. This com

Re: [PATCH 0/6] Add submission flag to disable implicit sync.

2024-08-09 Thread Faith Ekstrand
I don't see anything wrong with it Reviewed-by: Faith Ekstrand However, I'm not an AMDGPU developer so you probably want someone who knows the amdgpu sync stuff to review as well. On Wed, Aug 7, 2024 at 8:09 PM Bas Nieuwenhuizen wrote: > For the rationale see the earlier RFC by Faith: > https

Re: [PATCH 4/6] drm/amdgpu: Add UAPI for disabling implicit sync per submission.

2024-08-09 Thread Faith Ekstrand
On Wed, Aug 7, 2024 at 8:09 PM Bas Nieuwenhuizen wrote: > Per submission flag because: > > 1) Slightly simpler & more flexible than per context flag. > 2) We'd need to extend the per-BO struct if we want to put >it there. > 3) Doing it per BO is annoying implementation wise as we >disasso

RE: [PATCH] drm/amdkfd: fix partition query when setting up recommended sdma engines

2024-08-09 Thread Lazar, Lijo
[Public] Reviewed-by: Lijo Lazar Thanks, Lijo -Original Message- From: Kim, Jonathan Sent: Thursday, August 8, 2024 9:39 PM To: amd-gfx@lists.freedesktop.org Cc: Lazar, Lijo ; Kuehling, Felix ; Kim, Jonathan ; Kim, Jonathan Subject: [PATCH] drm/amdkfd: fix partition query when setting

Re: [PATCH] drm/amdkfd: fallback to pipe reset on queue reset fail for gfx9

2024-08-09 Thread Alex Deucher
On Fri, Aug 9, 2024 at 12:12 PM Kim, Jonathan wrote: > > [Public] > > > -Original Message- > > From: Alex Deucher > > Sent: Friday, August 9, 2024 11:55 AM > > To: Kim, Jonathan > > Cc: amd-gfx@lists.freedesktop.org; Kuehling, Felix > > ; Deucher, Alexander > > > > Subject: Re: [PATCH]

RE: [PATCH] drm/amdkfd: fallback to pipe reset on queue reset fail for gfx9

2024-08-09 Thread Kim, Jonathan
[Public] > -Original Message- > From: Alex Deucher > Sent: Friday, August 9, 2024 11:55 AM > To: Kim, Jonathan > Cc: amd-gfx@lists.freedesktop.org; Kuehling, Felix > ; Deucher, Alexander > > Subject: Re: [PATCH] drm/amdkfd: fallback to pipe reset on queue reset fail > for > gfx9 > > Ca

Re: [PATCH] drm/amdkfd: fallback to pipe reset on queue reset fail for gfx9

2024-08-09 Thread Alex Deucher
On Fri, Aug 2, 2024 at 12:38 PM Jonathan Kim wrote: > > If queue reset fails, tell the CP to reset the pipe. > Since queues multiplex context per pipe and we've issues a device wide > preemption prior to the hang, we can assume the hung pipe only has one > queue to reset on pipe reset. Is there a

RE: [PATCH] drm/amdkfd: fallback to pipe reset on queue reset fail for gfx9

2024-08-09 Thread Kim, Jonathan
[Public] Ping on review. Thanks, Jon > -Original Message- > From: Kim, Jonathan > Sent: Friday, August 2, 2024 12:38 PM > To: amd-gfx@lists.freedesktop.org > Cc: Kuehling, Felix ; Deucher, Alexander > ; Kim, Jonathan ; > Kim, Jonathan > Subject: [PATCH] drm/amdkfd: fallback to pipe re

[PATCH] video/aperture: match the pci device when calling sysfb_disable()

2024-08-09 Thread Alex Deucher
In aperture_remove_conflicting_pci_devices(), match the pci device determine whether or not to call sysfb_disable(). This fixes cases where the pimary device is not VGA compatible which leads to the following problem: 1. A PCI device with a non-VGA class is the the boot display 2. That device is

Re: [PATCH] drm/amd/sriov: extend NV_MAILBOX_POLL_MSG_TIMEDOUT

2024-08-09 Thread Alex Deucher
On Wed, Aug 7, 2024 at 11:15 PM Victor Zhao wrote: > > on MI300/MI308 UBB products, when doing mode1 reset, since 1 gpu need to > wait all 8 gpus finish mode1 reset and then do re-init. As observed, > sometimes the gpu which triggered the reset need to wait 15s for all > gpus to finish. > > If pol

[PATCH v2 3/4] drm/amdgpu: add cp queue registers for gfx9_4_3 ipdump

2024-08-09 Thread Sunil Khatri
Add gfx9 support of CP queue registers for all queues to be used by devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 98 - 1 file changed, 95 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drive

[PATCH v2 2/4] drm/amdgpu: add print support for gfx9_4_3 ipdump

2024-08-09 Thread Sunil Khatri
Add support of gfx9_4_3 ipdump print so devcoredump could trigger it to dump the captured registers in devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH v2 1/4] drm/amdgpu: add gfx9_4_3 register support in ipdump

2024-08-09 Thread Sunil Khatri
Add general registers of gfx9_4_3 in ipdump for devcoredump support. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 133 +++- 1 file changed, 132 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drivers/gpu/drm/a

[PATCH v2 4/4] drm/amdgpu: add cp queue registers print for gfx9_4_3

2024-08-09 Thread Sunil Khatri
Add gfx9_4_3 print support of CP queue registers for all queues to be used by devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 42 +++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.

[PATCH v1 4/4] drm/amdgpu: add cp queue registers print for gfx9_4_3

2024-08-09 Thread Sunil Khatri
Add gfx9_4_3 print support of CP queue registers for all queues to be used by devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 42 +++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.

[PATCH v1 3/4] drm/amdgpu: add cp queue registers for gfx9_4_3 ipdump

2024-08-09 Thread Sunil Khatri
Add gfx9 support of CP queue registers for all queues to be used by devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 97 - 1 file changed, 94 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drive

[PATCH v1 0/4] gfx dump for mi300

2024-08-09 Thread Sunil Khatri
*** BLURB HERE *** Sunil Khatri (4): drm/amdgpu: add gfx9_4_3 register support in ipdump drm/amdgpu: add print support for gfx9_4_3 ipdump drm/amdgpu: add cp queue registers for gfx9_4_3 ipdump drm/amdgpu: add cp queue registers print for gfx9_4_3 drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c

[PATCH v1 1/4] drm/amdgpu: add gfx9_4_3 register support in ipdump

2024-08-09 Thread Sunil Khatri
Add general registers of gfx9_4_3 in ipdump for devcoredump support. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 133 +++- 1 file changed, 132 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drivers/gpu/drm/a

[PATCH v1 2/4] drm/amdgpu: add print support for gfx9_4_3 ipdump

2024-08-09 Thread Sunil Khatri
Add support of gfx9_4_3 ipdump print so devcoredump could trigger it to dump the captured registers in devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

Re: [PATCH] drm/buddy: fix issue that force_merge cannot free all roots

2024-08-09 Thread Matthew Auld
Hi, On 08/08/2024 07:38, Lin.Cao wrote: If buddy manager have more than one roots and each root have sub-block need to be free. When drm_buddy_fini called, the first loop of force_merge will merge and free all of the sub block of first root, which offset is 0x0 and size is biggest(more than have

Re: [PATCH 1/8] drm/fbdev-helper: Do delayed switcheroo in lastclose helper

2024-08-09 Thread Thomas Zimmermann
Hi Am 09.08.24 um 10:44 schrieb Daniel Vetter: On Wed, Aug 07, 2024 at 10:41:33AM +0200, Thomas Zimmermann wrote: Amdgpu and nouveau call vga_switcheroo_process_delayed_switch() from their lastclose callbacks. Call it from the fbdev lastclose helper, so that the driver functions can finally be

Re: [PATCH 8/8] drm: Remove struct drm_mode_config_funcs.output_poll_changed

2024-08-09 Thread Daniel Vetter
On Wed, Aug 07, 2024 at 10:41:40AM +0200, Thomas Zimmermann wrote: > The output_poll_changed hook in struct drm_mode_config_funcs is > unused. Remove it. The helper drm_client_dev_hotplug() implements > the callback's functionality. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Vetter

Re: [PATCH 6/8] drm/fbdev-helper: Remove drm_fb_helper_output_poll_changed()

2024-08-09 Thread Daniel Vetter
On Wed, Aug 07, 2024 at 10:41:38AM +0200, Thomas Zimmermann wrote: > The function is unused. Remove it. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Vetter Without the next patch to remove ->lastclose there's some confusion text left in the DOC: section in drm_fb_helper.c, but no p

Re: [PATCH 5/8] drm/nouveau: Implement switcheroo reprobe with drm_client_dev_hotplug()

2024-08-09 Thread Daniel Vetter
On Wed, Aug 07, 2024 at 10:41:37AM +0200, Thomas Zimmermann wrote: > Replace the callto drm_fb_helper_output_poll_changed() with a call > to drm_client_dev_hotplug(). It's equivalent in functionality, but > use the DRM client infrastructure. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Dani

RE: [PATCH] drm/amdkfd: Add node_id to location_id generically

2024-08-09 Thread Kim, Jonathan
[Public] > -Original Message- > From: Lazar, Lijo > Sent: Wednesday, August 7, 2024 12:17 PM > To: amd-gfx@lists.freedesktop.org; brahma_sw_dev > > Cc: Zhang, Hawking ; Deucher, Alexander > ; Kim, Jonathan ; > Kasiviswanathan, Harish > Subject: [PATCH] drm/amdkfd: Add node_id to locatio

Re: [PATCH 4/8] drm/nouveau: Do not set struct drm_mode_config_funcs.output_poll_changed

2024-08-09 Thread Daniel Vetter
On Wed, Aug 07, 2024 at 10:41:36AM +0200, Thomas Zimmermann wrote: > The output_poll_changed hook was only necessary before in-kernel > DRM clients existed, but is now obsolete. The client code handles > display otplugging internally. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Daniel Vett

Re: [PATCH 1/8] drm/fbdev-helper: Do delayed switcheroo in lastclose helper

2024-08-09 Thread Daniel Vetter
On Wed, Aug 07, 2024 at 10:41:33AM +0200, Thomas Zimmermann wrote: > Amdgpu and nouveau call vga_switcheroo_process_delayed_switch() from > their lastclose callbacks. Call it from the fbdev lastclose helper, > so that the driver functions can finally be removed. > > The fbdev call is part of all l

[PATCH 2/2] drm/amd/pm: ensure the fw_info is not null before using it

2024-08-09 Thread Tim Huang
This resolves the dereference null return value warning reported by Coverity. Signed-off-by: Tim Huang --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c b/drivers/gpu/drm/am

[PATCH 1/2] drm/amdgpu: ensure the connector is not null before using it

2024-08-09 Thread Tim Huang
This resolves the dereference null return value warning reported by Coverity. Signed-off-by: Tim Huang --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amd