<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/powerpc/kernel/machine_kexec_64.c, branch linux-4.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-11-30T12:15:26Z</updated>
<entry>
<title>powerpc: Add purgatory for kexec_file_load() implementation.</title>
<updated>2016-11-30T12:15:26Z</updated>
<author>
<name>Thiago Jung Bauermann</name>
</author>
<published>2016-11-29T12:45:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d97631392c24a9573dafb7b6962cc40b5ef2281'/>
<id>urn:sha1:0d97631392c24a9573dafb7b6962cc40b5ef2281</id>
<content type='text'>
This purgatory implementation is based on the versions from kexec-tools
and kexec-lite, with additional changes.

Signed-off-by: Thiago Jung Bauermann &lt;bauerman@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/64/kexec: Remove BookE special default_machine_kexec_prepare()</title>
<updated>2016-09-22T21:54:18Z</updated>
<author>
<name>Benjamin Herrenschmidt</name>
</author>
<published>2016-08-19T08:52:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3eabf88579032e3c73e7b0a8495f8dbe8c407f46'/>
<id>urn:sha1:3eabf88579032e3c73e7b0a8495f8dbe8c407f46</id>
<content type='text'>
The only difference is now the TCE table check which doesn't need
to be ifdef'ed out, it will basically do nothing on BookE (it is
only useful for ancient IBM machines).

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/64/kexec: Copy image with MMU off when possible</title>
<updated>2016-09-22T21:54:18Z</updated>
<author>
<name>Benjamin Herrenschmidt</name>
</author>
<published>2016-08-19T08:52:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b970b41ea68ace17f389c8387c1df4a86aa039a0'/>
<id>urn:sha1:b970b41ea68ace17f389c8387c1df4a86aa039a0</id>
<content type='text'>
Currently we turn the MMU off after copying the image, and we make
sure there is no overlap between the hash table and the target pages
in that case.

That doesn't work for Radix however. In that case, the page tables
are scattered and we can't really enforce that the target of the
image isn't overlapping one of them.

So instead, let's turn the MMU off before copying the image in radix
mode. Thankfully, in radix mode, even under a hypervisor, we know we
don't have the same kind of RMA limitations that hash mode has.

While at it, also turn the MMU off early when using hash in non-LPAR
mode, that way we can get rid of the collision check completely.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Acked-by: Balbir Singh &lt;bsingharora@gmail.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/64/kexec: Fix MMU cleanup on radix</title>
<updated>2016-09-22T21:54:17Z</updated>
<author>
<name>Benjamin Herrenschmidt</name>
</author>
<published>2016-08-19T08:52:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fe036a0605d60d6c81ffdcd6241e9ae0013fe235'/>
<id>urn:sha1:fe036a0605d60d6c81ffdcd6241e9ae0013fe235</id>
<content type='text'>
Just using the hash ops won't work anymore since radix will have
NULL in there. Instead create an mmu_cleanup_all() function which
will do the right thing based on the MMU mode.

For Radix, for now I clear UPRT and the PTCR, effectively switching
back to Radix with no partition table setup.

Currently set it to NULL on BookE thought it might be a good idea
to wipe the TLB there (Scott ?)

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Acked-by: Balbir Singh &lt;bsingharora@gmail.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/mm: Move hash table ops to a separate structure</title>
<updated>2016-07-21T08:59:09Z</updated>
<author>
<name>Benjamin Herrenschmidt</name>
</author>
<published>2016-07-05T05:03:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7025776ed1ebdfa1959932e7a4662c2f88607df0'/>
<id>urn:sha1:7025776ed1ebdfa1959932e7a4662c2f88607df0</id>
<content type='text'>
Moving probe_machine() to after mmu init will cause the ppc_md
fields relative to the hash table management to be overwritten.

Since we have essentially disconnected the machine type from
the hash backend ops, finish the job by moving them to a different
structure.

