]>
www.infradead.org Git - users/jedix/linux-maple.git/log
David Hildenbrand [Tue, 13 Apr 2021 22:21:39 +0000 (08:21 +1000)]
drivers/char: remove /dev/kmem for good
Patch series "drivers/char: remove /dev/kmem for good".
Exploring /dev/kmem and /dev/mem in the context of memory hot(un)plug and
memory ballooning, I started questioning the existence of /dev/kmem.
Comparing it with the /proc/kcore implementation, it does not seem to be
able to deal with things like
a) Pages unmapped from the direct mapping (e.g., to be used by secretmem)
-> kern_addr_valid(). virt_addr_valid() is not sufficient.
b) Special cases like gart aperture memory that is not to be touched
-> mem_pfn_is_ram()
Unless I am missing something, it's at least broken in some cases and might
fault/crash the machine.
Looks like its existence has been questioned before in 2005 and 2010 [1],
after ~11 additional years, it might make sense to revive the discussion.
CONFIG_DEVKMEM is only enabled in a single defconfig (on purpose or by
mistake?). All distributions disable it: in Ubuntu it has been disabled
for more than 10 years, in Debian since 2.6.31, in Fedora at least
starting with FC3, in RHEL starting with RHEL4, in SUSE starting from
15sp2, and OpenSUSE has it disabled as well.
1) /dev/kmem was popular for rootkits [2] before it got disabled
basically everywhere. Ubuntu documents [3] "There is no modern user of
/dev/kmem any more beyond attackers using it to load kernel rootkits.".
RHEL documents in a BZ [5] "it served no practical purpose other than to
serve as a potential security problem or to enable binary module drivers
to access structures/functions they shouldn't be touching"
2) /proc/kcore is a decent interface to have a controlled way to read
kernel memory for debugging puposes. (will need some extensions to
deal with memory offlining/unplug, memory ballooning, and poisoned
pages, though)
3) It might be useful for corner case debugging [1]. KDB/KGDB might be a
better fit, especially, to write random memory; harder to shoot
yourself into the foot.
4) "Kernel Memory Editor" [4] hasn't seen any updates since 2000 and seems
to be incompatible with 64bit [1]. For educational purposes,
/proc/kcore might be used to monitor value updates -- or older
kernels can be used.
5) It's broken on arm64, and therefore, completely disabled there.
Looks like it's essentially unused and has been replaced by better
suited interfaces for individual tasks (/proc/kcore, KDB/KGDB). Let's
just remove it.
[1] https://lwn.net/Articles/147901/
[2] https://www.linuxjournal.com/article/10505
[3] https://wiki.ubuntu.com/Security/Features#A.2Fdev.2Fkmem_disabled
[4] https://sourceforge.net/projects/kme/
[5] https://bugzilla.redhat.com/show_bug.cgi?id=154796
Link: https://lkml.kernel.org/r/20210324102351.6932-1-david@redhat.com
Link: https://lkml.kernel.org/r/20210324102351.6932-2-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Alexander A. Klimov" <grandmaster@al2klimov.de>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Brian Cain <bcain@codeaurora.org>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Chris Zankel <chris@zankel.net>
Cc: Corentin Labbe <clabbe@baylibre.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Gregory Clement <gregory.clement@bootlin.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Helge Deller <deller@gmx.de>
Cc: Hillf Danton <hdanton@sina.com>
Cc: huang ying <huang.ying.caritas@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: James Troup <james.troup@canonical.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kairui Song <kasong@redhat.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Niklas Schnelle <schnelle@linux.ibm.com>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>
Cc: openrisc@lists.librecores.org
Cc: Palmer Dabbelt <palmerdabbelt@google.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: "Pavel Machek (CIP)" <pavel@denx.de>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Cc: Pierre Morel <pmorel@linux.ibm.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Rich Felker <dalias@libc.org>
Cc: Robert Richter <rric@kernel.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: sparclinux@vger.kernel.org
Cc: Stafford Horne <shorne@gmail.com>
Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Theodore Dubois <tblodt@icloud.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: William Cohen <wcohen@redhat.com>
Cc: Xiaoming Ni <nixiaoming@huawei.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Stephen Rothwell [Wed, 14 Apr 2021 11:33:33 +0000 (21:33 +1000)]
Merge branch 'akpm-current/current'
Stephen Rothwell [Wed, 14 Apr 2021 08:30:54 +0000 (18:30 +1000)]
Merge remote-tracking branch 'rust/rust-next'
# Conflicts:
# Makefile
Stephen Rothwell [Wed, 14 Apr 2021 08:19:09 +0000 (18:19 +1000)]
Merge remote-tracking branch 'iomem-mmap-vs-gup/topic/iomem-mmap-vs-gup'
Stephen Rothwell [Wed, 14 Apr 2021 08:17:30 +0000 (18:17 +1000)]
Merge remote-tracking branch 'kunit-next/kunit'
Stephen Rothwell [Wed, 14 Apr 2021 08:16:09 +0000 (18:16 +1000)]
Merge remote-tracking branch 'cfi/cfi/next'
Stephen Rothwell [Wed, 14 Apr 2021 08:14:19 +0000 (18:14 +1000)]
Merge remote-tracking branch 'kgdb/kgdb/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 08:12:04 +0000 (18:12 +1000)]
Merge remote-tracking branch 'hyperv/hyperv-next'
Stephen Rothwell [Wed, 14 Apr 2021 08:10:42 +0000 (18:10 +1000)]
Merge remote-tracking branch 'nvmem/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 08:09:22 +0000 (18:09 +1000)]
Merge remote-tracking branch 'slimbus/for-next'
# Conflicts:
# drivers/nvmem/Kconfig
# drivers/nvmem/Makefile
Stephen Rothwell [Wed, 14 Apr 2021 08:07:58 +0000 (18:07 +1000)]
Merge remote-tracking branch 'gnss/gnss-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:53:07 +0000 (17:53 +1000)]
Merge remote-tracking branch 'kspp/for-next/kspp'
Stephen Rothwell [Wed, 14 Apr 2021 07:51:18 +0000 (17:51 +1000)]
Merge remote-tracking branch 'seccomp/for-next/seccomp'
Stephen Rothwell [Wed, 14 Apr 2021 07:51:16 +0000 (17:51 +1000)]
Merge remote-tracking branch 'nvdimm/libnvdimm-for-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:49:53 +0000 (17:49 +1000)]
Merge remote-tracking branch 'rtc/rtc-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:49:50 +0000 (17:49 +1000)]
Merge remote-tracking branch 'coresight/next'
Stephen Rothwell [Wed, 14 Apr 2021 07:47:59 +0000 (17:47 +1000)]
Merge remote-tracking branch 'livepatching/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:46:57 +0000 (17:46 +1000)]
Merge remote-tracking branch 'kselftest/next'
Stephen Rothwell [Wed, 14 Apr 2021 07:44:45 +0000 (17:44 +1000)]
Merge remote-tracking branch 'pwm/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:42:16 +0000 (17:42 +1000)]
Merge remote-tracking branch 'pinctrl/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:27:33 +0000 (17:27 +1000)]
Merge remote-tracking branch 'gpio-brgl/gpio/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:25:21 +0000 (17:25 +1000)]
Merge remote-tracking branch 'rpmsg/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:23:39 +0000 (17:23 +1000)]
Merge remote-tracking branch 'vhost/linux-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:22:16 +0000 (17:22 +1000)]
Merge remote-tracking branch 'scsi-mkp/for-next'
# Conflicts:
# drivers/target/iscsi/iscsi_target.c
Stephen Rothwell [Wed, 14 Apr 2021 07:19:26 +0000 (17:19 +1000)]
Merge remote-tracking branch 'scsi/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:09:24 +0000 (17:09 +1000)]
Merge remote-tracking branch 'cgroup/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:04:35 +0000 (17:04 +1000)]
Merge remote-tracking branch 'dmaengine/next'
Stephen Rothwell [Wed, 14 Apr 2021 07:02:53 +0000 (17:02 +1000)]
Merge remote-tracking branch 'icc/icc-next'
Stephen Rothwell [Wed, 14 Apr 2021 07:00:22 +0000 (17:00 +1000)]
Merge remote-tracking branch 'staging/staging-next'
Stephen Rothwell [Wed, 14 Apr 2021 06:58:37 +0000 (16:58 +1000)]
Merge remote-tracking branch 'vfio/next'
Stephen Rothwell [Wed, 14 Apr 2021 06:57:17 +0000 (16:57 +1000)]
Merge remote-tracking branch 'phy-next/next'
Stephen Rothwell [Wed, 14 Apr 2021 06:54:52 +0000 (16:54 +1000)]
Merge remote-tracking branch 'char-misc/char-misc-next'
# Conflicts:
# drivers/phy/qualcomm/phy-qcom-qmp.c
Stephen Rothwell [Wed, 14 Apr 2021 06:52:29 +0000 (16:52 +1000)]
Merge remote-tracking branch 'tty/tty-next'
Stephen Rothwell [Wed, 14 Apr 2021 06:50:49 +0000 (16:50 +1000)]
Merge remote-tracking branch 'usb-serial/usb-next'
Stephen Rothwell [Wed, 14 Apr 2021 06:47:31 +0000 (16:47 +1000)]
Merge remote-tracking branch 'usb/usb-next'
Stephen Rothwell [Wed, 14 Apr 2021 06:33:08 +0000 (16:33 +1000)]
Merge remote-tracking branch 'driver-core/driver-core-next'
# Conflicts:
# drivers/of/property.c
Stephen Rothwell [Wed, 14 Apr 2021 06:31:17 +0000 (16:31 +1000)]
Merge remote-tracking branch 'ipmi/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 06:29:36 +0000 (16:29 +1000)]
Merge remote-tracking branch 'leds/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 06:28:15 +0000 (16:28 +1000)]
Merge remote-tracking branch 'chrome-platform/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 06:26:06 +0000 (16:26 +1000)]
Merge remote-tracking branch 'drivers-x86/for-next'
# Conflicts:
# MAINTAINERS
# drivers/platform/x86/thinkpad_acpi.c
Stephen Rothwell [Wed, 14 Apr 2021 06:26:03 +0000 (16:26 +1000)]
Merge remote-tracking branch 'percpu/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 06:25:01 +0000 (16:25 +1000)]
Merge remote-tracking branch 'kvms390/next'
Stephen Rothwell [Wed, 14 Apr 2021 06:10:12 +0000 (16:10 +1000)]
Merge remote-tracking branch 'kvm-arm/next'
Stephen Rothwell [Wed, 14 Apr 2021 05:58:12 +0000 (15:58 +1000)]
Merge remote-tracking branch 'kvm/next'
# Conflicts:
# arch/x86/kvm/svm/nested.c
Stephen Rothwell [Wed, 14 Apr 2021 05:43:19 +0000 (15:43 +1000)]
Merge remote-tracking branch 'rcu/rcu/next'
Stephen Rothwell [Wed, 14 Apr 2021 05:38:36 +0000 (15:38 +1000)]
Merge remote-tracking branch 'ftrace/for-next'
# Conflicts:
# arch/x86/kernel/kprobes/ftrace.c
Stephen Rothwell [Wed, 14 Apr 2021 05:32:39 +0000 (15:32 +1000)]
Merge remote-tracking branch 'irqchip/irq/irqchip-next'
# Conflicts:
# drivers/irqchip/Kconfig
# drivers/irqchip/Makefile
Stephen Rothwell [Wed, 14 Apr 2021 05:32:38 +0000 (15:32 +1000)]
Merge remote-tracking branch 'edac/edac-for-next'
Stephen Rothwell [Wed, 14 Apr 2021 05:17:54 +0000 (15:17 +1000)]
Merge remote-tracking branch 'tip/auto-latest'
Stephen Rothwell [Wed, 14 Apr 2021 05:15:03 +0000 (15:15 +1000)]
Merge remote-tracking branch 'spi/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 05:13:13 +0000 (15:13 +1000)]
Merge remote-tracking branch 'mailbox/mailbox-for-next'
Stephen Rothwell [Wed, 14 Apr 2021 05:05:51 +0000 (15:05 +1000)]
Merge remote-tracking branch 'devicetree/for-next'
# Conflicts:
# drivers/of/of_net.c
Stephen Rothwell [Wed, 14 Apr 2021 05:00:15 +0000 (15:00 +1000)]
Merge remote-tracking branch 'audit/next'
Stephen Rothwell [Wed, 14 Apr 2021 04:54:58 +0000 (14:54 +1000)]
Merge remote-tracking branch 'iommu/next'
Stephen Rothwell [Wed, 14 Apr 2021 04:52:48 +0000 (14:52 +1000)]
Merge remote-tracking branch 'tpmdd/next'
Stephen Rothwell [Wed, 14 Apr 2021 04:50:39 +0000 (14:50 +1000)]
Merge remote-tracking branch 'tomoyo/master'
Stephen Rothwell [Wed, 14 Apr 2021 04:38:10 +0000 (14:38 +1000)]
Merge remote-tracking branch 'selinux/next'
Stephen Rothwell [Wed, 14 Apr 2021 04:36:02 +0000 (14:36 +1000)]
Merge remote-tracking branch 'keys/keys-next'
# Conflicts:
# certs/system_keyring.c
Stephen Rothwell [Wed, 14 Apr 2021 04:33:51 +0000 (14:33 +1000)]
Merge remote-tracking branch 'integrity/next-integrity'
Stephen Rothwell [Wed, 14 Apr 2021 04:31:41 +0000 (14:31 +1000)]
Merge remote-tracking branch 'apparmor/apparmor-next'
Stephen Rothwell [Wed, 14 Apr 2021 04:18:21 +0000 (14:18 +1000)]
Merge remote-tracking branch 'security/next-testing'
# Conflicts:
# arch/alpha/kernel/syscalls/syscall.tbl
# arch/arm/tools/syscall.tbl
# arch/arm64/include/asm/unistd.h
# arch/arm64/include/asm/unistd32.h
# arch/ia64/kernel/syscalls/syscall.tbl
# arch/m68k/kernel/syscalls/syscall.tbl
# arch/microblaze/kernel/syscalls/syscall.tbl
# arch/mips/kernel/syscalls/syscall_n32.tbl
# arch/mips/kernel/syscalls/syscall_n64.tbl
# arch/mips/kernel/syscalls/syscall_o32.tbl
# arch/parisc/kernel/syscalls/syscall.tbl
# arch/powerpc/kernel/syscalls/syscall.tbl
# arch/s390/kernel/syscalls/syscall.tbl
# arch/sh/kernel/syscalls/syscall.tbl
# arch/sparc/kernel/syscalls/syscall.tbl
# arch/x86/entry/syscalls/syscall_32.tbl
# arch/x86/entry/syscalls/syscall_64.tbl
# arch/xtensa/kernel/syscalls/syscall.tbl
# include/uapi/asm-generic/unistd.h
Stephen Rothwell [Wed, 14 Apr 2021 04:16:01 +0000 (14:16 +1000)]
Merge remote-tracking branch 'regulator/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 04:13:34 +0000 (14:13 +1000)]
Merge remote-tracking branch 'battery/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 04:12:33 +0000 (14:12 +1000)]
Merge remote-tracking branch 'backlight/for-backlight-next'
Stephen Rothwell [Wed, 14 Apr 2021 04:10:10 +0000 (14:10 +1000)]
Merge remote-tracking branch 'mfd/for-mfd-next'
Stephen Rothwell [Wed, 14 Apr 2021 04:07:57 +0000 (14:07 +1000)]
Merge remote-tracking branch 'mmc/next'
Stephen Rothwell [Wed, 14 Apr 2021 04:06:37 +0000 (14:06 +1000)]
Merge remote-tracking branch 'pcmcia/pcmcia-next'
Stephen Rothwell [Wed, 14 Apr 2021 04:04:29 +0000 (14:04 +1000)]
Merge remote-tracking branch 'device-mapper/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:50:01 +0000 (13:50 +1000)]
Merge remote-tracking branch 'block/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:47:51 +0000 (13:47 +1000)]
Merge remote-tracking branch 'input/next'
Stephen Rothwell [Wed, 14 Apr 2021 03:46:04 +0000 (13:46 +1000)]
Merge remote-tracking branch 'modules/modules-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:43:19 +0000 (13:43 +1000)]
Merge remote-tracking branch 'sound-asoc/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:40:32 +0000 (13:40 +1000)]
Merge remote-tracking branch 'sound/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:37:40 +0000 (13:37 +1000)]
Merge remote-tracking branch 'regmap/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:36:02 +0000 (13:36 +1000)]
Merge remote-tracking branch 'etnaviv/etnaviv/next'
Stephen Rothwell [Wed, 14 Apr 2021 03:34:43 +0000 (13:34 +1000)]
Merge remote-tracking branch 'imx-drm/imx-drm/next'
# Conflicts:
# drivers/gpu/drm/imx/ipuv3-plane.c
Stephen Rothwell [Wed, 14 Apr 2021 03:33:05 +0000 (13:33 +1000)]
Merge remote-tracking branch 'drm-tegra/drm/tegra/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:31:35 +0000 (13:31 +1000)]
Merge remote-tracking branch 'drm-intel/for-linux-next'
# Conflicts:
# drivers/gpu/drm/i915/display/vlv_dsi.c
Stephen Rothwell [Wed, 14 Apr 2021 03:30:04 +0000 (13:30 +1000)]
Merge remote-tracking branch 'amdgpu/drm-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:15:11 +0000 (13:15 +1000)]
Merge remote-tracking branch 'drm/drm-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:12:33 +0000 (13:12 +1000)]
Merge remote-tracking branch 'crypto/master'
Stephen Rothwell [Wed, 14 Apr 2021 03:10:55 +0000 (13:10 +1000)]
Merge remote-tracking branch 'spi-nor/spi-nor/next'
Stephen Rothwell [Wed, 14 Apr 2021 03:09:17 +0000 (13:09 +1000)]
Merge remote-tracking branch 'nand/nand/next'
Stephen Rothwell [Wed, 14 Apr 2021 03:07:03 +0000 (13:07 +1000)]
Merge remote-tracking branch 'mtd/mtd/next'
Stephen Rothwell [Wed, 14 Apr 2021 03:05:44 +0000 (13:05 +1000)]
Merge remote-tracking branch 'gfs2/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 03:02:59 +0000 (13:02 +1000)]
Merge remote-tracking branch 'mac80211-next/master'
Stephen Rothwell [Wed, 14 Apr 2021 03:01:20 +0000 (13:01 +1000)]
Merge remote-tracking branch 'bluetooth/master'
Stephen Rothwell [Wed, 14 Apr 2021 02:54:17 +0000 (12:54 +1000)]
Merge remote-tracking branch 'netfilter-next/master'
Stephen Rothwell [Wed, 14 Apr 2021 02:52:34 +0000 (12:52 +1000)]
Merge remote-tracking branch 'mlx5-next/mlx5-next'
Stephen Rothwell [Wed, 14 Apr 2021 02:51:15 +0000 (12:51 +1000)]
Merge remote-tracking branch 'ipsec-next/master'
Stephen Rothwell [Wed, 14 Apr 2021 02:42:15 +0000 (12:42 +1000)]
Merge remote-tracking branch 'bpf-next/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 02:27:23 +0000 (12:27 +1000)]
Merge remote-tracking branch 'net-next/master'
Stephen Rothwell [Wed, 14 Apr 2021 02:22:10 +0000 (12:22 +1000)]
Merge remote-tracking branch 'rdma/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 02:19:56 +0000 (12:19 +1000)]
Merge remote-tracking branch 'swiotlb/linux-next'
Stephen Rothwell [Wed, 14 Apr 2021 02:18:38 +0000 (12:18 +1000)]
Merge remote-tracking branch 'dlm/next'
Stephen Rothwell [Wed, 14 Apr 2021 02:16:47 +0000 (12:16 +1000)]
Merge remote-tracking branch 'ieee1394/for-next'
Stephen Rothwell [Wed, 14 Apr 2021 02:14:33 +0000 (12:14 +1000)]
Merge remote-tracking branch 'thermal/thermal/linux-next'
Bjorn Andersson [Wed, 14 Apr 2021 02:10:40 +0000 (21:10 -0500)]
Merge branches 'hwspinlock-next', 'rpmsg-next' and 'rproc-next' into for-next
Peng Fan [Thu, 8 Apr 2021 01:44:49 +0000 (09:44 +0800)]
remoteproc: imx_rproc: support remote cores booted before Linux Kernel
- When remote cores are kicked before Linux Kernel, we are not able
to get resource table from the firmware elf file, so we need to add
rsc_table to hold the resource table published by remote cores and
imx_rproc_get_loaded_rsc_table is to get the resource table.
- Per remoteproc framework, add attach hook for processor in a detached
state.
- Add imx_rproc_detect_mode to detect remote cores' working mode to
set the state which is required by remoteproc framework.
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/1617846289-13496-5-git-send-email-peng.fan@oss.nxp.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Peng Fan [Thu, 8 Apr 2021 01:44:48 +0000 (09:44 +0800)]
remoteproc: imx_rproc: move memory parsing to rproc_ops
Use the rproc_ops::prepare() hook for doing memory resources
reallocation when reattaching a remote procesor.
Suggested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/1617846289-13496-4-git-send-email-peng.fan@oss.nxp.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>