2008-09-29 18:39:09     Enabling USB using ISP1362 causes irq 65: nobody cared (try booting with the "irqpoll"...

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-09-29 18:39:09     Enabling USB using ISP1362 causes irq 65: nobody cared (try booting with the "irqpoll"...

Steve Strobel (UNITED STATES)

Message: 62906   

 

Custom BF537 board similar to BF537-stamp works fine with 2007R1.1-RC3.  After updating to 2008R1.5-RC3, I get the message "isp1362_hc_start:  irq 65: nobody cared (try booting with the "irqpoll" option)" during startup (complete log below).  USB is configured the same way as before:

 

#

# USB Host Controller Drivers

#

# CONFIG_USB_ISP116X_HCD is not set

CONFIG_USB_ISP1362_HCD=y

CONFIG_USB_ISP1362_BFIN_GPIO_IRQ=65

# CONFIG_USB_ISP1760_HCD is not set

# CONFIG_USB_SL811_HCD is not set

# CONFIG_USB_MUSB_HDRC is not set

 

and that part of my board.c file is the same as the stamp:

 

.start = CONFIG_USB_ISP1362_BFIN_GPIO_IRQ,

.end = CONFIG_USB_ISP1362_BFIN_GPIO_IRQ,

.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,

 

 

It seems to me that the USB driver should be "somebody that cares"

 

Complete log of messages printed during startup:

 

Starting Kernel at = 1aa000

Linux version 2.6.22.19-ADI-2008R1.5-svn251 (ubuntu@dev2-ubuntu) (gcc version 4.1.2 (ADI svn)) #392 Mon Sep 29 14:43:49 MDT 2008

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x0013ce50

  rodata    = 0x0013d000-0x00193674

  data      = 0x00194000-0x001aa000

    stack   = 0x00194000-0x00196000

  init      = 0x001aa000-0x001bd000

  bss       = 0x001bd000-0x001cdc90

  available = 0x001cdc90-0x02000000

  rootfs    = 0x02000000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Built 1 zonelists.  Total pages: 8128

Kernel command line: root=/dev/mtdblock0 rw console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 128 (order: 7, 512 bytes)

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 30624k/65536k RAM, (76k init code, 1263k kernel code, 504k data, 1024k dma, 304k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 32 KB (31 KB free)

Blackfin Data B SRAM: 32 KB (32 KB free)

Blackfin Instruction SRAM: 48 KB (39 KB free)

Security Framework v1.0.0 initialized

Capability LSM initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

rlc_dsp4_board_init(): registering device resources

rlc_dsp4_board_init(): registering Blackfin SPI resources

rlc_dsp4_board_init(): finished registering Blackfin SPI resources

Generic PHY: Registered new driver

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

ISA-BlackFin-CAN CAN Driver 3.4.6_AD_BLACKFIN (c) Sep 29 2008

BlackFin port by H.J. Oertel (oe@port.de)

RLC-DSP4 leds driver

RLC-DSP4 ptts driver

RLC-DSP4 cors driver

RLC-DSP4 pls driver

RLC-DSP4 inputs driver

RLC-DSP4 outputs driver

RLC-DSP4 dtmf_data driver

RLC-DSP4 ltc1863_adc driver

ltc1863_spi_init

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

uclinux[mtd]: RAM probe address=0x2000000 size=0x1f00000

Creating 1 MTD partitions on "RAM":

0x00000000-0x01f00000 : "ROMfs"

m25p80 spi0.1: m25p128 (16384 Kbytes)

Creating 4 MTD partitions on "m25p80":

0x00000000-0x00040000 : "bootloader"

0x00040000-0x00080000 : "bootloader-environment"

0x00080000-0x00e00000 : "kernel"

0x00e00000-0x01000000 : "file system"

ltc1863_spi_probe with spi pointer 0x002b9a00

ltc1863_spi_probe: chip 002d7fe0, spi 002b9a00

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

bfin-spi-gpio-mstr: registering platform driver

bfin-spi-gpio-mstr: bfin_spi_gpio_probe()

bits_per_word not specified in spi_bitbang_setup.  Defaulting to 32.

bits_per_word not specified in spi_bitbang_setup.  Defaulting to 32.

usbmon: debugfs is not available

driver isp1362-hcd, 2005-04-04

isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller

isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1

isp1362_hc_reset:

isp1362-hcd isp1362-hcd.0: irq 65, io mem 0x20060000

isp1362_hc_start:

irq 65: nobody cared (try booting with the "irqpoll" option)

Hardware Trace:

   0 Target : <0x0000480c> { _dump_stack + 0x0 }

     Source : <0x0002945c> { ___report_bad_irq + 0x1c }

   1 Target : <0x0002945c> { ___report_bad_irq + 0x1c }

     Source : <0x000294b8> { ___report_bad_irq + 0x78 }

   2 Target : <0x000294b8> { ___report_bad_irq + 0x78 }

     Source : <0x0000d91e> { _printk + 0x16 }

   3 Target : <0x0000d91a> { _printk + 0x12 }

     Source : <0x0000d7d8> { _vprintk + 0x1c0 }

   4 Target : <0x0000d7d0> { _vprintk + 0x1b8 }

     Source : <0x0000d7c2> { _vprintk + 0x1aa }

   5 Target : <0x0000d7be> { _vprintk + 0x1a6 }

     Source : <0x0000dd18> { _release_console_sem + 0x1fc }

   6 Target : <0x0000dd12> { _release_console_sem + 0x1f6 }

     Source : <0x0000d5f4> { _wake_up_klogd + 0x24 }

   7 Target : <0x0000d5d0> { _wake_up_klogd + 0x0 }

     Source : <0x0000dd0e> { _release_console_sem + 0x1f2 }

   8 Target : <0x0000dd08> { _release_console_sem + 0x1ec }

     Source : <0x0000dcfa> { _release_console_sem + 0x1de }

   9 Target : <0x0000dcf0> { _release_console_sem + 0x1d4 }

     Source : <0x0000dce2> { _release_console_sem + 0x1c6 }

  10 Target : <0x0000dcc2> { _release_console_sem + 0x1a6 }

     Source : <0x0000dba0> { _release_console_sem + 0x84 }

  11 Target : <0x0000db70> { _release_console_sem + 0x54 }

     Source : <0x0000dca4> { _release_console_sem + 0x188 }

  12 Target : <0x0000dc9e> { _release_console_sem + 0x182 }

     Source : <0x0000d4ac> { __call_console_drivers + 0x60 }

  13 Target : <0x0000d4a6> { __call_console_drivers + 0x5a }

     Source : <0x0000d486> { __call_console_drivers + 0x3a }

  14 Target : <0x0000d476> { __call_console_drivers + 0x2a }

     Source : <0x0000d466> { __call_console_drivers + 0x1a }

  15 Target : <0x0000d44c> { __call_console_drivers + 0x0 }

     Source : <0x0000dc9a> { _release_console_sem + 0x17e }

Stack from 00233a94:

        003d08bb 00233ab4 00029460 0019b7b8 00000000 00014dd6 00000041 00000000

        00233acc 00029638 0019b7b8 00233ad8 00028c14 002d7b40 00233afc 00029f76

        0019b7b8 00000041 001be3b4 00000000 ffff8000 00000000 00000000 00233b08

        0019b7b8 00000000 00233b1c 00008ade 0019b7b8 00000041 001c7cf0 00233ce4

        0000000a 00000001 00233b48 ffa003ee 00000022 0019b16c 001c7cf0 00233ce4

        0000000a 00000001 00000001 00233b70 00233b58 00233b6c ffa00f86 ffc00014

 

Call Trace:

[<00020d94>] _update_wall_time+0x150/0x73c

[<00011b86>] ___do_softirq+0x42/0xac

[<00011b86>] ___do_softirq+0x42/0xac

[<00011ec6>] _irq_exit+0x3a/0x40

[<0009bd68>] _vsnprintf+0x2c0/0x424

[<0009bd5e>] _vsnprintf+0x2b6/0x424

[<0000ffff>] _do_exit+0x33f/0x774

[<0000ffff>] _do_exit+0x33f/0x774

[<00029c76>] _handle_simple_irq+0x72/0x94

[<00011ec6>] _irq_exit+0x3a/0x40

[<0000ffff>] _do_exit+0x33f/0x774

[<0000d7d0>] _vprintk+0x1b8/0x2f0

[<0000200d>] _get_cclk+0x2d/0x68

[<00001284>] _name_to_dev_t+0x54/0x244

[<0000dc9e>] _release_console_sem+0x182/0x244

[<000dc45c>] _isp1362_hc_start+0x100/0x510

[<00008050>] __l1_sram_free+0x5c/0xc0

[<000dc45c>] _isp1362_hc_start+0x100/0x510

[<000dc44a>] _isp1362_hc_start+0xee/0x510

[<00003044>] _do_signal+0x3a0/0xdb8

[<0009bd68>] _vsnprintf+0x2c0/0x424

[<0009bd5e>] _vsnprintf+0x2b6/0x424

[<0001e872>] _clear_dead_task+0x3e/0x7c

[<0000200d>] _get_cclk+0x2d/0x68

[<0000ffff>] _do_exit+0x33f/0x774

[<00003630>] _do_signal+0x98c/0xdb8

[<0000ffff>] _do_exit+0x33f/0x774

[<0000ffff>] _do_exit+0x33f/0x774

[<0000d91a>] _printk+0x12/0x18

[<000d218a>] _usb_add_hcd+0x226/0x4cc

[<001b5b62>] _isp1362_probe+0x172/0x1d0

[<0001a280>] _call_usermodehelper_keys+0xa0/0xa8

[<0000a1ff>] _sys_sched_rr_get_interval+0x8f/0x94

[<000b6210>] _platform_drv_probe+0x14/0x1c

[<000b4adc>] _driver_probe_device+0x64/0x17c

[<000b4af2>] _driver_probe_device+0x7a/0x17c

[<0013b26e>] _klist_next+0x36/0x60

[<000b4dce>] ___driver_attach+0xfa/0x104

[<000b3fc6>] _bus_for_each_dev+0x36/0x64

[<000b4cd4>] ___driver_attach+0x0/0x104

[<000b49a6>] _driver_attach+0x1a/0x20

[<000b4cd4>] ___driver_attach+0x0/0x104

[<000b4300>] _bus_add_driver+0x64/0x164

[<000b4fd6>] _driver_register+0x42/0x74

[<000b645a>] _platform_driver_register+0x72/0x78

[<001b5856>] _mon_init+0xa/0xcc

[<001b59e8>] _isp1362_init+0x3c/0x44

[<001aa6be>] _kernel_init+0x8a/0x238

[<001aa634>] _kernel_init+0x0/0x238

[<00001676>] _kernel_thread_helper+0x6/0xc

 

handlers:

[<000d1cac>] (_usb_hcd_irq+0x0/0x74)

Disabling IRQ #65

isp1362-hcd isp1362-hcd.0: ISP1362 Memory usage:

isp1362-hcd isp1362-hcd.0:   ISTL:    2 *  256:      512 @ $0000:$0100

isp1362-hcd isp1362-hcd.0:   INTL:   16 * ( 64+8):  1152 @ $0200

isp1362-hcd isp1362-hcd.0:   ATL :   32 * ( 64+8):  2304 @ $0680

isp1362-hcd isp1362-hcd.0:   USED/FREE:   3968       128

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

ISP1362 Host Controller, irq 65

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 2008-09-22 22:40:23 (1222123223)

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 76k freed

dma_alloc_init: dma_page @ 0x002e4000 - 256 pages at 0x03f00000

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

 

QuoteReplyEditDelete

 

 

2008-09-30 03:29:03     Re: Enabling USB using ISP1362 causes irq 65: nobody cared (try booting with the "irqpoll"...

Michael Hennerich (GERMANY)

Message: 62912   

 

To me - this looks like IRQ_PF15 is floating.

Make sure that the ISP1362 IRQ and PF15 are physically connected.

 

-Michael

 

QuoteReplyEditDelete

 

 

2008-09-30 10:12:55     Re: Enabling USB using ISP1362 causes irq 65: nobody cared (try booting with the "irqpoll"...

Steve Strobel (UNITED STATES)

Message: 62932   

 

> > Steve Strobel wrote:

> > Custom BF537 board similar to BF537-stamp works fine with

> > 2007R1.1-RC3.  After updating to 2008R1.5-RC3, I get the

> > message "isp1362_hc_start:  irq 65: nobody cared (try booting

> > with the "irqpoll" option)" during startup.

 

> Michael Hennerich wrote:

> To me - this looks like IRQ_PF15 is floating.

> Make sure that the ISP1362 IRQ and PF15 are physically connected.

 

I just re-loaded the old kernel and tested the USB system. It recognizes when USB flash drives are plugged in or unplugged and transfers data without any problems. I think the hardware is OK.

 

Steve

QuoteReplyEditDelete

 

 

2008-09-30 13:12:27     Re: Enabling USB using ISP1362 causes irq 65: nobody cared (try booting with the "irqpoll"

Robin Getz (UNITED STATES)

Message: 62942   

 

Steve:

 

I don't think that the older driver checked both interrupt sources. Can you double check?

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-30 15:45:02     Re: Enabling USB using ISP1362 causes irq 65: nobody cared (try booting with the "irqpoll"

Steve Strobel (UNITED STATES)

Message: 62951   

 

I am not sure what you mean by "both interrupt sources".  Do you mean pins 30 and 31 of the ISP1362BD chip?  We have pin 30 (INT1) connected to PF15 (GPIO_65) and pin 31 (INT2) connected to PG14 (GPIO_30).  As I recall, on our early prototypes we had only INT1 connected and it worked fine (I think it is the only one used by the host controller, while the device controller can use either INT2 or if the OneINT bit is set in the ISP1362, it can share INT1).  Does the driver now use both INT lines?  I only see a place to set one from the USB Support config menu.

 

Did I completely miss your point?

 

Steve

QuoteReplyEditDelete

 

 

2008-10-01 18:11:14     Re: Enabling USB using ISP1362 causes irq 65: nobody cared (try booting with the "irqpoll"

Steve Strobel (UNITED STATES)

Message: 63006   

 

The problem was the polarity of the IRQ line.  I somehow got it messed up in my linux-2.6.x/arch/blackfin/mach-bf537/board/...c file.  Thanks for the help.

 

Steve

Attachments

    Outcomes