MIPS: Remove empty prom_free_prom_memory functionsMost of the prom_free_prom_memory functions are empty. Witha new weak prom_free_prom_memory() we can remove all of them.Signed-off-by: Thomas Bo
MIPS: Remove empty prom_free_prom_memory functionsMost of the prom_free_prom_memory functions are empty. Witha new weak prom_free_prom_memory() we can remove all of them.Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>Acked-by: Florian Fainelli <f.fainelli@gmail.com>
show more ...
MIPS: replace add_memory_region with memblockadd_memory_region was the old interface for registering memory andwas already changed to used memblock internaly. Replace it bydirectly calling memblo
MIPS: replace add_memory_region with memblockadd_memory_region was the old interface for registering memory andwas already changed to used memblock internaly. Replace it bydirectly calling memblock functions.Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
MIPS: fw: sni: Fix out of bounds init of o32 stackUse ARRAY_SIZE to caluculate the top of the o32 stack.Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>Signed-off-by: Paul Burton <paul
MIPS: fw: sni: Fix out of bounds init of o32 stackUse ARRAY_SIZE to caluculate the top of the o32 stack.Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>Signed-off-by: Paul Burton <paul.burton@mips.com>Cc: Ralf Baechle <ralf@linux-mips.org>Cc: James Hogan <jhogan@kernel.org>Cc: linux-mips@vger.kernel.orgCc: linux-kernel@vger.kernel.org
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <tglx@linutronix.de>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mips: unify prom_putchar() declarationsprom_putchar() is used centrally in early printk infrastructure thereforeat least MIPS should agree on the function return type.[paul.burton@mips.com: -
mips: unify prom_putchar() declarationsprom_putchar() is used centrally in early printk infrastructure thereforeat least MIPS should agree on the function return type.[paul.burton@mips.com: - Include linux/types.h in asm/setup.h to gain the bool typedef before we start include asm/setup.h elsewhere. - Include asm/setup.h in all files that use or define prom_putchar(). - Also standardise on signed rather than unsigned char argument.]Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>Signed-off-by: Paul Burton <paul.burton@mips.com>Patchwork: https://patchwork.linux-mips.org/patch/19842/Cc: linux-mips@linux-mips.orgCc: Ralf Baechle <ralf@linux-mips.org>Cc: James Hogan <jhogan@kernel.org>Cc: Jonas Gorski <jonas.gorski@gmail.com>Cc: Florian Fainelli <f.fainelli@gmail.com>Cc: Kate Stewart <kstewart@linuxfoundation.org>Cc: Philippe Ombredanne <pombredanne@nexb.com>
MIPS: DEC/SNI: O32 wrapper stack switching fixesCommit 231a35d37293ab88d325a9cb94e5474c156282c0 [[MIPS] RM: Collectedchanges] broke DECstation support by introducing an incompatible copy ofarch/m
MIPS: DEC/SNI: O32 wrapper stack switching fixesCommit 231a35d37293ab88d325a9cb94e5474c156282c0 [[MIPS] RM: Collectedchanges] broke DECstation support by introducing an incompatible copy ofarch/mips/dec/prom/call_o32.S in arch/mips/fw/lib/, built unconditionally.The copy happens to land earlier of the two among the modules used in thelink and is therefore chosen for the DECstation rather than the intendedoriginal. As a result random kernel data is corrupted because a pointerto the "%s" formatted output template is used as a temporary stack pointerrather than being passed down to prom_printf. This also explains whyprom_printf still works, up to a point -- the next argument is the actualstring to output so it works just fine as the output template until enoughkernel data has been corrupted to cause a crash.This change adjusts the modified wrapper in arch/mips/fw/lib/call_o32.S tolet callers request no stack switching by passing a null temporary stackpointer in $a1, reworks the DECstation callers to work with the updatedinterface and removes the old copy from arch/mips/dec/prom/call_o32.S. Afew minor readability adjustments are included as well, most importantlyO32_SZREG is now used throughout where applicable rather than hardcodedmultiplies of 4 and $fp is used to access the argument save area as a moreusual register to operate the stack with rather than $s0.Finally an update is made to the temporary stack space used by the SNIplatform to guarantee 8-byte alignment as per o32 requirements.Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>Cc: linux-mips@linux-mips.orgPatchwork: https://patchwork.linux-mips.org/patch/6668/Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
MIPS: Whitespace cleanup.Having received another series of whitespace patches I decided to do thisonce and for all rather than dealing with this kind of patches tricklingin forever.Signed-off-b
MIPS: Whitespace cleanup.Having received another series of whitespace patches I decided to do thisonce and for all rather than dealing with this kind of patches tricklingin forever.Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
MIPS: Kconfig: Rename several firmware related config symbols.With the upcoming merge of the ARC architecture there is a small likelyhoodof conflicting use for the CONFIG_ARC config symbol. Renam
MIPS: Kconfig: Rename several firmware related config symbols.With the upcoming merge of the ARC architecture there is a small likelyhoodof conflicting use for the CONFIG_ARC config symbol. Rename it toCONFIG_FW_ARC. Also rename CONFIG_ARC32 to CONFIG_FW_ARC32, CONFIG_ARC64to CONFIG_FW_ARC64.For consistence also rename CONFIG_SNIPROM to CONFIG_FW_SNIPROM andCONFIG_CFE to CONFIG_FW_CFE.Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
[MIPS] RM: Collected changes- EISA support for non PCI RMs (RM200 and RM400-xxx). The major part is the splitting of the EISA and onboard ISA of the RM200, which makes the EISA bus on the RM200
[MIPS] RM: Collected changes- EISA support for non PCI RMs (RM200 and RM400-xxx). The major part is the splitting of the EISA and onboard ISA of the RM200, which makes the EISA bus on the RM200 look like on other RMs.- 64bit kernel support- system type detection is now common for big and little endian- moved sniprom code to arch/mips/fw- added call_o32 function to arch/mips/fw/lib, which uses a private stack for calling prom functions- fix problem with ISA interrupts, which makes using PIT clockevent possibleSigned-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>Signed-off-by: Ralf Baechle <ralf@linux-mips.org>