[PATCH] drm/amdgpu: add amdgpu_jpeg_sched_mask debugfs

2024-09-10 Thread Sathishkumar S
more cores in the jpeg ip. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c| 71 + drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.h| 1 + 3 files changed, 74 insertions(+) diff --git a/drivers/gpu

[PATCH] drm/amdgpu: update jpeg max decode resolution

2024-04-22 Thread Sathishkumar S
jpeg ip version v2.1 and higher supports 16kx16k resolution decode Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/nv.c| 6 +++--- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/soc21.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff

[PATCH] drm/amdgpu: set vcn mgcg flag for picasso

2021-05-05 Thread Sathishkumar S
From: Sathishkumar S enable vcn mgcg flag for picasso. Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/soc15.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c

[PATCH] drm/amdgpu: update vcn1.0 Non-DPG suspend sequence

2021-05-05 Thread Sathishkumar S
update suspend register settings in Non-DPG mode. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c index

[PATCH] drm/amd/pm: use attr_update if the attr has it

2021-05-28 Thread Sathishkumar S
use attr_update if its available as part of the attribute. default_attr_update was used even if attr->attr_update is true. Signed-off-by: Sathishkumar S Reviewed-by: Shashank Sharma --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH] drm/amdgpu: support atcs method powershift (v4)

2021-05-28 Thread Sathishkumar S
-off-by: Sathishkumar S Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 6 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 55 drivers/gpu/drm/amd/include/amd_acpi.h | 18 3 files changed, 79 insertions(+) diff

[PATCH] drm/amdgpu: enable smart shift on dGPU (v5)

2021-05-31 Thread Sathishkumar S
(Shashank) return 0 if device does not support smart shift. (Lizo) V5: rebased on ATPX/ATCS structures global (Alex) Signed-off-by: Sathishkumar S Reviewed-by: Lijo Lazar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 18 drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amd/pm: sysfs attrs to read ss powershare (v6)

2021-06-01 Thread Sathishkumar S
in amdgpu_device_attrs and use attr_update (Lijo) V6: all checks for ss support to be in if else if statements. (Lijo) Signed-off-by: Sathishkumar S Reviewed-by: Lijo Lazar --- Documentation/gpu/amdgpu.rst | 15 +++ .../gpu/drm/amd/include/kgd_pp_interface.h| 2

[PATCH] drm/amdgpu: attr to control SS2.0 bias level (v2)

2021-06-01 Thread Sathishkumar S
add sysfs attr to read/write smartshift bias level. document smartshift_bias sysfs attr. V2: add attr to amdgpu_device_attrs and use attr_update (Lijo) Signed-off-by: Sathishkumar S Reviewed-by: Lijo Lazar --- Documentation/gpu/amdgpu.rst| 6 ++ drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amd/pm: support ss metrics read on yellow_carp

2021-06-11 Thread Sathishkumar S
add support to read smart shift apu and dgpu power share on yellow_carp Signed-off-by: Sathishkumar S Reviewed-by: Lijo Lazar --- .../drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c | 34 +++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13

[PATCH] drm/amd/pm: support ss metrics read on renoir

2021-06-11 Thread Sathishkumar S
add support to read smart shift apu and dgpu power share on renoir. Signed-off-by: Sathishkumar S --- .../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 34 +++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c b/drivers/gpu/drm/amd/pm

[PATCH] drm/amdgpu: update IP count INFO query

2023-09-14 Thread Sathishkumar S
update the query to return the number of functional instances where there is more than an instance of the requested type and for others continue to return one. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 90 + 1 file changed, 61 insertions

[PATCH v2] drm/amdgpu: update IP count INFO query

2023-09-15 Thread Sathishkumar S
update the query to return the number of functional instances where there is more than an instance of the requested type and for others continue to return one. v2: count must reflect the actual number of engines (Alex) Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm/amd

[PATCH v3] drm/amdgpu: update IP count INFO query

2023-09-18 Thread Sathishkumar S
update the query to return the number of functional instances where there is more than an instance of the requested type and for others continue to return one. v2: count must reflect the actual number of engines (Alex) v3: fix wrong number of engines for vcn (Alex) Signed-off-by: Sathishkumar S

[PATCH] drm/amdgpu: fix ip count query for xcp partitions

2023-09-20 Thread Sathishkumar S
fix wrong ip count INFO on spatial partitions. update the query to return the instance count corresponding to the partition id. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 32 + 1 file changed, 32 insertions(+) diff --git a/drivers/gpu

[PATCH v2] drm/amdgpu: fix ip count query for xcp partitions

2023-09-21 Thread Sathishkumar S
fix wrong ip count INFO on spatial partitions. update the query to return the instance count corresponding to the partition id. v2: initialize variables only when required to be (Christian) move variable declarations to the beginning of function (Christian) Signed-off-by: Sathishkumar S

[PATCH] drm/amd/pm: support ss metrics read for smu11

2022-05-11 Thread Sathishkumar S
-by: Sathishkumar S Acked-by: Alex Deucher --- .../pmfw_if/smu11_driver_if_sienna_cichlid.h | 63 +++ .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 161 ++ 2 files changed, 187 insertions(+), 37 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if

[PATCH v5] drm/amd/pm: support ss metrics read for smu11

2022-05-11 Thread Sathishkumar S
redundant code (Lijo) Signed-off-by: Sathishkumar S Acked-by: Alex Deucher Reviewed-by: Lijo Lazar --- .../pmfw_if/smu11_driver_if_sienna_cichlid.h | 63 +++ .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 161 ++ 2 files changed, 187 insertions(+), 37 deletions(-) diff

[PATCH] drm/amd/pm: consistent approach for smartshift

2022-05-11 Thread Sathishkumar S
always create smartshift attributes from dgpu device even on SS1.0. consider units of power in metrics table and convert if necessary. powershift value is in percentage and values to range between 0-100. Suggested-by: Alex Deucher Signed-off-by: Sathishkumar S Acked-by: Alex Deucher

[PATCH] drm/amd/pm: update smartshift powerboost calc for smu12

2022-05-11 Thread Sathishkumar S
smartshift apu and dgpu power boost are reported as percentage with respect to their power limits. This value[0-100] reflects the boost for the respective device. Signed-off-by: Sathishkumar S --- .../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 60 ++- 1 file changed, 44

[PATCH] drm/amd/pm: update smartshift powerboost calc for smu13

2022-05-11 Thread Sathishkumar S
smartshift apu and dgpu power boost are reported as percentage with respect to their power limits. adjust the units of power before calculating the percentage of boost. Signed-off-by: Sathishkumar S --- .../drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c | 60 ++- 1 file changed, 44

[PATCH] drm/amd/pm: consistent approach for smartshift

2022-05-11 Thread Sathishkumar S
create smartshift sysfs attributes from dGPU device even on smartshift 1.0 platform to be consistent. Do not populate the attributes on platforms that have APU only but not dGPU or vice versa. Suggested-by: Alex Deucher Signed-off-by: Sathishkumar S Acked-by: Alex Deucher --- drivers/gpu/drm

[PATCH v2] drm/amd/pm: consistent approach for smartshift

2022-05-12 Thread Sathishkumar S
-by: Sathishkumar S Acked-by: Alex Deucher --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 136 - 1 file changed, 74 insertions(+), 62 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index d3228216b2da..292e8c241597 100644

[PATCH v2] drm/amd/pm: consistent approach for smartshift

2022-05-13 Thread Sathishkumar S
into a function and reuse (Lijo) Suggested-by: Alex Deucher Signed-off-by: Sathishkumar S Acked-by: Alex Deucher --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 130 ++--- 1 file changed, 62 insertions(+), 68 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers

[PATCH] drm/amdgpu: Normalize reg offsets on VCN v4.0.3

2024-11-04 Thread Sathishkumar S
Remote access to external AIDs isn't possible with VCN RRMT disabled and it is disabled on SoCs with GC 9.4.4, so use only local offsets. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff

[PATCH] drm/amdgpu: Normalize reg offsets on VCN v4.0.3

