Re: [Qemu-devel] [PATCH] ppc: Fix sam460ex devicetree when booting the Linux kernel

2018-06-23 Thread BALATON Zoltan
On Sat, 23 Jun 2018, Guenter Roeck wrote: On 06/23/2018 01:55 PM, BALATON Zoltan wrote: On Fri, 22 Jun 2018, Guenter Roeck wrote: The problem is this (from the kernel diffs provided by aCube): #if defined(CONFIG_PPC32) -#define smc501_readl(addr) ioread32be((addr)) -#define smc501_

Re: [Qemu-devel] [PATCH] ppc: Fix sam460ex devicetree when booting the Linux kernel

2018-06-23 Thread Guenter Roeck
On 06/23/2018 01:55 PM, BALATON Zoltan wrote: On Fri, 22 Jun 2018, Guenter Roeck wrote: The problem is this (from the kernel diffs provided by aCube): #if defined(CONFIG_PPC32) -#define smc501_readl(addr) ioread32be((addr)) -#define smc501_writel(val, addr)   iowrite32be((val),

Re: [Qemu-devel] [PATCH] ppc: Fix sam460ex devicetree when booting the Linux kernel

2018-06-23 Thread BALATON Zoltan
On Fri, 22 Jun 2018, Guenter Roeck wrote: The problem is this (from the kernel diffs provided by aCube): #if defined(CONFIG_PPC32) -#define smc501_readl(addr) ioread32be((addr)) -#define smc501_writel(val, addr) iowrite32be((val), (addr)) +#define smc501_readl(addr)

Re: [Qemu-devel] [PATCH] ppc: Fix sam460ex devicetree when booting the Linux kernel

2018-06-22 Thread Guenter Roeck
On Fri, Jun 22, 2018 at 11:37:30PM +0200, BALATON Zoltan wrote: > > >>The version of the Linux kernel I've tried (which is from the Linux CD > >>on ACube's site) did not try to access the power management register, > >>neither any guest OSes I've tested with. Looks like it may be specific > >>to t

Re: [Qemu-devel] [PATCH] ppc: Fix sam460ex devicetree when booting the Linux kernel

2018-06-22 Thread BALATON Zoltan
On Fri, 22 Jun 2018, Guenter Roeck wrote: On 06/22/2018 12:52 AM, BALATON Zoltan wrote: On Fri, 22 Jun 2018, David Gibson wrote: On Thu, Jun 21, 2018 at 09:47:51PM -0700, Guenter Roeck wrote: sam4660ex (or at least this emulation) does not support the "ibm,cpm" power management. As a result,

Re: [Qemu-devel] [PATCH] ppc: Fix sam460ex devicetree when booting the Linux kernel

2018-06-22 Thread Guenter Roeck
On 06/22/2018 12:52 AM, BALATON Zoltan wrote: Hello, Thanks for the feedback, really appreciated. On Fri, 22 Jun 2018, David Gibson wrote: On Thu, Jun 21, 2018 at 09:47:51PM -0700, Guenter Roeck wrote: sam4660ex (or at least this emulation) does not support the "ibm,cpm" power management. As

Re: [Qemu-devel] [PATCH] ppc: Fix sam460ex devicetree when booting the Linux kernel

2018-06-22 Thread BALATON Zoltan
Hello, Thanks for the feedback, really appreciated. On Fri, 22 Jun 2018, David Gibson wrote: On Thu, Jun 21, 2018 at 09:47:51PM -0700, Guenter Roeck wrote: sam4660ex (or at least this emulation) does not support the "ibm,cpm" power management. As a result, Linux crashes when trying to access i

Re: [Qemu-devel] [PATCH] ppc: Fix sam460ex devicetree when booting the Linux kernel

2018-06-21 Thread David Gibson
Balaton, can you review this please. On Thu, Jun 21, 2018 at 09:47:51PM -0700, Guenter Roeck wrote: > sam4660ex (or at least this emulation) does not support the "ibm,cpm" power > management. As a result, Linux crashes when trying to access it. Remove > its devicetree node. Also, if/when we boot t

[Qemu-devel] [PATCH] ppc: Fix sam460ex devicetree when booting the Linux kernel

2018-06-21 Thread Guenter Roeck
sam4660ex (or at least this emulation) does not support the "ibm,cpm" power management. As a result, Linux crashes when trying to access it. Remove its devicetree node. Also, if/when we boot the Linux kernel directly, u-boot will not fix up serial frequencies in the devicetree file, and serial port