<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/powerpc/mm/slice.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-05-11T11:53:46Z</updated>
<entry>
<title>powerpc/mm/radix: Add checks in slice code to catch radix usage</title>
<updated>2016-05-11T11:53:46Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
</author>
<published>2016-04-29T13:26:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=764041e0f43cc7846f6d8eb246d65b53cc06c764'/>
<id>urn:sha1:764041e0f43cc7846f6d8eb246d65b53cc06c764</id>
<content type='text'>
Radix doesn't need slice support. Catch incorrect usage of slice code
when radix is enabled.

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/mm: Make page table size a variable</title>
<updated>2016-05-01T08:32:48Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
</author>
<published>2016-04-29T13:25:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd1842a2a448bb66d74aa02a550df6be8c25f20b'/>
<id>urn:sha1:dd1842a2a448bb66d74aa02a550df6be8c25f20b</id>
<content type='text'>
Radix and hash MMU models support different page table sizes. Make
the #defines a variable so that existing code can work with variable
sizes.

Slice related code is only used by hash, so use hash constants there. We
will replicate some of the boundary conditions with resepct to TASK_SIZE
using radix values too. Right now we do boundary condition check using
hash constants.

Swapper pgdir size is initialized in asm code. We select the max pgd
size to keep it simple. For now we select hash pgdir. When adding radix
we will switch that to radix pgdir which is 64K.

BUILD_BUG_ON check which is removed is already done in hugepage_init()
using MAYBE_BUILD_BUG_ON().

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: Add function to copy mm_context_t to the paca</title>
<updated>2015-12-19T11:13:12Z</updated>
<author>
<name>Michael Neuling</name>
</author>
<published>2015-10-28T04:54:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c395465da68bfc3a238d5bc15f862e33e6e9ecec'/>
<id>urn:sha1:c395465da68bfc3a238d5bc15f862e33e6e9ecec</id>
<content type='text'>
This adds a function to copy the mm-&gt;context to the paca.  This is
only a basic conversion for now but will be used more extensively in
the next patch.

This also adds #ifdef CONFIG_PPC_BOOK3S around this code since it's
not used elsewhere.

Signed-off-by: Michael Neuling &lt;mikey@neuling.org&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc: Remove some unused functions</title>
<updated>2015-01-28T04:00:24Z</updated>
<author>
<name>Michael Ellerman</name>
</author>
<published>2015-01-27T05:48:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8aa989b8fba1428b50a1be771c01285f1de0227b'/>
<id>urn:sha1:8aa989b8fba1428b50a1be771c01285f1de0227b</id>
<content type='text'>
Remove slice_set_psize() which is not used.

It was added in 3a8247cc2c85 "powerpc: Only demote individual slices
rather than whole process" but was never used.

Remove vsx_assist_exception() which is not used.

It was added in ce48b2100785 "powerpc: Add VSX context save/restore,
ptrace and signal support" but was never used.

Remove generic_mach_cpu_die() which is not used.

Its last caller was removed in 375f561a4131 "powerpc/powernv: Always go
into nap mode when CPU is offline".

Remove mpc7448_hpc2_power_off() and mpc7448_hpc2_halt() which are
unused.

These were introduced in c5d56332fd6c "[POWERPC] Add general support for
mpc7448hpc2 (Taiga) platform" but were never used.

This was partially found by using a static code analysis program called
cppcheck.

