Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, MIME_QP_LONG_LINE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7FE0C48BE5 for ; Tue, 15 Jun 2021 16:41:39 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E610B613B1 for ; Tue, 15 Jun 2021 16:41:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E610B613B1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4G4Dc205CGz3btF for ; Wed, 16 Jun 2021 02:41:38 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=NV+oh9oH; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::334; helo=mail-ot1-x334.google.com; envelope-from=proclivis@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=NV+oh9oH; dkim-atps=neutral Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4G4DbV5GFzz3btM for ; Wed, 16 Jun 2021 02:41:08 +1000 (AEST) Received: by mail-ot1-x334.google.com with SMTP id h24-20020a9d64180000b029036edcf8f9a6so14914821otl.3 for ; Tue, 15 Jun 2021 09:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:date:subject:message-id :to; bh=1XG4bDz8y2yMSHAUJ5cffZSMXkQcY2Y8iU9eHS07568=; b=NV+oh9oHOJwEYdkZ43UBySitNHrk/v+d2qtuzVEZsjNV6KqqrBZ4mRAO27WVUpMtW6 l2yqQ5HOkMDolWRG25dafD/pqcq/oxu3G4hkAIBWxJrk1vUBaAZsQVLNAAfhYzNSLD2c lyBAgxc7DXHoVzXSKchVq/eU0o5wEz3/Yx1pNbreN9D4A1v4Ya8/TcFEs7A+4KM0emhR 3Q2a+JECbPNwJFqPi6XVA9D3Q3nE3JQTs/sAVe28vZrgppc6uuW3gKd0Ht7lt+eZOeu7 H8i3HWryVMq85Mu5KIXPCyx8ndz8W8qMc2bIiudBE6QC2CjmZF/ExJjMK1oOsLzN1pJk 4W1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version:date :subject:message-id:to; bh=1XG4bDz8y2yMSHAUJ5cffZSMXkQcY2Y8iU9eHS07568=; b=T94caZ0KDrE7qOWeHVanSx0ppSi7o3LVglNbFs7D7gbhzu/Ld3IM8y1jikdK0A6KKB QRrYpB+7ZVpf+tpKEBxdsLPBZfOXtkvYfvtZbAPNPc4hAfuGHHRyTFplebjpUNWadPWC Qj7Q2FVK1NB0HBZuqFUWA3ganSoUyZhWvfWBbambhODJHfqP7cVAu4SJh51b9qsKodQz c5zgqciIlDjgWNKMOkCDw/pDjCkVWwI3zBSoRlOW9PC4quR2WXKLyvHUpiIx17xrhhPV N2iE+FiGDkjV8NGadQjAWdHcxX1k8dagVLsfZF3LJxIMqOlyRt3uxxNOl2kjzidrS79/ lI0g== X-Gm-Message-State: AOAM53054KqoGkv6eO9NT7iqZtvhrN9PuJ3AG//lrb7mgeAmoneIyE9C F0c/dmHcV8SDvg8CJrG8DdXj3I98Fmc= X-Google-Smtp-Source: ABdhPJwv5qB75wuS4bpwp8PQPISQjRp1cn3xJSMYsP5Hcreq+IQZmgN5TTXstCve2FUTD0wjBrPklg== X-Received: by 2002:a9d:3e8:: with SMTP id f95mr147259otf.53.1623775263059; Tue, 15 Jun 2021 09:41:03 -0700 (PDT) Received: from smtpclient.apple ([2600:100e:b052:710b:f86c:b0df:1a62:dd73]) by smtp.gmail.com with ESMTPSA id s2sm3831258oom.17.2021.06.15.09.41.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Jun 2021 09:41:02 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-AA1EFEC4-A607-47DE-A437-6BE528587D0A Content-Transfer-Encoding: 7bit From: Mike Jones Mime-Version: 1.0 (1.0) Date: Tue, 15 Jun 2021 10:41:01 -0600 Subject: VR Fault Logs Message-Id: To: OpenBMC Maillist X-Mailer: iPad Mail (18F72) X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --Apple-Mail-AA1EFEC4-A607-47DE-A437-6BE528587D0A Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I=E2=80=99m working on adding fault log capabilities to ltc2978.c driver whi= ch covers ADI=E2=80=99s family of PMBus VR controllers and sequencer/manager= s. These parts have a blackbox fault log that triggers on over current and many= other hardware problems. End users use this information for remote diagnosi= s. Putting aside whether or not this should have a standard hwmon interface or n= ot, for now I added debugfs nodes to this driver to test functionality. What I want to discuss is use model, as it would apply to obmc if exposed th= rough a redfish api. As it works now, the log is fetched like this: cat /sys/kernel/debug/pmbus/hwmon1/raw_data > /tmp/ltc2974.raw This creates a raw binary file of the log. To interpret the log, hexdump it like: hexdump -ve '"%07.7_ax " 16/1 "%02x " "\n"' /tmp/ltc2974.raw This creates the following text: 0000000 18 00 00 00 00 00 00 00 00 ff ff 27 db 0c db 4e 0000010 80 41 80 f0 c2 ff 7b 00 00 ff ff 27 db 1e db 0f 0000020 80 02 80 00 00 ff ff 27 db 22 db f0 81 ee 80 00 0000030 00 ff ff 2b db 22 db 47 81 bd 87 00 00 00 00 00 0000040 00 00 00 00 00 00 00 00 db 22 00 00 00 00 00 08 0000050 c2 ef 80 00 80 4b 00 00 db 22 00 00 00 00 db 06 0000060 80 00 80 51 00 00 db 27 00 00 00 00 80 00 81 a0 0000070 00 00 db 22 00 00 00 00 80 00 80 04 00 00 db 22 0000080 00 00 00 00 00 08 c2 f0 80 00 80 41 00 00 db 22 0000090 00 00 00 00 db 05 80 00 80 a8 00 00 db 27 00 00 00000a0 00 00 80 00 81 0b 00 00 db 22 00 00 00 00 80 00 00000b0 80 06 00 00 db 22 00 00 00 00 00 08 c2 ef 80 00 00000c0 80 43 00 00 db 22 00 00 00 00 db 05 80 00 80 0e 00000d0 00 00 db 27 00 00 00 00 80 00 81 72 00 00 db 22 00000e0 00 00 00 00 80 00 80 06 00 00 db 22 00 00 00 00 00000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Use this tool to decode: http://pmbus.analogplayground.com/fault For example: http://pmbus.analogplayground.com/fault?_hasdata=3D&f1=3D10&f2=3D2&f3=3D0000= 000++18+00+00+00+00+00+00+00+00+ff+ff+27+db+0c+db+4e%0D%0A0000010++80+41+80+= f0+c2+ff+7b+00+00+ff+ff+27+db+1e+db+0f%0D%0A0000020++80+02+80+00+00+ff+ff+27= +db+22+db+f0+81+ee+80+00%0D%0A0000030++00+ff+ff+2b+db+22+db+47+81+bd+87+00+0= 0+00+00+00%0D%0A0000040++00+00+00+00+00+00+00+00+db+22+00+00+00+00+00+08%0D%= 0A0000050++c2+ef+80+00+80+4b+00+00+db+22+00+00+00+00+db+06%0D%0A0000060++80+= 00+80+51+00+00+db+27+00+00+00+00+80+00+81+a0%0D%0A0000070++00+00+db+22+00+00= +00+00+80+00+80+04+00+00+db+22%0D%0A0000080++00+00+00+00+00+08+c2+f0+80+00+8= 0+41+00+00+db+22%0D%0A0000090++00+00+00+00+db+05+80+00+80+a8+00+00+db+27+00+= 00%0D%0A00000a0++00+00+80+00+81+0b+00+00+db+22+00+00+00+00+80+00%0D%0A00000b= 0++80+06+00+00+db+22+00+00+00+00+00+08+c2+ef+80+00%0D%0A00000c0++80+43+00+00= +db+22+00+00+00+00+db+05+80+00+80+0e%0D%0A00000d0++00+00+db+27+00+00+00+00+8= 0+00+81+72+00+00+db+22%0D%0A00000e0++00+00+00+00+80+00+80+06+00+00+db+22+00+= 00+00+00%0D%0A00000f0++00+00+00+00+00+00+00+00+00+00+00+00+00+00+00 Press that url and see the decoded data. Obmc could call this tool for decoding, or built into obmc. However, every v= endor has it=E2=80=99s own proprietary formats. I=E2=80=99m looking for feedback on this model of a driver as it relates to o= bmc integration. Is there a better model? You can comment on usefulness if you want, but my interest is more on integr= ation. I have customers that would use this, if they design in this family o= f parts. They use it to day in their proprietary BMCs. Mike =20 Sent from my iPad= --Apple-Mail-AA1EFEC4-A607-47DE-A437-6BE528587D0A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi,

