[PATCH v1 1/2] drm:amdgpu: enable IH ring1 for IH v7.0

2024-07-03 Thread Sunil Khatri
We need IH ring1 for handling the pagefault interrupts which over flow in default ring for specific usecases. Enable ring1 allows software to redirect high interrupts to ring1 from default IH ring. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/ih_v7_0.c | 11 +-- 1 file

[PATCH v1 2/2] drm/amdgpu: enable redirection of irq's for IH v7.0

2024-07-03 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_v7_0.c | 15

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

2024-07-03 Thread Sunil Khatri
Add general registers of gfx12 in ipdump for devcoredump support. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 101 + 1 file changed, 101 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd/amdgpu

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

2024-07-03 Thread Sunil Khatri
Add support of gfx12 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_v12_0.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b

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

2024-07-03 Thread Sunil Khatri
Add gfx12 support of CP queue registers for all queues to be used by devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 111 - 1 file changed, 109 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b

[PATCH v1 4/4] drm/amdgpu: add gfx queue support for gfx12 ipdump

2024-07-03 Thread Sunil Khatri
Add support of all the CP GFX queues for gfx12 ipdump to be used by devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 94 ++ 1 file changed, 94 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd

[PATCH v1 0/4] GFX12 ipdump of gfx IP

2024-07-03 Thread Sunil Khatri
Validated on navi48 Sunil Khatri (4): drm/amdgpu: add gfx12 register support in ipdump drm/amdgpu: add print support for gfx12 ipdump drm/amdgpu: add cp queue registers for gfx12 ipdump drm/amdgpu: add gfx queue support for gfx12 ipdump drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 316

[PATCH v1 1/2] drm/amdgpu: fix out of bounds access in gfx10 during ip dump

2024-07-02 Thread Sunil Khatri
During ip dump in gfx10 the index variable is reused but is not reinitialized to 0 and this causes the index calculation to be wrong and access out of bound access. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v1 2/2] drm/amdgpu: fix out of bounds access in gfx11 during ip dump

2024-07-02 Thread Sunil Khatri
During ip dump in gfx11 the index variable is reused but is not reinitialized to 0 and this causes the index calculation to be wrong and access out of bound access. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

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

2024-05-30 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_0.c | 110 +- 1 file changed, 108 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b

[PATCH v2 2/3] drm/amdgpu: add print support for gfx9 ipdump

2024-05-30 Thread Sunil Khatri
Add support of gfx9 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_0.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v2 1/3] drm/amdgpu: add gfx9 register support in ipdump

2024-05-30 Thread Sunil Khatri
Add general registers of gfx9 in ipdump for devcoredump support. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 124 +- 1 file changed, 123 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd

[PATCH v1 1/3] drm/amdgpu: add gfx9 register support in ipdump

2024-05-29 Thread Sunil Khatri
Add general registers of gfx9 in ipdump for devcoredump support. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 124 +- 1 file changed, 123 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd

[PATCH v1 2/3] drm/amdgpu: add print support for gfx9 ipdump

2024-05-29 Thread Sunil Khatri
Add support of gfx9 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_0.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

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

2024-05-29 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_0.c | 110 +- 1 file changed, 108 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b

[PATCH v1 0/3] gfx9 ipdump patches

2024-05-29 Thread Sunil Khatri
gfx9 ipdump patches Sunil Khatri (3): drm/amdgpu: add gfx9 register support in ipdump drm/amdgpu: add print support for gfx9 ipdump drm/amdgpu: add cp queue registers for gfx9 ipdump drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 248 +- 1 file changed, 246 insertions

[PATCH v1 00/10] ipdump support for gfx10 and gfx11

2024-05-22 Thread Sunil Khatri
With this support for gfx10 and gfx11 ipdump is complete. Also added dev_info needed fields for devcoredump. Sunil Khatri (10): drm/amdgpu: rename the ip_dump to ip_dump_core drm/amdgpu: Add cp queues support fro gfx10 in ipdump drm/amdgpu: add gfx queue support of gfx10 in ipdump drm

[PATCH v1 10/10] drm/amdgpu: add gfx queue support for gfx11 ipdump

