openbmc Digest, Vol 41, Issue 79
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi
1. I would like to ask any one how to generate BMC logging through phosphor-logging?
2. When to call the IpmiSelAdd and IpmiSelAddOem methods?
3. Write the log to journalctl through phosphor-sel-logger. Could you read it through the ipmiStorageGetSELInfo method of intel-ipmi-oem? Thanks
Quoted 279 lines · At 2019-01-19 01:39:02, [email protected] wrote:
Send openbmc mailing list submissions to
[email protected]To subscribe or unsubscribe via the World Wide Web, visit
https://lists.ozlabs.org/listinfo/openbmc
or, via email, send a message with subject or body 'help' to
[email protected]You can reach the person managing the list at
[email protected]When replying, please edit your Subject line so it is more specific than "Re: Contents of openbmc digest..."
Today's Topics:
1. couple questions for Event Log (???)
2. Re: Openbmc test Release tagging for Community Release (krtaylor)
3. Re: [PATCH v2 1/2] dt-binding: iio: add NPCM ADC documentation (Tomer Maimon)
4. Re: [PATCH] nbd:clearNBD_BOUNDflag when NBD connection is closed (Adriana Kobylak)
5. Re: couple questions for Event Log (Bills, Jason M)
6. Using mmap against aspeed-lpc-ctrl device - weird bytes :D (Patrick Venture)----------------------------------------------------------------------
Message: 1
Date: Fri, 18 Jan 2019 17:28:44 +0800 (CST)
From: ??? <[email protected]>
To: [email protected]
Subject: couple questions for Event Log
Message-ID: <[email protected]>
Content-Type: text/plain; charset="gbk"Hi
1. How to debug the system event log, how to configure it, and what modules are related to the log function?
2. When is the phosphor-sel-logger registration method (IpmiSelAdd, IpmiSelAddOem) invoked? How to use DBUS to read journalctl?
3. Could anyone share a description of the yaml file about phosphor-logging?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190118/aa3807a1/attachment-0001.html>------------------------------
Message: 2
Date: Fri, 18 Jan 2019 09:07:52 -0600
From: krtaylor <[email protected]>
To: [email protected]
Subject: Re: Openbmc test Release tagging for Community Release
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252; format=flowedQuoted 5 lines · George Keishing
Hi All,
We are going to tag a openbmc test release soon for the community master release testing. So, expect 2.3 tag version soon there in a week time from now, once the test code and master are stable.
No, we are in the middle of a test cycle for the 2.6 release. We agreed and switched from the informal tags to a formal release process last June/July. Why do we need to tag master at an earlier level? Please come to a release planning meeting and let's talk about what you need.
Quoted 3 lines
As part of the release tagging in test, we are freezing any new changes for now in test except for CI/CT fixes required to support testing the Master 2.6 .
I don't understand this at all. What is "release tagging in test"? We have a 2.6 branch and master (which is also at 2.6+ level).
Kurt (krtaylor)
------------------------------
Message: 3
Date: Fri, 18 Jan 2019 17:18:43 +0200
From: Tomer Maimon <[email protected]>
To: Joel Stanley <[email protected]>
Cc: Jonathan Cameron <[email protected]>, Hartmut Knaack
<[email protected]>, Lars-Peter Clausen <[email protected]>, Peter Meerwald-Stadler <[email protected]>, Rob Herring <[email protected]>, Mark Rutland <[email protected]>, Nancy Yuen <[email protected]>, Patrick Venture <[email protected]>, Brendan Higgins <[email protected]>, Avi Fishman <[email protected]>, [email protected], OpenBMC Maillist <[email protected]>, Linux Kernel Mailing List <[email protected]>, devicetree <[email protected]>
Subject: Re: [PATCH v2 1/2] dt-binding: iio: add NPCM ADC
documentation
Message-ID:
<CAP6Zq1j=oPdVXZKBteBcaLVZcvoU7M6YbfGhSCaC44Ld9AQ9Ag@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"Hi Joel,
Thanks for bringing this to my attention,
I think I will leave it the same way it is now because I will like to develop the reset driver and to handle the NPCM7xx SOC resets.
Cheers,
Tomer
Quoted 18 lines · Joel Stanley
Review
Quoted 4 lines · Tomer Maimon
(quoted diff) +4
-0+Required Node in the NPCM7xx BMC: +An additional register is present in the NPCM7xx SOC which is +assumed to be in the same device tree, with and marked as +compatible with "nuvoton,npcm750-rst".Is there a reason you don't include a phandle to the reset node?
I think doing that would make more sense.
Quoted 6 lines
(quoted diff) +6
-0+adc: adc@f000c000 { + compatible = "nuvoton,npcm750-adc"; + reg = <0xf000c000 0x8>; + interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk NPCM7XX_CLK_ADC>; +};Quoted 7 lines
Review
Quoted 6 lines
(quoted diff) +6
-0+ +rst: rst@f0801000 { + compatible = "nuvoton,npcm750-rst", "syscon", + "simple-mfd"; + reg = <0xf0801000 0x6C>; +};-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190118/cb3fb0a9/attachment-0001.html>------------------------------
Message: 4
Date: Fri, 18 Jan 2019 09:44:23 -0600
From: Adriana Kobylak <[email protected]>
To: [email protected], [email protected]
Cc: [email protected], [email protected]
Subject: Re: [PATCH] nbd:clearNBD_BOUNDflag when NBD connection is
closed
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; format=flowedHi Joel,
Why has this patch been archived and marked as "Not Applicable"? -
http://patchwork.ozlabs.org/patch/1011480/------------------------------
Message: 5
Date: Fri, 18 Jan 2019 09:51:26 -0800
From: "Bills, Jason M" <[email protected]>
To: [email protected]
Subject: Re: couple questions for Event Log
Message-ID: <[email protected]>
Content-Type: text/plain; charset=gbk; format=flowedQuoted 4 lines · ???
Hi
1.How to debug the system event log, how to configure it, and what modules are related to the log function?
Can you provide more detail? Are you looking specifically for IPMI SEL or general BMC logging through phosphor-logging?
Quoted 3 lines
2.When is the phosphor-sel-logger registration method (IpmiSelAdd, IpmiSelAddOem) invoked? How to use DBUS to read journalctl?
phosphor-sel-logger runs as a service and exposes the IpmiSelAdd and IpmiSelAddOem methods on D-Bus. When either of those methods is invoked, the phosphor-sel-logger creates an IPMI SEL entry in the system journal using the provided data. The journal can then be parsed to extract the SEL entries as found in
https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/16280.journalctl is a command-line utility to read the system journal, so it isn't used over D-Bus. Details on journalctl can be found here:
https://www.freedesktop.org/software/systemd/man/journalctl.html.If you want to read the journal in source, you can use the
sd_journalAPIs here:
https://www.freedesktop.org/software/systemd/man/sd_journal.html#.
Example usage is in the gerrit review above.Quoted 7 lines
3.Could anyone share a description of the yaml file about phosphor-logging?
Thanks
Thanks,
-Jason------------------------------
Message: 6
Date: Fri, 18 Jan 2019 10:38:41 -0800
From: Patrick Venture <[email protected]>
To: Joel Stanley <[email protected]>
Cc: OpenBMC Maillist <[email protected]>
Subject: Using mmap against aspeed-lpc-ctrl device - weird bytes :D Message-ID:<CAO=notxJck9xYXKv=BYADuZV1Ya771bS7Mc_-1OUfDp4iFTq2A@mail.gmail.com>Content-Type: text/plain; charset="UTF-8"
Just to give you some context snippets:
System DTS snippet:
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;lpc_mapped_memory: region@98000000 {
no-map;
reg = <0x980000000x00800000>; /* 8MB */
};
};
&lpc_ctrl{
status = "okay";
memory-region = <&lpc_mapped_memory>;
flash = <&spi1>; // spi disabled, but needed forlpc_ctrlto probe };So, on the BMC, it receives the host's memory map address --> so it can configure the window:
https://github.com/openbmc/phosphor-ipmi-flash/blob/master/lpc_aspeed.cpp#L42
Then the host tool, mmap's to the host set-aside address, 4KiB, and tells the BMC to copy out the 4KiB:
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-ipmi-flash/+/17505
Keep in mind, previously this was working by the BMC opening
/dev/memand mapping againstlpc_mapped_memory-- but now we're opening aspeed-lpc-ctrl. In the code above, regionAddress ==lpc_mapped_memory, and regionSize is 64KiB.Can you take a look to at least sanity check this?
It ends up copying out data that looks like this:
00000000 0a 00 01 00 0a 00 01 00 0a 00 01 00 0a 00 01 00 |................| *
00001000Patrick
End of openbmc Digest, Vol 41, Issue 79
***************************************
Quoted 2 lines · 刘锡伟
Hi
1. I would like to ask any one how to generate BMC logging through phosphor-logging?
Are you looking at internal BMC logging or system event logging to view through something like 'ipmitool sel'?
For internal BMC logging, you can simply call the phosphor::logging::log<level>() function to add the message to the journal.
I'm not as familiar with it, but phosphor-logging also has report() and commit() capabilities to add error objects to D-Bus. I believe these objects can be viewed using 'ipmitool sel' commands.
Quoted 1 line
2. When to call the IpmiSelAdd and IpmiSelAddOem methods?
phosphor-sel-logger uses a new approach to log IPMI SEL events to the journal instead of as D-Bus objects. Whenever an IPMI sensor has an event, it would call IpmiSelAdd or IpmiSelAddOem to log that entry to the journal as a SEL event.
For example, if you have a threshold sensor that crosses a critical threshold, that event can be logged to the SEL by calling IpmiSelAdd.
Alternatively, phosphor-sel-logger can be extended to watch for events from that threshold sensor and log without calling IpmiSelAdd.
Quoted 1 line
3. Write the log to journalctl through phosphor-sel-logger. Could you read it through the ipmiStorageGetSELInfo method of intel-ipmi-oem?
Yes. Today, however, it is tied to the sensor path on D-Bus to get some of the information for the SEL record. Without that mapping, some of the data returned by ipmiStorageGetSELInfo may not be accurate.
Quoted 2 lines
Thanks