[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support. |
Date: |
Wed, 21 Dec 2011 20:31:48 +0000 |
On 21 December 2011 15:08, Evgeny Voevodin <address@hidden> wrote:
> On 12/21/2011 05:50 PM, Peter Maydell wrote:
>> arm_gic.c exposes the CPU and distributor interfaces as their own
>> memory regions now -- you shouldn't need any of this intermediate
>> layer of functions.
> These functions are not actually for splitting CPU and Distributer
> interfaces.
> In our board we have two GICs - internal and external. Internal GIC is
> completely
> matching arm_gic.c.
>
> Internal GIC CPU[n] and Distributer[n] interfaces are at 0x100 and 0x1000
> offsets from
> 0x10500000 base.
>
> But external GIC is different.
> It's CPU[0] interface is at 0x0 offset from 0x10480000 base
> and
> CPU[1] interface is at 0x8000 offset from 0x10480000 base
>
> It's Distributer[0] interface is at 0x0 offset from 0x10490000 base
> and
> Distributer[1] interface is at 0x8000 offset from 0x10490000 base
>
> [n] - is corresponding to SMP CPU Core.
>
> So, we need these wrapper functions for External GIC.
I don't understand this reasoning. If there are two GICs then
you should just instantiate two GIC devices and map and/or alias
their memory regions at the right addresses. The reason why
the distributor and CPU interfaces are exposed as multiple
memory regions is exactly so you can put them at different
offsets for different boards/CPUs. If arm_gic doesn't
provide suitably split up memory regions then it should be
fixed to do so.
-- PMM
- [Qemu-devel] [PATCH v4 01/11] ARM: Samsung exynos 4210-based boards emulation, (continued)
- [Qemu-devel] [PATCH v4 01/11] ARM: Samsung exynos 4210-based boards emulation, Evgeny Voevodin, 2011/12/19
- [Qemu-devel] [PATCH v4 03/11] hw/sysbus.h: Increase maximum number of device IRQs., Evgeny Voevodin, 2011/12/19
- [Qemu-devel] [PATCH v4 02/11] ARM: exynos4210: UART support, Evgeny Voevodin, 2011/12/19
- [Qemu-devel] [PATCH v4 08/11] hw/exynos4210.c: Boot secondary CPU., Evgeny Voevodin, 2011/12/19
- [Qemu-devel] [PATCH v4 06/11] hw/arm_boot.c: Extend secondary CPU bootloader., Evgeny Voevodin, 2011/12/19
- [Qemu-devel] [PATCH v4 05/11] ARM: exynos4210: PWM support., Evgeny Voevodin, 2011/12/19
- [Qemu-devel] [PATCH v4 10/11] hw/exynos4210.c: Add LAN support for SMDKC210., Evgeny Voevodin, 2011/12/19
- [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support., Evgeny Voevodin, 2011/12/19
- Re: [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support., Peter Maydell, 2011/12/21
- Re: [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support., Evgeny Voevodin, 2011/12/21
- Re: [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support.,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support., Evgeny Voevodin, 2011/12/22
- Re: [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support., Peter Maydell, 2011/12/22
- Re: [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support., Evgeny Voevodin, 2011/12/22
- Re: [Qemu-devel] [PATCH v4 04/11] ARM: exynos4210: IRQ subsystem support., Peter Maydell, 2011/12/22
[Qemu-devel] [PATCH v4 09/11] hw/lan9118: Add basic 16-bit mode support., Evgeny Voevodin, 2011/12/19
[Qemu-devel] [PATCH v4 07/11] ARM: exynos4210: MCT support., Evgeny Voevodin, 2011/12/19
[Qemu-devel] [PATCH v4 11/11] Exynos4210: added display controller implementation, Evgeny Voevodin, 2011/12/19