[Freedreno] [PATCH v5 3/6] drm/msm/dpu: Define names for unnamed sblks

2023-07-07 Thread Ryan McCann
Some sub-blocks in the hw catalog have not been given a name, so when the registers from that block are dumped, there is no name to reference. Define names for relevant sub-blocks to fix this. Reviewed-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov Signed-off-by: Ryan McCann --- drivers/gpu

[Freedreno] [PATCH v5 1/6] drm/msm: Update dev core dump to not print backwards

2023-07-07 Thread Ryan McCann
: 98659487b845 ("drm/msm: add support to take dpu snapshot") Reviewed-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/di

[Freedreno] [PATCH v5 4/6] drm/msm/dpu: Remove redundant prefix/suffix in name of sub-blocks

2023-07-07 Thread Ryan McCann
ot; suffix. Remove num parameter altogether from relevant macros as a consequence of it no longer being used. Reviewed-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 50 +- 1 file changed, 25 inse

[Freedreno] [PATCH v5 2/6] drm/msm/dpu: Drop unused num argument from relevant macros

2023-07-07 Thread Ryan McCann
Drop unused parameter "num" from VIG_SBLK_NOSCALE and DMA sub-block macros. Update calls to relevant macros to reflect change. Reviewed-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 ++---

[Freedreno] [PATCH v5 5/6] drm/msm/dpu: Refactor printing of main blocks in device core dump

2023-07-07 Thread Ryan McCann
Currently, the names of main blocks are hardcoded into the msm_disp_snapshot_add_block function rather than using the name that already exists in the catalog. Change this to take the name directly from the catalog instead of hardcoding it. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp

[Freedreno] [PATCH v5 0/6] Add support to print sub-block registers in dpu hw catalog

2023-07-07 Thread Ryan McCann
ed DPU. - Eliminated multiplexer/wrapper function. Inlined instead. - Changed if statements from feature checks to length checks. - Squashed prefix and suffix patch into one. - Link to v1: https://lore.kernel.org/r/20230622-devcoredump_patch-v1-0-3b2cdcc6a...@quicinc.com --- Ryan McCann (6): dr

[Freedreno] [PATCH v5 6/6] drm/msm/dpu: Update dev core dump to dump registers of sub-blocks

2023-07-07 Thread Ryan McCann
Currently, the device core dump mechanism does not dump registers of sub-blocks within the DSPP, SSPP, DSC, and PINGPONG blocks. Edit dpu_kms_mdp_snapshot function to account for sub-blocks. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 66

Re: [Freedreno] [PATCH v4 6/6] drm/msm/dpu: Update dev core dump to dump registers of sub-blocks

2023-07-07 Thread Ryan McCann
My apologies for the private email, I hit reply instead of reply all by accident. On 7/6/2023 5:24 PM, Dmitry Baryshkov wrote: On 06/07/2023 23:48, Ryan McCann wrote: Currently, the device core dump mechanism does not dump registers of sub-blocks within the DSPP, SSPP, DSC, and PINGPONG

[Freedreno] [PATCH v4 2/6] drm/msm/dpu: Drop unused num argument from relevant macros

2023-07-06 Thread Ryan McCann
Drop unused parameter "num" from VIG_SBLK_NOSCALE and DMA sub-block macros. Update calls to relevant macros to reflect change. Reviewed-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 ++---

[Freedreno] [PATCH v4 3/6] drm/msm/dpu: Define names for unnamed sblks

2023-07-06 Thread Ryan McCann
Some sub-blocks in the hw catalog have not been given a name, so when the registers from that block are dumped, there is no name to reference. Define names for relevant sub-blocks to fix this. Reviewed-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov Signed-off-by: Ryan McCann --- drivers/gpu

[Freedreno] [PATCH v4 5/6] drm/msm/dpu: Refactor printing of main blocks in device core dump

2023-07-06 Thread Ryan McCann
Currently, the names of main blocks are hardcoded into the msm_disp_snapshot_add_block function rather than using the name that already exists in the catalog. Change this to take the name directly from the catalog instead of hardcoding it. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp

[Freedreno] [PATCH v4 1/6] drm/msm: Update dev core dump to not print backwards

2023-07-06 Thread Ryan McCann
: 98659487b845 ("drm/msm: add support to take dpu snapshot") Reviewed-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/di

