Skip to content

ARCH_BCM2709: FREE_IRQS too small, fails to allocate all irqs #871

Closed

Description

@notro

FREE_IRQS is only 32 in ARCH_BCM2709 compared to 128 in ARCH_BCM2708.
This leads too irq allocation failure for pinctrl-bcm2835 and others:

[    0.000000] NR_IRQS:480

<snip>

[    2.400490] irq: irq_create_mapping(0xb9a93000, 0x1f)
[    2.405553] irq: -> using domain @b9a93000
[    2.409664] irq: irq 31 on domain /soc/gpio mapped to virtual irq 479

[    2.416135] irq: irq_create_mapping(0xb9a93000, 0x20)
[    2.421211] irq: -> using domain @b9a93000
[    2.425320] irq: -> virq allocation failed

<snip>

[    2.736443] gpiochip_add: registered GPIOs 0 to 53 on device: pinctrl-bcm2835

Full boot log including stmpe device: https://gist.github.com/notro/7bbe1be9a7c71081756f

Setting FREE_IRQS to 128 in arch/arm/mach-bcm2709/include/mach/irqs.h solves the problem.
This is also solves the problem of getting the stmpe touch controller to work on the Pi2.

I have a pending PR, so I can't (easily) make a PR for this.

Activity

  1. popcornmix commented on Mar 5, 2015

    @popcornmix
    Collaborator

    SPARE_ALLOC_IRQS is 64 on 2708 and 32 on 2709 - make them both 64 too?

  2. notro commented on Mar 5, 2015

    @notro
    ContributorAuthor

    No harm in doing so, that space is used in non DT mode. Can't tell if it is absolutely necessary though.

  3. popcornmix commented on Mar 5, 2015

    @popcornmix
    Collaborator
  4. notro commented on Mar 5, 2015

    @notro
    ContributorAuthor

    Impossible to beat that reaction time :-)
    Thanks.

  5. ladyada commented on Mar 5, 2015

    @ladyada
    Contributor

    @notro @popcornmix you guys are AMAZING thank you so much!!!!

  6. added a commit that references this issue on Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions