1. 07 Jun, 2011 2 commits
    • oftedal's avatar
      Do not skip interrupt sources in sun4d interrupt handler and acknowledge interrupts correctly · ea160584
      oftedal authored
      During the introduction of genirq on sparc32 bugs were introduced in
      the interrupt handler for sun4d. The interrupts handler checks the status
      of the various sbus interfaces in the system and generates a virtual
      interrupt, based upon the location of the interrupt source. This lookup
      was broken by restructuring the code in such a way that index and shift
      operations were performed prior to comparing this against the values
      read from the interrupt controllers.
      
      This could cause the handler to loop eternally as the interrupt source
      could be skipped before any check was performed. Additionally
      sun4d_encode_irq performs shifting internally, so it should not be performed
      twice.
      
      In sun4d_unmask interrupts were not correctly acknowledged, as the
      corresponding bit it the interrupt mask was not actually cleared.
      Signed-off-by: default avatarKjetil Oftedal <oftedal@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ea160584
    • oftedal's avatar
      Restructure sun4d_build_device_irq so that timer interrupts can be allocated · 5fba1708
      oftedal authored
      sun4d_build_device_irq was called without a valid platform_device when
      the system timer was initialized on sun4d systems. This caused a NULL
      pointer crash.
      
      Josip Rodin suggested that the current sun4d_build_device_irq should be
      split into two functions. So that the timer initialization could skip
      the slot and sbus interface detection code in sun4d_build_device_irq, as
      this does not make sence due to the timer interrupts not being generated
      from a device located on sbus.
      Signed-off-by: default avatarKjetil Oftedal <oftedal@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5fba1708
  2. 03 Jun, 2011 1 commit
  3. 02 Jun, 2011 4 commits
  4. 01 Jun, 2011 17 commits
  5. 31 May, 2011 9 commits
  6. 30 May, 2011 7 commits