<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-skiboot/core/ipmi.c, branch master</title>
<subtitle>Talos™ II skiboot sources</subtitle>
<id>https://git.raptorcs.com/git/talos-skiboot/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-skiboot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/'/>
<updated>2016-03-07T03:35:54+00:00</updated>
<entry>
<title>ipmi: Log exact NetFn value in OPAL logs</title>
<updated>2016-03-07T03:35:54+00:00</updated>
<author>
<name>Vipin K Parashar</name>
<email>vipin@linux.vnet.ibm.com</email>
</author>
<published>2016-02-26T20:43:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=361000f61f3691cc5b970587366f8154610d2771'/>
<id>urn:sha1:361000f61f3691cc5b970587366f8154610d2771</id>
<content type='text'>
As per IPMI message format NetFn value in present in first 6 bits
while last 2 bits contain LUN value. This needs to be taken care
while printing NetFn value in OPAL logs which is useful while debugging
fails.

[root@fir01 /]# ipmitool raw 0x0a 0x48
 47 b1 d0 56
[root@fir01 /]#

&gt;From OPAL Logs
---------------
[133969609199,7] BT: seq 0x3d netfn 0x0a cmd 0x48: Message sent to host
[133975465455,7] BT: seq 0x3d netfn 0x0a cmd 0x48: IPMI MSG done

&gt;From BMC Logs
--------------
IPMIMain: [693 WARNING][corecmdselect.c:913]
 Request: Channel:f; Netfn:a; Cmd:48;
IPMIMain: [693 INFO][corecmdselect.c:924]
 Response: Channel:f; Netfn:a; Cmd:48; Data:0 47 b1 d0 56

Signed-off-by: Vipin K Parashar &lt;vipin@linux.vnet.ibm.com&gt;
Reviewed-by: Cyril Bur &lt;cyrilbur@gmail.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>core/ipmi: Provide the dequeue message interface</title>
<updated>2015-07-03T07:09:43+00:00</updated>
<author>
<name>Neelesh Gupta</name>
<email>neelegup@linux.vnet.ibm.com</email>
</author>
<published>2015-07-01T06:20:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=f0e3f5336baf3e51705c6faa9769597fb46f2657'/>
<id>urn:sha1:f0e3f5336baf3e51705c6faa9769597fb46f2657</id>
<content type='text'>
Add a wrapper for the client to be able to invoke the backend
dequeue message function.

Signed-off-by: Neelesh Gupta &lt;neelegup@linux.vnet.ibm.com&gt;
Cc: Alistair Popple &lt;alistair@popple.id.au&gt;
Acked-by: Alistair Popple &lt;alistair@popple.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>ipmi: Check for ipmi backend presence before use</title>
<updated>2015-04-17T19:30:03+00:00</updated>
<author>
<name>Alistair Popple</name>
<email>alistair@popple.id.au</email>
</author>
<published>2015-04-14T03:36:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=407a264f6fecd2d0d02056765ab48c2be61d1a55'/>
<id>urn:sha1:407a264f6fecd2d0d02056765ab48c2be61d1a55</id>
<content type='text'>
Not all ipmi related functions check for a valid backend before
attempting to use it. Under normal circumstances this should not
happen as the platform should always register an ipmi backend. However
a system should be able to boot without a functional ipmi backend,
which is sometimes the case during system bringup.

This patch adds presence checks for an ipmi backend before attempting
to use it, thus allowing a system with a non-functional backend to
boot without ipmi.

Signed-off-by: Alistair Popple &lt;alistair@popple.id.au&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Remove redundant includes of opal-api.h</title>
<updated>2015-04-01T01:16:39+00:00</updated>
<author>
<name>Michael Ellerman</name>
<email>mpe@ellerman.id.au</email>
</author>
<published>2015-03-31T10:53:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=e61506bcc11b887eb39c61a4657db75a1757c1f7'/>
<id>urn:sha1:e61506bcc11b887eb39c61a4657db75a1757c1f7</id>
<content type='text'>
Now that opal.h includes opal-api.h, there are a bunch of files that
include both but don't need to.

Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>hw/ipmi: Set boot count sensor</title>
<updated>2015-03-04T08:02:20+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2015-02-27T05:42:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=a736f60aaed6bb33047646949df7ab08697a896c'/>
<id>urn:sha1:a736f60aaed6bb33047646949df7ab08697a896c</id>
<content type='text'>
The boot count sensor is a discrete sensor that is set once the system
is up and running.

