Re: [PATCH v2] h8300: Replace by

2020-08-23 Thread Yoshinori Sato
On Wed, 19 Aug 2020 21:29:25 +0900, Geert Uytterhoeven wrote: > > The H8/300 platform code is not a clock provider, and just needs to call > of_clk_init(). > > Hence it can include instead of . > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Stephen Boyd > --- > v2: > - Add Reviewed-by

Re: [PATCH v2] h8300: dts: Fix /chosen:stdout-path

2020-08-23 Thread Yoshinori Sato
On Wed, 19 Aug 2020 21:28:38 +0900, Geert Uytterhoeven wrote: > > arch/h8300/boot/dts/h8s_sim.dts:11.3-25: Warning > (chosen_node_stdout_path): /chosen:stdout-path: property is not a string > arch/h8300/boot/dts/h8300h_sim.dts:11.3-25: Warning > (chosen_node_stdout_path): /chosen:stdout-

Re: [PATCH] sh: Implement __get_user_u64() required for 64-bit get_user()

2020-06-27 Thread Yoshinori Sato
+ "mov #0,%R1\n\t" \ > + "mov.l 4f, %0\n\t" \ > + "jmp@%0\n\t" \ > + " mov %3, %0\n\t" \ > + ".balign4\n" \ > + "4: .long 2b\n\t" \ > + ".previous\n" \ > + ".section __ex_table,\"a\"\n\t" \ > + ".long 1b, 3b\n\t" \ > + ".long 1b + 2, 3b\n\t" \ > + ".previous" \ > + :"=&r" (err), "=&r" (x) \ > + :"m" (__m(addr)), "i" (-EFAULT), "0" (err)); }) > +#endif > + > #define __put_user_size(x,ptr,size,retval) \ > do { \ > retval = 0; \ > -- > 2.27.0 > Acked-by: Yoshinori Sato -- Yosinori Sato

Re: linux-sh for-next reactivation

2020-06-02 Thread Yoshinori Sato
-throughs > > > fb8f77490f55 sh: kernel: hw_breakpoint: Fix missing break in switch > > > statement > > > cd10afbc932d sh: remove unneeded uapi asm-generic wrappers > > > cbfc6edb6a4a sh: use __builtin_constant_p() directly instead of > > > IS_IMMEDIATE()

Re: [PATCH] h8300: Add missing symbol "BOOT_LINK_OFFSET"

2019-08-13 Thread Yoshinori Sato
On Wed, 31 Jul 2019 00:49:06 +0900, Guenter Roeck wrote: > > On Wed, Jul 17, 2019 at 10:55:00PM +0900, Yoshinori Sato wrote: > > Signed-off-by: Yoshinori Sato > > --- > > arch/h8300/Kconfig | 3 +++ > > 1 file changed, 3 insertions(+) > > > > di

Re: [PATCH 05/16] sh: prefer __section from compiler_attributes.h

2019-08-13 Thread Yoshinori Sato
On Tue, 13 Aug 2019 06:50:38 +0900, Nick Desaulniers wrote: > > Reported-by: Sedat Dilek > Suggested-by: Josh Poimboeuf > Signed-off-by: Nick Desaulniers > --- > arch/sh/include/asm/cache.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/sh/include/asm/cache.h b/

Re: [PATCH v2] sh: kernel: disassemble: Mark expected switch fall-throughs

2019-08-13 Thread Yoshinori Sato
On Sat, 10 Aug 2019 14:24:42 +0900, Gustavo A. R. Silva wrote: > > Remove logically dead code and mark switch cases where we are expecting > to fall through. > > Fix the following warnings (Building: defconfig sh): > > arch/sh/kernel/disassemble.c:478:8: warning: this statement may fall > throug

Re: [PATCH] sh: kernel: hw_breakpoint: Fix missing break in switch statement

2019-08-13 Thread Yoshinori Sato
On Sat, 10 Aug 2019 13:59:44 +0900, Gustavo A. R. Silva wrote: > > Add missing break statement in order to prevent the code from > erroneously falling through to case SH_BREAKPOINT_WRITE. > > Fixes: 09a072947791 ("sh: hw-breakpoints: Add preliminary support for SH-4A > UBC.") > Cc: sta...@vger.k

Re: [PATCH] sh: Drop -Werror from kernel Makefile

2019-08-13 Thread Yoshinori Sato
On Mon, 05 Aug 2019 11:14:23 +0900, Guenter Roeck wrote: > > Since commit a035d552a93b ("Makefile: Globally enable fall-through > warning"), all sh builds fail with errors such as > > arch/sh/kernel/disassemble.c: In function 'print_sh_insn': > arch/sh/kernel/disassemble.c:478:8: error: this stat

Re: [PATCH] sh: remove unneeded uapi asm-generic wrappers

2019-07-27 Thread Yoshinori Sato
On Tue, 23 Jul 2019 20:30:36 +0900, Masahiro Yamada wrote: > > These are listed in include/uapi/asm-generic/Kbuild, so Kbuild will > automatically generate them. > > Signed-off-by: Masahiro Yamada > --- > > arch/sh/include/uapi/asm/setup.h | 2 -- > arch/sh/include/uapi/asm/types.h | 2 -- > 2

Re: [PATCH] sh: use __builtin_constant_p() directly instead of IS_IMMEDIATE()

2019-07-27 Thread Yoshinori Sato
On Tue, 23 Jul 2019 16:49:43 +0900, Masahiro Yamada wrote: > > __builtin_constant_p(nr) is used everywhere now. It does not make > much sense to define IS_IMMEDIATE() as its alias. > > Signed-off-by: Masahiro Yamada > --- > > arch/sh/include/asm/bitops-op32.h | 8 +++- > 1 file changed, 3

