1. 08 8月, 2008 1 次提交
  2. 24 4月, 2008 1 次提交
  3. 18 2月, 2008 1 次提交
  4. 05 10月, 2007 1 次提交
  5. 17 9月, 2007 1 次提交
  6. 08 8月, 2007 1 次提交
  7. 21 7月, 2007 1 次提交
    • D
      [SPARC]: Fix serial console device detection. · c73fcc84
      David S. Miller 提交于
      The current scheme works on static interpretation of text names, which
      is wrong.
      
      The output-device setting, for example, must be resolved via an alias
      or similar to a full path name to the console device.
      
      Paths also contain an optional set of 'options', which starts with a
      colon at the end of the path.  The option area is used to specify
      which of two serial ports ('a' or 'b') the path refers to when a
      device node drives multiple ports.  'a' is assumed if the option
      specification is missing.
      
      This was caught by the UltraSPARC-T1 simulator.  The 'output-device'
      property was set to 'ttya' and we didn't pick upon the fact that this
      is an OBP alias set to '/virtual-devices/console'.  Instead we saw it
      as the first serial console device, instead of the hypervisor console.
      
      The infrastructure is now there to take advantage of this to resolve
      the console correctly even in multi-head situations in fbcon too.
      
      Thanks to Greg Onufer for the bug report.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c73fcc84
  8. 20 7月, 2007 6 次提交
  9. 16 7月, 2007 1 次提交
    • D
      [SPARC64]: Initial LDOM cpu hotplug support. · 4f0234f4
      David S. Miller 提交于
      Only adding cpus is supports at the moment, removal
      will come next.
      
      When new cpus are configured, the machine description is
      updated.  When we get the configure request we pass in a
      cpu mask of to-be-added cpus to the mdesc CPU node parser
      so it only fetches information for those cpus.  That code
      also proceeds to update the SMT/multi-core scheduling bitmaps.
      
      cpu_up() does all the work and we return the status back
      over the DS channel.
      
      CPUs via dr-cpu need to be booted straight out of the
      hypervisor, and this requires:
      
      1) A new trampoline mechanism.  CPUs are booted straight
         out of the hypervisor with MMU disabled and running in
         physical addresses with no mappings installed in the TLB.
      
         The new hvtramp.S code sets up the critical cpu state,
         installs the locked TLB mappings for the kernel, and
         turns the MMU on.  It then proceeds to follow the logic
         of the existing trampoline.S SMP cpu bringup code.
      
      2) All calls into OBP have to be disallowed when domaining
         is enabled.  Since cpus boot straight into the kernel from
         the hypervisor, OBP has no state about that cpu and therefore
         cannot handle being invoked on that cpu.
      
         Luckily it's only a handful of interfaces which can be called
         after the OBP device tree is obtained.  For example, rebooting,
         halting, powering-off, and setting options node variables.
      
      CPU removal support will require some infrastructure changes
      here.  Namely we'll have to process the requests via a true
      kernel thread instead of in a workqueue.  workqueues run on
      a per-cpu thread, but when unconfiguring we might need to
      force the thread to execute on another cpu if the current cpu
      is the one being removed.  Removal of a cpu also causes the kernel
      to destroy that cpu's workqueue running thread.
      
      Another issue on removal is that we may have interrupts still
      pointing to the cpu-to-be-removed.  So new code will be needed
      to walk the active INO list and retarget those cpus as-needed.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4f0234f4
  10. 08 6月, 2007 1 次提交
    • D
      [SPARC64]: Fix SBUS IRQ regression caused by PCI-E driver. · ec4d18f2
      David S. Miller 提交于
      We used to access the 64-bit IRQ IMAP and ICLR registers of bus
      controllers 4-bytes in and as a 32-bit register word, since only the
      low 32-bits were relevant.  This seemed like a good idea at the time.
      
      But the PCI-E controller requires full 8-byte 64-bit access to
      these registers, so we switched over to accessing them fully.
      
      SBUS was not adjusted properly, which broke interrupts completely.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ec4d18f2
  11. 05 6月, 2007 3 次提交
  12. 29 5月, 2007 1 次提交
  13. 12 5月, 2007 1 次提交
  14. 10 5月, 2007 1 次提交
  15. 07 5月, 2007 2 次提交
  16. 26 4月, 2007 4 次提交
  17. 31 10月, 2006 1 次提交
    • D
      [SPARC64]: Fix Tomatillo/Schizo IRQ handling. · 9001f285
      David S. Miller 提交于
      The code in schizo_irq_trans_init() should set irq_data->sync_reg
      to the location of the SYNC register if this is Tomatillo, and set
      it to zero otherwise.  But that is not what it is doing.
      
      As a result, non-Tomatillo systems were trying to access a
      non-existent register resulting in bus errors at the first
      PCI interrupt.
      
      Thanks to Roland Stigge for the bug report.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9001f285
  18. 26 10月, 2006 1 次提交
    • D
      [SPARC64]: Fix central/FHC bus handling on Ex000 systems. · 4130a4b2
      David S. Miller 提交于
      1) probe_other_fhcs() wants to see only non-central FHC
         busses, so skip FHCs that don't sit off the root
      
      2) Like SBUS, FHC can lack the appropriate address and
         size cell count properties, so add an of_busses[]
         entry and handlers for that.
      
      3) Central FHC irq translator probing was buggy.  We
         were trying to use dp->child in irq_trans_init but
         that linkage is not setup at this point.
      
         So instead, pass in the parent of "dp" and look for
         the child "fhc" with parent "central".
      
      Thanks to the tireless assistence of Ben Collins in tracking
      down these problems and testing out these fixes.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4130a4b2
  19. 04 10月, 2006 1 次提交
  20. 22 7月, 2006 1 次提交
    • D
      [SPARC64]: Fix more of_device layer IRQ bugs, and correct PROMREG_MAX. · 46ba6d7d
      David S. Miller 提交于
      Sabre and Psycho PCI controllers can have partial interrupt-map
      properties, meaning that on-board devices don't match up to any
      entries.  Instead, they are fully specified from the beginning and
      we should pass them directly to the IRQ translator as-is.
      
      Also, fill in the necessary translator slots for the "graphics"
      and "expansion UPA" interrupts on Sabre, Psycho, and SYSIO SBUS.
      
      Increase PROMREG_MAX to 24, as seen on SUNW,ffb devices.
      
      Finally, prevent accidentally writing past the end of the of_device
      struct resource[] and irqs[] arrays.  Spit out a log message when
      we ignore some entries because there are too many of them.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      46ba6d7d
  21. 13 7月, 2006 2 次提交
  22. 06 7月, 2006 1 次提交
  23. 01 7月, 2006 1 次提交
  24. 30 6月, 2006 2 次提交
    • D
      [SPARC64]: of_device layer IRQ resolution · 2b1e5978
      David S. Miller 提交于
      Do IRQ determination generically by parsing the PROM properties,
      and using IRQ controller drivers for final resolution.
      
      One immediate positive effect is that all of the IRQ frobbing
      in the EBUS, ISA, and PCI controller layers has been eliminated.
      We just look up the of_device and use the properly computed
      value.
      
      The PCI controller irq_build() routines are gone and no longer
      used.  Unfortunately sbus_build_irq() has to remain as there is
      a direct reference to this in the sunzilog driver.  That can be
      killed off once the sparc32 side of this is written and the
      sunzilog driver is transformed into an "of" bus driver.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2b1e5978
    • D
      [SPARC]: Add of_n_{addr,size}_cells(). · 3ae9a348
      David S. Miller 提交于
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3ae9a348
  25. 26 6月, 2006 2 次提交
  26. 24 6月, 2006 1 次提交