diff mbox series

[v2] opal-gard: sync up the chip unit data list with upstream hostboot.

Message ID 159046871164.1445989.18349902777435092800.stgit@jupiter
State Accepted
Headers show
Series [v2] opal-gard: sync up the chip unit data list with upstream hostboot. | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (0f1937ef40fca0c3212a9dff1010b832a24fb063)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Mahesh J Salgaonkar May 26, 2020, 4:52 a.m. UTC
opal-gard on POWER9P system fails to identify few chip targets while
displaying gard records. This patch fixes that.

Before:
# opal-gard list
 ID       | Error    | Type       | Path
-------------------------------------------------------------------------------
 00000001 | 90004af4 | Predictive | /Sys0/Node0/Proc0/MC0/MI0/UNKNOWN0/UNKNOWN0
===============================================================================

After this patch:
# ./opal-gard list
 ID       | Error    | Type       | Path
---------------------------------------------------------------------------
 00000001 | 90004af4 | Predictive | /Sys0/Node0/Proc0/MC0/MI0/MCC0/OMI0
===========================================================================

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
---
Change in v2:
- Fixed typo in subject line.
---
 external/gard/units.c |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Comments

Dan Horák May 26, 2020, 8:53 a.m. UTC | #1
On Tue, 26 May 2020 10:22:22 +0530
Mahesh Salgaonkar <mahesh@linux.ibm.com> wrote:

> opal-gard on POWER9P system fails to identify few chip targets while
> displaying gard records. This patch fixes that.

LGTM, the ids match the ones from obj/genfiles/errl/errludtarget.H

Reviewed-by: Dan Horák <dan@danny.cz>


		Dan

 
> Before:
> # opal-gard list
>  ID       | Error    | Type       | Path
> -------------------------------------------------------------------------------
>  00000001 | 90004af4 | Predictive
> | /Sys0/Node0/Proc0/MC0/MI0/UNKNOWN0/UNKNOWN0
> | ===============================================================================
> 
> After this patch:
> # ./opal-gard list
>  ID       | Error    | Type       | Path
> ---------------------------------------------------------------------------
>  00000001 | 90004af4 | Predictive
> | /Sys0/Node0/Proc0/MC0/MI0/MCC0/OMI0
> | ===========================================================================
> 
> Signed-off-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
> ---
> Change in v2:
> - Fixed typo in subject line.
> ---
>  external/gard/units.c |   10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/external/gard/units.c b/external/gard/units.c
> index 677d68f5b..35d46e443 100644
> --- a/external/gard/units.c
> +++ b/external/gard/units.c
> @@ -140,6 +140,14 @@ const struct chip_unit_desc p9_chip_units[] = {
>  	{0x44, "MC"},
>  	{0x45, "TEST_FAIL"},
>  	{0x46, "MFREFCLK"},
> -	{0x47, "LAST_IN_RANGE"},
> +	{0x47, "SMPGROUP"},
> +	{0x48, "OMI"},
> +	{0x49, "MCC"},
> +	{0x4A, "OMIC"},
> +	{0x4B, "OCMB_CHIP"},
> +	{0x4C, "MEM_PORT"},
> +	{0x4D, "I2C_MUX"},
> +	{0x4E, "PMIC"},
> +	{0x4F, "LAST_IN_RANGE"},
>  };
>  
> 
> 
> _______________________________________________
> Skiboot mailing list
> Skiboot@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/skiboot
Oliver O'Halloran June 5, 2020, 7:02 a.m. UTC | #2
On Tue, May 26, 2020 at 2:52 PM Mahesh Salgaonkar <mahesh@linux.ibm.com> wrote:
>
> opal-gard on POWER9P system fails to identify few chip targets while
> displaying gard records. This patch fixes that.
>
> Before:
> # opal-gard list
>  ID       | Error    | Type       | Path
> -------------------------------------------------------------------------------
>  00000001 | 90004af4 | Predictive | /Sys0/Node0/Proc0/MC0/MI0/UNKNOWN0/UNKNOWN0
> ===============================================================================
>
> After this patch:
> # ./opal-gard list
>  ID       | Error    | Type       | Path
> ---------------------------------------------------------------------------
>  00000001 | 90004af4 | Predictive | /Sys0/Node0/Proc0/MC0/MI0/MCC0/OMI0
> ===========================================================================
>
> Signed-off-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>

Thanks, merged as cecc251c45b4d348e8110b2d2367b5ea4a404d51
diff mbox series

Patch

diff --git a/external/gard/units.c b/external/gard/units.c
index 677d68f5b..35d46e443 100644
--- a/external/gard/units.c
+++ b/external/gard/units.c
@@ -140,6 +140,14 @@  const struct chip_unit_desc p9_chip_units[] = {
 	{0x44, "MC"},
 	{0x45, "TEST_FAIL"},
 	{0x46, "MFREFCLK"},
-	{0x47, "LAST_IN_RANGE"},
+	{0x47, "SMPGROUP"},
+	{0x48, "OMI"},
+	{0x49, "MCC"},
+	{0x4A, "OMIC"},
+	{0x4B, "OCMB_CHIP"},
+	{0x4C, "MEM_PORT"},
+	{0x4D, "I2C_MUX"},
+	{0x4E, "PMIC"},
+	{0x4F, "LAST_IN_RANGE"},
 };