2024-11-04 Thread Sathishkumar S
Remote access to external AIDs isn't possible with VCN RRMT disabled and it is disabled on SoCs with GC 9.4.4, so use only local offsets. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff

[PATCH 2/2] drm/amdgpu: Add amdgpu_vcn_sched_mask debugfs

2024-11-11 Thread Sathishkumar S
Add debugfs entry to enable or disable job submission to specific vcn instances. The entry is created only when there is more than an instance and is unified queue type. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c

[PATCH 1/2] drm/amdgpu: Add a func for core specific reg offset

2024-11-11 Thread Sathishkumar S
Add an inline function to calculate core specific register offsets for JPEG v4.0.3 and reuse it, makes code more readable and easier to align. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 54 +++- 1 file changed, 24 insertions(+), 30 deletions

[PATCH 1/7] drm/amdgpu: Per-instance init func for JPEG4_0_3

2025-01-31 Thread Sathishkumar S
Add helper functions to handle per-instance and per-core initialization and deinitialization in JPEG4_0_3. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 190 --- 1 file changed, 98 insertions(+), 92 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 2/7] drm/amdgpu: Add ring reset callback for JPEG4_0_3

2025-01-31 Thread Sathishkumar S
Add ring reset function callback for JPEG4_0_3 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 60 ++-- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH 3/7] drm/amdgpu: Add ring reset callback for JPEG4_0_0

2025-01-31 Thread Sathishkumar S
Add ring reset function callback for JPEG4_0_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 5/7] drm/amdgpu: Per-instance init func for JPEG2_5_0

2025-01-31 Thread Sathishkumar S
Add helper functions to handle per-instance initialization and deinitialization in JPEG2_5_0. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 102 + 1 file changed, 55 insertions(+), 47 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 4/7] drm/amdgpu: Add ring reset callback for JPEG3_0_0

2025-01-31 Thread Sathishkumar S
Add ring reset function callback for JPEG3_0_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c b

[PATCH 6/7] drm/amdgpu: Add ring reset callback for JPEG2_5_0

2025-01-31 Thread Sathishkumar S
Add ring reset function callback for JPEG2_5_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c b

[PATCH 0/7] Add jpeg ring reset callback

2025-01-31 Thread Sathishkumar S
This patch-series adds jpeg ring reset callback function to recover from job timeouts without a full gpu reset. How is it tested:- A bad job on jpeg causes timeout and recovers alongside an unaffected mpv vaapi-decode(vcn) in playback loop. Sathishkumar S (7): drm/amdgpu: Per-instance init

[PATCH 7/7] drm/amdgpu: Add ring reset callback for JPEG2_0_0

2025-01-31 Thread Sathishkumar S
Add ring reset function callback for JPEG2_0_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c b

[PATCH v2 1/7] drm/amdgpu: Per-instance init func for JPEG4_0_3

2025-02-10 Thread Sathishkumar S
Add helper functions to handle per-instance and per-core initialization and deinitialization in JPEG4_0_3. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 190 --- 1 file changed, 98 insertions(+), 92 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v2 0/7] drm/amdgpu: jpeg ring reset callback

2025-02-10 Thread Sathishkumar S
This patch series enables jpeg ring reset callback to recover from job timeouts without having to do a full gpu reset. V2: - sched->ready flag shouldn't be modified by backends (Christian) - use drm_sched_wqueue_stop()/drm_sched_wqueue_start() instead (Alex) Sathishkumar S (7): dr

[PATCH v2 4/7] drm/amdgpu: Add ring reset callback for JPEG3_0_0

2025-02-10 Thread Sathishkumar S
Add ring reset function callback for JPEG3_0_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v2 3/7] drm/amdgpu: Add ring reset callback for JPEG4_0_0

2025-02-10 Thread Sathishkumar S
Add ring reset function callback for JPEG4_0_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v2 2/7] drm/amdgpu: Add ring reset callback for JPEG4_0_3

