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

2024-04-12 Thread Khatri, Sunil
[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 ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH v2 2/2] drm/amdgpu: Add support of gfx10

Re: [PATCH] drm/amdgpu: replace sdma tmz flag on si dma

2024-04-12 Thread Alex Deucher
On Fri, Apr 12, 2024 at 5:47 PM Gao, Likun wrote: > > [AMD Official Use Only - General] > > From: Likun Gao > > Fix build issue on si dma to replace tmz flag > > Signed-off-by: Likun Gao Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/si_dma.c | 2 +- > 1 file changed, 1

RE: [PATCH] drm/amdgpu: replace sdma tmz flag on si dma

2024-04-12 Thread Zhang, Hawking
[AMD Official Use Only - General] Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: amd-gfx On Behalf Of Gao, Likun Sent: Friday, April 12, 2024 17:41 To: amd-gfx list Subject: [PATCH] drm/amdgpu: replace sdma tmz flag on si dma [AMD Official Use Only - General]

[PATCH] drm/amdgpu: replace sdma tmz flag on si dma

2024-04-12 Thread Gao, Likun
[AMD Official Use Only - General] From: Likun Gao Fix build issue on si dma to replace tmz flag Signed-off-by: Likun Gao --- drivers/gpu/drm/amd/amdgpu/si_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dma.c

Re: [PATCH] drm/amd/display: Enable ogam_ram for dcn32+dcn35+dcn351

2024-04-12 Thread Harry Wentland
On 2024-04-12 16:22, Harry Wentland wrote: > > > On 2024-04-12 12:26, Melissa Wen wrote: >> On 04/12, Joshua Ashton wrote: >>> >>> >>> On 4/11/24 3:26 PM, Melissa Wen wrote: On 04/10, Joshua Ashton wrote: > The comment here states "no OGAM in DPP since DCN1", yet that is not >

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

2024-04-12 Thread Alex Deucher
On Fri, Apr 12, 2024 at 1:31 PM Khatri, Sunil wrote: > > > On 4/12/2024 10:42 PM, Alex Deucher wrote: > > On Fri, Apr 12, 2024 at 1:05 PM Khatri, Sunil wrote: > > On 4/12/2024 8:50 PM, Alex Deucher wrote: > > On Fri, Apr 12, 2024 at 10:00 AM Sunil Khatri wrote: > > Adding initial set of

Re: [PATCH] drm/amd/display: Enable ogam_ram for dcn32+dcn35+dcn351

2024-04-12 Thread Harry Wentland
On 2024-04-12 12:26, Melissa Wen wrote: > On 04/12, Joshua Ashton wrote: >> >> >> On 4/11/24 3:26 PM, Melissa Wen wrote: >>> On 04/10, Joshua Ashton wrote: The comment here states "no OGAM in DPP since DCN1", yet that is not true. Testing on an RX 7900XTX (dcn32), it

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

2024-04-12 Thread Leo Li
On 2024-04-12 11:31, Alex Deucher wrote: On Fri, Apr 12, 2024 at 11:08 AM Pekka Paalanen wrote: 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

[linux-next:master] BUILD REGRESSION 9ed46da14b9b9b2ad4edb3b0c545b6dbe5c00d39

2024-04-12 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 9ed46da14b9b9b2ad4edb3b0c545b6dbe5c00d39 Add linux-next specific files for 20240412 Unverified Error/Warning (likely false positive, please contact us if interested): {standard input}:1011

[PATCH 5/6] drm/amdgpu: Skip dma map resource for null RDMA device

2024-04-12 Thread Philip Yang
To test RDMA using dummy driver on the system without NIC/RDMA device, the get dma pages pass in null device pointer, skip the dma map resource to avoid null device pointer access. Signed-off-by: Philip Yang --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 33 +++- 1 file

[PATCH 2/6] drm/amdgpu: Evict BOs from same process for contiguous allocation

2024-04-12 Thread Philip Yang
When TTM failed to alloc VRAM, TTM evict BOs from VRAM to system memory then retry the allocation, this currently skips the KFD BOs from the same process because KFD requires all BOs are resident for user queues. If TTM BO with TTM_PL_FLAG_CONTIGUOUS flag to alloc contiguous VRAM, allow TTM evict

[PATCH 6/6] drm/amdkfd: Bump kfd version for contiguous VRAM allocation

2024-04-12 Thread Philip Yang
Bump the kfd ioctl minor version to delcare the contiguous VRAM allocation flag support. Signed-off-by: Philip Yang --- include/uapi/linux/kfd_ioctl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h index

[PATCH 4/6] drm/amdkfd: Increase KFD bo restore wait time

2024-04-12 Thread Philip Yang
TTM allocate contiguous VRAM may takes more than 1 second to evict BOs for larger size RDMA buffer. Because KFD restore bo worker reserves all KFD BOs, then TTM cannot hold the remainning KFD BOs lock to evict them, this may causes TTM failed to alloc contiguous VRAM. Increase the KFD restore BO

[PATCH 3/6] drm/amdkfd: Evict BO itself for contiguous allocation

2024-04-12 Thread Philip Yang
If the BO pages pinned for RDMA is not contiguous on VRAM, evict it to system memory first to free the VRAM space, then allocate contiguous VRAM and then move it from system memory back to VRAM. Signed-off-by: Philip Yang --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 15 ++-

[PATCH 1/6] drm/amdgpu: Support contiguous VRAM allocation

2024-04-12 Thread Philip Yang
RDMA device with limited scatter-gather capability requires physical address contiguous VRAM buffer for RDMA peer direct access. Add a new KFD alloc memory flag and store as new GEM bo alloc flag. When pin this buffer object to export for RDMA peerdirect access, set

[PATCH 0/6] Best effort contiguous VRAM allocation

2024-04-12 Thread Philip Yang
This patch series implement new KFD memory alloc flag for best effort contiguous VRAM allocation, to support peer direct access RDMA device with limited scatter-gather dma capability. Philip Yang (6): drm/amdgpu: Support contiguous VRAM allocation drm/amdgpu: Evict BOs from same process for

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

2024-04-12 Thread Khatri, Sunil
On 4/12/2024 10:42 PM, Alex Deucher wrote: On Fri, Apr 12, 2024 at 1:05 PM Khatri, Sunil wrote: On 4/12/2024 8:50 PM, Alex Deucher wrote: On Fri, Apr 12, 2024 at 10:00 AM Sunil Khatri wrote: Adding initial set of registers for ipdump during devcoredump starting with gfx10 gc registers.

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

2024-04-12 Thread Alex Deucher
On Fri, Apr 12, 2024 at 1:05 PM Khatri, Sunil wrote: > > > On 4/12/2024 8:50 PM, Alex Deucher wrote: > > On Fri, Apr 12, 2024 at 10:00 AM Sunil Khatri wrote: > >> Adding initial set of registers for ipdump during > >> devcoredump starting with gfx10 gc registers. > >> > >> ip dump is triggered

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

2024-04-12 Thread Khatri, Sunil
On 4/12/2024 8:50 PM, Alex Deucher wrote: On Fri, Apr 12, 2024 at 10:00 AM Sunil Khatri wrote: Adding initial set of registers for ipdump during devcoredump starting with gfx10 gc registers. ip dump is triggered when gpu reset happens via devcoredump and the memory is allocated by each ip

[PATCH v3 3/3] drm/amdgpu: Add ip dump support in devcoredump

2024-04-12 Thread Sunil Khatri
Add support of dumping the IP registers for debugging purposes in devcoredump. Signed-off-by: Sunil Khatri --- .../gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c

[PATCH v3 2/3] drm/amdgpu: Add support of gfx10 register dump

2024-04-12 Thread Sunil Khatri
Adding gfx10 gc registers to be used for register dump via devcoredump during a gpu reset. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 16 +++ drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c| 127 +- .../include/asic_reg/gc/gc_10_1_0_offset.h

[PATCH v3 1/3] drm/amdgpu: add prototype to dump ip state

2024-04-12 Thread Sunil Khatri
Add the prototype for all the ips of different asics and set them to NULL for now and based on the need will keep adding the function for each ip eventually. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c

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

2024-04-12 Thread Alex Deucher
On Fri, Apr 12, 2024 at 12:49 PM Khatri, Sunil wrote: > > > On 4/12/2024 8:50 PM, Alex Deucher wrote: > > I would split this into two patches, one to add the core > infrastructure in devcoredump and one to add gfx10 support. The core > support could be squashed into patch 1 as well. > > > Sure

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

2024-04-12 Thread Khatri, Sunil
On 4/12/2024 8:50 PM, Alex Deucher wrote: I would split this into two patches, one to add the core infrastructure in devcoredump and one to add gfx10 support. The core support could be squashed into patch 1 as well. Sure would push the v3 with the changes. Regards Sunil

[PATCH] drm/amd/display: use mpcc_count to log MPC state

2024-04-12 Thread Melissa Wen
According to [1]: ``` DTN only logs 'pipe_count' instances of MPCC. However in some cases there are different number of MPCC than DPP (pipe_count). ``` As DTN log still relies on pipe_count to print mpcc state, switch to mpcc_count in all occurrences. [1]

