Re: [PATCH 0/6] Clean up ARC code and fix IP22/28 early printk

2019-10-09 Thread Paul Burton
Hello,

Thomas Bogendoerfer wrote:
> While fixing the problem of not working EARLY_PRINTK on IP22/IP28
> I've removed not used ARC function and made 32bit ARC PROMs working
> with 64bit kernels. By switching to memory detection via PROM calls
> EARLY_PRINTK works now. And by using the regular 64bit spaces
> maximum memory of 384MB on Indigo2 R4k machines is working, too.
> 
> Thomas Bogendoerfer (6):
>   MIPS: fw: arc: remove unused ARC code
>   MIPS: fw: arc: use call_o32 to call ARC prom from 64bit kernel
>   MIPS: Kconfig: always select ARC_MEMORY and ARC_PROMLIB for platform
>   MIPS: fw: arc: workaround 64bit kernel/32bit ARC problems
>   MIPS: SGI-IP22: set PHYS_OFFSET to memory start
>   MIPS: SGI-IP22/28: Use PROM for memory detection

Series applied to mips-next.

> MIPS: fw: arc: remove unused ARC code
>   commit d11646b5ce93
>   https://git.kernel.org/mips/c/d11646b5ce93
>   
>   Signed-off-by: Thomas Bogendoerfer 
>   Signed-off-by: Paul Burton 
> 
> MIPS: fw: arc: use call_o32 to call ARC prom from 64bit kernel
>   commit ce6c0a593b3c
>   https://git.kernel.org/mips/c/ce6c0a593b3c
>   
>   Signed-off-by: Thomas Bogendoerfer 
>   Signed-off-by: Paul Burton 
> 
> MIPS: Kconfig: always select ARC_MEMORY and ARC_PROMLIB for platform
>   commit 39b2d7565a47
>   https://git.kernel.org/mips/c/39b2d7565a47
>   
>   Signed-off-by: Thomas Bogendoerfer 
>   Signed-off-by: Paul Burton 
> 
> MIPS: fw: arc: workaround 64bit kernel/32bit ARC problems
>   commit 351889d35629
>   https://git.kernel.org/mips/c/351889d35629
>   
>   Signed-off-by: Thomas Bogendoerfer 
>   Signed-off-by: Paul Burton 
> 
> MIPS: SGI-IP22: set PHYS_OFFSET to memory start
>   commit 931e1bfea403
>   https://git.kernel.org/mips/c/931e1bfea403
>   
>   Signed-off-by: Thomas Bogendoerfer 
>   Signed-off-by: Paul Burton 
> 
> MIPS: SGI-IP22/28: Use PROM for memory detection
>   commit c0de00b286ed
>   https://git.kernel.org/mips/c/c0de00b286ed
>   
>   Signed-off-by: Thomas Bogendoerfer 
>   Signed-off-by: Paul Burton 

Thanks,
Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paul.bur...@mips.com to report it. ]


[PATCH 0/6] Clean up ARC code and fix IP22/28 early printk

2019-10-09 Thread Thomas Bogendoerfer
While fixing the problem of not working EARLY_PRINTK on IP22/IP28
I've removed not used ARC function and made 32bit ARC PROMs working
with 64bit kernels. By switching to memory detection via PROM calls
EARLY_PRINTK works now. And by using the regular 64bit spaces
maximum memory of 384MB on Indigo2 R4k machines is working, too.

Thomas Bogendoerfer (6):
  MIPS: fw: arc: remove unused ARC code
  MIPS: fw: arc: use call_o32 to call ARC prom from 64bit kernel
  MIPS: Kconfig: always select ARC_MEMORY and ARC_PROMLIB for platform
  MIPS: fw: arc: workaround 64bit kernel/32bit ARC problems
  MIPS: SGI-IP22: set PHYS_OFFSET to memory start
  MIPS: SGI-IP22/28: Use PROM for memory detection

 arch/mips/Kconfig|  32 +++-
 arch/mips/fw/arc/Makefile|   2 +-
 arch/mips/fw/arc/env.c   |   6 --
 arch/mips/fw/arc/file.c  |  49 
 arch/mips/fw/arc/identify.c  |   5 ++
 arch/mips/fw/arc/init.c  |   5 ++
 arch/mips/fw/arc/memory.c|   9 +++
 arch/mips/fw/arc/misc.c  |  59 --
 arch/mips/fw/arc/promlib.c   |  25 +-
 arch/mips/fw/arc/salone.c|  25 --
 arch/mips/fw/arc/time.c  |  25 --
 arch/mips/fw/arc/tree.c  | 127 ---
 arch/mips/include/asm/bootinfo.h |   1 +
 arch/mips/include/asm/mach-ip22/spaces.h |  12 +--
 arch/mips/include/asm/sgialib.h  |  12 ---
 arch/mips/include/asm/sgiarcs.h  | 103 -
 arch/mips/sgi-ip22/ip22-mc.c |  74 +-
 17 files changed, 105 insertions(+), 466 deletions(-)
 delete mode 100644 arch/mips/fw/arc/salone.c
 delete mode 100644 arch/mips/fw/arc/time.c
 delete mode 100644 arch/mips/fw/arc/tree.c

-- 
2.16.4