Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-09 Thread Bill Paul
Of all the gin joints in all the towns in all the world, Guenter Roeck had to walk into mine at 13:38 on Friday 09 March 2018 and say: [...] > > > > Do I have that right? > > > > > > Pretty much. > > > > There may be a 4th option. > > > > Since older kernels work because they were looking at

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-09 Thread Guenter Roeck
On Fri, Mar 09, 2018 at 10:53:43AM -0800, Bill Paul wrote: > Of all the gin joints in all the towns in all the world, Guenter Roeck had to > walk into mine at 10:20 on Friday 09 March 2018 and say: > > > On Fri, Mar 09, 2018 at 05:47:16PM +, Peter Maydell wrote: > > > On 8 March 2018 at

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-09 Thread Guenter Roeck
On Fri, Mar 09, 2018 at 06:48:43PM +, Peter Maydell wrote: > On 9 March 2018 at 18:20, Guenter Roeck wrote: > > On Fri, Mar 09, 2018 at 05:47:16PM +, Peter Maydell wrote: > >> Thanks for that really useful writeup. So if I understand correctly > >> we have several

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-09 Thread Bill Paul
Of all the gin joints in all the towns in all the world, Bill Paul had to walk into mine at 10:53 on Friday 09 March 2018 and say: > Of all the gin joints in all the towns in all the world, Guenter Roeck had > to > > walk into mine at 10:20 on Friday 09 March 2018 and say: > > On Fri, Mar 09,

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-09 Thread Bill Paul
Of all the gin joints in all the towns in all the world, Guenter Roeck had to walk into mine at 10:20 on Friday 09 March 2018 and say: > On Fri, Mar 09, 2018 at 05:47:16PM +, Peter Maydell wrote: > > On 8 March 2018 at 18:28, Bill Paul wrote: > > > Anyway, this means

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-09 Thread Peter Maydell
On 9 March 2018 at 18:20, Guenter Roeck wrote: > On Fri, Mar 09, 2018 at 05:47:16PM +, Peter Maydell wrote: >> Thanks for that really useful writeup. So if I understand correctly >> we have several choices here: >> >> (1) we could implement a model of the IOMUX block that

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-09 Thread Guenter Roeck
On Fri, Mar 09, 2018 at 05:47:16PM +, Peter Maydell wrote: > On 8 March 2018 at 18:28, Bill Paul wrote: > > Anyway, this means that the only reason older Linux kernels worked in QEMU > > with the broken interrupt configuration is that they also registered a > > handler >

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-09 Thread Peter Maydell
On 8 March 2018 at 18:28, Bill Paul wrote: > Anyway, this means that the only reason older Linux kernels worked in QEMU > with the broken interrupt configuration is that they also registered a handler > on vector 151 (119). Even though QEMU could not send events via GPIO6, it

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-08 Thread Guenter Roeck
On Thu, Mar 08, 2018 at 10:28:39AM -0800, Bill Paul wrote: > Of all the gin joints in all the towns in all the world, Guenter Roeck had to > walk into mine at 09:12 on Thursday 08 March 2018 and say: > > > On Thu, Mar 08, 2018 at 02:51:04PM +, Peter Maydell wrote: > > > On 8 March 2018 at

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-08 Thread Bill Paul
Of all the gin joints in all the towns in all the world, Guenter Roeck had to walk into mine at 09:12 on Thursday 08 March 2018 and say: > On Thu, Mar 08, 2018 at 02:51:04PM +, Peter Maydell wrote: > > On 8 March 2018 at 14:47, Guenter Roeck wrote: > > > On 03/08/2018

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-08 Thread Guenter Roeck
On Thu, Mar 08, 2018 at 02:51:04PM +, Peter Maydell wrote: > On 8 March 2018 at 14:47, Guenter Roeck wrote: > > On 03/08/2018 02:50 AM, Peter Maydell wrote: > >> So do the works-by-accident kernels fail on QEMU because > >> we don't emulate some bit of the ethernet device

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-08 Thread Guenter Roeck
On 03/08/2018 06:51 AM, Peter Maydell wrote: On 8 March 2018 at 14:47, Guenter Roeck wrote: On 03/08/2018 02:50 AM, Peter Maydell wrote: So do the works-by-accident kernels fail on QEMU because we don't emulate some bit of the ethernet device ? Ideally we could fix that so

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-08 Thread Peter Maydell
On 8 March 2018 at 14:47, Guenter Roeck wrote: > On 03/08/2018 02:50 AM, Peter Maydell wrote: >> So do the works-by-accident kernels fail on QEMU because >> we don't emulate some bit of the ethernet device ? >> Ideally we could fix that so we could boot newer kernels >>

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-08 Thread Guenter Roeck
On 03/08/2018 02:50 AM, Peter Maydell wrote: On 7 March 2018 at 17:37, Guenter Roeck wrote: The sabrelite machine model used by qemu-system-arm is based on the Freescale/NXP i.MX6Q processor. This SoC has an on-board ethernet controller which is supported in QEMU using the

Re: [Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-08 Thread Peter Maydell
On 7 March 2018 at 17:37, Guenter Roeck wrote: > The sabrelite machine model used by qemu-system-arm is based on the > Freescale/NXP i.MX6Q processor. This SoC has an on-board ethernet > controller which is supported in QEMU using the imx_fec.c module > (actually called

[Qemu-devel] [PATCH] fsl-imx6: Swap Ethernet interrupt defines

2018-03-07 Thread Guenter Roeck
The sabrelite machine model used by qemu-system-arm is based on the Freescale/NXP i.MX6Q processor. This SoC has an on-board ethernet controller which is supported in QEMU using the imx_fec.c module (actually called imx.enet for this model.) The include/hw/arm/fsm-imx6.h file defines the