[Skiboot] [PATCH] plat/qemu: add BT and IPMI support

Cédric Le Goater clg at kaod.org
Wed Aug 3 03:54:44 AEST 2016


On 08/02/2016 12:59 PM, Stewart Smith wrote:
> Cédric Le Goater <clg at kaod.org> writes:
>> This brings the qemu platform to the level of an Open Power platform.
>> It adds the BT device used to communicate with the BMC using IPMI
>> messaging, power_downs and reboots the way OpenPower systems operate.
>>
>> The device tree is also checked for UART and RTC device nodes and
>> updated if qemu has not defined them already. The initialization of
>> the BT and IPMI interfaces depends on the availability of the BT
>> device which needs to be explicitly defined by qemu. These tests
>> enable skiboot to maintain compatibility with previous versions of
>> qemu which did not update the device tree with enabled devices.
>>
>> Signed-off-by: Cédric Le Goater <clg at kaod.org>
>> ---
>>
>>  The only significant difference now with the ast platform is on the
>>  RTC device which lives under the LPC bus on qemu.
>>
>>  Tested with the latest qemu powernv+ipmi patchset :
>>
>> 	https://github.com/legoater/qemu/tree/powernv-ipmi-2.7
>>
>>  which is now based on a v2.7.0-rc1.
> 
> Awesome!
> 
> I'm strongly inclined to make this tree the new one that's run in the
> travis-ci qemu build (opal-ci/build-qemu.sh or whatever it's called
> that's run from .travis.yml).
> 

FYI, I have added a quick patch on powernv-ipmi-2.7 to support old 
skiboots not having the proposed patch in this email. So the current 
skiboot non-regression tests should work with it. Well, that's the 
plan.

I should start a 2.8 branch based on David Gibson 'for 2.8' when I 
have more PowerNV material to commit. 

As for IPMI support, you will need some extra files to define the 
sensors and the FRUs which are needed at run time. The device tree is 
built in qemu using these files. Here is a quick howto : 

	https://legoater.github.io/

Cheers,

C.



More information about the Skiboot mailing list