Re: [PATCH] h8300: move definition of __kernel_size_t etc. to posix_types.h

2019-07-27 Thread Yoshinori Sato
On Tue, 23 Jul 2019 19:21:06 +0900, Masahiro Yamada wrote: > > These types should be defined in posix_types.h, not in bitsperlong.h . > > With these defines moved, h8300-specific bitsperlong.h is no longer > needed since Kbuild will automatically create a wrapper of > include/uapi/asm-generic/bit

[GIT PULL] arch/h8300 update

2019-07-17 Thread Yoshinori Sato
The following changes since commit 38ef0515e1e89794ad1797ce5fadbface4bec216: H8300: remove unused barrier defines (2019-06-18 16:04:19 +0900) are available in the git repository at: git://git.sourceforge.jp/gitroot/uclinux-h8/linux.git tags/h8300-for-linus-20190617 for you to fetch changes

[GIT PULL] arch/sh update

2019-07-17 Thread Yoshinori Sato
The following changes since commit d3023897b4370bbf7f289806667a2380576d13dd: arch/sh: Check for kprobe trap number before trying to handle a kprobe trap (2019-06-26 19:11:13 +0900) are available in the git repository at: git://git.sourceforge.jp/gitroot/uclinux-h8/linux.git tags/for-linus-2

Re: linux-next: manual merge of the net-next tree with the sh tree

2019-07-11 Thread Yoshinori Sato
On Fri, 12 Jul 2019 09:59:28 +0900, Stephen Rothwell wrote: > > [1 ] > Hi all, > > On Mon, 17 Jun 2019 11:40:11 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the net-next tree got conflicts in: > > > > arch/sh/configs/se7712_defconfig > > arch/sh/configs/se7721_defco

Re: [RFC] remove arch/sh?

2019-07-05 Thread Yoshinori Sato
On Thu, 27 Jun 2019 00:38:21 +0900, Rich Felker wrote: > > On Wed, Jun 26, 2019 at 08:25:20PM +0900, Yoshinori Sato wrote: > > On Wed, 26 Jun 2019 00:48:09 +0900, > > Arnd Bergmann wrote: > > > > > > On Tue, Jun 25, 2019 at 4:28 PM Rich Felker wrote: > &

Re: [RFC] remove arch/sh?

2019-06-26 Thread Yoshinori Sato
On Wed, 26 Jun 2019 00:48:09 +0900, Arnd Bergmann wrote: > > On Tue, Jun 25, 2019 at 4:28 PM Rich Felker wrote: > > On Tue, Jun 25, 2019 at 02:50:01PM +0200, Arnd Bergmann wrote: > > > don't build, or are incomplete and not worked on for a long > > > time, compared to the bits that are known to w

Re: [PATCH RESEND] H8300: remove unused barrier defines

2019-06-18 Thread Yoshinori Sato
On Mon, 17 Jun 2019 21:24:12 +0900, Rolf Eike Beer wrote: > > From c907e749917f430e3dc62048985c8419778572f9 Mon Sep 17 00:00:00 2001 > From: Rolf Eike Beer > Date: Fri, 14 Jul 2017 11:19:08 +0200 > Subject: [PATCH] H8300: remove unused barrier defines > > They were introduced in d2a5f4999f6c211a

Re: [PATCH] irqchip: Enable compile-testing for Renesas drivers

2019-06-09 Thread Yoshinori Sato
gned-off-by: Geert Uytterhoeven for RENESAS_H8S_INTC Acked-by: Yoshinori Sato > --- > drivers/irqchip/Kconfig | 20 > 1 file changed, 16 insertions(+), 4 deletions(-) > > diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig > index 2d3b5a27cc988ab6..fe5

Re: [PATCH] sh: configs: Remove useless UEVENT_HELPER_PATH

2019-06-09 Thread Yoshinori Sato
On Tue, 04 Jun 2019 16:56:20 +0900, Krzysztof Kozlowski wrote: > > Remove the CONFIG_UEVENT_HELPER_PATH because: > 1. It is disabled since commit 1be01d4a5714 ("driver: base: Disable >CONFIG_UEVENT_HELPER by default") as its dependency (UEVENT_HELPER) was >made default to 'n', > 2. It is n

Re: [PATCH v2] sh: vsyscall: drop unnecessary cc-ldoption

2019-05-11 Thread Yoshinori Sato
On Thu, 09 May 2019 17:44:45 +0900, John Paul Adrian Glaubitz wrote: > > Hi Masahiro! > > On 5/9/19 9:07 AM, Masahiro Yamada wrote: > >> So, if in doubt, there are folks in Debian which can test your kernel patch > >> if you fear that it breaks something. > > > > Thanks for taking care of them i

Re: [PATCH v2] sh: vsyscall: drop unnecessary cc-ldoption

2019-05-11 Thread Yoshinori Sato
ges.rst is 2.20. > > Link: https://gcc.gnu.org/ml/gcc/2007-01/msg01141.html > Cc: clang-built-li...@googlegroups.com > Suggested-by: Masahiro Yamada > Signed-off-by: Nick Desaulniers Acked-by: Yoshinori Sato > --- > Changes V1 -> V2: > * update commit subject and mess

Re: arch/sh/kernel/cpu/sh2/clock-sh7619.o:undefined reference to `followparent_recalc'

2019-04-22 Thread Yoshinori Sato
On Mon, 22 Apr 2019 00:24:21 +0900, Randy Dunlap wrote: > > On 4/21/19 6:52 AM, Yoshinori Sato wrote: > > On Sun, 21 Apr 2019 04:34:36 +0900, > > Randy Dunlap wrote: > >> > >> On 4/20/19 12:40 AM, kbuild test robot wrote: > >>> Hi Randy, > >

Re: arch/sh/kernel/cpu/sh2/clock-sh7619.o:undefined reference to `followparent_recalc'

2019-04-21 Thread Yoshinori Sato
On Sun, 21 Apr 2019 04:34:36 +0900, Randy Dunlap wrote: > > On 4/20/19 12:40 AM, kbuild test robot wrote: > > Hi Randy, > > > > It's probably a bug fix that unveils the link errors. > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head: 371dd43

Re: [GIT PULL] arch/h8300 update

2019-01-06 Thread Yoshinori Sato
On Sun, 06 Jan 2019 04:40:55 +0900, Linus Torvalds wrote: > > On Sat, Jan 5, 2019 at 1:34 AM Yoshinori Sato > wrote: > > > > git://git.sourceforge.jp/gitroot/uclinux-h8/linux.git tags/for-4.21 > > New signing key? Yes. My previous key was made more than 10 year

[GIT PULL] arch/h8300 update

2019-01-05 Thread Yoshinori Sato
Hi, Please pull for h8300 fix. The following changes since commit 00c569b567c7f1f0da6162868fd02a9f29411805: Merge tag 'locks-v4.21-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux (2018-12-27 17:12:30 -0800) are available in the git repository at: git://git.sourceforge.j

Re: [PATCH] h8300: pci: Remove local declaration of pcibios_penalize_isa_irq

2018-12-28 Thread Yoshinori Sato
ode 100644 > index d4d345a52092.. > --- a/arch/h8300/include/asm/pci.h > +++ /dev/null > @@ -1,18 +0,0 @@ > -/* SPDX-License-Identifier: GPL-2.0 */ > -#ifndef _ASM_H8300_PCI_H > -#define _ASM_H8300_PCI_H > - > -/* > - * asm-h8300/pci.h - H8/300 specific PCI

Re: [GIT PULL] C-SKY(csky) Port for Linux 4.20

2018-10-30 Thread Yoshinori Sato
On Mon, 29 Oct 2018 18:44:59 +0900, Arnd Bergmann wrote: > > On Sun, Oct 28, 2018 at 10:11 PM Linus Torvalds > wrote: > > > > Arnd, > > I was kind of hoping/expecting to get an explicit ack for this from > > you, since it's a new architecture. > > > > Good to merge? > > Yes. > > For the pull r

Re: [GIT PULL] arch/h8300 update

2018-08-23 Thread Yoshinori Sato
On Wed, 22 Aug 2018 23:04:41 +0900, Linus Torvalds wrote: > > On Wed, Aug 22, 2018 at 6:36 AM Linus Torvalds > wrote: > > > > On Wed, Aug 22, 2018 at 5:47 AM Yoshinori Sato > > wrote: > > > > > > I fixed it. > > > > Thanks. > > U

Re: [GIT PULL] arch/h8300 update

2018-08-22 Thread Yoshinori Sato
On Wed, 22 Aug 2018 05:33:08 +0900, Linus Torvalds wrote: > > On Tue, Aug 21, 2018 at 2:49 AM Yoshinori Sato > wrote: > > > > git://git.sourceforge.jp/gitroot/uclinux-h8/linux.git > > That actually just contains some very old garbage. > > I think you may ha

[GIT PULL] arch/h8300 update

2018-08-21 Thread Yoshinori Sato
: Don't include linux/kernel.h in asm/atomic.h Yoshinori Sato (4): h8300: fix IRQ no h8300: irqchip: fix warning h8300: gcc-8.1 fix h8300: Add missing output register. arch/h8300/Kconfig | 1 + arch/h8300/Makefile| 4 arch/h8300

Re: linux-next: Signed-off-by missing for commit in the h8300 tree

2018-08-19 Thread Yoshinori Sato
On Sun, 19 Aug 2018 09:45:45 +0900, Stephen Rothwell wrote: > > [1 ] > Hi Yoshinori, > > On Sun, 19 Aug 2018 01:35:47 +0900 Yoshinori Sato > wrote: > > > > > Commit > > > > > > 85f866b60ba7 ("h8300: switch to NO_BOOTMEM"

Re: linux-next: Signed-off-by missing for commit in the h8300 tree

2018-08-18 Thread Yoshinori Sato
On Sat, 18 Aug 2018 23:30:05 +0900, Stephen Rothwell wrote: > > [1 ] > Hi Yoshinori, > > Commits > > 785b0958b55d ("h8300: gcc-8.1 fix") > 8eabc2d5fae0 ("h8300: Add missing output register.") > > are missing a Signed-off-by from their authors and committers. > > Commit > > 85f866b60ba7

Re: [PATCH] h8300: Correct signature of test_bit()

2018-07-22 Thread Yoshinori Sato
On Fri, 22 Jun 2018 04:24:44 +0900, Geert Uytterhoeven wrote: > > mm/filemap.c: In function 'clear_bit_unlock_is_negative_byte': > mm/filemap.c:1181:30: warning: passing argument 2 of 'test_bit' discards > 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers] > retu

Re: [PATCH] h8300: remove unnecessary of_platform_populate call

