<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/powerpc/kernel/nvram_64.c, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-10-31T10:14:01Z</updated>
<entry>
<title>powerpc/nvram: Fix an incorrect partition merge</title>
<updated>2016-10-31T10:14:01Z</updated>
<author>
<name>Pan Xinhui</name>
</author>
<published>2015-12-10T07:30:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cccc670b51375081667db9d0d516818c5cddfe02'/>
<id>urn:sha1:cccc670b51375081667db9d0d516818c5cddfe02</id>
<content type='text'>
commit 11b7e154b132232535befe51c55db048069c8461 upstream.

When we merge two contiguous partitions whose signatures are marked
NVRAM_SIG_FREE, We need update prev's length and checksum, then write it
to nvram, not cur's. So lets fix this mistake now.

Also use memset instead of strncpy to set the partition's name. It's
more readable if we want to fill up with duplicate chars .

Fixes: fa2b4e54d41f ("powerpc/nvram: Improve partition removal")
Signed-off-by: Pan Xinhui &lt;xinhui.pan@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>powerpc/nvram: Fix function name in some errors messages.</title>
<updated>2015-10-02T12:55:05Z</updated>
<author>
<name>Christophe Jaillet</name>
</author>
<published>2015-07-17T07:20:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b6080db4f4e8bf28717b832976efc421de25b86c'/>
<id>urn:sha1:b6080db4f4e8bf28717b832976efc421de25b86c</id>
<content type='text'>
'nvram_create_os_partition' should be 'nvram_create_partition'.
Use __func__ to have it right, as done elsewhere in this file.

Signed-off-by: Christophe Jaillet &lt;christophe.jaillet@wanadoo.fr&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/nvram: Add missing kfree in error path</title>
<updated>2015-10-02T12:54:55Z</updated>
<author>
<name>Christophe Jaillet</name>
</author>
<published>2015-07-17T07:19:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7d523187173294f6ae3b86a48e442122b1aecc38'/>
<id>urn:sha1:7d523187173294f6ae3b86a48e442122b1aecc38</id>
<content type='text'>
If 'nvram_write_header' fails, then 'new_part' should be freed, otherwise,
there is a memory leak.

Signed-off-by: Christophe Jaillet &lt;christophe.jaillet@wanadoo.fr&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/nvram: print no error when pstore backend is not nvram</title>
<updated>2015-08-19T06:14:21Z</updated>
<author>
<name>Hari Bathini</name>
</author>
<published>2015-05-11T08:23:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=74943dab6b155b1a9d4037b7f01a396f28f9c44a'/>
<id>urn:sha1:74943dab6b155b1a9d4037b7f01a396f28f9c44a</id>
<content type='text'>
Pstore only supports one backend at a time. The preferred
pstore backend is set by passing the pstore.backend=&lt;name&gt;
argument to the kernel at boot time. Currently, while trying
to register with pstore, nvram throws an error message even
when "pstore.backend != nvram", which is unnecessary. This
patch removes the error message in case "pstore.backend != nvram".

Signed-off-by: Hari Bathini &lt;hbathini@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/nvram: use kmemdup rather than duplicating its implementation</title>
<updated>2015-08-18T09:34:43Z</updated>
<author>
<name>Andrzej Hajda</name>
</author>
<published>2015-08-07T07:59:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc9e9cbf4e48f28525edd27e285820988f1a54b1'/>
<id>urn:sha1:fc9e9cbf4e48f28525edd27e285820988f1a54b1</id>
<content type='text'>
The patch was generated using fixed coccinelle semantic patch
scripts/coccinelle/api/memdup.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2014320

Signed-off-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Reviewed-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/rtas: Make timestamp related code y2038-safe</title>
<updated>2015-03-23T03:06:11Z</updated>
<author>
<name>Hari Bathini</name>
</author>
<published>2015-02-05T19:37:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e4a9616c548f67537a8d020a45a327f6a4d583ee'/>
<id>urn:sha1:e4a9616c548f67537a8d020a45a327f6a4d583ee</id>
<content type='text'>
While we are here, let us make timestamp related code y2038-safe.

Suggested-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Hari Bathini &lt;hbathini@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/powernv: Add pstore support on powernv</title>
<updated>2015-03-23T03:06:10Z</updated>
<author>
<name>Hari Bathini</name>
</author>
<published>2015-02-05T19:36:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f7618299b4ab425956099508cba7b3a39a056d87'/>
<id>urn:sha1:f7618299b4ab425956099508cba7b3a39a056d87</id>
<content type='text'>
This patch extends pstore, a generic interface to platform dependent
persistent storage, support for powernv  platform to capture certain
useful information, during dying moments. Such support is already in
place for  pseries platform. This patch re-uses most of that code.

It is a common practice to compile kernels with both CONFIG_PPC_PSERIES=y
and CONFIG_PPC_POWERNV=y. The code in nvram_init_oops_partition() routine
still works as intended, as the caller is platform specific code which
passes the appropriate value for "rtas_partition_exists" parameter.
In all other places, where CONFIG_PPC_PSERIES or CONFIG_PPC_POWERNV
flag is used in this patchset, it is to reduce the kernel size in cases
where this flag is not set and doesn't have any impact logic wise.

Signed-off-by: Hari Bathini &lt;hbathini@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/nvram: Move generic code for nvram and pstore</title>
<updated>2015-03-23T03:05:49Z</updated>
<author>
<name>Hari Bathini</name>
</author>
<published>2015-02-05T19:36:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=78989f0a5592182a3d45d869ddaafc71c8f673af'/>
<id>urn:sha1:78989f0a5592182a3d45d869ddaafc71c8f673af</id>
<content type='text'>
With minor checks, we can move most of the code for nvram
under pseries to a common place to be re-used by other
powerpc platforms like powernv. This patch moves such
common code to arch/powerpc/kernel/nvram_64.c file.

Signed-off-by: Hari Bathini &lt;hbathini@linux.vnet.ibm.com&gt;
[mpe: Move select of ZLIB_DEFLATE to PPC64 to fix the build]
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc: Make a bunch of things static</title>
<updated>2014-09-25T13:14:41Z</updated>
<author>
<name>Anton Blanchard</name>
</author>
<published>2014-08-19T22:55:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e51df2c170efaeadce4d416e1825b0830de0a795'/>
<id>urn:sha1:e51df2c170efaeadce4d416e1825b0830de0a795</id>
<content type='text'>
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>arch/powerpc/kernel: Use %12.12s instead of %12s to avoid memory overflow</title>
<updated>2013-11-25T00:50:57Z</updated>
<author>
<name>Chen Gang</name>
</author>
<published>2013-01-24T04:14:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e0513d9ea8dd2a7b21b699ada8d59d8afbb8b5b7'/>
<id>urn:sha1:e0513d9ea8dd2a7b21b699ada8d59d8afbb8b5b7</id>
<content type='text'>
for tmp_part-&gt;header.name:
    it is "Terminating null required only for names &lt; 12 chars".
    so need to limit the %.12s for it in printk

  additional info:

    %12s  limit the width, not for the original string output length
          if name length is more than 12, it still can be fully displayed.
          if name length is less than 12, the ' ' will be filled before name.

    %.12s truly limit the original string output length (precision)

Signed-off-by: Chen Gang &lt;gang.chen@asianux.com&gt;
Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
</feed>