2025-02-10 Thread Sathishkumar S
Add ring reset function callback for JPEG4_0_3 to recover from job timeouts without a full gpu reset. V2: - sched->ready flag shouldn't be modified by back-ends (Christian) - use drm_sched_wqueue_stop()/drm_sched_wqueue_start() instead (Alex) Signed-off-by: Sathishkumar S --- drivers

[PATCH v2 7/7] drm/amdgpu: Add ring reset callback for JPEG2_0_0

2025-02-10 Thread Sathishkumar S
Add ring reset function callback for JPEG2_0_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v2 5/7] drm/amdgpu: Per-instance init func for JPEG2_5_0

2025-02-10 Thread Sathishkumar S
Add helper functions to handle per-instance initialization and deinitialization in JPEG2_5_0. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 102 + 1 file changed, 55 insertions(+), 47 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v2 6/7] drm/amdgpu: Add ring reset callback for JPEG2_5_0

2025-02-10 Thread Sathishkumar S
Add ring reset function callback for JPEG2_5_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 4/9] drm/amdgpu: Enable devcoredump for JPEG5_0_1

2025-01-28 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG5_0_1 Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 65 +++- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.h | 61 ++ 2 files changed, 124 insertions(+), 2 deletions(-) diff --git a

[PATCH 0/9] drm/amdgpu: Add jpeg devcoredump support

2025-01-28 Thread Sathishkumar S
This patch-series enables jpeg devcoredump support Sathishkumar S (9): drm/amdgpu: Add a func for core specific reg offset drm/amdgpu: Add helper funcs for jpeg devcoredump drm/amdgpu: Enable devcoredump for JPEG4_0_3 drm/amdgpu: Enable devcoredump for JPEG5_0_1 drm/amdgpu: Enable

[PATCH 1/9] drm/amdgpu: Add a func for core specific reg offset

2025-01-28 Thread Sathishkumar S
Add an inline function to calculate core specific register offsets for JPEG v4.0.3 and reuse it, makes code more readable and easier to align. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 54 +++- 1 file changed, 24 insertions(+), 30 deletions

[PATCH 3/9] drm/amdgpu: Enable devcoredump for JPEG4_0_3

2025-01-28 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG4_0_3 Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 58 1 file changed, 58 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c

[PATCH 2/9] drm/amdgpu: Add helper funcs for jpeg devcoredump

2025-01-28 Thread Sathishkumar S
Add devcoredump helper functions that can be reused for all jpeg versions. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | 59 drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.h | 7 +++ 2 files changed, 66 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 5/9] drm/amdgpu: Enable devcoredump for JPEG4_0_0

2025-01-28 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG4_0_0 Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 40 +- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 8/9] drm/amdgpu: Enable devcoredump for JPEG2_0_0

2025-01-28 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG2_0_0 Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c index

[PATCH 6/9] drm/amdgpu: Enable devcoredump for JPEG4_0_5

2025-01-28 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG4_0_5 Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 41 +++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 7/9] drm/amdgpu: Enable devcoredump for JPEG3_0_0

2025-01-28 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG3_0_0 Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 39 ++ 1 file changed, 39 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c index

[PATCH 9/9] drm/amdgpu: Enable devcoredump for JPEG2_5_0

2025-01-28 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG2_5_0 Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c index

[PATCH v2 2/9] drm/amdgpu: Add helper funcs for jpeg devcoredump

2025-01-29 Thread Sathishkumar S
-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | 80 drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.h | 10 +++ 2 files changed, 90 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c index

[PATCH v2 1/9] drm/amdgpu: Add a func for core specific reg offset

2025-01-29 Thread Sathishkumar S
Add an inline function to calculate core specific register offsets for JPEG v4.0.3 and reuse it, makes code more readable and easier to align. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 54 +++- 1 file changed, 24 insertions(+), 30 deletions

[PATCH v2 4/9] drm/amdgpu: Enable devcoredump for JPEG5_0_1

2025-01-29 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG5_0_1 V2: (Lijo) - remove version specific callbacks and use simplified helper functions Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 51 +++- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.h | 61

[PATCH v2 3/9] drm/amdgpu: Enable devcoredump for JPEG4_0_3

