02 Jun, 2020
1 commit
-
sh5 never became a product and has probably never really worked.
Remove it by recursively deleting all associated Kconfig options
and all corresponding files.Reviewed-by: Geert Uytterhoeven
Signed-off-by: Arnd Bergmann
Signed-off-by: Rich Felker
02 Aug, 2018
1 commit
-
Move the source of lib/Kconfig.debug and arch/$(ARCH)/Kconfig.debug to
the top-level Kconfig. For two architectures that means moving their
arch-specific symbols in that menu into a new arch Kconfig.debug file,
and for a few more creating a dummy file so that we can include it
unconditionally.Also move the actual 'Kernel hacking' menu to lib/Kconfig.debug, where
it belongs.Signed-off-by: Christoph Hellwig
Signed-off-by: Masahiro Yamada
02 Nov, 2017
1 commit
-
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.By default all files without license information are under the default
license of the kernel, which is GPL version 2.Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if
Reviewed-by: Philippe Ombredanne
Reviewed-by: Thomas Gleixner
Signed-off-by: Greg Kroah-Hartman
30 Mar, 2012
1 commit
-
Presently there's no SHmedia support plugged in for the dwarf unwinder.
While it's trivial to provide an SHmedia version of dwarf_read_arch_reg(),
the general sh64 case is more complicated in that the TLB miss handler
uses a locked down set of registers for optimization (including the frame
pointer) which we need for the unwind table generation.While freeing up the frame pointer for use in the TLB miss handler is
reasonably straightforward, it's still more trouble than it's worth, so
we simply restrict the unwinder to 32-bit for now.Signed-off-by: Paul Mundt
25 May, 2011
1 commit
-
Most arches define CONFIG_DEBUG_STACK_USAGE exactly the same way. Move it
to lib/Kconfig.debug so each arch doesn't have to define it. This
obviously makes the option generic, but that's fine because the config is
already used in generic code.It's not obvious to me that sysrq-P actually does anything caution by
keeping the most inclusive wording.Signed-off-by: Stephen Boyd
Cc: Chris Metcalf
Acked-by: David S. Miller
Acked-by: Richard Weinberger
Acked-by: Mike Frysinger
Cc: Russell King
Cc: Hirokazu Takata
Acked-by: Ralf Baechle
Cc: Paul Mackerras
Acked-by: Benjamin Herrenschmidt
Cc: Chen Liqin
Cc: Lennox Wu
Cc: Ingo Molnar
Cc: Thomas Gleixner
Cc: "H. Peter Anvin"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
31 Mar, 2011
1 commit
-
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi
15 Dec, 2009
1 commit
-
Now when the sh-sci driver can do early serial output,
get rid of the old duplicated code. This patch is V2 and
removes support for "earlyprintk=serial" together with
the following kconfig options:
CONFIG_EARLY_SCIF_CONSOLE
CONFIG_EARLY_SCIF_CONSOLE_PORT
CONFIG_EARLY_PRINTKWith this patch applied "earlyprintk=" support is always
built-in the SuperH kernel. For this to work the serial
driver must have early platform support and in the case
of sh-sci the serial console needs to be enabled:
CONFIG_SERIAL_SH_SCI_CONSOLE=ySo after enabling the SuperH SCI console kconfig option
you also need to point out port using the kernel command
line: "earlyprintk=sh-sci.N[,baudrate][,keep]"Remember that clocks may be disabled by the boot loader
so you may have to do some board specific static clock
setup before earlyprintk will work on your platform.Signed-off-by: Magnus Damm
Signed-off-by: Paul Mundt
21 Aug, 2009
1 commit
-
Signed-off-by: Yoshihiro Shimoda
Signed-off-by: Paul Mundt
14 Aug, 2009
1 commit
-
This is a first cut at a generic DWARF unwinder for the kernel. It's
still lacking DWARF64 support and the DWARF expression support hasn't
been tested very well but it is generating proper stacktraces on SH for
WARN_ON() and NULL dereferences.Signed-off-by: Matt Fleming
Signed-off-by: Paul Mundt
04 Aug, 2009
1 commit
-
This adds early printk support for SH770x (tested on SH7709 based hp6xx).
Signed-off-by: Rafael Ignacio Zurita
Signed-off-by: Paul Mundt
29 Jul, 2009
1 commit
-
This cleans up the irqflags tracing code quite a bit and ties it
in to various missing callsites that caused an imbalance when
CONFIG_PROVE_LOCKING was enabled.Previously this was catching on:
987 #ifdef CONFIG_PROVE_LOCKING
988 DEBUG_LOCKS_WARN_ON(!p->hardirqs_enabled);
989 DEBUG_LOCKS_WARN_ON(!p->softirqs_enabled);
990 #endif
991 retval = -EAGAIN;with hardirqs being doubly enabled, and subsequently bailing out
with the following call trace:Call trace:
[] __lock_acquire+0x616/0x6a6
[] do_fork+0xf8/0x2b0
[] trace_hardirqs_on_caller+0xd4/0x114
[] _spin_unlock_irq+0x20/0x64
[] __lock_acquire+0x616/0x6a6
[] kernel_thread+0x48/0x70
[] ____call_usermodehelper+0x0/0x110
[] ____call_usermodehelper+0x0/0x110
[] kernel_thread_helper+0x0/0x14
[] __call_usermodehelper+0x38/0x70
[] worker_thread+0x150/0x274
[] lock_release+0x0/0x198
[] __call_usermodehelper+0x0/0x70
[] autoremove_wake_function+0x0/0x30
[] kthread+0x3e/0x70
[] worker_thread+0x0/0x274
[] kernel_thread_helper+0x8/0x14
[] kthread+0x0/0x70
[] kernel_thread_helper+0x0/0x14Reported-by: Nobuhiro Iwamatsu
Signed-off-by: Stuart Menefy
Signed-off-by: Matt Fleming
Signed-off-by: Paul Mundt
11 Jul, 2009
3 commits
-
STACK_DEBUG ties in to mcount in order to do function-granular stack
overflow checks as opposed to lazily checking from IRQ context. As the
default is nohz, the frequency of overflow checking is too irregular to
catch much useful information, and so the mcount approach employed by
sparc64 is adopted instead.This kills off the old check entirely from the do_IRQ() path and now
adopts CONFIG_MCOUNT instead.Signed-off-by: Paul Mundt
-
This adds a general CONFIG_MCOUNT in order to permit mcount generation
without ftrace support. This is primarily for allowing platforms to
enable aggressive stack overflow checking without having to enable ftrace
support. Based on the sparc64 implementation.Signed-off-by: Paul Mundt
-
Enable kernel stack checking code in both the dynamic ftrace and mcount
code paths. Check the stack to see if it's overflowing and make sure
that the stack pointer contains an address that's either in init_stack
or after the bss.Signed-off-by: Matt Fleming
Signed-off-by: Paul Mundt
25 Jun, 2009
1 commit
-
This was killed off in generic code some time ago, kill off the left over
symbol.Signed-off-by: Paul Mundt
16 Jun, 2009
1 commit
-
Signed-off-by: Paul Mundt
08 May, 2009
3 commits
-
There is no real reason to use this anymore, as the build system
generally knows what it is doing with regards to cflags mangling.Signed-off-by: Paul Mundt
-
This is no longer necessary, as there are now sufficient generic
alternatives available.Signed-off-by: Paul Mundt
-
This patch moves the SH4 case of EARLY_SCIF_CONSOLE_PORT
so the SH7785 default value gets used. Without this patch
the value for SH7785 is set to 0xffe80000.Signed-off-by: Magnus Damm
Signed-off-by: Paul Mundt
07 May, 2009
1 commit
-
There still seems to be some stack corruption to sort out here, so flag
this as BROKEN until this issue is sorted out.Signed-off-by: Paul Mundt
22 Dec, 2008
5 commits
-
We don't really want this enabled by default, but it is still quite
useful for debugging. So, make it conditional and leave it off by
default.Signed-off-by: Paul Mundt
-
Signed-off-by: Paul Mundt
-
This enables the same functionality that sh64 has for sh32. When running
on simulated hardware or via remote memory via the debug interface,
memory is gauranteed to be zero on boot already, and skipping the zeroing
of BSS has measurable boot time benefits.Signed-off-by: Paul Mundt
-
This migrates from the old bitrotted kgdb stub implementation and moves
to the generic stub. In the process support for SH-2/SH-2A is also added,
which the old stub never provided.Signed-off-by: Paul Mundt
-
This converts the sh64 /proc/asids entry to debugfs and enables it for
all SH parts that have debugfs enabled.On MMU systems this can be used to determine which processes are using
which ASIDs which in turn can be used for finer grained cache tag
analysis.Signed-off-by: Paul Mundt
20 Sep, 2008
1 commit
-
This combination triggers a divide by zero in kernel/fork.c when
calculating the initial max_threads value:max_threads = mempages / (8 * THREAD_SIZE / PAGE_SIZE);
Simply disable 4K stacks on 64kB PAGE_SIZE to work around this,
as it's not a terribly useful combination to begin with.Signed-off-by: Paul Mundt
04 Aug, 2008
1 commit
-
Signed-off-by: Paul Mundt
28 Jul, 2008
1 commit
-
updated the following codes for SH7343:
- add register_intc_controller()
- add EARLY_SCIF_CONSOLE_PORT
- add define of CPG registerSigned-off-by: Yoshihiro Shimoda
Signed-off-by: Paul Mundt
02 Jun, 2008
1 commit
-
4k stacks on nommu ends up blowing up with all sorts of interesting
slab corruption. Disable this by default unless BROKEN is also
enabled.Signed-off-by: Paul Mundt
08 May, 2008
1 commit
-
Signed-off-by: Paul Mundt
19 Apr, 2008
1 commit
-
Signed-off-by: Paul Mundt
14 Feb, 2008
3 commits
-
Signed-off-by: Paul Mundt
-
This patch adds sh7366 cpu supports. Just the most basic things like interrupt
controller, clocks and serial port are included at this point.Signed-off-by: Magnus Damm
Signed-off-by: Paul Mundt -
This patch adds the base address of SCIF0 in the case of sh7722.
Signed-off-by: Magnus Damm
Signed-off-by: Paul Mundt
28 Jan, 2008
6 commits
-
Signed-off-by: Yoshihiro Shimoda
Signed-off-by: Paul Mundt -
Signed-off-by: Yoshihiro Shimoda
Signed-off-by: Paul Mundt -
Change occurances of:
bool
default Xto:
def_bool XChange ocurances of:
bool "Foo"
default Xto:
def_bool X
prompt "Foo"Signed-off-by: Harvey Harrison
Signed-off-by: Paul Mundt -
This adds support for the SH7263 (SH-2A) CPU.
This particular CPU is a superset of SH7203, adding some additional
peripheral blocks and hooking up additional (reserved on SH7203)
vectors in the INTC block.No visibly nasty surprises, yet..
Signed-off-by: Paul Mundt
-
This adds support for the SH7203 (SH-2A) CPU.
Signed-off-by: Kieran Bingham
Signed-off-by: Paul Mundt -
Signed-off-by: Paul Mundt