The only callback that didn't quite fix is update_partition_table
since this is not specific to hash, so I moved it to a standalone
variable for now. We can revisit later if needed.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
[mpe: Fix ppc64e build failure in kexec]
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc: Introduce asm-prototypes.h</title>
<updated>2016-06-16T12:39:54Z</updated>
<author>
<name>Daniel Axtens</name>
</author>
<published>2016-05-18T01:16:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=42f5b4cacd783faf05e3ff8bf85e8be31f3dfa9d'/>
<id>urn:sha1:42f5b4cacd783faf05e3ff8bf85e8be31f3dfa9d</id>
<content type='text'>
Sparse picked up a number of functions that are implemented in C and
then only referred to in asm code.

This introduces asm-prototypes.h, which provides a place for
prototypes of these functions.

This silences some sparse warnings.

Signed-off-by: Daniel Axtens &lt;dja@axtens.net&gt;
[mpe: Add include guards, clean up copyright &amp; GPL text]
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc: Update of_remove_property() call sites to remove null checking</title>
<updated>2016-05-11T11:54:04Z</updated>
<author>
<name>Suraj Jitindar Singh</name>
</author>
<published>2016-04-28T05:34:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=925e2d1ded80fcc92210c9a9e5009887553dd83f'/>
<id>urn:sha1:925e2d1ded80fcc92210c9a9e5009887553dd83f</id>
<content type='text'>
After obtaining a property from of_find_property() and before calling
of_remove_property() most code checks to ensure that the property
returned from of_find_property() is not null. The previous patch moved
this check to the start of the function of_remove_property() in order to
avoid the case where this check isn't done and a null value is passed.
This ensures the check is always conducted before taking locks and
attempting to remove the property. Thus it is no longer necessary to
perform a check for null values before invoking of_remove_property().

Update of_remove_property() call sites in order to remove redundant
checking for null property value as check is now performed within the
of_remove_property function().

Signed-off-by: Suraj Jitindar Singh &lt;sjitindarsingh@gmail.com&gt;
[mpe: Unbreak some lines which are just &gt;80 chars for readability]
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/mm/radix: Use STD_MMU_64 to properly isolate hash related code</title>
<updated>2016-05-11T11:53:45Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
</author>
<published>2016-04-29T13:26:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=caca285e5ab4a7a19fede51688106ceed6fc45dd'/>
<id>urn:sha1:caca285e5ab4a7a19fede51688106ceed6fc45dd</id>
<content type='text'>
We also use MMU_FTR_RADIX to branch out from code path specific to
hash.

No functionality change.

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/book3e-64: Enable kexec</title>
<updated>2015-10-27T23:13:30Z</updated>
<author>
<name>Tiejun Chen</name>
</author>
<published>2015-10-07T03:48:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=96eea6426f56042c28eff849cb2cc01895db081e'/>
<id>urn:sha1:96eea6426f56042c28eff849cb2cc01895db081e</id>
<content type='text'>
Allow KEXEC for book3e, and bypass or convert non-book3e stuff
in kexec code.

Signed-off-by: Tiejun Chen &lt;tiejun.chen@windriver.com&gt;
[scottwood@freescale.com: move code to minimize diff, and cleanup]
Signed-off-by: Scott Wood &lt;scottwood@freescale.com&gt;
</content>
</entry>
<entry>
<title>kexec: add IND_FLAGS macro</title>
<updated>2015-02-17T22:34:51Z</updated>
<author>
<name>Geoff Levand</name>
</author>
<published>2015-02-17T21:45:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b28c2ee868dbdc0baa89c60fb520be85d5e90a72'/>
<id>urn:sha1:b28c2ee868dbdc0baa89c60fb520be85d5e90a72</id>
<content type='text'>
Add a new kexec preprocessor macro IND_FLAGS, which is the bitwise OR of
all the possible kexec IND_ kimage_entry indirection flags.  Having this
macro allows for simplified code in the prosessing of the kexec
kimage_entry items.  Also, remove the local powerpc definition and use the
generic one.

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Acked-by: Vivek Goyal &lt;vgoyal@redhat.com&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Maximilian Attems &lt;max@stro.at&gt;
Cc: Michal Marek &lt;mmarek@suse.cz&gt;
Cc: H. Peter Anvin &lt;hpa@zytor.com&gt;
Cc: Paul Bolle &lt;pebolle@tiscali.nl&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