2024-05-22 Thread Sunil Khatri
Add support of all the CP GFX queues for gfx11 ipdump to be used by devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 92 ++ 1 file changed, 92 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd

[PATCH v1 01/10] drm/amdgpu: rename the ip_dump to ip_dump_core

2024-05-22 Thread Sunil Khatri
Rename the memory pointer from ip_dump to ip_dump_core to make it specific to core registers and rest other registers to be dumped in their respective memories. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 14

[PATCH v1 05/10] drm/amdgpu: add more device info to the devcoredump

2024-05-22 Thread Sunil Khatri
Adding more device information: a. PCI info b. VRAM and GTT info c. GDC config Also correct the print layout and section information for in devcoredump. Signed-off-by: Sunil Khatri --- .../gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 21 +-- 1 file changed, 19 insertions(+), 2

[PATCH v1 09/10] drm/amdgpu: add cp queue registers for gfx11 ipdump

2024-05-22 Thread Sunil Khatri
Add gfx11 support of CP queue registers for all queues to be used by devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 111 - 1 file changed, 109 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b

[PATCH v1 04/10] drm/amdgpu: add prints while ip register dump

2024-05-22 Thread Sunil Khatri
add prints before and after ip registers are dump. It avoids user to think of system being stuck/hung as register dump takes time after a gpu hang. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v1 07/10] drm/amdgpu: add gfx11 registers support in ipdump

2024-05-22 Thread Sunil Khatri
Add general registers of gfx11 in ipdump for devcoredump support. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 107 - 1 file changed, 106 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd

[PATCH v1 06/10] drm/amdgpu: Add missing offsets in gc_11_0_0_offset.h

2024-05-22 Thread Sunil Khatri
IB1 registers: regCP_IB1_CMD_BUFSZ regCP_IB1_BASE_LO regCP_IB1_BASE_HI regCP_IB1_BUFSZ regCP_MES_DEBUG_INTERRUPT_INSTR_PNTR Above registers are part of the asic but not of the offset file for gc_11_0_0_offset.h and hence adding them. Signed-off-by: Sunil Khatri --- .../gpu/drm/amd/include

[PATCH v1 08/10] drm/amdgpu: add print support for gfx11 ipdump

2024-05-22 Thread Sunil Khatri
Add support of gfx11 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_v11_0.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH v1 02/10] drm/amdgpu: Add cp queues support fro gfx10 in ipdump

2024-05-22 Thread Sunil Khatri
Add support to dump registers of all instances of cp queue registers of gfx10 to devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 116 +++- 2 files changed, 113 insertions(+), 4 deletions

[PATCH v1 03/10] drm/amdgpu: add gfx queue support of gfx10 in ipdump

2024-05-22 Thread Sunil Khatri
Add gfx queue register for all instances in devcoredump for gfx10. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 90 + 2 files changed, 91 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v3 2/4] drm/amdgpu: Add support to dump gfx10 cp registers

2024-05-15 Thread Sunil Khatri
add support to dump registers of all instances of cp registers in gfx10 Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 117 +++- 2 files changed, 114 insertions(+), 4 deletions(-) diff --git

[PATCH v3 4/4] drm/amdgpu: add prints while ip registr dump

2024-05-15 Thread Sunil Khatri
add prints before and after during ip registers dump. It avoids user to think of system being stuck/hung as register dump takes time after a gpu hang. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v3 3/4] drm/amdgpu: add support to dump gfx10 queue registers

2024-05-15 Thread Sunil Khatri
Add gfx queue register for all instances in ip dump for gfx10. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 86 + 2 files changed, 87 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v3 1/4] drm/amdgpu: update the ip_dump to ipdump_core

2024-05-15 Thread Sunil Khatri
Update the memory pointer from ip_dump to ipdump_core to make it specific to core registers and rest other registers to be dumped in their respective memories. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 14

[PATCH] drm/amdgpu: add more device info to the devcoredump

2024-05-14 Thread Sunil Khatri
Adding more device information: a. PCI info b. VRAM and GTT info c. GDC config Also correct the print layout and section information for in devcoredump. Signed-off-by: Sunil Khatri --- .../gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 21 +-- 1 file changed, 19 insertions(+), 2

[PATCH v1 0/4] Add CP and GFX Queue register in ip Dump for