Re: [PATCH] drm/amd/display: Enable ogam_ram for dcn32+dcn35+dcn351

2024-04-12 Thread Melissa Wen
On 04/12, Joshua Ashton wrote: > > > On 4/11/24 3:26 PM, Melissa Wen wrote: > > On 04/10, Joshua Ashton wrote: > > > The comment here states "no OGAM in DPP since DCN1", yet that is not > > > true. > > > > > > Testing on an RX 7900XTX (dcn32), it actually does exist in hardware and > > > works

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

2024-04-12 Thread Alex Deucher
On Fri, Apr 12, 2024 at 11:08 AM Pekka Paalanen wrote: > > 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

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

2024-04-12 Thread Alex Deucher
On Fri, Apr 12, 2024 at 10:00 AM Sunil Khatri wrote: > > Adding initial set of registers for ipdump during > devcoredump starting with gfx10 gc registers. > > ip dump is triggered when gpu reset happens via > devcoredump and the memory is allocated by each > ip and is freed once the dump is

Re: [PATCH] drm/amdgpu: add missing vbios version from devcoredump

2024-04-12 Thread Alex Deucher
Reviewed-by: Alex Deucher On Fri, Apr 12, 2024 at 7:25 AM Sunil Khatri wrote: > > Add vbios version in the devcoredump along with formatting > the information with proper alignment. > > Signed-off-by: Sunil Khatri > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 9 + > 1

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

2024-04-12 Thread Deucher, Alexander
[AMD Official Use Only - General] Reviewed-by: Alex Deucher From: Min, Frank Sent: Friday, April 12, 2024 8:06 AM To: amd-gfx@lists.freedesktop.org Cc: Gao, Likun ; Zhang, Hawking ; Deucher, Alexander ; Koenig, Christian Subject: [PATCH] drm/amdgpu: replace

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

2024-04-12 Thread Leo Li
On 2024-04-12 04:03, Pekka Paalanen wrote: 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

[PATCH] drm/radeon: silence UBSAN warning (v3)

2024-04-12 Thread Alex Deucher
Convert a variable sized array from [1] to []. v2: fix up a few more. v3: integrate comments from Kees. Tested-by: Jeff Johnson Acked-by: Christian König (v1) Signed-off-by: Alex Deucher Cc: keesc...@chromium.org --- drivers/gpu/drm/radeon/pptable.h | 10 +- 1 file changed, 5

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

2024-04-12 Thread Sunil Khatri
Adding initial set of registers for ipdump during devcoredump starting with gfx10 gc registers. ip dump is triggered when gpu reset happens via devcoredump and the memory is allocated by each ip and is freed once the dump is complete by devcoredump. Signed-off-by: Sunil Khatri ---

[PATCH v2 1/2] drm/amdgpu: add prototype to dump ip state

2024-04-12 Thread Sunil Khatri
Add the prototype for all the ips of different asics and set them to NULL for now and based on the need will keep adding the function for each ip eventually. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c

Re: [PATCH] Revert "drm/amd/display: fix USB-C flag update after enc10 feature init"

2024-04-12 Thread Harry Wentland
On 2024-04-12 00:16, Alex Deucher wrote: > ping? > > On Fri, Mar 29, 2024 at 6:59 PM Alex Deucher > wrote: >> >> This reverts commit b5abd7f983e14054593dc91d6df2aa5f8cc67652. >> >> This change breaks DSC on 4k monitors at 144Hz over USB-C. >> >> Closes:

[PATCH v2 5/5] drm/amdgpu: Enable redirection of irq's for IH V6.1

2024-04-12 Thread Sunil Khatri
Enable redirection of irq for pagefaults for specific clients to avoid overflow without dropping interrupts. So here we redirect the interrupts to another IH ring i.e ring1 where only these interrupts are processed. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/ih_v6_1.c | 14

[PATCH v2 4/5] drm/amdgpu: Enable redirection of irq's for IH V6.0

2024-04-12 Thread Sunil Khatri
Enable redirection of irq for pagefaults for specific clients to avoid overflow without dropping interrupts. So here we redirect the interrupts to another IH ring i.e ring1 where only these interrupts are processed. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/ih_v6_0.c | 14

[PATCH v2 3/5] drm/amdgpu: Add IH_RING1_CFG headers for IH v6.0

2024-04-12 Thread Sunil Khatri
Add offsets, mask and shift macros for IH v6.0 which are needed to configure ring1 client irq redirection. Signed-off-by: Sunil Khatri --- .../drm/amd/include/asic_reg/oss/osssys_6_0_0_offset.h | 4 .../amd/include/asic_reg/oss/osssys_6_0_0_sh_mask.h| 10 ++ 2 files changed,

[PATCH v2 2/5] drm:amdgpu: Enable IH RING1 for IH v6.1

2024-04-12 Thread Sunil Khatri
We need IH Ring1 for handling the pagefault interrupts which are overflowing the default ring for specific usecases. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/ih_v6_1.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH v2 1/5] drm:amdgpu: Enable IH RING1 for IH v6.0

2024-04-12 Thread Sunil Khatri
We need IH Ring1 for handling the pagefault interrupts which are overflowing the default ring for specific usecases. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/ih_v6_0.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] drm/radeon: silence UBSAN warning (v2)

2024-04-12 Thread Alex Deucher
On Wed, Apr 10, 2024 at 3:37 AM Kees Cook wrote: > > On Mon, Apr 08, 2024 at 01:37:48PM -0400, Alex Deucher wrote: > > Convert a variable sized array from [1] to []. > > > > v2: fix up a few more. > > > > Acked-by: Christian König (v1) > > Signed-off-by: Alex Deucher > > --- > >

[PATCH] drm/amdkfd: Enable SQ watchpoint for gfx10

2024-04-12 Thread Lancelot SIX
There are new control registers introduced in gfx10 used to configure hardware watchpoints triggered by SMEM instructions: SQ_WATCH{0,1,2,3}_{CNTL_ADDR_HI,ADDR_L}. Those registers work in a similar way as the TCP_WATCH* registers currently used for gfx9 and above. This patch adds support to

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

2024-04-12 Thread Min, Frank
[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 --- drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c| 2 +-

[PATCH] drm/amdgpu: add missing vbios version from devcoredump

2024-04-12 Thread Sunil Khatri
Add vbios version in the devcoredump along with formatting the information with proper alignment. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

Re: [PATCH V2] drm/amdgpu: Fix incorrect return value

2024-04-12 Thread Christian König
Am 12.04.24 um 10:55 schrieb YiPeng Chai: [Why] After calling amdgpu_vram_mgr_reserve_range multiple times with the same address, calling amdgpu_vram_mgr_query_page_status will always return -EBUSY. From the second call to amdgpu_vram_mgr_reserve_range, the same address will be added to

Re: [PATCH] drm/amdgpu: Fix incorrect return value

2024-04-12 Thread Christian König
Am 03.04.24 um 09:06 schrieb YiPeng Chai: [Why] After calling amdgpu_vram_mgr_reserve_range multiple times with the same address, calling amdgpu_vram_mgr_query_page_status will always return -EBUSY. From the second call to amdgpu_vram_mgr_reserve_range, the same address will be added to

RE: [PATCH V2] drm/amdgpu: Fix incorrect return value

2024-04-12 Thread Zhou1, Tao
[AMD Official Use Only - General] Reviewed-by: Tao Zhou > -Original Message- > From: Chai, Thomas > Sent: Friday, April 12, 2024 4:56 PM > To: amd-gfx@lists.freedesktop.org > Cc: Chai, Thomas ; Zhang, Hawking > ; Zhou1, Tao ; Li, Candice > ; Wang, Yang(Kevin) ; Yang, > Stanley ; Chai,

RE: [PATCH 0/2] First set in IP dump patches

2024-04-12 Thread Khatri, Sunil
[AMD Official Use Only - General] Ignore the series sent by mistake -Original Message- From: Sunil Khatri Sent: Friday, April 12, 2024 2:30 PM To: Deucher, Alexander ; Koenig, Christian Cc: amd-gfx@lists.freedesktop.org; Khatri, Sunil Subject: [PATCH 0/2] First set in IP dump

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

2024-04-12 Thread Khatri, Sunil
[AMD Official Use Only - General] Ignore sent by mistake. -Original Message- From: Sunil Khatri Sent: Friday, April 12, 2024 2:30 PM To: Deucher, Alexander ; Koenig, Christian Cc: amd-gfx@lists.freedesktop.org; Khatri, Sunil Subject: [PATCH 2/2] drm/amdgpu: Add support of gfx10

[PATCH 2/2] drm:amdgpu: Enable IH RING1 for IH v6.1

2024-04-12 Thread Sunil Khatri
We need IH Ring1 for handling the pagefault interrupts which are overflowing the default ring for specific usecases. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/ih_v6_1.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH 1/2] drm:amdgpu: Enable IH RING1 for IH v6.0

2024-04-12 Thread Sunil Khatri
We need IH Ring1 for handling the pagefault interrupts which are overflowing the default ring for specific usecases. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/ih_v6_0.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH 0/2] Init ring1 for IH