2025-01-29 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG4_0_3 V2: (Lijo) - remove version specific callbacks and use simplified helper functions Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 44 1 file changed, 44 insertions(+) diff --git a

[PATCH v2 0/9] drm/amdgpu: Add jpeg devcoredump support

2025-01-29 Thread Sathishkumar S
This patch-series enables jpeg devcoredump support V2: (Lijo) - add amdgpu_jpeg_reg_dump_init() for memory allocation and reg_list ref - use reg_list and reg_count from init() to dump and print registers - add amdgpu_jpeg_reg_dump_fini() to free memory and clear reg_list ref Sathishkumar S (9

[PATCH v2 5/9] drm/amdgpu: Enable devcoredump for JPEG4_0_0

2025-01-29 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG4_0_0 V2: (Lijo) - remove version specific callbacks and use simplified helper functions Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion

[PATCH v2 7/9] drm/amdgpu: Enable devcoredump for JPEG3_0_0

2025-01-29 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG3_0_0 V2: (Lijo) - remove version specific callbacks and use simplified helper functions Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 24 1 file changed, 24 insertions(+) diff --git a

[PATCH v2 6/9] drm/amdgpu: Enable devcoredump for JPEG4_0_5

2025-01-29 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG4_0_5 V2: (Lijo) - remove version specific callbacks and use simplified helper functions Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 27 +++- 1 file changed, 26 insertions(+), 1 deletion

[PATCH v2 9/9] drm/amdgpu: Enable devcoredump for JPEG2_5_0

2025-01-29 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG2_5_0 V2: (Lijo) - remove version specific callbacks and use simplified helper functions Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a

[PATCH v2 8/9] drm/amdgpu: Enable devcoredump for JPEG2_0_0

2025-01-29 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG2_0_0 V2: (Lijo) - remove version specific callbacks and use simplified helper functions Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 24 1 file changed, 24 insertions(+) diff --git a

[PATCH v3 08/10] drm/amdgpu: Enable devcoredump for JPEG2_0_0

2025-01-30 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG2_0_0 V2: (Lijo) - remove version specific callbacks and use simplified helper functions V3: (Lijo) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() and avoid the call here Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm

[PATCH v3 10/10] drm/amdgpu: Enable devcoredump for JPEG5_0_0

2025-01-30 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG5_0_0 V2: (Lijo) - remove version specific callbacks and use simplified helper functions V3: (Lijo) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() and avoid the call here Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu

[PATCH v3 09/10] drm/amdgpu: Enable devcoredump for JPEG2_5_0

2025-01-30 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG2_5_0 V2: (Lijo) - remove version specific callbacks and use simplified helper functions V3: (Lijo) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() and avoid the call here Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm

[PATCH v3 01/10] drm/amdgpu: Add a func for core specific reg offset

2025-01-30 Thread Sathishkumar S
Add an inline function to calculate core specific register offsets for JPEG v4.0.3 and reuse it, makes code more readable and easier to align. Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 54 +++- 1 file changed, 24

[PATCH v3 02/10] drm/amdgpu: Add helper funcs for jpeg devcoredump

2025-01-30 Thread Sathishkumar S
: (Lijo) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | 84 drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.h | 9 +++ 2 files changed, 93 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v3 03/10] drm/amdgpu: Enable devcoredump for JPEG4_0_3

2025-01-30 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG4_0_3 V2: (Lijo) - remove version specific callbacks and use simplified helper functions V3: (Lijo) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() and avoid the call here Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu

[PATCH v3 00/10] drm/amdgpu: Add jpeg devcoredump support

2025-01-30 Thread Sathishkumar S
) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() Sathishkumar S (10): drm/amdgpu: Add a func for core specific reg offset drm/amdgpu: Add helper funcs for jpeg devcoredump drm/amdgpu: Enable devcoredump for JPEG4_0_3 drm/amdgpu: Enable devcoredump for JPEG5_0_1 drm/amdgpu: Enable devcoredump

[PATCH v3 04/10] drm/amdgpu: Enable devcoredump for JPEG5_0_1

