drm/i915/display: Also print raw step number
Subsystems (3)
PATCH 1/2 drm/i915/display: Also print raw step number
GMD_ID is already parsed down to the step. Don't omit that information in the display engine debug info. This helps to double check the stepping is parsed correctly.
For earlier platforms, it will start printing the entire version too (which should be 0), as a rel == 0 doesn't mean it doesn't have GMD_ID.
--- drivers/gpu/drm/i915/display/intel_display_device.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_display_device.c +2 -7
@@ -1122,13 +1122,8 @@ void intel_display_device_info_print(const struct intel_display_device_info *inf const struct intel_display_runtime_info *runtime, struct drm_printer *p) { - if (runtime->ip.rel) - drm_printf(p, "display version: %u.%02u\n", - runtime->ip.ver, - runtime->ip.rel); - else - drm_printf(p, "display version: %u\n", - runtime->ip.ver); + drm_printf(p, "display version: %u.%02u.%02u\n", + runtime->ip.ver, runtime->ip.rel, runtime->ip.step);#define PRINT_FLAG (name) drm_printf(p, "%s: %s\n", #name, str_yes_no(info->name))DEV_INFO_DISPLAY_FOR_EACH_FLAG (PRINT_FLAG );
Signature · 1 line
2.40.1
PATCH 2/2 drm/i915/display: Print PICA version
The PICA_DEVICE_ID follows the same format as other GMD_ID registers (graphics, display and media). Currently the only use for it is informational for developers while checking the differences between machines with the same platform. Print the raw number as there's no need for the driver to check any of the fields.
In future this may change, but then the IP version in struct intel_display_runtime_info will need some refactor to allow keeping both the display engine and PICA versions.
Lastly, keeping the PICA version around in the display runtime info matches its current use. If that changes in future, then it may need to be moved to the device info.
--- drivers/gpu/drm/i915/display/intel_display_device.c | 5 +++++ drivers/gpu/drm/i915/display/intel_display_device.h | 2 ++ drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 9 insertions(+)
drivers/gpu/drm/i915/display/intel_display_device.c +5 -0
@@ -956,6 +956,9 @@ static void __intel_display_device_info_runtime_init(struct drm_i915_private *i9BUILD_BUG_ON (BITS_PER_TYPE (display_runtime->cpu_transcoder_mask) <I915_MAX_TRANSCODERS );BUILD_BUG_ON (BITS_PER_TYPE (display_runtime->port_mask) <I915_MAX_PORTS ); +if (HAS_GMD_ID (i915)) + display_runtime->pica_id =intel_de_read (i915,PICA_DEVICE_ID ); +/* This covers both ULT and ULX */ if (IS_HASWELL_ULT (i915) ||IS_BROADWELL_ULT (i915)) display_runtime->port_mask &= ~BIT (PORT_D );
@@ -1124,6 +1127,8 @@ void intel_display_device_info_print(const struct intel_display_device_info *inf {drm_printf (p,"display version: %u.%02u.%02u\n" , runtime->ip.ver, runtime->ip.rel, runtime->ip.step); +if (runtime->pica_id) +drm_printf (p,"PICA version: %#08x\n" , runtime->pica_id);#define PRINT_FLAG (name) drm_printf(p, "%s: %s\n", #name, str_yes_no(info->name))DEV_INFO_DISPLAY_FOR_EACH_FLAG (PRINT_FLAG );
drivers/gpu/drm/i915/display/intel_display_device.h +2 -0
@@ -123,6 +123,8 @@ struct intel_display_runtime_info {u8 fbc_mask; +u32 pica_id; +bool has_hdcp;bool has_dmc;bool has_dsc;
drivers/gpu/drm/i915/i915_reg.h +2 -0
@@ -6362,6 +6362,8 @@ enum skl_power_gate {#define TCSS_DDI_STATUS_HPD_LIVE_STATUS_TBT REG_BIT(1)#define TCSS_DDI_STATUS_HPD_LIVE_STATUS_ALT REG_BIT(0) +#define PICA_DEVICE_ID _MMIO(0x16fe00) +#define PRIMARY_SPI_TRIGGER _MMIO(0x102040)#define PRIMARY_SPI_ADDRESS _MMIO(0x102080)#define PRIMARY_SPI_REGIONID _MMIO(0x102084)
Signature · 1 line
2.40.1
Re: [PATCH 2/2] drm/i915/display: Print PICA version
Quoted 36 lines · Lucas De Marchi
The
PICA_DEVICE_IDfollows the same format as otherGMD_IDregisters (graphics, display and media). Currently the only use for it is informational for developers while checking the differences between machines with the same platform. Print the raw number as there's no need for the driver to check any of the fields.In future this may change, but then the IP version in struct
intel_display_runtime_infowill need some refactor to allow keeping both the display engine and PICA versions.Lastly, keeping the PICA version around in the display runtime info matches its current use. If that changes in future, then it may need to be moved to the device info.
Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/display/intel_display_device.c | 5 +++++ drivers/gpu/drm/i915/display/intel_display_device.h | 2 ++ drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 9 insertions(+)drivers/gpu/drm/i915/display/intel_display_device.c +3
-0@@ -956,6 +956,9 @@ static void __intel_display_device_info_runtime_init(struct drm_i915_private *i9BUILD_BUG_ON (BITS_PER_TYPE (display_runtime->cpu_transcoder_mask) <I915_MAX_TRANSCODERS );BUILD_BUG_ON (BITS_PER_TYPE (display_runtime->port_mask) <I915_MAX_PORTS ); +if (HAS_GMD_ID (i915)) + display_runtime->pica_id =intel_de_read (i915,PICA_DEVICE_ID ); +/* This covers both ULT and ULX */ if (IS_HASWELL_ULT (i915) ||IS_BROADWELL_ULT (i915)) display_runtime->port_mask &= ~BIT (PORT_D );
drivers/gpu/drm/i915/display/intel_display_device.c void intel_display_device_info_print(const struct intel_display_device_info *inf · line 1131
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display_device.c +2
-0@@ -1124,6 +1127,8 @@ void intel_display_device_info_print(const struct intel_display_device_info *inf {drm_printf (p,"display version: %u.%02u.%02u\n" , runtime->ip.ver, runtime->ip.rel, runtime->ip.step); +if (runtime->pica_id) +drm_printf (p,"PICA version: %#08x\n" , runtime->pica_id);
The actual, expected PICA version number on most (all?) MTL devices will be 0.0. Should we make the condition here HAS_GMD_ID(i915) instead so that we print the value whenever we read it? That will also help us notice if the PICA register is incorrectly 0 on LNL or later platforms where it should have been non-zero.
Matt
Quoted 32 lines
drivers/gpu/drm/i915/display/intel_display_device.c +0
-0#define PRINT_FLAG (name) drm_printf(p, "%s: %s\n", #name, str_yes_no(info->name))DEV_INFO_DISPLAY_FOR_EACH_FLAG (PRINT_FLAG );drivers/gpu/drm/i915/display/intel_display_device.h +2
-0@@ -123,6 +123,8 @@ struct intel_display_runtime_info {u8 fbc_mask; +u32 pica_id; +bool has_hdcp;bool has_dmc;bool has_dsc;drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -6362,6 +6362,8 @@ enum skl_power_gate {#define TCSS_DDI_STATUS_HPD_LIVE_STATUS_TBT REG_BIT(1)#define TCSS_DDI_STATUS_HPD_LIVE_STATUS_ALT REG_BIT(0) +#define PICA_DEVICE_ID _MMIO(0x16fe00) +#define PRIMARY_SPI_TRIGGER _MMIO(0x102040)#define PRIMARY_SPI_ADDRESS _MMIO(0x102080)#define PRIMARY_SPI_REGIONID _MMIO(0x102084)Signature · 1 line
2.40.1
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation
Re: [PATCH 2/2] drm/i915/display: Print PICA version
Quoted 40 lines · Matt Roper
Quoted 39 lines · Lucas De Marchi
The
PICA_DEVICE_IDfollows the same format as otherGMD_IDregisters (graphics, display and media). Currently the only use for it is informational for developers while checking the differences between machines with the same platform. Print the raw number as there's no need for the driver to check any of the fields.In future this may change, but then the IP version in struct
intel_display_runtime_infowill need some refactor to allow keeping both the display engine and PICA versions.Lastly, keeping the PICA version around in the display runtime info matches its current use. If that changes in future, then it may need to be moved to the device info.
Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/display/intel_display_device.c | 5 +++++ drivers/gpu/drm/i915/display/intel_display_device.h | 2 ++ drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 9 insertions(+)drivers/gpu/drm/i915/display/intel_display_device.c +3
-0@@ -956,6 +956,9 @@ static void __intel_display_device_info_runtime_init(struct drm_i915_private *i9BUILD_BUG_ON (BITS_PER_TYPE (display_runtime->cpu_transcoder_mask) <I915_MAX_TRANSCODERS );BUILD_BUG_ON (BITS_PER_TYPE (display_runtime->port_mask) <I915_MAX_PORTS ); +if (HAS_GMD_ID (i915)) + display_runtime->pica_id =intel_de_read (i915,PICA_DEVICE_ID ); +/* This covers both ULT and ULX */ if (IS_HASWELL_ULT (i915) ||IS_BROADWELL_ULT (i915)) display_runtime->port_mask &= ~BIT (PORT_D );@@ -1124,6 +1127,8 @@ void intel_display_device_info_print(const struct intel_display_device_info *inf {drm_printf (p,"display version: %u.%02u.%02u\n" , runtime->ip.ver, runtime->ip.rel, runtime->ip.step);
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display_device.c void intel_display_device_info_print(const struct intel_display_device_info *inf · line 1131
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_device.c +2
-0+if (runtime->pica_id) +drm_printf (p,"PICA version: %#08x\n" , runtime->pica_id);The actual, expected PICA version number on most (all?) MTL devices will be 0.0. Should we make the condition here
HAS_GMD_ID(i915)instead so that we print the value whenever we read it? That will also help us notice if the PICA register is incorrectly 0 on LNL or later platforms where it should have been non-zero.
it seems intel_display_device_info_print() was specially crafted so we don't have the i915/xe pointer and instead only operate on the info. Yeah, we can get back to i915/xe, but I'm not sure about doing that.
What if we initialize it with U32_MAX and check for it here. I think it would take a long time before that becomes invalid.
Another option is not to bother with the additional message in platforms without it, and just print it unconditionally, like patch 1 does for the rel/step.
Thoughts?
Lucas De Marchi
Quoted 42 lines
Matt
Quoted 32 lines
drivers/gpu/drm/i915/display/intel_display_device.c +0
-0#define PRINT_FLAG (name) drm_printf(p, "%s: %s\n", #name, str_yes_no(info->name))DEV_INFO_DISPLAY_FOR_EACH_FLAG (PRINT_FLAG );drivers/gpu/drm/i915/display/intel_display_device.h +2
-0@@ -123,6 +123,8 @@ struct intel_display_runtime_info {u8 fbc_mask; +u32 pica_id; +bool has_hdcp;bool has_dmc;bool has_dsc;drivers/gpu/drm/i915/i915_reg.h +2
-1@@ -6362,6 +6362,8 @@ enum skl_power_gate {#define TCSS_DDI_STATUS_HPD_LIVE_STATUS_TBT REG_BIT(1)#define TCSS_DDI_STATUS_HPD_LIVE_STATUS_ALT REG_BIT(0) +#define PICA_DEVICE_ID _MMIO(0x16fe00) +#define PRIMARY_SPI_TRIGGER _MMIO(0x102040)#define PRIMARY_SPI_ADDRESS _MMIO(0x102080)#define PRIMARY_SPI_REGIONID _MMIO(0x102084) --2.40.1
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation
Matt Roper
Reviewed-byRe: [PATCH 2/2] drm/i915/display: Print PICA version
Quoted 54 lines · Lucas De Marchi
Quoted 40 lines · Matt Roper
Quoted 39 lines · Lucas De Marchi
The
PICA_DEVICE_IDfollows the same format as otherGMD_IDregisters (graphics, display and media). Currently the only use for it is informational for developers while checking the differences between machines with the same platform. Print the raw number as there's no need for the driver to check any of the fields.In future this may change, but then the IP version in struct
intel_display_runtime_infowill need some refactor to allow keeping both the display engine and PICA versions.Lastly, keeping the PICA version around in the display runtime info matches its current use. If that changes in future, then it may need to be moved to the device info.
Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/display/intel_display_device.c | 5 +++++ drivers/gpu/drm/i915/display/intel_display_device.h | 2 ++ drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 9 insertions(+)drivers/gpu/drm/i915/display/intel_display_device.c +3
-0@@ -956,6 +956,9 @@ static void __intel_display_device_info_runtime_init(struct drm_i915_private *i9BUILD_BUG_ON (BITS_PER_TYPE (display_runtime->cpu_transcoder_mask) <I915_MAX_TRANSCODERS );BUILD_BUG_ON (BITS_PER_TYPE (display_runtime->port_mask) <I915_MAX_PORTS ); +if (HAS_GMD_ID (i915)) + display_runtime->pica_id =intel_de_read (i915,PICA_DEVICE_ID ); +/* This covers both ULT and ULX */ if (IS_HASWELL_ULT (i915) ||IS_BROADWELL_ULT (i915)) display_runtime->port_mask &= ~BIT (PORT_D );@@ -1124,6 +1127,8 @@ void intel_display_device_info_print(const struct intel_display_device_info *inf {drm_printf (p,"display version: %u.%02u.%02u\n" , runtime->ip.ver, runtime->ip.rel, runtime->ip.step);Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display_device.c void intel_display_device_info_print(const struct intel_display_device_info *inf · line 1131
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_display_device.c +2
-0+if (runtime->pica_id) +drm_printf (p,"PICA version: %#08x\n" , runtime->pica_id);The actual, expected PICA version number on most (all?) MTL devices will be 0.0. Should we make the condition here
HAS_GMD_ID(i915)instead so that we print the value whenever we read it? That will also help us notice if the PICA register is incorrectly 0 on LNL or later platforms where it should have been non-zero.it seems
intel_display_device_info_print()was specially crafted so we don't have the i915/xe pointer and instead only operate on the info. Yeah, we can get back to i915/xe, but I'm not sure about doing that.
Quoted 8 lines
What if we initialize it with
U32_MAXand check for it here. I think it would take a long time before that becomes invalid.Another option is not to bother with the additional message in platforms without it, and just print it unconditionally, like patch 1 does for the rel/step.
Thoughts?
Hmm. Maybe just printing it unconditionally would be fine. Or just leaving it as you have here and only printing non-zero values is probably fine too. Either way,
Quoted 45 lines
Lucas De Marchi
Quoted 42 lines
Matt
Quoted 32 lines
drivers/gpu/drm/i915/display/intel_display_device.c +0
-0#define PRINT_FLAG (name) drm_printf(p, "%s: %s\n", #name, str_yes_no(info->name))DEV_INFO_DISPLAY_FOR_EACH_FLAG (PRINT_FLAG );drivers/gpu/drm/i915/display/intel_display_device.h +2
-0@@ -123,6 +123,8 @@ struct intel_display_runtime_info {u8 fbc_mask; +u32 pica_id; +bool has_hdcp;bool has_dmc;bool has_dsc;drivers/gpu/drm/i915/i915_reg.h +2
-1@@ -6362,6 +6362,8 @@ enum skl_power_gate {#define TCSS_DDI_STATUS_HPD_LIVE_STATUS_TBT REG_BIT(1)#define TCSS_DDI_STATUS_HPD_LIVE_STATUS_ALT REG_BIT(0) +#define PICA_DEVICE_ID _MMIO(0x16fe00) +#define PRIMARY_SPI_TRIGGER _MMIO(0x102040)#define PRIMARY_SPI_ADDRESS _MMIO(0x102080)#define PRIMARY_SPI_REGIONID _MMIO(0x102084) --2.40.1
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation
Patchwork
CI✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/i915/display: Also print raw step number
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915/display: Also print raw step number
URL : https://patchwork.freedesktop.org/series/127571/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.
Patchwork
CI✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915/display: Also print raw step number
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915/display: Also print raw step number
URL : https://patchwork.freedesktop.org/series/127571/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_14000 -> Patchwork_127571v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_127571v1 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_127571v1, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_127571v1/index.html
Participating hosts (35 -> 33)
------------------------------
Missing (2): fi-tgl-1115g4 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_127571v1:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_suspend@basic-s0@smem:
- fi-skl-6600u: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14000/fi-skl-6600u/igt@gem_exec_suspend@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_127571v1/fi-skl-6600u/igt@gem_exec_suspend@[email protected]
Known issues
------------
Here are the changes found in Patchwork_127571v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s0@smem:
- bat-dg2-9: [PASS][3] -> [INCOMPLETE][4] ([i915#9275])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14000/bat-dg2-9/igt@gem_exec_suspend@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_127571v1/bat-dg2-9/igt@gem_exec_suspend@[email protected]
* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1:
- bat-rplp-1: [PASS][5] -> [ABORT][6] ([i915#8668])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14000/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_127571v1/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
#### Possible fixes ####
* igt@kms_hdmi_inject@inject-audio:
- fi-kbl-guc: [FAIL][7] ([IGT#3]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14000/fi-kbl-guc/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_127571v1/fi-kbl-guc/igt@[email protected]
[IGT#3]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/3
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#9275]: https://gitlab.freedesktop.org/drm/intel/issues/9275
Build changes
-------------
* Linux: CI_DRM_14000 -> Patchwork_127571v1
CI-20190529: 20190529
CI_DRM_14000: 49f3163775ad99ba15de59607435e367328329fa @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7629: 1dd73105a01e092da7954f9552ec0c67ed8a9f4e @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_127571v1: 49f3163775ad99ba15de59607435e367328329fa @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
96c24e6f96f5 drm/i915/display: Print PICA version 5ce2e698aeeb drm/i915/display: Also print raw step number
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_127571v1/index.html
Quoted 8 lines · Lucas De Marchi
GMD_IDis already parsed down to the step. Don't omit that information in the display engine debug info. This helps to double check the stepping is parsed correctly.For earlier platforms, it will start printing the entire version too (which should be 0), as a rel == 0 doesn't mean it doesn't have
GMD_ID.Signed-off-by Lucas De Marchi <[email protected]>
Quoted 27 lines
--- drivers/gpu/drm/i915/display/intel_display_device.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/display/intel_display_device.c +2
-7@@ -1122,13 +1122,8 @@ void intel_display_device_info_print(const struct intel_display_device_info *inf const struct intel_display_runtime_info *runtime, struct drm_printer *p) { - if (runtime->ip.rel) - drm_printf(p, "display version: %u.%02u\n", - runtime->ip.ver, - runtime->ip.rel); - else - drm_printf(p, "display version: %u\n", - runtime->ip.ver); + drm_printf(p, "display version: %u.%02u.%02u\n", + runtime->ip.ver, runtime->ip.rel, runtime->ip.step);#define PRINT_FLAG (name) drm_printf(p, "%s: %s\n", #name, str_yes_no(info->name))DEV_INFO_DISPLAY_FOR_EACH_FLAG (PRINT_FLAG );Signature · 1 line
2.40.1
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation