<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/xtensa/platforms, branch linux-4.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-08-11T09:45:23Z</updated>
<entry>
<title>xtensa: ISS: fix call to split_if_spec</title>
<updated>2023-08-11T09:45:23Z</updated>
<author>
<name>Max Filippov</name>
</author>
<published>2023-07-03T18:01:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ea2994dd4c9b06e270ced1825fb422e4f8fdc2a6'/>
<id>urn:sha1:ea2994dd4c9b06e270ced1825fb422e4f8fdc2a6</id>
<content type='text'>
commit bc8d5916541fa19ca5bc598eb51a5f78eb891a36 upstream.

split_if_spec expects a NULL-pointer as an end marker for the argument
list, but tuntap_probe never supplied that terminating NULL. As a result
incorrectly formatted interface specification string may cause a crash
because of the random memory access. Fix that by adding NULL terminator
to the split_if_spec argument list.

Cc: stable@vger.kernel.org
Fixes: 7282bee78798 ("[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 8")
Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>xtensa: xtfpga: Fix refcount leak bug in setup</title>
<updated>2022-07-02T14:27:36Z</updated>
<author>
<name>Liang He</name>
</author>
<published>2022-06-17T11:53:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0715d0e60052662c3f225342062f174dd721d1c7'/>
<id>urn:sha1:0715d0e60052662c3f225342062f174dd721d1c7</id>
<content type='text'>
commit 173940b3ae40114d4179c251a98ee039dc9cd5b3 upstream.

In machine_setup(), of_find_compatible_node() will return a node
pointer with refcount incremented. We should use of_node_put() when
it is not used anymore.

Cc: stable@vger.kernel.org
Signed-off-by: Liang He &lt;windhl@126.com&gt;
Message-Id: &lt;20220617115323.4046905-1-windhl@126.com&gt;
Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>xtensa: xtfpga: Try software restart before simulating CPU reset</title>
<updated>2021-10-27T07:53:12Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2021-08-01T17:36:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7b314283ede3fe13957b90a764f753215224aac0'/>
<id>urn:sha1:7b314283ede3fe13957b90a764f753215224aac0</id>
<content type='text'>
[ Upstream commit 012e974501a270d8dfd4ee2039e1fdf7579c907e ]

Rebooting xtensa images loaded with the '-kernel' option in qemu does
not work. When executing a reboot command, the qemu session either hangs
or experiences an endless sequence of error messages.

  Kernel panic - not syncing: Unrecoverable error in exception handler

Reset code jumps to the CPU restart address, but Linux can not recover
from there because code and data in the kernel init sections have been
discarded and overwritten at this point.

XTFPGA platforms have a means to reset the CPU by writing 0xdead into a
specific FPGA IO address. When used in QEMU the kernel image loaded with
the '-kernel' option gets restored to its original state allowing the
machine to boot successfully.

Use that mechanism to attempt a platform reset. If it does not work,
fall back to the existing mechanism.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>xtensa: xtfpga: use CONFIG_USE_OF instead of CONFIG_OF</title>
<updated>2021-10-27T07:53:12Z</updated>
<author>
<name>Max Filippov</name>
</author>
<published>2021-10-05T18:36:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1c21a8df144f1edb3b6f5f24559825780c227a7d'/>
<id>urn:sha1:1c21a8df144f1edb3b6f5f24559825780c227a7d</id>
<content type='text'>
[ Upstream commit f3d7c2cdf6dc0d5402ec29c3673893b3542c5ad1 ]

Use platform data to initialize xtfpga device drivers when CONFIG_USE_OF
is not selected. This fixes xtfpga networking when CONFIG_USE_OF is not
selected but CONFIG_OF is.

Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>xtensa: ISS: don't panic in rs_init</title>
<updated>2021-09-22T09:48:05Z</updated>
<author>
<name>Jiri Slaby</name>
</author>
<published>2021-07-23T07:43:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=af4e52d6e5a00aea1b12090a609b429f15843b61'/>
<id>urn:sha1:af4e52d6e5a00aea1b12090a609b429f15843b61</id>
<content type='text'>
[ Upstream commit 23411c720052ad860b3e579ee4873511e367130a ]

While alloc_tty_driver failure in rs_init would mean we have much bigger
problem, there is no reason to panic when tty_register_driver fails
there. It can fail for various reasons.

So handle the failure gracefully. Actually handle them both while at it.
This will make at least the console functional as it was enabled earlier
by console_initcall in iss_console_init. Instead of shooting down the
whole system.

We move tty_port_init() after alloc_tty_driver(), so that we don't need
to destroy the port in case the latter function fails.

Cc: Chris Zankel &lt;chris@zankel.net&gt;
Cc: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
Cc: linux-xtensa@linux-xtensa.org
Acked-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
Link: https://lore.kernel.org/r/20210723074317.32690-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>xtensa: ISS: don't allocate memory in platform_setup</title>
<updated>2018-09-06T18:29:31Z</updated>
<author>
<name>Max Filippov</name>
</author>
<published>2018-09-06T18:19:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ef439d49e0bfb26cd5f03c88b4cb7cc9073ed30c'/>
<id>urn:sha1:ef439d49e0bfb26cd5f03c88b4cb7cc9073ed30c</id>
<content type='text'>
Memory allocator is not initialized at that point yet, use static array
instead.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
</content>
</entry>
<entry>
<title>xtensa: drop unneeded platform/hardware.h headers</title>
<updated>2018-08-20T19:28:04Z</updated>
<author>
<name>Max Filippov</name>
</author>
<published>2018-08-14T01:14:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc862ee9976f0490a20b2a2b8ae0c4fbeb7bbf13'/>
<id>urn:sha1:fc862ee9976f0490a20b2a2b8ae0c4fbeb7bbf13</id>
<content type='text'>
platform/hardware.h no longer supply any information for processor.h,
vectors.h, setup.c or vmlinux.lds.S, don't include it.
This header is now empty in the platforms/iss, so remove it altogether.

Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
</content>
</entry>
<entry>
<title>xtensa: move PLATFORM_NR_IRQS to Kconfig</title>
<updated>2018-08-20T19:28:04Z</updated>
<author>
<name>Max Filippov</name>
</author>
<published>2018-08-14T01:11:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=994fa1c83d658f857dacf0512e8f7db246143d26'/>
<id>urn:sha1:994fa1c83d658f857dacf0512e8f7db246143d26</id>
<content type='text'>
Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
</content>
</entry>
<entry>
<title>xtensa: rework {CONFIG,PLATFORM}_DEFAULT_MEM_START</title>
<updated>2018-08-20T19:28:03Z</updated>
<author>
<name>Max Filippov</name>
</author>
<published>2018-08-13T23:45:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aea731c81f998af5e45654459bac24a1c808fb22'/>
<id>urn:sha1:aea731c81f998af5e45654459bac24a1c808fb22</id>
<content type='text'>
Drop PLATFORM_DEFAULT_MEM_START from the platform/hardware.h headers.
Provide definition of CONFIG_DEFAULT_MEM_START always, allow changing it
only in noMMU configurations when PLATFORM_WANT_DEFAULT_MEM is selected.
Change prompt and description so that it's clear that it controls
PAGE_OFFSET and PHYS_OFFSET.

Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
</content>
</entry>
<entry>
<title>xtensa: drop unused {CONFIG,PLATFORM}_DEFAULT_MEM_SIZE</title>
<updated>2018-08-20T19:27:52Z</updated>
<author>
<name>Max Filippov</name>
</author>
<published>2018-08-13T01:32:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f79e4d5f92a129a1159c973735007d4ddc8541f3'/>
<id>urn:sha1:f79e4d5f92a129a1159c973735007d4ddc8541f3</id>
<content type='text'>
Now that noMMU cache attributes are set up separately drop no longer
used macro PLATFORM_DEFAULT_MEM_SIZE and config symbol
CONFIG_DEFAULT_MEM_SIZE used for setting it.

Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
</content>
</entry>
</feed>