Signed-off-by: Rickard Strandqvist &lt;rickard_strandqvist@spectrumdigital.se&gt;
[mpe: Update changelog with details on when/why they are unused]
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/mm: Fix build error with hugetlfs disabled</title>
<updated>2014-10-22T03:03:06Z</updated>
<author>
<name>Aneesh Kumar K.V</name>
</author>
<published>2014-10-21T03:25:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6643773ce1a17c99a3ce29ee8ac2b114d2ba771f'/>
<id>urn:sha1:6643773ce1a17c99a3ce29ee8ac2b114d2ba771f</id>
<content type='text'>
arch/powerpc/mm/slice.c:704:5: error: expected identifier or ‘(’ before numeric constant
 int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr,
     ^
make[1]: *** [arch/powerpc/mm/slice.o] Error 1
make: *** [arch/powerpc/mm/slice.o] Error 2

This got introduced via 1217d34b531c76362217057ca70a8ce8950574e0
"powerpc: Ensure global functions include their prototype". We
started including linux/hugetlb.h with that patch and now we have

 #define is_hugepage_only_range(mm, addr, len)	0

with hugetlbfs disabled.

Fixes: 1217d34b531c ("powerpc: Ensure global functions include their prototype")
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/cell: Make spu_flush_all_slbs() generic</title>
<updated>2014-10-08T09:15:37Z</updated>
<author>
<name>Ian Munsie</name>
</author>
<published>2014-10-08T08:54:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=be3ebfe8215392b714349554c5138b8b6592fe20'/>
<id>urn:sha1:be3ebfe8215392b714349554c5138b8b6592fe20</id>
<content type='text'>
This moves spu_flush_all_slbs() into a generic call copro_flush_all_slbs().

This will be useful when we add cxl which also needs a similar SLB flush call.

Signed-off-by: Ian Munsie &lt;imunsie@au1.ibm.com&gt;
Signed-off-by: Michael Neuling &lt;mikey@neuling.org&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc: Ensure global functions include their prototype</title>
<updated>2014-09-25T13:14:42Z</updated>
<author>
<name>Anton Blanchard</name>
</author>
<published>2014-08-19T22:55:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1217d34b531c76362217057ca70a8ce8950574e0'/>
<id>urn:sha1:1217d34b531c76362217057ca70a8ce8950574e0</id>
<content type='text'>
Fix a number of places where global functions were not including
their prototype. This ensures the prototype and the function match.

Signed-off-by: Anton Blanchard &lt;anton@samba.org&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/mm: Fix mmap errno when MAP_FIXED is set and mapping exceeds the allowed address space</title>
<updated>2014-01-29T06:02:25Z</updated>
<author>
<name>jmarchan@redhat.com</name>
</author>
<published>2014-01-15T15:27:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=19751c07b3728748c1253627ce94e6906fa5e273'/>
<id>urn:sha1:19751c07b3728748c1253627ce94e6906fa5e273</id>
<content type='text'>
According to Posix, if MAP_FIXED is specified mmap shall set ENOMEM if
the requested mapping exceeds the allowed range for address space of
the process. The generic code set it right, but the specific powerpc
slice_get_unmapped_area() function currently returns -EINVAL in that
case.
This patch corrects it.

Signed-off-by: Jerome Marchand &lt;jmarchan@redhat.com&gt;
Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc: ppc64 address space capped at 32TB, mmap randomisation disabled</title>
<updated>2013-11-20T23:33:41Z</updated>
<author>
<name>Anton Blanchard</name>
</author>
<published>2013-11-18T03:55:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5a049f14902982c26538250bdc8d54156d357252'/>
<id>urn:sha1:5a049f14902982c26538250bdc8d54156d357252</id>
<content type='text'>
Commit fba2369e6ceb (mm: use vm_unmapped_area() on powerpc architecture)
has a bug in slice_scan_available() where we compare an unsigned long
(high_slices) against a shifted int. As a result, comparisons against
the top 32 bits of high_slices (representing the top 32TB) always
returns 0 and the top of our mmap region is clamped at 32TB

This also breaks mmap randomisation since the randomised address is
always up near the top of the address space and it gets clamped down
to 32TB.

Cc: stable@vger.kernel.org # v3.10+
Signed-off-by: Anton Blanchard &lt;anton@samba.org&gt;
Acked-by: Michel Lespinasse &lt;walken@google.com&gt;
Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>mm: use vm_unmapped_area() on powerpc architecture</title>
<updated>2013-04-30T01:05:17Z</updated>
<author>
<name>Michel Lespinasse</name>
</author>
<published>2013-04-29T18:53:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fba2369e6ceb7ae688e91063821bae5140e26393'/>
<id>urn:sha1:fba2369e6ceb7ae688e91063821bae5140e26393</id>
<content type='text'>
Update the powerpc slice_get_unmapped_area function to make use of
vm_unmapped_area() instead of implementing a brute force search.

Signed-off-by: Michel Lespinasse &lt;walken@google.com&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Paul Mackerras &lt;paulus@samba.org&gt;
Tested-by: "Aneesh Kumar K.V" &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Acked-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
</feed>