2024-04-12 Thread Sunil Khatri
Sunil Khatri (2): drm:amdgpu: Enable IH RING1 for IH v6.0 drm:amdgpu: Enable IH RING1 for IH v6.1 drivers/gpu/drm/amd/amdgpu/ih_v6_0.c | 8 ++-- drivers/gpu/drm/amd/amdgpu/ih_v6_1.c | 8 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) -- 2.34.1

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

2024-04-12 Thread Sunil Khatri
Adding initial set of registers for ipdump during devcoredump starting with gfx10 gc registers. ip dump is triggered when gpu reset happens via devcoredump and the memory is allocated by each ip and is freed once the dump is complete by devcoredump. Signed-off-by: Sunil Khatri ---

[PATCH 1/2] drm/amdgpu: add prototype to dump ip state

2024-04-12 Thread Sunil Khatri
Add the prototype for all the ips of different asics and set them to NULL for now and based on the need will keep adding the function for each ip eventually. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c

[PATCH 0/2] First set in IP dump patches

2024-04-12 Thread Sunil Khatri
Adding infrastructure needed for ipdump along with dumping gfx10 registers. Sunil Khatri (2): drm/amdgpu: add prototype to dump ip state drm/amdgpu: Add support of gfx10 register dump drivers/gpu/drm/amd/amdgpu/amdgpu.h | 16 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1

[PATCH V2] drm/amdgpu: Fix incorrect return value

2024-04-12 Thread YiPeng Chai
[Why] After calling amdgpu_vram_mgr_reserve_range multiple times with the same address, calling amdgpu_vram_mgr_query_page_status will always return -EBUSY. From the second call to amdgpu_vram_mgr_reserve_range, the same address will be added to the reservations_pending list again and is never

Re: [PATCH] drm/amdgpu: validate the parameters of amdgpu_vm_bo_clear_mappings

2024-04-12 Thread Jann Horn
On Thu, Apr 11, 2024 at 12:25 PM Christian König wrote: > Am 11.04.24 um 05:28 schrieb xinhui pan: > > Ensure there is no address overlapping. > > > > Reported-by: Vlad Stolyarov > > Signed-off-by: xinhui pan > > --- > > drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 ++ > > 1 file changed,

Re: [PATCH] drm/amdgpu: validate the parameters of amdgpu_vm_bo_clear_mappings

2024-04-12 Thread Vlad Stolyarov
+Jann Horn for his thoughts On Thu, Apr 11, 2024 at 12:25 PM Christian König wrote: > Am 11.04.24 um 05:28 schrieb xinhui pan: > > Ensure there is no address overlapping. > > > > Reported-by: Vlad Stolyarov > > Signed-off-by: xinhui pan > > --- > > drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c |

Re: [PATCH] drm/amdgpu: validate the parameters of bo mapping operations more clearly

2024-04-12 Thread Christian König
Am 12.04.24 um 09:35 schrieb xinhui pan: Verify the parameters of amdgpu_vm_bo_(map/replace_map/clearing_mappings) in one common place. Reported-by: Vlad Stolyarov Suggested-by: Christian König Signed-off-by: xinhui pan Reviewed-by: Christian König ---

[PATCH] drm/amdgpu: validate the parameters of bo mapping operations more clearly

2024-04-12 Thread xinhui pan
Verify the parameters of amdgpu_vm_bo_(map/replace_map/clearing_mappings) in one common place. Reported-by: Vlad Stolyarov Suggested-by: Christian König Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 72 -- 1 file changed, 46 insertions(+), 26

Re: [PATCH] drm/amdgpu: validate the parameters of bo mapping operations more clearly

2024-04-12 Thread Christian König
Am 12.04.24 um 08:47 schrieb xinhui pan: Verify the parameters of amdgpu_vm_bo_(map/replace_map/clearing_mappings) in one common place. Reported-by: Vlad Stolyarov Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 63 -- 1 file changed, 39

[PATCH] drm/amdgpu: validate the parameters of bo mapping operations more clearly

2024-04-12 Thread xinhui pan
Verify the parameters of amdgpu_vm_bo_(map/replace_map/clearing_mappings) in one common place. Reported-by: Vlad Stolyarov Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 63 -- 1 file changed, 39 insertions(+), 24 deletions(-) diff --git

[PATCH Review 1/1] drm/amdgpu: Support setting reset_method at runtime

2024-04-12 Thread Stanley . Yang
Signed-off-by: Stanley.Yang --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 80b9642f2bc4..5f5bf0c26b1f 100644 ---