<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/mips/boot/compressed/Makefile, branch linux-4.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-07-20T14:17:55Z</updated>
<entry>
<title>mips: always link byteswap helpers into decompressor</title>
<updated>2021-07-20T14:17:55Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2021-07-02T14:28:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3bb58902fa590bd350b224eb85e1422ad44637d5'/>
<id>urn:sha1:3bb58902fa590bd350b224eb85e1422ad44637d5</id>
<content type='text'>
[ Upstream commit cddc40f5617e53f97ef019d5b29c1bd6cbb031ec ]

My series to clean up the unaligned access implementation
across architectures caused some mips randconfig builds to
fail with:

   mips64-linux-ld: arch/mips/boot/compressed/decompress.o: in function `decompress_kernel':
   decompress.c:(.text.decompress_kernel+0x54): undefined reference to `__bswapsi2'

It turns out that this problem has already been fixed for the XZ
decompressor but now it also shows up in (at least) LZO and LZ4.  From my
analysis I concluded that the compiler could always have emitted those
calls, but the different implementation allowed it to make otherwise
better decisions about not inlining the byteswap, which results in the
link error when the out-of-line code is missing.

While it could be addressed by adding it to the two decompressor
implementations that are known to be affected, but as this only adds
112 bytes to the kernel, the safer choice is to always add them.

Fixes: c50ec6787536 ("MIPS: zboot: Fix the build with XZ compression on older GCC versions")
Fixes: 0652035a5794 ("asm-generic: unaligned: remove byteshift helpers")
Link: https://lore.kernel.org/linux-mm/202106301304.gz2wVY9w-lkp@intel.com/
Link: https://lore.kernel.org/linux-mm/202106260659.TyMe8mjr-lkp@intel.com/
Link: https://lore.kernel.org/linux-mm/202106172016.onWT6Tza-lkp@intel.com/
Link: https://lore.kernel.org/linux-mm/202105231743.JJcALnhS-lkp@intel.com/
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Thomas Bogendoerfer &lt;tsbogend@alpha.franken.de&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>MIPS: Truncate link address into 32bit for 32bit kernel</title>
<updated>2020-06-20T08:25:11Z</updated>
<author>
<name>Jiaxun Yang</name>
</author>
<published>2020-05-06T05:52:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14d0b1096ad53555688f0ad719b2812cbc217f82'/>
<id>urn:sha1:14d0b1096ad53555688f0ad719b2812cbc217f82</id>
<content type='text'>
[ Upstream commit ff487d41036035376e47972c7c522490b839ab37 ]

LLD failed to link vmlinux with 64bit load address for 32bit ELF
while bfd will strip 64bit address into 32bit silently.
To fix LLD build, we should truncate load address provided by platform
into 32bit for 32bit kernel.

Signed-off-by: Jiaxun Yang &lt;jiaxun.yang@flygoat.com&gt;
Link: https://github.com/ClangBuiltLinux/linux/issues/786
Link: https://sourceware.org/bugzilla/show_bug.cgi?id=25784
Reviewed-by: Fangrui Song &lt;maskray@google.com&gt;
Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;
Tested-by: Nathan Chancellor &lt;natechancellor@gmail.com&gt;
Cc: Maciej W. Rozycki &lt;macro@linux-mips.org&gt;
Tested-by: Nick Desaulniers &lt;ndesaulniers@google.com&gt;
Signed-off-by: Thomas Bogendoerfer &lt;tsbogend@alpha.franken.de&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>MIPS: Prevent link failure with kcov instrumentation</title>
<updated>2020-01-17T18:45:54Z</updated>
<author>
<name>Jouni Hogander</name>
</author>
<published>2019-12-09T12:37:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=babf91acca033201ce29fdb2914ea1ee64c186e2'/>
<id>urn:sha1:babf91acca033201ce29fdb2914ea1ee64c186e2</id>
<content type='text'>
[ Upstream commit a4a3893114a41e365274d5fab5d9ff5acc235ff0 ]

__sanitizer_cov_trace_pc() is not linked in and causing link
failure if KCOV_INSTRUMENT is enabled. Fix this by disabling
instrumentation for compressed image.

Signed-off-by: Jouni Hogander &lt;jouni.hogander@unikie.com&gt;
Signed-off-by: Paul Burton &lt;paulburton@kernel.org&gt;
Cc: Lukas Bulwahn &lt;lukas.bulwahn@gmail.com&gt;
Cc: linux-mips@vger.kernel.org
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>MIPS: fix build on non-linux hosts</title>
<updated>2019-07-31T05:28:18Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2019-06-19T14:08:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f40751b7e92cc0b0d396b08cb53b5a2de1ab8f5a'/>
<id>urn:sha1:f40751b7e92cc0b0d396b08cb53b5a2de1ab8f5a</id>
<content type='text'>
[ Upstream commit 1196364f21ffe5d1e6d83cafd6a2edb89404a3ae ]

calc_vmlinuz_load_addr.c requires SZ_64K to be defined for alignment
purposes.  It included "../../../../include/linux/sizes.h" to define
that size, however "sizes.h" tries to include &lt;linux/const.h&gt; which
assumes linux system headers.  These may not exist eg. the following
error was encountered when building Linux for OpenWrt under macOS:

In file included from arch/mips/boot/compressed/calc_vmlinuz_load_addr.c:16:
arch/mips/boot/compressed/../../../../include/linux/sizes.h:11:10: fatal error: 'linux/const.h' file not found
         ^~~~~~~~~~

Change makefile to force building on local linux headers instead of
system headers.  Also change eye-watering relative reference in include
file spec.

Thanks to Jo-Philip Wich &amp; Petr Štetiar for assistance in tracking this
down &amp; fixing.

Suggested-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
Signed-off-by: Paul Burton &lt;paul.burton@mips.com&gt;
Cc: linux-mips@vger.kernel.org
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>MIPS: Fix clean of vmlinuz.{32,ecoff,bin,srec}</title>
<updated>2018-04-26T09:02:08Z</updated>
<author>
<name>James Hogan</name>
</author>
<published>2018-01-16T21:38:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c212c855a09d826b95eb18d5adf04f4c65ecb8ca'/>
<id>urn:sha1:c212c855a09d826b95eb18d5adf04f4c65ecb8ca</id>
<content type='text'>
[ Upstream commit 5f2483eb2423152445b39f2db59d372f523e664e ]

Make doesn't expand shell style "vmlinuz.{32,ecoff,bin,srec}" to the 4
separate files, so none of these files get cleaned up by make clean.
List the files separately instead.

Fixes: ec3352925b74 ("MIPS: Remove all generated vmlinuz* files on "make clean"")
Signed-off-by: James Hogan &lt;jhogan@kernel.org&gt;
Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18491/
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>MIPS: zboot: Consolidate compiler flag filtering.</title>
<updated>2017-01-03T15:48:40Z</updated>
<author>
<name>Ralf Baechle</name>
</author>
<published>2016-12-26T18:57:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=209ec69ab3cd81f1577c5af39f7b07a168cd28bc'/>
<id>urn:sha1:209ec69ab3cd81f1577c5af39f7b07a168cd28bc</id>
<content type='text'>
Al Viro noticed that we were using two different methods to filter out
flags from KBUILD_CFLAGS.

Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Reported-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>MIPS: Zboot: Don't use $(LINUXINCLUDE) twice</title>
<updated>2017-01-03T15:34:32Z</updated>
<author>
<name>Paul Bolle</name>
</author>
<published>2016-11-25T12:36:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e4c64e6f3dd38cb902c9a304a1fa6c1bdd0da67c'/>
<id>urn:sha1:e4c64e6f3dd38cb902c9a304a1fa6c1bdd0da67c</id>
<content type='text'>
The make variables KBUILD_CFLAGS and KBUILD_AFLAGS both contain
$(LINUXINCLUDE). But the build already picks up $(LINUXINCLUDE) from
scripts/Makefile.lib. The net effect is that the (long) list of include
directories is used twice.

This is harmless but pointless. So stop using $(LINUXINCLUDE) twice.

Signed-off-by: Paul Bolle &lt;pebolle@tiscali.nl&gt;
Cc: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14622/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: zboot: Add "uzImage.bin" target</title>
<updated>2017-01-03T15:34:31Z</updated>
<author>
<name>Maarten ter Huurne</name>
</author>
<published>2016-10-31T14:19:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ccebb88aea1329221e1063906f4846b532a57fb5'/>
<id>urn:sha1:ccebb88aea1329221e1063906f4846b532a57fb5</id>
<content type='text'>
uzImage.bin is vmlinuz.bin wrapped in a legacy U-Boot image. Since
the extraction code is inside the image, it does not depend on the
boot loader to extract the kernel.

Signed-off-by: Maarten ter Huurne &lt;maarten@treewalker.org&gt;
Cc: Alban Bedel &lt;albeu@free.fr&gt;
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14473/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Add zboot debug serial support</title>
<updated>2016-05-13T12:01:37Z</updated>
<author>
<name>Alban Bedel</name>
</author>
<published>2016-01-26T08:38:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b3f0a250d6eda645cee719cc11ea70e28f62145c'/>
<id>urn:sha1:b3f0a250d6eda645cee719cc11ea70e28f62145c</id>
<content type='text'>
Reuse the early printk code to support the serial in zboot. We copy
early_printk.c instead of referencing it because we need to build a
different object file for the normal kernel and zboot.

Signed-off-by: Alban Bedel &lt;albeu@free.fr&gt;
Cc: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Alex Smith &lt;alex.smith@imgtec.com&gt;
Cc: Wu Zhangjin &lt;wuzhangjin@gmail.com&gt;
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12234/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: zboot: Remove copied source files on clean</title>
<updated>2016-04-03T08:37:21Z</updated>
<author>
<name>Alban Bedel</name>
</author>
<published>2016-01-26T08:38:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8961b28f09dd2b5bb67738968e38a4d40a5b11bc'/>
<id>urn:sha1:8961b28f09dd2b5bb67738968e38a4d40a5b11bc</id>
<content type='text'>
The copied source files must be added to the extra-y list to have them
removed on clean.

Signed-off-by: Alban Bedel &lt;albeu@free.fr&gt;
Cc: Andrew Bresticker &lt;abrestic@chromium.org&gt;
Cc: Alex Smith &lt;alex.smith@imgtec.com&gt;
Cc: Wu Zhangjin &lt;wuzhangjin@gmail.com&gt;
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12233/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
</feed>
