1. 26 7月, 2007 2 次提交
    • K
      [POWREPC] Fixup a number of modpost warnings on ppc32 · 282045b4
      Kumar Gala 提交于
      Fixed the following warnings:
      
      WARNING: vmlinux.o(.text+0x2934): Section mismatch: reference to .init.text:__alloc_bootmem (between 'irq_alloc_host' and 'irq_set_default_host')
      WARNING: vmlinux.o(.text+0xb2aa): Section mismatch: reference to .init.data:boot_command_line (between 'register_early_udbg_console' and 'udbg_printf')
      WARNING: vmlinux.o(.text+0xb2b2): Section mismatch: reference to .init.data:boot_command_line (between 'register_early_udbg_console' and 'udbg_printf')
      WARNING: vmlinux.o(.text+0xe354): Section mismatch: reference to .init.text:__alloc_bootmem (between 'pcibios_alloc_controller' and 'pci_domain_nr')
      WARNING: vmlinux.o(.text+0x12768): Section mismatch: reference to .init.text:update_bridge_resource (between 'quirk_fsl_pcie_transparent' and 'indirect_read_config')
      WARNING: vmlinux.o(.text+0x127a8): Section mismatch: reference to .init.text:update_bridge_resource (between 'quirk_fsl_pcie_transparent' and 'indirect_read_config')
      WARNING: vmlinux.o(.text+0x17566c): Section mismatch: reference to .init.text:pcibios_fixup_bus (between 'pci_scan_child_bus' and 'pci_scan_bus_parented')
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      282045b4
    • K
      [POWERPC] Don't try to allocate resources for a Freescale POWERPC PHB · 2052d6d2
      Kumar Gala 提交于
      The Freescale PCI PHBs actual report back values in the BAR registers
      this causes issues in that we try to allocate resources for them
      and will get error messages like the following on MPC8544 DS:
      
      PCI: Failed to allocate mem resource #1:80000000@0 for 0000:00:00.0
      
      To address this if we are class PCI_CLASS_PROCESSOR_POWERPC, a normal
      header type, and the PHB we clear out all the resources.
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      2052d6d2
  2. 24 7月, 2007 1 次提交
  3. 23 7月, 2007 1 次提交
  4. 22 7月, 2007 3 次提交
  5. 21 7月, 2007 2 次提交
  6. 20 7月, 2007 13 次提交
  7. 19 7月, 2007 2 次提交
  8. 18 7月, 2007 4 次提交
    • A
      sys_fallocate() implementation on i386, x86_64 and powerpc · 97ac7350
      Amit Arora 提交于
      fallocate() is a new system call being proposed here which will allow
      applications to preallocate space to any file(s) in a file system.
      Each file system implementation that wants to use this feature will need
      to support an inode operation called ->fallocate().
      Applications can use this feature to avoid fragmentation to certain
      level and thus get faster access speed. With preallocation, applications
      also get a guarantee of space for particular file(s) - even if later the
      the system becomes full.
      
      Currently, glibc provides an interface called posix_fallocate() which
      can be used for similar cause. Though this has the advantage of working
      on all file systems, but it is quite slow (since it writes zeroes to
      each block that has to be preallocated). Without a doubt, file systems
      can do this more efficiently within the kernel, by implementing
      the proposed fallocate() system call. It is expected that
      posix_fallocate() will be modified to call this new system call first
      and incase the kernel/filesystem does not implement it, it should fall
      back to the current implementation of writing zeroes to the new blocks.
      ToDos:
      1. Implementation on other architectures (other than i386, x86_64,
         and ppc). Patches for s390(x) and ia64 are already available from
         previous posts, but it was decided that they should be added later
         once fallocate is in the mainline. Hence not including those patches
         in this take.
      2. Changes to glibc,
         a) to support fallocate() system call
         b) to make posix_fallocate() and posix_fallocate64() call fallocate()
      Signed-off-by: NAmit Arora <aarora@in.ibm.com>
      97ac7350
    • A
      PTRACE_POKEDATA consolidation · f284ce72
      Alexey Dobriyan 提交于
      Identical implementations of PTRACE_POKEDATA go into generic_ptrace_pokedata()
      function.
      
      AFAICS, fix bug on xtensa where successful PTRACE_POKEDATA will nevertheless
      return EPERM.
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f284ce72
    • A
      PTRACE_PEEKDATA consolidation · 76647323
      Alexey Dobriyan 提交于
      Identical implementations of PTRACE_PEEKDATA go into generic_ptrace_peekdata()
      function.
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      76647323
    • P
      Report that kernel is tainted if there was an OOPS · bcdcd8e7
      Pavel Emelianov 提交于
      If the kernel OOPSed or BUGed then it probably should be considered as
      tainted.  Thus, all subsequent OOPSes and SysRq dumps will report the
      tainted kernel.  This saves a lot of time explaining oddities in the
      calltraces.
      Signed-off-by: NPavel Emelianov <xemul@openvz.org>
      Acked-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      [ Added parisc patch from Matthew Wilson  -Linus ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bcdcd8e7
  9. 17 7月, 2007 2 次提交
    • M
      powerpc: add missing DATA_DATA to powerpc · 3ae0aa9f
      Mathieu Desnoyers 提交于
      * Sam Ravnborg (sam@ravnborg.org) wrote:
      > From your patch it looks like I originally missed out
      > powerpc + xtensa when introducing DATA_DATA - would be nice if
      > you could fix that.
      >
      > 	Sam
      
      Add missing DATA_DATA in powerpc
      Signed-off-by: NMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Paul Mackerras <paulus@samba.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      --
       arch/powerpc/kernel/vmlinux.lds.S |    4 +++-
       1 file changed, 3 insertions(+), 1 deletion(-)
      3ae0aa9f
    • H
      generic bug: use show_regs() instead of dump_stack() · 608e2619
      Heiko Carstens 提交于
      The current generic bug implementation has a call to dump_stack() in case a
      WARN_ON(whatever) gets hit.  Since report_bug(), which calls dump_stack(),
      gets called from an exception handler we can do better: just pass the
      pt_regs structure to report_bug() and pass it to show_regs() in case of a
      warning.  This will give more debug informations like register contents,
      etc...  In addition this avoids some pointless lines that dump_stack()
      emits, since it includes a stack backtrace of the exception handler which
      is of no interest in case of a warning.  E.g.  on s390 the following lines
      are currently always present in a stack backtrace if dump_stack() gets
      called from report_bug():
      
       [<000000000001517a>] show_trace+0x92/0xe8)
       [<0000000000015270>] show_stack+0xa0/0xd0
       [<00000000000152ce>] dump_stack+0x2e/0x3c
       [<0000000000195450>] report_bug+0x98/0xf8
       [<0000000000016cc8>] illegal_op+0x1fc/0x21c
       [<00000000000227d6>] sysc_return+0x0/0x10
      Acked-by: NJeremy Fitzhardinge <jeremy@goop.org>
      Acked-by: NHaavard Skinnemoen <hskinnemoen@atmel.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Kyle McMartin <kyle@parisc-linux.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      608e2619
  10. 12 7月, 2007 2 次提交
    • A
      PCI: read revision ID by default · b8a3a521
      Auke Kok 提交于
      Currently there are 97 occurrences where drivers need the pci
      revision ID. We can do this once for all devices. Even the pci
      subsystem needs the revision several times for quirks. The extra
      u8 member pads out nicely in the pci_dev struct.
      Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      b8a3a521
    • M
      PCI: Make pcibios_add_platform_entries() return errors · a2cd52ca
      Michael Ellerman 提交于
      Currently pcibios_add_platform_entries() returns void, but could fail,
      so instead have it return an int and propagate errors up to
      pci_create_sysfs_dev_files().
      
      Fixes:
      arch/powerpc/kernel/pci_64.c: In function 'pcibios_add_platform_entries':
      arch/powerpc/kernel/pci_64.c:878: warning: ignoring return value of
      	'device_create_file', declared with attribute warn_unused_result
      arch/powerpc/kernel/pci_32.c: In function 'pcibios_add_platform_entries':
        arch/powerpc/kernel/pci_32.c:1043: warning: ignoring return value of
      	'device_create_file', declared with attribute warn_unused_result
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      a2cd52ca
  11. 11 7月, 2007 1 次提交
  12. 10 7月, 2007 7 次提交