2025-01-30 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG5_0_1 V2: (Lijo) - remove version specific callbacks and use simplified helper functions V3: (Lijo) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() and avoid the call here Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm

[PATCH v3 07/10] drm/amdgpu: Enable devcoredump for JPEG3_0_0

2025-01-30 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG3_0_0 V2: (Lijo) - remove version specific callbacks and use simplified helper functions V3: (Lijo) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() and avoid the call here Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm

[PATCH v3 06/10] drm/amdgpu: Enable devcoredump for JPEG4_0_5

2025-01-30 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG4_0_5 V2: (Lijo) - remove version specific callbacks and use simplified helper functions V3: (Lijo) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() and avoid the call here Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm

[PATCH v3 05/10] drm/amdgpu: Enable devcoredump for JPEG4_0_0

2025-01-30 Thread Sathishkumar S
Add register list and enable devcoredump for JPEG4_0_0 V2: (Lijo) - remove version specific callbacks and use simplified helper functions V3: (Lijo) - move amdgpu_jpeg_reg_dump_fini() to sw_fini() and avoid the call here Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm

[PATCH] drm/amdgpu: increase amdgpu max rings limit

2025-01-12 Thread Sathishkumar S
increase max rings to 132 to support all JPEG5_0_1 cores, else ring_init fails due to ring count exceeding maximum limit. Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH] drm/amdgpu: increase amdgpu max rings limit

2025-01-10 Thread Sathishkumar S
increase max rings to 132 to support all JPEG5_0_1 cores, else ring_init fails due to ring count exceeding maximum limit. Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v3 4/6] drm/amdgpu: Per-instance init func for JPEG2_5_0

2025-02-12 Thread Sathishkumar S
Add helper functions to handle per-instance initialization and deinitialization in JPEG2_5_0. Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 102 + 1 file changed, 55 insertions(+), 47 deletions

[PATCH v3 6/6] drm/amdgpu: Add ring reset callback for JPEG2_0_0

2025-02-12 Thread Sathishkumar S
Add ring reset function callback for JPEG2_0_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion

[PATCH v3 1/6] drm/amdgpu: Per-instance init func for JPEG4_0_3

2025-02-12 Thread Sathishkumar S
Add helper functions to handle per-instance and per-core initialization and deinitialization in JPEG4_0_3. Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 190 --- 1 file changed, 98 insertions

[PATCH v3 2/6] drm/amdgpu: Add ring reset callback for JPEG4_0_0

2025-02-12 Thread Sathishkumar S
Add ring reset function callback for JPEG4_0_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions

[PATCH v3 5/6] drm/amdgpu: Add ring reset callback for JPEG2_5_0

2025-02-12 Thread Sathishkumar S
Add ring reset function callback for JPEG2_5_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion

[PATCH v3 1/6] drm/amdgpu: Per-instance init func for JPEG4_0_3

2025-02-12 Thread Sathishkumar S
Add helper functions to handle per-instance and per-core initialization and deinitialization in JPEG4_0_3. Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 190 --- 1 file changed, 98 insertions

[PATCH v3 0/6] drm/amdgpu: jpeg ring reset callback

2025-02-12 Thread Sathishkumar S
This patch series enables jpeg ring reset callback to recover from job timeouts without having to do a full gpu reset. V2: - sched->ready flag shouldn't be modified by HW backend (Christian) V3: - Dont modifying sched/job-submission state from HW backend (Christian) Sathishkumar S (6

[PATCH v3 3/6] drm/amdgpu: Add ring reset callback for JPEG3_0_0

2025-02-12 Thread Sathishkumar S
Add ring reset function callback for JPEG3_0_0 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion

[PATCH v3 4/6] drm/amdgpu: Per-instance init func for JPEG2_5_0

2025-02-12 Thread Sathishkumar S
Add helper functions to handle per-instance initialization and deinitialization in JPEG2_5_0. Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 102 + 1 file changed, 55 insertions(+), 47 deletions

[PATCH] drm/amdgpu: Do not poweroff UVDJ in JPEG4_0_3