I=E2=80=99= m working on adding fault log capabilities to ltc2978.c driver which covers A= DI=E2=80=99s family of PMBus VR controllers and sequencer/managers.

These parts have a blackbox fault log that triggers on over= current and many other hardware problems. End users use this information fo= r remote diagnosis.

Putting aside whether or not th= is should have a standard hwmon interface or not, for now I added debugfs no= des to this driver to test functionality.

What I wa= nt to discuss is use model, as it would apply to obmc if exposed through a r= edfish api.

As it works now, the log is fetched lik= e this:

cat /= sys/kernel/debug/pmbus/hwmon1/raw_data > /tmp/ltc2974.raw

This creates a raw binary file of the log.

To interpret the log, hexdump it like:

hexdump -ve '"%07.7_ax  " 16/1&n= bsp;"%02x " "\n"' /tmp/ltc2974.raw

= This creates the following text:

0000000  18= 00 00 00 00 00 00 00 00 ff ff 27 db 0c db 4e

0000010  80 41 80 f0 c= 2 ff 7b 00 00 ff ff 27 db 1e db 0f

0000020  80 02 80 00 0= 0 ff ff 27 db 22 db f0 81 ee 80 00

0000030  00 ff ff 2b db 22 db 47 8= 1 bd 87 00 00 00 00 00