2024-05-13 Thread Sunil Khatri
*** BLURB HERE *** Sunil Khatri (4): drm/amdgpu: update the ip_dump to ipdump_core drm/amdgpu: Add support to dump gfx10 cp registers drm/amdgpu: add support to dump gfx10 queue registers drm/amdgpu: add prints while ip registr dump drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2

[PATCH v2 3/4] drm/amdgpu: add support to dump gfx10 queue registers

2024-05-13 Thread Sunil Khatri
Add gfx queue register for all instances in ip dump for gfx10. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 86 + 2 files changed, 87 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v2 4/4] drm/amdgpu: add prints while ip registr dump

2024-05-13 Thread Sunil Khatri
add prints before and after during ip registers dump. It avoids user to think of system being stuck/hung as register dump takes time after a gpu hang. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v2 2/4] drm/amdgpu: Add support to dump gfx10 cp registers

2024-05-13 Thread Sunil Khatri
add support to dump registers of all instances of cp registers in gfx10 Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 117 +++- 2 files changed, 114 insertions(+), 4 deletions(-) diff --git

[PATCH v2 1/4] drm/amdgpu: update the ip_dump to ipdump_core

2024-05-13 Thread Sunil Khatri
Update the memory pointer from ip_dump to ipdump_core to make it specific to core registers and rest other registers to be dumped in their respective memories. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 14

[PATCH v1 3/4] drm/amdgpu: add support to dump gfx10 queue registers

2024-05-09 Thread Sunil Khatri
Add gfx queue register for all instances in ip dump for gfx10. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 83 + 2 files changed, 84 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v1 4/4] drm/amdgpu: add prints while ip registr dump

2024-05-09 Thread Sunil Khatri
add prints before and after during ip registers dump. It avoids user to think of system being stuck/hung as register dump takes time after a gpu hang. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v1 2/4] drm/amdgpu: Add support to dump gfx10 cp registers

2024-05-09 Thread Sunil Khatri
add support to dump registers of all instances of cp registers in gfx10 Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 117 +++- 2 files changed, 114 insertions(+), 4 deletions(-) diff --git

[PATCH v1 1/4] drm/amdgpu: update the ip_dump to ipdump_core

2024-05-09 Thread Sunil Khatri
Update the memory pointer from ip_dump to ipdump_core to make it specific to core registers and rest other registers to be dumped in their respective memories. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 14

[PATCH v1 0/4] Add CP and GFX Queue register in ip Dump for

2024-05-09 Thread Sunil Khatri
*** BLURB HERE *** Sunil Khatri (4): drm/amdgpu: update the ip_dump to ipdump_core drm/amdgpu: Add support to dump gfx10 cp registers drm/amdgpu: add support to dump gfx10 queue registers drm/amdgpu: add prints while ip registr dump drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2

[PATCH v1 4/4] drm/amdgpu: add gfx queue registers for gfx10 ip dump

2024-05-03 Thread Sunil Khatri
Add gfx queue registers in the list of registers to be dumped in ip dump for gfx10 Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b

[PATCH v1 2/4] drm/amdgpu: add se registers to ip dump for gfx10

2024-05-03 Thread Sunil Khatri
add the registers of SE block of gfx for ip dump for gfx10 IP. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index

[PATCH v1 3/4] drm/amdgpu: add compute registers in ip dump for gfx10

2024-05-03 Thread Sunil Khatri
add compute registers in set of registers to dump during ip dump for gfx10. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 42 +- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu

[PATCH v1 0/4] Adding differnt blocks of gfx10 registers for register dump

2024-05-03 Thread Sunil Khatri
*** BLURB HERE *** Sunil Khatri (4): drm/amdgpu: add CP headers registers to gfx10 dump drm/amdgpu: add se registers to ip dump for gfx10 drm/amdgpu: add compute registers in ip dump for gfx10 drm/amdgpu: add gfx queue registers for gfx10 ip dump drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

[PATCH v1 1/4] drm/amdgpu: add CP headers registers to gfx10 dump

2024-05-03 Thread Sunil Khatri
add registers in the ip dump for CP headers in gfx10 Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index

[PATCH] drm/amdgpu: remove ip dump reg_count variable