[Freedreno] [PATCH v4 4/6] drm/msm/dpu: Remove redundant prefix/suffix in name of sub-blocks

2023-07-06 Thread Ryan McCann
ot; suffix. Remove num parameter altogether from relevant macros as a consequence of it no longer being used. Reviewed-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 50 +- 1 file changed, 25 inse

[Freedreno] [PATCH v4 6/6] drm/msm/dpu: Update dev core dump to dump registers of sub-blocks

2023-07-06 Thread Ryan McCann
Currently, the device core dump mechanism does not dump registers of sub-blocks within the DSPP, SSPP, DSC, and PINGPONG blocks. Edit dpu_kms_mdp_snapshot function to account for sub-blocks. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 66

[Freedreno] [PATCH v4 0/6] Add support to print sub-block registers in dpu hw catalog

2023-07-06 Thread Ryan McCann
gth checks. - Squashed prefix and suffix patch into one. - Link to v1: https://lore.kernel.org/r/20230622-devcoredump_patch-v1-0-3b2cdcc6a...@quicinc.com --- Ryan McCann (6): drm/msm: Update dev core dump to not print backwards drm/msm/dpu: Drop unused num argument from relevant ma

[Freedreno] [PATCH v3 4/6] drm/msm/dpu: Remove redundant prefix/suffix in name of sub-blocks

2023-07-06 Thread Ryan McCann
ot; suffix. Remove num parameter altogether from relevant macros as a consequence of it no longer being used. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 50 +- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/

[Freedreno] [PATCH v3 1/6] drm/msm: Update dev core dump to not print backwards

2023-07-06 Thread Ryan McCann
: 98659487b845 ("drm/msm: add support to take dpu snapshot") Reviewed-by: Dmitry Baryshkov Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util

[Freedreno] [PATCH v3 5/6] drm/msm/dpu: Refactor printing of main blocks in device core dump

2023-07-06 Thread Ryan McCann
Currently, the names of main blocks are hardcoded into the msm_disp_snapshot_add_block function rather than using the name that already exists in the catalog. Change this to take the name directly from the catalog instead of hardcoding it. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp

[Freedreno] [PATCH v3 2/6] drm/msm/dpu: Drop unused num argument from relevant macros

2023-07-06 Thread Ryan McCann
Drop unused parameter "num" from VIG_SBLK_NOSCALE and DMA sub-block macros. Update calls to relevant macros to reflect change. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) di

[Freedreno] [PATCH v3 6/6] drm/msm/dpu: Update dev core dump to dump registers of sub-blocks

2023-07-06 Thread Ryan McCann
Currently, the device core dump mechanism does not dump registers of sub-blocks within the DSPP, SSPP, DSC, and PINGPONG blocks. Edit dpu_kms_mdp_snapshot function to account for sub-blocks. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 66

[Freedreno] [PATCH v3 3/6] drm/msm/dpu: Define names for unnamed sblks

2023-07-06 Thread Ryan McCann
Some sub-blocks in the hw catalog have not been given a name, so when the registers from that block are dumped, there is no name to reference. Define names for relevant sub-blocks to fix this. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20

[Freedreno] [PATCH v3 0/6] Add support to print sub-block registers in dpu hw catalog

2023-07-06 Thread Ryan McCann
"sub-block" or "sblk". - Capitalized DPU. - Eliminated multiplexer/wrapper function. Inlined instead. - Changed if statements from feature checks to length checks. - Squashed prefix and suffix patch into one. - Link to v1: https://lore.kernel.org/r/20230622-devcoredump_patch-v1-0-3b2c

Re: [Freedreno] [PATCH v2 5/5] drm/msm/dpu: Update dev core dump to dump registers of sub-blocks

2023-07-05 Thread Ryan McCann
On 7/5/2023 1:22 PM, Dmitry Baryshkov wrote: On 05/07/2023 22:30, Ryan McCann wrote: Currently, the device core dump mechanism does not dump registers of sub-blocks within the DSPP, SSPP, DSC, and PINGPONG blocks. Edit dpu_kms_mdp_snapshot function to account for sub-blocks. Signed-off-by

[Freedreno] [PATCH v2 5/5] drm/msm/dpu: Update dev core dump to dump registers of sub-blocks

