<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-skiboot/core/init.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>2018-04-30T08:55:22+00:00</updated>
<entry>
<title>Signal skiboot completion to BMC when done</title>
<updated>2018-04-30T08:55:22+00:00</updated>
<author>
<name>Raptor Engineering Development Team</name>
<email>support@raptorengineering.com</email>
</author>
<published>2018-01-22T22:23:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=02c806450d38dc089bcdd4bc33c9ce286404b9f1'/>
<id>urn:sha1:02c806450d38dc089bcdd4bc33c9ce286404b9f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sensors: Dont add DTS sensors when OCC inband sensors are available</title>
<updated>2018-04-19T23:56:06+00:00</updated>
<author>
<name>Shilpasri G Bhat</name>
<email>shilpa.bhat@linux.vnet.ibm.com</email>
</author>
<published>2018-03-05T02:03:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=df62a033675da4d620731133c0cda1b320adeac8'/>
<id>urn:sha1:df62a033675da4d620731133c0cda1b320adeac8</id>
<content type='text'>
There are two sets of core temperature sensors today. One is DTS scom
based core temperature sensors and the second group is the sensors
provided by OCC. DTS is the highest temperature among the different
temperature zones in the core while OCC core temperature sensors are
the average temperature of the core. DTS sensors are read directly by
the host by SCOMing the DTS sensors while OCC sensors are read and
updated by OCC to main memory.

Reading DTS sensors by SCOMing is a heavy and slower operation as
compared to reading OCC sensors which is as good as reading memory.
So dont add DTS sensors when OCC sensors are available.

Signed-off-by: Shilpasri G Bhat &lt;shilpa.bhat@linux.vnet.ibm.com&gt;
Acked-by: Vaidyanathan Srinivasan &lt;svaidy@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.ibm.com&gt;
</content>
</entry>
<entry>
<title>core: Correctly load initramfs in stb container</title>
<updated>2018-04-11T22:59:57+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2018-03-19T05:59:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=e7a2da8d5e654467df63c03e2be91b435796df25'/>
<id>urn:sha1:e7a2da8d5e654467df63c03e2be91b435796df25</id>
<content type='text'>
Skiboot does not calculate the actual size and start location of the
initramfs if it is wrapped by an STB container (for example if loading
an initramfs from the ROOTFS partition).

Check if the initramfs is in an STB container and determine the size and
location correctly in the same manner as the kernel. Since
load_initramfs() is called after load_kernel() move the call to
trustedboot_exit_boot_services() into load_and_boot_kernel() so it is
called after both of these.

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.ibm.com&gt;
</content>
</entry>
<entry>
<title>core/cpu: discover stack region size before initialising memory regions</title>
<updated>2018-03-27T06:37:01+00:00</updated>
<author>
<name>Nicholas Piggin</name>
<email>npiggin@gmail.com</email>
</author>
<published>2018-03-25T06:54:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=90d53934c2dab214e8965e28070a67ed89f3e94c'/>
<id>urn:sha1:90d53934c2dab214e8965e28070a67ed89f3e94c</id>
<content type='text'>
Stack allocation first allocates a memory region sized to hold stacks
for all possible CPUs up to the maximum PIR of the architecture, zeros
the region, then initialises all stacks. Max PIR is 32768 on POWER9,
which is 512MB for stacks.

The stack region is then shrunk after CPUs are discovered, but this is
a bit of a hack, and it leaves a hole in the memory allocation regions
as it's done after mem regions are initialised.

  0x000000000000..00002fffffff : ibm,os-reserve - OS
  0x000030000000..0000303fffff : ibm,firmware-code - OPAL
  0x000030400000..000030ffffff : ibm,firmware-heap - OPAL
  0x000031000000..000031bfffff : ibm,firmware-data - OPAL
  0x000031c00000..000031c0ffff : ibm,firmware-stacks - OPAL
  *** gap ***
  0x000051c00000..000051d01fff : ibm,firmware-allocs-memory@0 - OPAL
  0x000051d02000..00007fffffff : ibm,firmware-allocs-memory@0 - OS
  0x000080000000..000080b3cdff : initramfs - OPAL
  0x000080b3ce00..000080b7cdff : ibm,fake-nvram - OPAL
  0x000080b7ce00..0000ffffffff : ibm,firmware-allocs-memory@0 - OS

This change moves zeroing into the per-cpu stack setup. The boot CPU
stack is set up based on the current PIR. Then the size of the stack
region is set, by discovering the maximum PIR of the system from the
device tree, before mem regions are intialised.

This results in all memory being accounted within memory regions,
and less memory fragmentation of OPAL allocations.

Signed-off-by: Nicholas Piggin &lt;npiggin@gmail.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>mem-map: Use a symbolic constant for exception vector size</title>
<updated>2018-03-27T05:41:09+00:00</updated>
<author>
<name>Nicholas Piggin</name>
<email>npiggin@gmail.com</email>
</author>
<published>2018-03-26T05:06:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=336f306555d02505a429a0a01b06bf7130c36c03'/>
<id>urn:sha1:336f306555d02505a429a0a01b06bf7130c36c03</id>
<content type='text'>
Signed-off-by: Nicholas Piggin &lt;npiggin@gmail.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>core/fast-reboot: verify mem regions before fast reboot</title>
<updated>2018-03-27T05:40:50+00:00</updated>
<author>
<name>Nicholas Piggin</name>
<email>npiggin@gmail.com</email>
</author>
<published>2018-03-26T05:05:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=8cabd06243ac077a4ca6c09424fac92941b72321'/>
<id>urn:sha1:8cabd06243ac077a4ca6c09424fac92941b72321</id>
<content type='text'>
Run the mem_region sanity checkers before proceeding with fast
reboot.

This is the beginning of proactive sanity checks on opal data
for fast reboot (with complements the reactive disable_fast_reboot
cases). This is encouraged to re-use and share any kind of debug
code and unit test code.

Signed-off-by: Nicholas Piggin &lt;npiggin@gmail.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Revert "console(lpc/fsp-console): Use only stdout-path property on P9 and above"</title>
<updated>2018-03-07T03:24:10+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2018-03-07T03:23:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=217f74b0c40e176917f604e0b3d40fb44598f07c'/>
<id>urn:sha1:217f74b0c40e176917f604e0b3d40fb44598f07c</id>
<content type='text'>
This reverts commit 20f685a3627a2a522c465716377561a8fbcc608f.

We've hit problems on Zaius machines and the needed petitboot changes
haven't made it upstream yet.

Let's revert for the time being while we sort everything out.

We probably have to keep both around for a few years.

Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>console(lpc/fsp-console): Use only stdout-path property on P9 and above</title>
<updated>2018-03-02T02:27:01+00:00</updated>
<author>
<name>Pridhiviraj Paidipeddi</name>
<email>ppaidipe@linux.vnet.ibm.com</email>
</author>
<published>2018-03-01T17:03:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=20f685a3627a2a522c465716377561a8fbcc608f'/>
<id>urn:sha1:20f685a3627a2a522c465716377561a8fbcc608f</id>
<content type='text'>
dtc tool complaining about below warning as usage of linux,stdout-path
property under /chosen node is deprecated.

dts: Warning
(chosen_node_stdout_path): Use 'stdout-path' instead of 'linux,stdout-path'

So this patch fix this by using stdout-path property on all the systems
and keep linux,stdout-path only on P8 and before. This property refers to
a node which represents the device to be used for boot console output.

Verified boot on both P8 and P9 systems with new and older kernels.
And also verified dtc warnings got fixed in both P8 and P9.

Signed-off-by: Pridhiviraj Paidipeddi &lt;ppaidipe@linux.vnet.ibm.com&gt;
[stewart: simplify logic]
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>npu2-opencapi: Configure NPU for OpenCAPI</title>
<updated>2018-03-02T02:17:54+00:00</updated>
<author>
<name>Andrew Donnellan</name>
<email>andrew.donnellan@au1.ibm.com</email>
</author>
<published>2018-03-01T07:57:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=b5f1fd30ef56290a6171c79b71bbecb3516e7cf7'/>
<id>urn:sha1:b5f1fd30ef56290a6171c79b71bbecb3516e7cf7</id>
<content type='text'>
Scan the device tree for NPUs with OpenCAPI links and configure the NPU per
the initialisation sequence in the NPU OpenCAPI workbook.

Training of individual links and setup of per-AFU/link configuration will
be in a later patch.

Signed-off-by: Andrew Donnellan &lt;andrew.donnellan@au1.ibm.com&gt;
Signed-off-by: Frederic Barrat &lt;fbarrat@linux.vnet.ibm.com&gt;
Reviewed-by: Frederic Barrat &lt;fbarrat@linux.vnet.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>core/init: Assert when kernel not found</title>
<updated>2018-03-01T02:28:39+00:00</updated>
<author>
<name>Michael Neuling</name>
<email>mikey@neuling.org</email>
</author>
<published>2018-02-28T23:07:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=18d7ee718bef3c95787473e3537be5f0653470c4'/>
<id>urn:sha1:18d7ee718bef3c95787473e3537be5f0653470c4</id>
<content type='text'>
If the kernel doesn't load out of flash or there is nothing at
KERNEL_LOAD_BASE, we end up with an esoteric message as we try to
branch to out of skiboot into nothing

  [    0.007197688,3] INIT: ELF header not found. Assuming raw binary.
  [    0.014035267,5] INIT: Starting kernel at 0x0, fdt at 0x3044ad90 13029
  [    0.014042254,3] ***********************************************
  [    0.014069947,3] Fatal Exception 0xe40 at 0000000000000000
  [    0.014085574,3] CFAR : 00000000300051c4
  [    0.014090118,3] SRR0 : 0000000000000000 SRR1 : 0000000000000000
  [    0.014096243,3] HSRR0: 0000000000000000 HSRR1: 9000000000001000
  [    0.014102546,3] DSISR: 00000000         DAR  : 0000000000000000
  [    0.014108538,3] LR   : 00000000300144c8 CTR  : 0000000000000000
  [    0.014114756,3] CR   : 40002202         XER  : 00000000
  [    0.014120301,3] GPR00: 000000003001447c GPR16: 0000000000000000

This improves the message and asserts in this case:

[    0.014042685,5] INIT: Starting kernel at 0x0, fdt at 0x3044ad90 13049 bytes)
[    0.014049556,0] FATAL: Kernel is zeros, can't execute!
[    0.014054237,0] Assert fail: core/init.c:566:0
[    0.014060472,0] Aborting!

Signed-off-by: Michael Neuling &lt;mikey@neuling.org&gt;
Reviewed-by: Vaidyanathan Srinivasan &lt;svaidy@linux.vnet.ibm.com&gt;
Tested-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
</feed>
