[PATCH 2/2] drm/amdgpu: Use offsets local to VCN in VF

2024-03-04 Thread Lijo Lazar
For VCN 4.0.3, use only the local addressing scheme while in VF mode. This includes addressing scheme used for HUB offsets. Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git

[PATCH 1/2] drm/amdgpu: Add HDP flush to VCN v4.0.3

2024-03-04 Thread Lijo Lazar
VCN 4.0.3 cannot trigger HDP flush with RRMT enabled. Instead, trigger HDP flush from host side before ringing doorbell. Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 25 + 1 file changed, 25 insertions(+) diff --git

RE: [PATCH] drm/amdgpu: disable ring_muxer if mcbp is off

2024-03-04 Thread Zhu, Jiadong
[AMD Official Use Only - General] Acked-by: Jiadong Zhu -Original Message- From: amd-gfx On Behalf Of Christian König Sent: Tuesday, February 27, 2024 12:02 AM To: Alex Deucher ; Pelloux-Prayer, Pierre-Eric Cc: amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: disable

[PATCH] drm/amdgpu: add dcn3.5.1 support

2024-03-04 Thread Yifan Zhang
This patch to add dcn3.5.1 support. Signed-off-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 502333725b49..72701e7f09fc

Re: [PATCH] drm/amdgpu: Init zone device and drm client after mode-1 reset on reload

2024-03-04 Thread Rehman, Ahmad
[AMD Official Use Only - General] Hey, Due to mode-1 reset (pending_reset), the amdgpu_amdkfd_device_init will not be called and hence adev->kfd.init_complete will not be set. The function amdgpu_amdkfd_drm_client_create has condition: if (!adev->kfd.init_complete) return 0;

Re: [PATCH 2/3] drm/amdgpu: sdma support for sriov cpx mode

2024-03-04 Thread Felix Kuehling
On 2024-03-04 10:19, Samir Dhume wrote: Signed-off-by: Samir Dhume Please add a meaningful commit description to all the patches in the series. See one more comment below. --- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 34 +++- 1 file changed, 27 insertions(+), 7

Re: [PATCH] drm/amdgpu: Init zone device and drm client after mode-1 reset on reload

2024-03-04 Thread Felix Kuehling
On 2024-03-04 17:05, Ahmad Rehman wrote: In passthrough environment, when amdgpu is reloaded after unload, mode-1 is triggered after initializing the necessary IPs, That init does not include KFD, and KFD init waits until the reset is completed. KFD init is called in the reset handler, but in

[PATCH] drm/amdgpu: Init zone device and drm client after mode-1 reset on reload

2024-03-04 Thread Ahmad Rehman
In passthrough environment, when amdgpu is reloaded after unload, mode-1 is triggered after initializing the necessary IPs, That init does not include KFD, and KFD init waits until the reset is completed. KFD init is called in the reset handler, but in this case, the zone device and drm client is

RE: [PATCH 3/3] drm/amdgpu/jpeg: support for sriov cpx mode

2024-03-04 Thread Liu, Leo
[AMD Official Use Only - General] > -Original Message- > From: Dhume, Samir > Sent: Monday, March 4, 2024 10:20 AM > To: amd-gfx@lists.freedesktop.org > Cc: Dhume, Samir ; Lazar, Lijo > ; Wan, Gavin ; Liu, Leo > ; Deucher, Alexander > Subject: [PATCH 3/3] drm/amdgpu/jpeg: support for

Re: [PATCH v8 3/3] drm/buddy: Add user for defragmentation

2024-03-04 Thread Christian König
Am 04.03.24 um 17:32 schrieb Arunpravin Paneer Selvam: Add amdgpu driver as user for the drm buddy defragmentation. Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 17 +++-- drivers/gpu/drm/drm_buddy.c | 1 + 2 files

[PATCH v8 2/3] drm/amdgpu: Enable clear page functionality

2024-03-04 Thread Arunpravin Paneer Selvam
Add clear page support in vram memory region. v1(Christian): - Dont handle clear page as TTM flag since when moving the BO back in from GTT again we don't need that. - Make a specialized version of amdgpu_fill_buffer() which only clears the VRAM areas which are not already cleared -

[PATCH v8 3/3] drm/buddy: Add user for defragmentation

2024-03-04 Thread Arunpravin Paneer Selvam
Add amdgpu driver as user for the drm buddy defragmentation. Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 17 +++-- drivers/gpu/drm/drm_buddy.c | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git

[PATCH v8 1/3] drm/buddy: Implement tracking clear page feature

2024-03-04 Thread Arunpravin Paneer Selvam
- Add tracking clear page feature. - Driver should enable the DRM_BUDDY_CLEARED flag if it successfully clears the blocks in the free path. On the otherhand, DRM buddy marks each block as cleared. - Track the available cleared pages size - If driver requests cleared memory we prefer cleared