2023-07-05 Thread Ryan McCann
Currently, the device core dump mechanism does not dump registers of sub-blocks within the DSPP, SSPP, DSC, and PINGPONG blocks. Edit dpu_kms_mdp_snapshot function to account for sub-blocks. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 106

[Freedreno] [PATCH v2 0/5] Add support to print sub-block registers in dpu hw catalog

2023-07-05 Thread Ryan McCann
block" or "sblk". - Capitalized DPU. - Eliminated multiplexer/wrapper function. Inlined instead. - Changed if statements from feature checks to length checks. - Squashed prefix and suffix patch into one. - Link to v1: https://lore.kernel.org/r/20230622-devcoredump_patch-v1-0-3b2cdcc6a...@q

[Freedreno] [PATCH v2 2/5] drm/msm/dpu: Drop unused num argument from relevant macros

2023-07-05 Thread Ryan McCann
Drop unused parameter "num" from VIG_SBLK_NOSCALE and DMA sub-block macros. Update calls to relevant macros to reflect change. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) di

[Freedreno] [PATCH v2 3/5] drm/msm/dpu: Define names for unnamed sblks

2023-07-05 Thread Ryan McCann
Some sub-blocks in the hw catalog have not been given a name, so when the registers from that block are dumped, there is no name to reference. Define names for relevant sub-blocks to fix this. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20

[Freedreno] [PATCH v2 4/5] drm/msm/dpu: Remove redundant prefix/suffix in name of sub-blocks

2023-07-05 Thread Ryan McCann
ot; suffix. Remove num parameter altogether from relevant macros as a consequence of it no longer being used. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 50 +- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/

[Freedreno] [PATCH v2 1/5] drm/msm: Update dev core dump to not print backwards

2023-07-05 Thread Ryan McCann
: 98659487b845 ("drm/msm: add support to take dpu snapshot") Reviewed-by: Dmitry Baryshkov Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util

[Freedreno] [PATCH 4/6] drm/msm/dpu: Remove redundant suffix in name of sub blocks

2023-06-22 Thread Ryan McCann
o, the macro used to define the sub blocks of "sspp_0". Remove this concatenation to eliminate redundancy and remove the num parameter of relevant macros as a consequence of it no longer being used. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 48

[Freedreno] [PATCH 6/6] drm/msm/dpu: Update dev core dump to dump registers of sub blocks

2023-06-22 Thread Ryan McCann
Currently, the device core dump mechanism does not dump registers of sub blocks within the DSPP, SSPP, DSC, and PINGPONG blocks. Add wrapper function to dump hardware blocks that contain sub blocks. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 194

[Freedreno] [PATCH 3/6] drm/msm/dpu: Define names for unnamed sblks

2023-06-22 Thread Ryan McCann
Some sub blocks in the hw catalog have not been given a name, so when the registers from that block are dumped, there is no name to reference. Define names for relevant sub blocks to fix this. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20

[Freedreno] [PATCH 1/6] drm/msm: Update dev core dump to not print backwards

2023-06-22 Thread Ryan McCann
: 98659487b845 ("drm/msm: add support to take dpu snapshot") Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c b/drivers/gpu/drm/msm/disp/

[Freedreno] [PATCH 5/6] drm/msm/disp: Remove redundant prefix in name of sub blocks

2023-06-22 Thread Ryan McCann
he VIG_SBLK macro is "sspp_csc", the result is a redundant name. To avoid this redundancy, remove the duplicate prefix "sspp". Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) di

[Freedreno] [PATCH 2/6] drm/msm/dpu: Drop unused num argument from relevant macros

2023-06-22 Thread Ryan McCann
Drop unused parameter "num" from VIG_SBLK_NOSCALE and DMA sub block macros. Update calls to relevant macros to reflect change. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-)

[Freedreno] [PATCH 0/6] Add support to print sub block registers in dpu hw catalog

2023-06-22 Thread Ryan McCann
blocks when there is a need. Sample Output of the sspp_0 block and its sub blocks for devcore dump: ==sspp_0== ...registers ... sspp_0_scaler ... ... sspp_0_csc ... ... next_block ... Signed-off-by: Ryan McCann --- Ryan McCann (6): drm/msm: Update dev core