0000040  00 00 00 00 00 00 00 00 db 22 00 00 00= 00 00 08

0000050  c2 ef 80 00 80 4b 00 00 db 22 0= 0 00 00 00 db 06

0000060  80 00 80 51 00 00 db 27 00 00 00 00 80 00 81 a0<= o:p>

0000070&n= bsp; 00 00 db 22 00 00 00 00 80 00 80 04 0= 0 00 db 22

00 00 00 00 00 08 c2 f0&n= bsp;80 00 80 41 00 00 db 22

0000090  00 00 00 00 db 05 80 00 80 a8 00 00 db 27 00 00

00000a0  00 00 80 00 81 0b 00 00 db 22 00 00 00 00 80 00<= /o:p>

00000b0 &= nbsp;80 06 00 00 db 22 0= 0 00 00 00 00 08 c2 ef 80 00

00000c0  80 43 0= 0 00 db 22 00 00 00 00 db&nbs= p;05 80 00 80 0e

00000d0  00 00 db 27 00 00 00 00 80 00 81 72 00 00 db 22

00000e0  00 00 00 00 80 00 80 06 00 00 db 22 00 00 00 00

00000f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

=


Use this tool to decode:


http://pmbus.analogplayground.com/fault


For example:


http://pmbus.analogplayground.com/fault?_hasdata=3D&f1=3D10&f2= =3D2&f3=3D0000000++18+00+00+00+00+00+00+00+00+ff+ff+27+db+0c+db+4e%0D%0A= 0000010++80+41+80+f0+c2+ff+7b+00+00+ff+ff+27+db+1e+db+0f%0D%0A0000020++80+02= +80+00+00+ff+ff+27+db+22+db+f0+81+ee+80+00%0D%0A0000030++00+ff+ff+2b+db+22+d= b+47+81+bd+87+00+00+00+00+00%0D%0A0000040++00+00+00+00+00+00+00+00+db+22+00+= 00+00+00+00+08%0D%0A0000050++c2+ef+80+00+80+4b+00+00+db+22+00+00+00+00+db+06= %0D%0A0000060++80+00+80+51+00+00+db+27+00+00+00+00+80+00+81+a0%0D%0A0000070+= +00+00+db+22+00+00+00+00+80+00+80+04+00+00+db+22%0D%0A0000080++00+00+00+00+0= 0+08+c2+f0+80+00+80+41+00+00+db+22%0D%0A0000090++00+00+00+00+db+05+80+00+80+= a8+00+00+db+27+00+00%0D%0A00000a0++00+00+80+00+81+0b+00+00+db+22+00+00+00+00= +80+00%0D%0A00000b0++80+06+00+00+db+22+00+00+00+00+00+08+c2+ef+80+00%0D%0A00= 000c0++80+43+00+00+db+22+00+00+00+00+db+05+80+00+80+0e%0D%0A00000d0++00+00+d= b+27+00+00+00+00+80+00+81+72+00+00+db+22%0D%0A00000e0++00+00+00+00+80+00+80+= 06+00+00+db+22+00+00+00+00%0D%0A00000f0++00+00+00+00+00+00+00+00+00+00+00+00= +00+00+00



Press that url and see the decoded d= ata.


Obmc could call this tool for d= ecoding, or built into obmc. However, every vendor has it=E2=80=99s own prop= rietary formats.

I=E2=80=99m lookin= g for feedback on this model of a driver as it relates to obmc integration. I= s there a better model?


You can comm= ent on usefulness if you want, but my interest is more on integration. I hav= e customers that would use this, if they design in this family of parts. The= y use it to day in their proprietary BMCs.


Mike

&nbs= p;


Sent fr= om my iPad

= --Apple-Mail-AA1EFEC4-A607-47DE-A437-6BE528587D0A--