From: Kristoffer E. <kri...@gm...> - 2007-08-21 13:53:56
|
On Thu, 16 Aug 2007 12:05:50 +0900 "Magnus Damm" <mag...@gm...> wrote: > On 8/16/07, Kristoffer Ericson <kri...@gm...> wrote: > > Found it, jlime-current.git IRQ.H sets all my offchip_nr_irq's, must have added that when the IRQ stuff got reworked. I believe we could just set it to 256 or something, since Paul have defined the nr irq limit at that. > > The base value for these interrupts should be set to something, that's > for sure! I wonder if 256 is such a good choice though, mainly because > NR_IRQS is set to 256 in include/asm-sh/irq.h. This constant seems to > be the maximum number of interrupts supported by the kernel, and it is > for instance used by irq_desc[] include/linux/irq.h. So I would go > with a number below 256, exactly which depends on the number of > interrupt sources you plan on installing - but make sure all > interrupts fit in below NR_IRQS. Understandable. > > It looks like sh770x processor is using interrupt 0-63 (maximum vector > is in vectors[] seems to be 0x9e0), so from the cpu point of view you > are free to use interrupt 64-255 for your board-specific or companion > chip interrupts. We also probably need to squeeze in the 16 pint > interrupts there later on. I've set 64 but is still experiencing IRQ aquiring errors: hp6x0_apm: IRQ 32 request failed HD64461 configured at 0xb0000000 on irq 36(mapped into 70 to 85) HD64461: enabling PCMCIA devices io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) Console: switching to colour frame buffer device 80x30 fb0: Hitachi HD64461 frame buffer device SuperH SCI(F) driver initialized sh-sci: ttySC0 at MMIO 0xfffffe80 (irq = 25) is a sci sh-sci: ttySC1 at MMIO 0xa4000150 (irq = 59) is a scif console [ttySC1] enabled sh-sci sh-sci: Attempting to register port 3 when only 2 are available. sh-sci sh-sci: Consider bumping CONFIG_SERIAL_SH_SCI_NR_UARTS! loop: module loaded SCSI Media Changer driver v0.25 pata_platform: probe of pata_platform failed with error -38 HD64461 PCMCIA bridge. HD64461 Initializing Socket 0, IRQ 85 Unable to handle kernel NULL pointer dereference at virtual address 00000004 pc = 8d145d0c *pde = 00000000 As you can see, some stuff gets setup correctly. Im basicly wondering if I'm doing it correctly. For instance HD64461, should be setup with IRQ 36 = IRQ 4 (in setup.c). How does it translate the 36 -> IRQ4? If the IRQ list in setup-770x.c is ment to be a IRQ list, IRQ4 isn't at 36 position. Same goes for the apm driver which should use 32, but 32 is no longer mapped to the correct INTC. > > / magnus -- Kristoffer Ericson <Kri...@Gm...> |