1. 20 12月, 2007 4 次提交
  2. 11 12月, 2007 1 次提交
  3. 10 12月, 2007 1 次提交
  4. 06 12月, 2007 1 次提交
  5. 03 12月, 2007 1 次提交
  6. 09 10月, 2007 2 次提交
    • P
      [POWERPC] Remove unused old code from powermac setup code · 6ee0d9f7
      Paul Mackerras 提交于
      Since bootdevice never gets initialized, it's always NULL, and hence a
      whole pile of code in arch/powerpc/platforms/setup.c never gets used.
      (This was the code that originally was there so that the automatic
      root partition selection mechanism would prefer a rootish-looking
      partition on the device that OF loaded the kernel from over a similar
      partition on other devices.)
      
      This removes the unused code.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      6ee0d9f7
    • S
      [POWERPC] Remove some more section mismatch warnings · d7418031
      Stephen Rothwell 提交于
      WARNING: vmlinux.o(.text+0x2ff5c): Section mismatch: reference to .init.text:.pmac_find_ide_boot (between '.note_bootable_part' and '.note_scsi_host')
      
      >From holly_defconfig:
      WARNING: vmlinux.o(.text+0x164fe): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'find_via_pmu')
      WARNING: vmlinux.o(.text+0x16506): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'find_via_pmu')
      
      >From linkstation_defconfig:
      WARNING: vmlinux.o(.text+0x158fe): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'find_via_pmu')
      WARNING: vmlinux.o(.text+0x15906): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'find_via_pmu')
      
      >From mpc7448_hpc2_defconfig:
      WARNING: vmlinux.o(.text+0x1583e): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'find_via_pmu')
      WARNING: vmlinux.o(.text+0x15846): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'find_via_pmu')
      
      >From pmac32_defconfig:
      WARNING: vmlinux.o(.text+0x154ca): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'note_scsi_host')
      WARNING: vmlinux.o(.text+0x154d2): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'note_scsi_host')
      WARNING: vmlinux.o(.text+0x1553c): Section mismatch: reference to .init.text:pmac_find_ide_boot (between 'note_bootable_part' and 'note_scsi_host')
      
      >From ppc64_defconfig:
      WARNING: vmlinux.o(.text+0x3acdc): Section mismatch: reference to .init.text:.pmac_find_ide_boot (between '.note_bootable_part' and '.note_scsi_host')
      
      >From prpmc2800_defconfig:
      WARNING: vmlinux.o(.text+0x1611e): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'find_via_pmu')
      WARNING: vmlinux.o(.text+0x16126): Section mismatch: reference to .init.data:boot_command_line (between 'note_bootable_part' and 'find_via_pmu')
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      d7418031
  7. 05 10月, 2007 1 次提交
  8. 13 9月, 2007 1 次提交
  9. 23 8月, 2007 1 次提交
    • K
      [POWERPC] Remove old includes from arch/ppc · ed16c20d
      Kumar Gala 提交于
      Remove includes of files that existed in arch/ppc that we dont need in
      arch/powerpc anymore.  The following includes were removed:
      
       <asm/amigappc.h>
       <asm/bootinfo.h>
       <asm/ppcboot.h>
       <asm/ppc_sys.h>
       <asm/residual.h>
       <asm/m8260_pci.h>
      
      This also caused platforms/embedded6xx/mpc7448_hpc2.h to no longer be
      needed and thus removed.
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      ed16c20d
  10. 17 8月, 2007 5 次提交
  11. 03 8月, 2007 1 次提交
  12. 10 7月, 2007 1 次提交
  13. 29 6月, 2007 3 次提交
  14. 20 6月, 2007 1 次提交
    • T
      [POWERPC] Fix powermac late initcall to only run on powermac · c5f226c7
      Tony Breeds 提交于
      Current ppc64_defconfig kernel fails to boot on iSeries, dying with:
      
      Unable to handle kernel paging request for data at address 0x00000000
      Faulting instruction address: 0xc00000000071b258
      Oops: Kernel access of bad area, sig: 11 [#1]
      SMP NR_CPUS=32 iSeries
      <snip>
      NIP [c00000000071b258] .iSeries_src_init+0x34/0x64
      LR [c000000000701bb4] .kernel_init+0x1fc/0x3bc
      Call Trace:
      [c000000007d0be30] [0000000000008000] 0x8000 (unreliable)
      [c000000007d0bea0] [c000000000701bb4] .kernel_init+0x1fc/0x3bc
      [c000000007d0bf90] [c0000000000262d4] .kernel_thread+0x4c/0x68
      Instruction dump:
      e922cba8 3880ffff 78840420 f8010010 f821ff91 60000000 e8090000 78095fe3
      4182002c e922cb58 e862cbb0 e9290140 <e8090000> f8410028 7c0903a6 e9690010
      Kernel panic - not syncing: Attempted to kill init!
      
      This happens because some powermac code unconditionally sets
      ppc_md.progress to NULL.  This patch makes sure the powermac late
      initcall is only run on powermac machines.
      Signed-off-by: NTony Breeds <tony@bakeyournoodle.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      c5f226c7
  15. 14 6月, 2007 2 次提交
    • B
      [POWERPC] Rewrite IO allocation & mapping on powerpc64 · 3d5134ee
      Benjamin Herrenschmidt 提交于
      This rewrites pretty much from scratch the handling of MMIO and PIO
      space allocations on powerpc64.  The main goals are:
      
       - Get rid of imalloc and use more common code where possible
       - Simplify the current mess so that PIO space is allocated and
         mapped in a single place for PCI bridges
       - Handle allocation constraints of PIO for all bridges including
         hot plugged ones within the 2GB space reserved for IO ports,
         so that devices on hotplugged busses will now work with drivers
         that assume IO ports fit in an int.
       - Cleanup and separate tracking of the ISA space in the reserved
         low 64K of IO space. No ISA -> Nothing mapped there.
      
      I booted a cell blade with IDE on PIO and MMIO and a dual G5 so
      far, that's it :-)
      
      With this patch, all allocations are done using the code in
      mm/vmalloc.c, though we use the low level __get_vm_area with
      explicit start/stop constraints in order to manage separate
      areas for vmalloc/vmap, ioremap, and PCI IOs.
      
      This greatly simplifies a lot of things, as you can see in the
      diffstat of that patch :-)
      
      A new pair of functions pcibios_map/unmap_io_space() now replace
      all of the previous code that used to manipulate PCI IOs space.
      The allocation is done at mapping time, which is now called from
      scan_phb's, just before the devices are probed (instead of after,
      which is by itself a bug fix). The only other caller is the PCI
      hotplug code for hot adding PCI-PCI bridges (slots).
      
      imalloc is gone, as is the "sub-allocation" thing, but I do beleive
      that hotplug should still work in the sense that the space allocation
      is always done by the PHB, but if you unmap a child bus of this PHB
      (which seems to be possible), then the code should properly tear
      down all the HPTE mappings for that area of the PHB allocated IO space.
      
      I now always reserve the first 64K of IO space for the bridge with
      the ISA bus on it. I have moved the code for tracking ISA in a separate
      file which should also make it smarter if we ever are capable of
      hot unplugging or re-plugging an ISA bridge.
      
      This should have a side effect on platforms like powermac where VGA IOs
      will no longer work. This is done on purpose though as they would have
      worked semi-randomly before. The idea at this point is to isolate drivers
      that might need to access those and fix them by providing a proper
      function to obtain an offset to the legacy IOs of a given bus.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      3d5134ee
    • P
      [POWERPC] Fix per-cpu allocation on oldworld SMP powermacs · c63c4faa
      Paul Mackerras 提交于
      The per-cpu area(a) for the secondary CPU(s) isn't getting allocated
      on old SMP powermacs that don't have the secondary CPU(s) listed in
      the device tree, as per-cpu areas are now only allocated for CPUs in
      the cpu_possible_map, and we aren't setting the bits for the secondary
      CPU(s) until smp_prepare_cpus(), which is after per-cpu allocation.
      Therefore this sets the bits for CPUs 1..3 in cpu_possible_map in
      pmac_setup_arch, so they get per-cpu data allocated.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      c63c4faa
  16. 23 5月, 2007 1 次提交
    • L
      [POWERPC] Fix Section mismatch warnings · 405861a0
      Li Yang 提交于
      This patch fix the following Section mismatch warnings in powerpc code.
      
      WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed2) and 'gg2_read_config'
      WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed6) and 'gg2_read_config'
      WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.text:note_scsi_host from __ksymtab between '__ksymtab_note_scsi_host' (at offset 0x8) and '__ksymtab_sys_ctrler'
      Signed-off-by: NLi Yang <leoli@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      405861a0
  17. 09 5月, 2007 1 次提交
  18. 07 5月, 2007 2 次提交
  19. 02 5月, 2007 3 次提交
    • J
      [POWERPC] Fix suspend states again · be9c94dd
      Johannes Berg 提交于
      In commit 0fba3a1f (a very long time ago,
      May 2006), I fixed a bug that caused powermacs to crash when you tried
      entering standby/mem suspend states.
      
      As I'm now getting more familiar with the suspend code I notice a few
      more things:
       1. we previously misunderstood what pm_ops is for, it isn't supposed to be
          for doing platform dependent suspend/resume stuff that needs to be done
          for suspend to disk (as we currently try to use it!), it is instead for
          entering platform dependent suspend states ("standby", "mem").
       2. due to the first point, we never properly save FPU and altivec states
          when suspending to disk. It probably hasn't hurt yet because the process
          that writes the "disk" to /sys/power/state uses neither and its context
          is used.
      
      This patch addresses these points as follows:
       1. remove all pm_ops from powermac, powermac suspend to ram isn't currently
          usable via /sys/power/state but is done via the PMU instead.
       2. move the code responsible for storing FPU/altivec state into
          save_processor_state and the set_context() call to restore_processor_state.
       3. add a call to kernel_enable_spe()
      
      It may look like there is some code removal missing but that is
      actually because the new suspend.h file overrides the ppc/suspend.h
      one which was previously used.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      be9c94dd
    • J
      [POWERPC] powermac: Fix G5-cpufreq for cpu on/offline · 8fce6dd2
      Johannes Berg 提交于
      The original code here is wrong, it applies "previous" knowledge.
      The way the cpufreq core is designed is that the policy for the
      secondary CPU that comes online says that it must in fact not
      use this policy but use the same as the other CPUs that are
      listed, which in fact is CPU#0.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      8fce6dd2
    • J
      i2c: Cleanup the includes of <linux/i2c.h> · 7c59b661
      Jean Delvare 提交于
      Clean up the includes of <linux/i2c.h>. Only include this header file
      when we actually need it.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      7c59b661
  20. 27 4月, 2007 1 次提交
  21. 24 4月, 2007 4 次提交
  22. 13 4月, 2007 2 次提交