On successful boot, the BMC expects the sensor to be set to 2.

Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>ipmi: Fix locking for synchronous message sending</title>
<updated>2015-02-19T04:52:30+00:00</updated>
<author>
<name>Alistair Popple</name>
<email>alistair@popple.id.au</email>
</author>
<published>2015-02-19T04:37:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=6b968dd2977f615eaa434706bd8669f39ec95dec'/>
<id>urn:sha1:6b968dd2977f615eaa434706bd8669f39ec95dec</id>
<content type='text'>
Skiboot now doesn't run the running pollers while holding a lock to
avoid dead-locks. The current implementation of ipmi_queue_msg_sync()
does exactly that while it waits for the pollers to be called.

This patch fixes the problem by releasing the lock prior to calling
the pollers.

Signed-off-by: Alistair Popple &lt;alistair@popple.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>ipmi/wdt: Add ipmi watchdog timer support</title>
<updated>2015-02-09T03:24:58+00:00</updated>
<author>
<name>Alistair Popple</name>
<email>alistair@popple.id.au</email>
</author>
<published>2015-02-04T05:07:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=739e6df1163301a200b604b5eefa00770f9fa44c'/>
<id>urn:sha1:739e6df1163301a200b604b5eefa00770f9fa44c</id>
<content type='text'>
Add support for an ipmi watchdog timer. During skiboot initialisation
this patch will cause the system to be reset if opal_run_pollers()
isn't called for more than 60 seconds.

Once the payload is started the watchdog timer will be reset and a
pre-timeout interrupt set. The payload should then receive the
interrupt and call into skiboot which will disable the watchdog timer.

Signed-off-by: Alistair Popple &lt;alistair@popple.id.au&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>ipmi: Implement Read Event and SEL parsing</title>
<updated>2015-02-09T03:15:57+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2015-02-05T03:10:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=77e4b445025b05d4da12862e34a47519d0a64868'/>
<id>urn:sha1:77e4b445025b05d4da12862e34a47519d0a64868</id>
<content type='text'>
The read event mechanism is used when the BMC has an asynchronous message
for the host. It sets a flag that we read with Get Message Flags, and then
we read the message using Read Event. This event message contains a SEL
message. There are two OEM SEL messages we expect from the AMI BMC:

 - graceful power operations. This is when the BMC wants the host to
   power down or reboot.

 - PNOR Locking. When the BMC wants to access the PNOR, it requests
   that the host not touch it.

This patch implements the parsing.

Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>ipmi: handle SMS_ATN events</title>
<updated>2015-02-09T03:03:50+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jeremy.kerr@au.ibm.com</email>
</author>
<published>2015-02-05T03:10:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=6e42e6364ed2b1e976d7ddace2e28f27c0b46ba4'/>
<id>urn:sha1:6e42e6364ed2b1e976d7ddace2e28f27c0b46ba4</id>
<content type='text'>
When the bt interface sets the SMS_ATN flag, we perform a Get Message
Flags to determine what messages are available.

The only message type currently processed is the Event Message Buffer,
which provides SEL messages for indicating OEM specific events such as
graceful system shutdown and PNOR access requested. These events will be
handled by the IPMI layer in skiboot.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>ipmi: Add support for synchronous message sending</title>
<updated>2015-02-09T02:55:26+00:00</updated>
<author>
<name>Alistair Popple</name>
<email>alistair@popple.id.au</email>
</author>
<published>2015-02-04T05:07:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=c5a06a551ef55468e7bc46615f71f4ee4dbeaa02'/>
<id>urn:sha1:c5a06a551ef55468e7bc46615f71f4ee4dbeaa02</id>
<content type='text'>
This patch adds support for sending ipmi messages synchronously. This
is necessary to allow messages to be sent during skiboot
initialisation as interrupt servicing/polling is controlled by the
host operating system which is not yet running.

Signed-off-by: Alistair Popple &lt;alistair@popple.id.au&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
</feed>