2018-07-22 Thread Yoshinori Sato
On Wed, 20 Jun 2018 06:40:54 +0900, Rob Herring wrote: > > The DT core will call of_platform_populate, so it is not necessary for > arch specific code to call it unless there are custom match entries, > auxdata or parent device. Neither of those apply here, so remove the call. >

Re: [PATCH v2 1/9] h8300: Don't include linux/kernel.h in asm/atomic.h

2018-07-22 Thread Yoshinori Sato
t with linux/compiler.h for > READ_ONCE etc and asm/irqflags.h for arch_local_irq_save etc. > > Cc: Yoshinori Sato > Signed-off-by: Will Deacon > --- > arch/h8300/include/asm/atomic.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/h

Re: [PATCH] h8300:let the checker know that size_t is ulong

2018-07-22 Thread Yoshinori Sato
On Thu, 31 May 2018 06:03:43 +0900, Luc Van Oostenryck wrote: > > All 64bit archs use unsigned long for size_t and most 32bit > archs use 'unsigned int'. By default, this is what is assumed > by sparse. > > However, on h8300 (a 32bit arch) size_t is unsigned long which > can led sparse to emit wr

Re: [PATCH 1/9] h8300: Don't include linux/kernel.h in asm/atomic.h

2018-07-22 Thread Yoshinori Sato
t with linux/compiler.h for > READ_ONCE etc and asm/irqflags.h for arch_local_irq_save etc. > > Cc: Yoshinori Sato > Signed-off-by: Will Deacon > --- > arch/h8300/include/asm/atomic.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/h

Re: [PATCH] arch/h8300: eliminate kgbd.c warning