[PATCH 3/3] drm/amdgpu/jpeg: support for sriov cpx mode

2024-03-04 Thread Samir Dhume
Signed-off-by: Samir Dhume --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 80 +--- 1 file changed, 73 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c index 32caeb37cef9..4bf087f8ca2b 100644 ---

[PATCH 2/3] drm/amdgpu: sdma support for sriov cpx mode

2024-03-04 Thread Samir Dhume
Signed-off-by: Samir Dhume --- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 34 +++- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c index fec5a3d1c4bc..f666ececbe7d 100644 ---

[PATCH 1/3] drm/amdgpu: function to read physical xcc_id

2024-03-04 Thread Samir Dhume
Signed-off-by: Samir Dhume --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h index 8fcf889ddce9..bebda5501cb7

Re: Kernel 6.7+ broke under-powering of my RX 6700XT. (Archlinux, mesa/amdgpu)

2024-03-04 Thread Linux regression tracking (Thorsten Leemhuis)
On 21.02.24 16:53, Linux regression tracking (Thorsten Leemhuis) wrote: > On 21.02.24 16:39, Alex Deucher wrote: >> On Wed, Feb 21, 2024 at 1:06 AM Linux regression tracking (Thorsten >> Leemhuis) wrote: >>> >>> On 20.02.24 21:18, Alex Deucher wrote: On Tue, Feb 20, 2024 at 2:41 PM Romano

Re: Please apply commit 5b750b22530fe53bf7fd6a30baacd53ada26911b to linux-6.1.y

2024-03-04 Thread Greg Kroah-Hartman
On Tue, Feb 27, 2024 at 06:45:55PM -0700, Nathan Chancellor wrote: > Hi Greg and Sasha, > > Please apply upstream commit 5b750b22530f ("drm/amd/display: Increase > frame warning limit with KASAN or KCSAN in dml") to linux-6.1.y, as it > is needed to avoid instances of -Wframe-larger-than in

Re: [PATCH] drm/amdgpu : remove unused code

2024-03-04 Thread Christian König
Am 04.03.24 um 10:16 schrieb jesse.zh...@amd.com: From: Jesse Zhang Remove the unused function - amdgpu_vm_pt_is_root_clean and remove the impossible condition v1: entries == 0 is not possible any more, so this condition could probably be removed (Felix) Signed-off-by: Jesse Zhang ---

Re: [PATCH v7 3/3] drm/buddy: Add defragmentation support

2024-03-04 Thread Matthew Auld
On 04/03/2024 12:22, Paneer Selvam, Arunpravin wrote: Hi Matthew, On 2/22/2024 12:12 AM, Matthew Auld wrote: On 21/02/2024 12:18, Arunpravin Paneer Selvam wrote: Add a function to support defragmentation. v1:    - Defragment the memory beginning from min_order till the required memory

Re: [PATCH v7 3/3] drm/buddy: Add defragmentation support

2024-03-04 Thread Paneer Selvam, Arunpravin
Hi Matthew, On 2/22/2024 12:12 AM, Matthew Auld wrote: On 21/02/2024 12:18, Arunpravin Paneer Selvam wrote: Add a function to support defragmentation. v1:    - Defragment the memory beginning from min_order till the required memory space is available. v2(Matthew):    - add amdgpu user

[PATCH] drm/amd/pm: disable pp_dpm_dcefclk node for gfx 11.0.3 sriov

2024-03-04 Thread Yang Wang
the dce dpm is not available on gfx 11.0.3 sriov device. Signed-off-by: Yang Wang Reviewed-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 47 +- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c

Re: [PATCH v4 2/2] drm/amdgpu: sync page table freeing with tlb flush

2024-03-04 Thread Christian König
Am 01.03.24 um 21:17 schrieb Sharma, Shashank: On 01/03/2024 14:29, Christian König wrote: Am 01.03.24 um 12:07 schrieb Shashank Sharma: The idea behind this patch is to delay the freeing of PT entry objects until the TLB flush is done. This patch: - Adds a tlb_flush_waitlist which will

[PATCH] drm/amdgpu : remove unused code

2024-03-04 Thread jesse.zhang
From: Jesse Zhang Remove the unused function - amdgpu_vm_pt_is_root_clean and remove the impossible condition v1: entries == 0 is not possible any more, so this condition could probably be removed (Felix) Signed-off-by: Jesse Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h| 2 -

Re: [PATCH 00/13] drm: Fix reservation locking for pin/unpin and console

2024-03-04 Thread Dmitry Osipenko
On 2/28/24 11:19, Thomas Zimmermann wrote: > Hi > > Am 27.02.24 um 19:14 schrieb Dmitry Osipenko: >> Hello, >> >> Thank you for the patches! >> >> On 2/27/24 13:14, Thomas Zimmermann wrote: >>> Dma-buf locking semantics require the caller of pin and unpin to hold >>> the buffer's reservation