2024-05-02 Thread Sunil Khatri
reg_count is not used and the register count is directly derived from the array size and hence removed. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 1 - drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/gpu/drm

[PATCH] drm/amdgpu: add function descripion of new functions

2024-04-26 Thread Sunil Khatri
Add function description of the new functions added in amd_ip_funcs. new functions added are: a. dump_ip_state b. print_ip_state Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/include/amd_shared.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/include

[PATCH] drm/amdgpu: skip ip dump if devcoredump flag is set

2024-04-25 Thread Sunil Khatri
Do not dump the ip registers during driver reload in passthrough environment. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm

[PATCH v5 6/6] drm/amdgpu: add ip dump for each ip in devcoredump

2024-04-17 Thread Sunil Khatri
Add ip dump for each ip of the asic in the devcoredump for all the ips where a callback is registered for register dump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH v5 5/6] drm/amdgpu: dump ip state before reset for each ip

2024-04-17 Thread Sunil Khatri
Invoke the dump_ip_state function for each ip before the asic resets and save the register values for debugging via devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v5 4/6] drm/amdgpu: add support for gfx v10 print

2024-04-17 Thread Sunil Khatri
Add support to print ip information to be used to print registers in devcoredump buffer. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers

[PATCH v5 3/6] drm/amdgpu: add protype for print ip state

2024-04-17 Thread Sunil Khatri
Add the protoype for print ip state to be used to print the registers in devcoredump during a gpu reset. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c

[PATCH v5 2/6] drm/amdgpu: add support of gfx10 register dump

2024-04-17 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 | 8 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 4 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c| 130

[PATCH v5 1/6] drm/amdgpu: add prototype for ip dump

2024-04-17 Thread Sunil Khatri
Add the prototype to dump ip registers for all ips of different asics and set them to NULL for now. Based on the requirement add a function pointer for each of them. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu

[PATCH v4 5/6] drm/amdgpu: dump ip state before reset for each ip

2024-04-17 Thread Sunil Khatri
Invoke the dump_ip_state function for each ip before the asic resets and save the register values for debugging via devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v4 6/6] drm/amdgpu: add ip dump for each ip in devcoredump

2024-04-17 Thread Sunil Khatri
Add ip dump for each ip of the asic in the devcoredump for all the ips where a callback is registered for register dump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH v4 4/6] drm/amdgpu: add support for gfx v10 print

2024-04-17 Thread Sunil Khatri
Add support to print ip information to be used to print registers in devcoredump buffer. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers

[PATCH v4 3/6] drm/amdgpu: add protype for print ip state

2024-04-17 Thread Sunil Khatri
Add the protoype for print ip state to be used to print the registers in devcoredump during a gpu reset. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c

[PATCH v4 2/6] drm/amdgpu: add support of gfx10 register dump

2024-04-17 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 | 8 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 4 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c| 130

[PATCH v4 1/6] drm/amdgpu: add prototype for ip dump

2024-04-17 Thread Sunil Khatri
Add the prototype to dump ip registers for all ips of different asics and set them to NULL for now. Based on the requirement add a function pointer for each of them. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu

[PATCH v3 2/6] drm/amdgpu: add support of gfx10 register dump

2024-04-16 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 | 8 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 4 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c| 130

[PATCH v3 4/6] drm/amdgpu: add support for gfx v10 print

2024-04-16 Thread Sunil Khatri
Add support to print ip information to be used to print registers in devcoredump buffer. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers

[PATCH v3 5/6] drm/amdgpu: dump ip state before reset for each ip

2024-04-16 Thread Sunil Khatri
Invoke the dump_ip_state function for each ip before the asic resets and save the register values for debugging via devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v3 6/6] drm/amdgpu: add ip dump for each ip in devcoredump

2024-04-16 Thread Sunil Khatri
Add ip dump for each ip of the asic in the devcoredump for all the ips where a callback is registered for register dump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH v3 3/6] drm/amdgpu: add protype for print ip state

2024-04-16 Thread Sunil Khatri
Add the protoype for print ip state to be used to print the registers in devcoredump during a gpu reset. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c

[PATCH v3 1/6] drm/amdgpu: add prototype for ip dump

2024-04-16 Thread Sunil Khatri
Add the prototype to dump ip registers for all ips of different asics and set them to NULL for now. Based on the requirement add a function pointer for each of them. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu

[PATCH v2 3/6] drm/amdgpu: add protype for print ip state

2024-04-16 Thread Sunil Khatri
Add the protoype for print ip state to be used to print the registers in devcoredump during a gpu reset. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c

[PATCH v2 6/6] drm/amdgpu: add ip dump for each ip in devcoredump

2024-04-16 Thread Sunil Khatri
Add ip dump for each ip of the asic in the devcoredump for all the ips where a callback is registered for register dump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH v2 5/6] drm/amdgpu: dump ip state before reset for each ip

2024-04-16 Thread Sunil Khatri
Invoke the dump_ip_state function for each ip before the asic resets and save the register values for debugging via devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v2 1/6] drm/amdgpu: add prototype for ip dump

2024-04-16 Thread Sunil Khatri
Add the prototype to dump ip registers for all ips of different asics and set them to NULL for now. Based on the requirement add a function pointer for each of them. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu

[PATCH v2 4/6] drm/amdgpu: add support for gfx v10 print

2024-04-16 Thread Sunil Khatri
Add support to print ip information to be used to print registers in devcoredump buffer. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers

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

2024-04-16 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 | 8 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 4 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c| 130

[PATCH 0/6] Infrastructure to dump ip registers in devcoredump

2024-04-16 Thread Sunil Khatri
starting with gfx 10 registers here we add the complete infra for ip dump needed in devcoredump. Sunil Khatri (6): drm/amdgpu: add prototype for ip dump drm/amdgpu: add support of gfx10 register dump drm/amdgpu: add protype for print ip state drm/amdgpu: add support for gfx v10 print

[PATCH v3 1/5] drm:amdgpu: enable IH RB ring1 for IH v6.0

2024-04-16 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 | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v3 2/5] drm:amdgpu: Enable IH ring1 for IH v6.1

2024-04-16 Thread Sunil Khatri
We need IH ring1 for handling the pagefault interrupts which over flow in default ring for specific usecases. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/ih_v6_1.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/ih_v6_1.c

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

2024-04-16 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 | 15

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

2024-04-16 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 | 15

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

2024-04-16 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 4/6] drm/amdgpu: add support for gfx v10 print

2024-04-16 Thread Sunil Khatri
Add support to print ip information to be used to print registers in devcoredump buffer. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers

[PATCH 3/6] drm/amdgpu: add protype for print ip state

2024-04-16 Thread Sunil Khatri
Add the protoype for print ip state to be used to print the registers in devcoredump during a gpu reset. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c

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

2024-04-16 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 | 12 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 4 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c| 131

[PATCH 1/6] drm/amdgpu: add prototype for ip dump

2024-04-16 Thread Sunil Khatri
Add the prototype to dump ip registers for all ips of different asics and set them to NULL for now. Based on the requirement add a function pointer for each of them. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 1 + drivers/gpu/drm/amd/amdgpu

[PATCH 6/6] drm/amdgpu: add ip dump for each ip in devcoredump

2024-04-16 Thread Sunil Khatri
Add ip dump for each ip of the asic in the devcoredump for all the ips where a callback is registered for register dump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH 5/6] drm/amdgpu: dump ip state before reset for each ip

2024-04-16 Thread Sunil Khatri
Invoke the dump_ip_state function for each ip before the asic resets and save the register values for debugging via devcoredump. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 0/6] Infrastructure to dump ip registers in devcoredump

2024-04-16 Thread Sunil Khatri
starting with gfx 10 registers here we add the complete infra for ip dump needed in devcoredump. Sunil Khatri (6): drm/amdgpu: add prototype for ip dump drm/amdgpu: add support of gfx10 register dump drm/amdgpu: add protype for print ip state drm/amdgpu: add support for gfx v10 print

[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 b/drivers/gpu

[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

[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 --- drivers/gpu

[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

[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 a/drivers/gpu/drm/amd/amdgpu

[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 a/drivers/gpu/drm/amd/amdgpu

[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 a/drivers/gpu/drm/amd/amdgpu

[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 a/drivers/gpu/drm/amd/amdgpu

[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 a/drivers/gpu/drm/amd/amdgpu

  1   2   >