2018-07-22 Thread Yoshinori Sato
t; 'arch_kgdb_ops' > const struct kgdb_arch arch_kgdb_ops = { > In file included from ../arch/h8300/kernel/kgdb.c:12: > ../include/linux/kgdb.h:284:26: note: previous declaration of 'arch_kgdb_ops' > was here > extern struct kgdb_arch arch_kgdb_ops; >

Re: [PATCH] arch/h8300: eliminate ptrace.h warnings

2018-07-22 Thread Yoshinori Sato
> declared inside parameter list will not be visible outside of this definition > or declaration > extern int h8300_put_reg(struct task_struct *task, int regno, > > Signed-off-by: Randy Dunlap > Cc: Yoshinori Sato > Cc: uclinux-h8-de...@lists.sourceforge.jp > --- > arch/h8300

[PATCH] checksyscalls.sh: Add ignore rseq.

2018-07-22 Thread Yoshinori Sato
This syscall depend on HAVE_RSEQ. So, if HAVE_RSEQ is not defined, it should be ignored. Signed-off-by: Yoshinori Sato --- scripts/checksyscalls.sh | 4 1 file changed, 4 insertions(+) diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh index ee3dfb5be6cd..ff0a8c51e126 100755

Re: [PATCH] arch/h8300: add a defconfig target

2018-07-19 Thread Yoshinori Sato
_defconfig' > > This is useful for Kconfig editing/testing. > > Signed-off-by: Randy Dunlap > Cc: Yoshinori Sato > Cc: uclinux-h8-de...@lists.sourceforge.jp (moderated for non-subscribers) > --- > arch/h8300/Makefile |2 ++ > 1 file changed, 2 insertio

Re: linux-next: Signed-off-by missing for commits in the h8300 tree

2018-07-18 Thread Yoshinori Sato
On Wed, 18 Jul 2018 06:57:50 +0900, Stephen Rothwell wrote: > > [1 ] > Hi Yoshinori, > > On Tue, 17 Jul 2018 17:42:35 +0900 Yoshinori Sato > wrote: > > > > On Tue, 17 Jul 2018 04:24:19 +0900, Stephen Rothwell wrote: > > > > > > Commit > >

Re: linux-next: Signed-off-by missing for commits in the h8300 tree

2018-07-17 Thread Yoshinori Sato
On Tue, 17 Jul 2018 04:24:19 +0900, Stephen Rothwell wrote: > > [1 ] > Hi Yoshinori, > > Commit > > 39f077046d46 ("h8300: switch to NO_BOOTMEM") > > is missing a Signed-off-by from its committer. > > Commits > > d6bde68ad18e ("h8300: Add missing output register.") > 5aa2f1573e0c ("h830

Re: h8300: BUG: Bad page state in process swapper (was: Re: why do we still need bootmem allocator?)

2018-07-12 Thread Yoshinori Sato
On Sun, 01 Jul 2018 21:22:46 +0900, Mike Rapoport wrote: > > (added Yoshinori Sato, here's the beginning of the discussion: > https://lore.kernel.org/lkml/20180625140754.gb29...@dhcp22.suse.cz/) > > On Wed, Jun 27, 2018 at 07:02:06PM +0300, Mike Rapoport wrote: > > On

Re: h8300: BUG: Bad page state in process swapper (was: Re: why do we still need bootmem allocator?)

2018-07-01 Thread Yoshinori Sato
On Sun, 01 Jul 2018 21:22:46 +0900, Mike Rapoport wrote: > > (added Yoshinori Sato, here's the beginning of the discussion: > https://lore.kernel.org/lkml/20180625140754.gb29...@dhcp22.suse.cz/) > > On Wed, Jun 27, 2018 at 07:02:06PM +0300, Mike Rapoport wrote: > > On

Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

2018-05-15 Thread Yoshinori Sato
On Tue, 15 May 2018 10:41:52 +0900, Rich Felker wrote: > > On Mon, May 07, 2018 at 10:40:34AM +0900, Yoshinori Sato wrote: > > On Thu, 03 May 2018 19:07:38 +0900, > > John Paul Adrian Glaubitz wrote: > > > > > > [1 ] > > > Hi Rich! > >

Re: [PATCH] h8300: switch to NO_BOOTMEM

2018-05-08 Thread Yoshinori Sato
happens before > bootmem is initialized. Swapping the order of bootmem init and > unflattening could also fix this, but removing bootmem is desired. So > enable NO_BOOTMEM on h8300 like other architectures have done. > > Fixes: 0fa1c579349f ("of/fdt: use memblock_virt_alloc for early al

Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

2018-05-08 Thread Yoshinori Sato
On Mon, 07 May 2018 20:00:17 +0900, John Paul Adrian Glaubitz wrote: > > On 05/07/2018 03:40 AM, Yoshinori Sato wrote: > >> @Yoshinori: > >> > >> Did the HDL-160U LANDISK device you have use u-boot by default or > >> did you convert it from lilo? > &

Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

2018-05-06 Thread Yoshinori Sato
On Thu, 03 May 2018 19:07:38 +0900, John Paul Adrian Glaubitz wrote: > > [1 ] > Hi Rich! > > On 05/03/2018 04:33 AM, Rich Felker wrote: > > I found the U-Boot stuff here: > > > > https://ja.osdn.net/users/ysato/pf/uboot/wiki/FrontPage > > > > but I'm not sure how to install it yet. Will try to

Re: [PATCH] h8300: switch to NO_BOOTMEM

2018-05-02 Thread Yoshinori Sato
ures have done. > > > > Fixes: 0fa1c579349f ("of/fdt: use memblock_virt_alloc for early alloc") > > Cc: Yoshinori Sato > > Cc: uclinux-h8-de...@lists.sourceforge.jp > > Signed-off-by: Rob Herring > > --- > > I haven't seen any reports, but 4.16 is li

Re: [PATCH V2] ZBOOT: fix stack protector in compressed boot phase

2018-03-14 Thread Yoshinori Sato
ad_64.S > > +++ b/arch/sh/boot/compressed/head_64.S > > @@ -132,6 +132,10 @@ startup: > > addir22, 4, r22 > > bne r22, r23, tr1 > > > > + movidatalabel __stack_chk_guard, r0 > > + movi0x000a0dff, r1 > > +

Re: [PATCH V2] ZBOOT: fix stack protector in compressed boot phase

2018-03-14 Thread Yoshinori Sato
mpressed/head_64.S > > @@ -132,6 +132,10 @@ startup: > > addir22, 4, r22 > > bne r22, r23, tr1 > > > > + movidatalabel __stack_chk_guard, r0 > > + movi0x000a0dff, r1 > > + st.lr0, 0, r1 > > + > > /* > > * Decompress the kernel. > > */ > > diff --git a/arch/sh/boot/compressed/misc.c b/arch/sh/boot/compressed/misc.c > > index 627ce8e..fe4c079 100644 > > --- a/arch/sh/boot/compressed/misc.c > > +++ b/arch/sh/boot/compressed/misc.c > > @@ -106,11 +106,6 @@ static void error(char *x) > > > > unsigned long __stack_chk_guard; > > > > -void __stack_chk_guard_setup(void) > > -{ > > - __stack_chk_guard = 0x000a0dff; > > -} > > - > > void __stack_chk_fail(void) > > { > > error("stack-protector: Kernel stack is corrupted\n"); > > @@ -130,8 +125,6 @@ void decompress_kernel(void) > > { > > unsigned long output_addr; > > > > - __stack_chk_guard_setup(); > > - > > #ifdef CONFIG_SUPERH64 > > output_addr = (CONFIG_MEMORY_START + 0x2000); > > #else > > -- > > 2.7.0 > > -- Yoshinori Sato

Re: [PATCH v6 12/22] sh: Add PCI host bridge driver for SH7751

2016-07-06 Thread Yoshinori Sato
On Wed, 06 Jul 2016 00:53:06 +0900, Rob Herring wrote: > > On Mon, Jul 04, 2016 at 01:46:32AM +0900, Yoshinori Sato wrote: > > This is an alternative SH7751 PCI driver. > > Existing driver (arch/sh/drivers/pci/pci-sh7751) uses SH specific interface. > > But this driver u

Re: [PATCH v5 20/22] sh: IO-DATA HDL-U (a.k.a landisk) DeviceTree

2016-07-06 Thread Yoshinori Sato
On Mon, 04 Jul 2016 04:00:59 +0900, Sergei Shtylyov wrote: > > Hello. > > On 07/03/2016 07:46 PM, Yoshinori Sato wrote: > > > Signed-off-by: Yoshinori Sato > > [...] > > > diff --git a/arch/sh/boot/dts/landisk.dts b/arch/sh/boot/dts/landisk.dts > &

Re: [PATCH v5 15/22] sh: Move common PCI stuff to arch/sh/kernel

2016-07-06 Thread Yoshinori Sato
On Mon, 04 Jul 2016 10:55:12 +0900, Rich Felker wrote: > > On Mon, Jul 04, 2016 at 01:46:35AM +0900, Yoshinori Sato wrote: > > Signed-off-by: Yoshinori Sato > > --- > > arch/sh/drivers/pci/Makefile | 2 - > > arch/sh/drivers/pci/common.c | 162 ---

Re: [PATCH v5 10/22] sh: Add board specific initialize of of-generic

2016-07-06 Thread Yoshinori Sato
On Mon, 04 Jul 2016 10:35:57 +0900, Rich Felker wrote: > > On Mon, Jul 04, 2016 at 01:46:30AM +0900, Yoshinori Sato wrote: > > Signed-off-by: Yoshinori Sato > > --- > > arch/sh/boards/of-generic.c | 64 > > + >

Re: [PATCH v5 04/22] sh: Use P1SEGADDR

2016-07-06 Thread Yoshinori Sato
On Mon, 04 Jul 2016 10:48:52 +0900, Rich Felker wrote: > > On Mon, Jul 04, 2016 at 01:46:24AM +0900, Yoshinori Sato wrote: > > FDT address is P1SEG. So not virtual address. > > > > Signed-off-by: Yoshinori Sato > > --- > > arch/sh/kernel/setup.c | 2 +- &g

Re: [PATCH v5 01/22] sh: Add sh-specific early_init_dt_reserve_memory_arch

2016-07-06 Thread Yoshinori Sato
On Mon, 04 Jul 2016 11:03:50 +0900, Rich Felker wrote: > > On Mon, Jul 04, 2016 at 01:46:21AM +0900, Yoshinori Sato wrote: > > sh used P1 address space in early device tree. > > So need convert P1 to physical address before reserve memory. > > > > Signed-off-by: Yos

Re: [PATCH v3] sm501: Add device property

2016-07-06 Thread Yoshinori Sato
On Mon, 04 Jul 2016 23:40:43 +0900, Mark Rutland wrote: > > On Mon, Jul 04, 2016 at 11:26:04PM +0900, Yoshinori Sato wrote: > > Add device proptery on enable integrated peripheral. > > It have platform_data. But don't have devicetree. > > >

Re: [PATCH v4 14/22] sh: SH7751 core dtsi

2016-07-04 Thread Yoshinori Sato
On Mon, 04 Jul 2016 16:15:31 +0900, Geert Uytterhoeven wrote: > > Hi Sato-san, > > On Wed, Jun 29, 2016 at 3:40 PM, Yoshinori Sato > wrote: > > --- /dev/null > > +++ b/include/dt-bindings/clock/renesas-sh7750.h > > @@ -0,0 +1,26 @@ > > +/* &g

[PATCH v3] sm501: Add device property

2016-07-04 Thread Yoshinori Sato
Add device proptery on enable integrated peripheral. It have platform_data. But don't have devicetree. Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/display/sm501fb.txt| 11 + drivers/mfd/sm501.c| 28 +- 2

[PATCH v5 14/22] sh: SH7751 core dtsi

2016-07-03 Thread Yoshinori Sato
SH7751 core and internal peripheral define. Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/include/dt-bindings | 1 + arch/sh/boot/dts/sh7751.dtsi | 83 ++ include/dt-bindings/clock/renesas-sh7750.h | 26 +++ include/dt

[PATCH v5 01/22] sh: Add sh-specific early_init_dt_reserve_memory_arch

2016-07-03 Thread Yoshinori Sato
sh used P1 address space in early device tree. So need convert P1 to physical address before reserve memory. Signed-off-by: Yoshinori Sato --- arch/sh/boards/of-generic.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c

[PATCH v5 02/22] sh: More early unflatten device tree

2016-07-03 Thread Yoshinori Sato
unflatten required MMU disabled. Signed-off-by: Yoshinori Sato --- arch/sh/boards/of-generic.c | 6 -- arch/sh/kernel/setup.c | 7 +++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c index 8dbf978..3db4294

[PATCH v5 18/22] sh: Add separate DTB build rule

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/Makefile | 7 +++ arch/sh/boot/dts/Makefile | 2 ++ 2 files changed, 9 insertions(+) diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 8adffa8..a44e630 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile @@ -189,6 +189,13 @@ drivers

[PATCH v5 17/22] pci: PCI_HOST_GENERIC enable for SH

2016-07-03 Thread Yoshinori Sato
Changes v4 none Signed-off-by: Yoshinori Sato --- drivers/pci/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig index df60505..83184eb 100644 --- a/drivers/pci/host/Kconfig +++ b/drivers/pci/host/Kconfig @@ -83,7

[PATCH v5 06/22] sh: FDT address save before bank change

2016-07-03 Thread Yoshinori Sato
SH3/4 have register bank of R0-R7. Preset FDT address assigned bank depend on boot loader. Before setting a bank because we don't depend on a boot loader, it's evacuated. Signed-off-by: Yoshinori Sato --- arch/sh/kernel/head_32.S | 7 +++ 1 file changed, 3 insertions(+), 4

[PATCH v5 20/22] sh: IO-DATA HDL-U (a.k.a landisk) DeviceTree

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/Makefile| 2 ++ arch/sh/boot/dts/landisk.dts | 61 2 files changed, 63 insertions(+) create mode 100644 arch/sh/boot/dts/landisk.dts diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts

[PATCH v5 03/22] sh: set preset_lpj

2016-07-03 Thread Yoshinori Sato
Generic callibrate delay required this value. Signed-off-by: Yoshinori Sato --- arch/sh/boards/of-generic.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c index 3db4294..2d3cda3 100644 --- a/arch/sh/boards/of-generic.c +++ b

[PATCH v5 22/22] sh: Renesas RTS7751R2Dplus (a,k.a R2Dplus) DeviceTree

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/Makefile| 1 + arch/sh/boot/dts/r2dplus.dts | 85 2 files changed, 86 insertions(+) create mode 100644 arch/sh/boot/dts/r2dplus.dts diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts

[PATCH v5 09/22] sh: Use GENERIC_IOMAP on device tree mode

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boards/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig index 5e52d53..9e4ccd0 100644 --- a/arch/sh/boards/Kconfig +++ b/arch/sh/boards/Kconfig @@ -12,6 +12,7 @@ config SH_DEVICE_TREE

[PATCH v5 07/22] sh: Passing FDT address on zImage

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boot/compressed/head_32.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sh/boot/compressed/head_32.S b/arch/sh/boot/compressed/head_32.S index 3e15032..a980c48 100644 --- a/arch/sh/boot/compressed/head_32.S +++ b/arch/sh

[PATCH v5 05/22] sh: command line passing chosen/bootargs in devicetree

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/kernel/setup.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 8e3b099..bdf57e5 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c @@ -280,6 +280,7 @@ void __init setup_arch

[PATCH v5 10/22] sh: Add board specific initialize of of-generic

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/boards/of-generic.c | 64 + 1 file changed, 64 insertions(+) diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c index 2d3cda3..4038682 100644 --- a/arch/sh/boards/of-generic.c +++ b/arch/sh

[PATCH v5 15/22] sh: Move common PCI stuff to arch/sh/kernel

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/drivers/pci/Makefile | 2 - arch/sh/drivers/pci/common.c | 162 arch/sh/drivers/pci/pci.c| 320 arch/sh/kernel/Makefile | 2 + arch/sh/kernel/pci-common.c | 162

[PATCH v5 11/22] sh: SH7750/51 CPG Driver

2016-07-03 Thread Yoshinori Sato
Convert SH specific clock framework to CCF. Signed-off-by: Yoshinori Sato Acked-by: Rob Herring --- .../bindings/clock/renesas,sh7750-cpg.txt | 25 ++ arch/sh/boards/Kconfig | 1 + arch/sh/kernel/cpu/Makefile| 8 +- arch/sh

[PATCH v5 13/22] sh: irqchip: SH7751 IRQCHIP Driver

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato Acked-by: Rob Herring --- .../interrupt-controller/renesas,sh7751-intc.txt | 25 arch/sh/Kconfig| 6 +- arch/sh/boards/Kconfig | 1 + drivers/irqchip/Kconfig

[PATCH v5 08/22] sh: Disable board specific code on device tree mode

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- arch/sh/Makefile| 2 ++ arch/sh/kernel/cpu/sh4/Makefile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 3b2c8b4..8adffa8 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile @@ -132,6 +132,7

[PATCH v5 16/22] pci: pci_config_window move to linux/pci.h

2016-07-03 Thread Yoshinori Sato
Chanegs v4 none Signed-off-by: Yoshinori Sato --- drivers/pci/ecam.h | 17 + include/linux/pci.h | 18 ++ 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/drivers/pci/ecam.h b/drivers/pci/ecam.h index 9878beb..f110091 100644 --- a/drivers/pci

[PATCH v5 19/22] sh: IO-DATA HDL-U (a.k.a landisk) IRQCHIP driver

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- .../interrupt-controller/iodata-landisk.txt| 31 ++ drivers/irqchip/Makefile | 2 +- drivers/irqchip/irq-io-landisk.c | 72 ++ 3 files changed, 104 insertions(+), 1 deletion

[PATCH v6 12/22] sh: Add PCI host bridge driver for SH7751

2016-07-03 Thread Yoshinori Sato
This is an alternative SH7751 PCI driver. Existing driver (arch/sh/drivers/pci/pci-sh7751) uses SH specific interface. But this driver uses common PCI interface. It is more modern and generic. Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/pci/sh7751-pci.txt | 37 +++ arch

[PATCH v5 21/22] sh: Renesas RTS7751R2Dplus (a.k.a R2Dplus) IRQCHIP Driver

2016-07-03 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- .../interrupt-controller/renesas-r2dplus.txt | 38 ++ drivers/irqchip/Makefile | 2 +- drivers/irqchip/irq-renesas-r2dplus.c | 88 ++ 3 files changed, 127 insertions(+), 1 deletion

[PATCH v5 04/22] sh: Use P1SEGADDR

2016-07-03 Thread Yoshinori Sato
FDT address is P1SEG. So not virtual address. Signed-off-by: Yoshinori Sato --- arch/sh/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 86f2792..8e3b099 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh

[PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

2016-07-03 Thread Yoshinori Sato
plus support. - Split DTS. - Some cleanup. Changes V2 - split DeviceTree suppoty update. - PCI driver update. - Some cleanup. Yoshinori Sato (22): sh: Add sh-specific early_init_dt_reserve_memory_arch sh: More early unflatten device tree sh: set preset_lpj sh: Use P1SEGADDR sh: command lin

Re: [PATCH RESEND v2] mfd: sm501: Add device property

2016-07-03 Thread Yoshinori Sato
On Fri, 01 Jul 2016 17:59:11 +0900, Lee Jones wrote: > > On Fri, 01 Jul 2016, Yoshinori Sato wrote: > > > On Thu, 30 Jun 2016 16:48:00 +0900, > > Lee Jones wrote: > > > > > > On Thu, 30 Jun 2016, Yoshinori Sato wrote: >

Re: [PATCH v4 19/22] sh: IO-DATA HDL-U (a,k.a landisk) IRQCHIP driver

2016-07-03 Thread Yoshinori Sato
On Fri, 01 Jul 2016 10:48:53 +0900, Rob Herring wrote: > > On Wed, Jun 29, 2016 at 10:41:04PM +0900, Yoshinori Sato wrote: > > Changes v4 > > - split patches > > - remove unneeded line > > - example update > > > > Signed-off-by: Yoshinori Sato &g

Re: [PATCH v4 14/22] sh: SH7751 core dtsi

2016-07-03 Thread Yoshinori Sato
On Fri, 01 Jul 2016 17:57:00 +0900, Geert Uytterhoeven wrote: > > Hi Sato-san, > > On Wed, Jun 29, 2016 at 3:40 PM, Yoshinori Sato > wrote: > > SH7751 core and internal peripheral define. > > Thanks for your patch! > > > Changes v4 > > - remo

Re: [PATCH v4 21/22] sh: Renesas RTS7751R2Dplus (a,k.a R2Dplus) IRQCHIP Driver

2016-07-03 Thread Yoshinori Sato
On Fri, 01 Jul 2016 10:53:13 +0900, Rob Herring wrote: > > On Wed, Jun 29, 2016 at 10:41:06PM +0900, Yoshinori Sato wrote: > > Changes v4 > > - split patch. > > - remove unneeded #address > > Actually, I think #address-cells is supposed to be set for > interrup

Re: [PATCH RESEND v2] mfd: sm501: Add device property

2016-06-30 Thread Yoshinori Sato
On Thu, 30 Jun 2016 16:48:00 +0900, Lee Jones wrote: > > On Thu, 30 Jun 2016, Yoshinori Sato wrote: > > > Signed-off-by: Yoshinori Sato > > --- > > Documentation/devicetree/bindings/mfd/sm501.txt | 45 > > + > > drivers/mfd/s

Re: [PATCH v4 12/22] sh: Add PCI host bridge driver for SH7751

2016-06-30 Thread Yoshinori Sato
On Wed, 29 Jun 2016 23:57:50 +0900, Arnd Bergmann wrote: > > On Wednesday, June 29, 2016 10:40:57 PM CEST Yoshinori Sato wrote: > > + interrupt-map = <0x 0 1 &cpldintc 0 0>, > > +

Re: [PATCH v4 22/22] sh: Renesas RTS7751R2Dplus (a,k.a R2Dplus) DeviceTree

2016-06-30 Thread Yoshinori Sato
On Wed, 29 Jun 2016 23:16:52 +0900, Sergei Shtylyov wrote: > > On 06/29/2016 04:41 PM, Yoshinori Sato wrote: > > > Changes v4 > > - split patch > > > > Signed-off-by: Yoshinori Sato > > [...] > > > diff --git a/arch/sh/boot/dts/r2dplus.dts

[PATCH RESEND v2] mfd: sm501: Add device property

2016-06-29 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- Documentation/devicetree/bindings/mfd/sm501.txt | 45 + drivers/mfd/sm501.c | 9 + 2 files changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sm501.txt diff --git a

Re: [PATCH v2] sm501: Add device property

2016-06-29 Thread Yoshinori Sato
On Wed, 29 Jun 2016 17:16:33 +0900, Lee Jones wrote: > > On Tue, 28 Jun 2016, Yoshinori Sato wrote: > > > Signed-off-by: Yoshinori Sato > > --- > > Documentation/devicetree/bindings/mfd/sm501.txt | 45 > > + > > This needs a DT

[PATCH v4 04/22] sh: Use P1SEGADDR

2016-06-29 Thread Yoshinori Sato
FDT address is P1SEG. So not virtual address. Changes v4 none Signed-off-by: Yoshinori Sato --- arch/sh/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 86f2792..8e3b099 100644 --- a/arch/sh/kernel/setup.c

[PATCH v4 03/22] sh: set preset_lpj

2016-06-29 Thread Yoshinori Sato
Generic callibrate delay required this value. Changes v4 none Signed-off-by: Yoshinori Sato --- arch/sh/boards/of-generic.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c index 3db4294..2d3cda3 100644 --- a/arch/sh/boards/of

[PATCH v4 18/22] sh: Add separate DTB build rule

2016-06-29 Thread Yoshinori Sato
Changes v4 none Signed-off-by: Yoshinori Sato --- arch/sh/Makefile | 7 +++ arch/sh/boot/dts/Makefile | 2 ++ 2 files changed, 9 insertions(+) diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 8adffa8..a44e630 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile @@ -189,6

[PATCH v4 07/22] sh: Passing FDT address on zImage

2016-06-29 Thread Yoshinori Sato
Changes v4 none Signed-off-by: Yoshinori Sato --- arch/sh/boot/compressed/head_32.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sh/boot/compressed/head_32.S b/arch/sh/boot/compressed/head_32.S index 3e15032..a980c48 100644 --- a/arch/sh/boot/compressed/head_32

[PATCH v4 12/22] sh: Add PCI host bridge driver for SH7751

2016-06-29 Thread Yoshinori Sato
This is an alternative SH7751 PCI driver. Existing driver (arch/sh/drivers/pci/pci-sh7751) uses SH specific interface. But this driver uses common PCI interface. It is more modern and generic. Changes v4 Add reg description. Signed-off-by: Yoshinori Sato --- .../devicetree/bindings/pci/sh7751

[PATCH v4 14/22] sh: SH7751 core dtsi

2016-06-29 Thread Yoshinori Sato
SH7751 core and internal peripheral define. Changes v4 - remove unneeded #address-cells and #size-cells - add missing dt-binding link Signed-off-by: Yoshinori Sato --- arch/sh/boot/dts/include/dt-bindings | 1 + arch/sh/boot/dts/sh7751.dtsi | 83

  1   2   3   4   5   6   >