2025-02-20 Thread Sathishkumar S
Update power gate setting to not poweroff UVDJ in JPEG4_0_3. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 6 -- 1 file changed, 6 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

[PATCH 2/3] drm/amdgpu: Add core reset registers for JPEG5_0_1

2025-02-20 Thread Sathishkumar S
Add core reset control register definitions and align all prior register definitions to end at 100 column length for uniformity. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.h | 128 --- 1 file changed, 68 insertions(+), 60 deletions(-) diff

[PATCH 3/3] drm/amdgpu: Add ring reset callback for JPEG5_0_1

2025-02-20 Thread Sathishkumar S
Add ring reset function callback for JPEG5_0_1 to recover from job timeouts without a full gpu reset. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 50 1 file changed, 50 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c

[PATCH 1/3] drm/amdgpu: Per-instance init func for JPEG5_0_1

2025-02-20 Thread Sathishkumar S
Add helper functions to handle per-instance and per-core initialization and deinitialization in JPEG5_0_1. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 150 +++ 1 file changed, 69 insertions(+), 81 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 2/2] drm/amdgpu: Fix core reset sequence for JPEG5_0_1

2025-02-26 Thread Sathishkumar S
For cores 1 through 9 repair the core reset sequence by adjusting offsets to access the expected registers. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 1/2] drm/amdgpu: Fix core reset sequence for JPEG4_0_3

2025-02-26 Thread Sathishkumar S
For cores 1 through 7 repair the core reset sequence by adjusting offsets to access the expected registers. Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v3 1/2] drm/amdgpu: Add JPEG4_0_3 core reset control reg

2025-02-17 Thread Sathishkumar S
Add core reset control registers for JPEG4_0_3 Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- .../include/asic_reg/vcn/vcn_4_0_3_offset.h | 34 +++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/amd/include/asic_reg/vcn

[PATCH v4 1/2] drm/amdgpu: Add JPEG4_0_3 core reset control reg

2025-02-17 Thread Sathishkumar S
Add core reset control registers for JPEG4_0_3 Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- .../include/asic_reg/vcn/vcn_4_0_3_offset.h | 34 +++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/amd/include/asic_reg/vcn

[PATCH v4 2/2] drm/amdgpu: Add ring reset callback for JPEG4_0_3

2025-02-17 Thread Sathishkumar S
ence V4: - Dont create reset_mask sysfs and return -EOPNOTSUPP on VFs (Lijo) Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 56 +--- 1 file changed, 49 insertions(+), 7 deletions(-) diff --git a/dri

[PATCH v3 2/2] drm/amdgpu: Add ring reset callback for JPEG4_0_3

2025-02-17 Thread Sathishkumar S
Signed-off-by: Sathishkumar S Acked-by: Christian König Reviewed-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 49 +--- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c b/drivers/gpu/drm/amd/amdgpu/jpeg_

[PATCH 1/2] drm/amdgpu: update eviction fence driver name

2025-03-16 Thread Sathishkumar S
update the eviction fence driver name to amdgpu_eviction_fence Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c b/drivers/gpu/drm/amd

[PATCH 2/2] drm/amdgpu: Wait for pte updates before uq_resume

2025-03-16 Thread Sathishkumar S
fault (src_id:0 ring:40 vmid:10 pasid:32771) amdgpu: in process pid 0 thread pid 0) amdgpu: in page starting at address 0x800105404000 from client 10 Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 13 + 1 file changed, 13 insertions(+) diff

[PATCH 2/2] drm/amdgpu: Wait for pte updates before uq_resume

2025-03-16 Thread Sathishkumar S
fault (src_id:0 ring:40 vmid:10 pasid:32771) amdgpu: in process pid 0 thread pid 0) amdgpu: in page starting at address 0x800105404000 from client 10 Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 13 + 1 file changed, 13 insertions(+) diff

[PATCH 1/2] drm/amdgpu: update eviction fence driver name

2025-03-16 Thread Sathishkumar S
update the eviction fence driver name to amdgpu_eviction_fence Signed-off-by: Sathishkumar S --- drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c b/drivers/gpu/drm/amd

  1   2   >