1. 28 4月, 2006 3 次提交
  2. 22 4月, 2006 1 次提交
  3. 21 4月, 2006 4 次提交
  4. 20 4月, 2006 1 次提交
  5. 15 4月, 2006 1 次提交
  6. 14 4月, 2006 2 次提交
  7. 11 4月, 2006 2 次提交
    • J
      [PATCH] splice: add support for sys_tee() · 70524490
      Jens Axboe 提交于
      Basically an in-kernel implementation of tee, which uses splice and the
      pipe buffers as an intelligent way to pass data around by reference.
      
      Where the user space tee consumes the input and produces a stdout and
      file output, this syscall merely duplicates the data inside a pipe to
      another pipe. No data is copied, the output just grabs a reference to the
      input pipe data.
      Signed-off-by: NJens Axboe <axboe@suse.de>
      70524490
    • Y
      [PATCH] Configurable NODES_SHIFT · c80d79d7
      Yasunori Goto 提交于
      Current implementations define NODES_SHIFT in include/asm-xxx/numnodes.h for
      each arch.  Its definition is sometimes configurable.  Indeed, ia64 defines 5
      NODES_SHIFT values in the current git tree.  But it looks a bit messy.
      
      SGI-SN2(ia64) system requires 1024 nodes, and the number of nodes already has
      been changeable by config.  Suitable node's number may be changed in the
      future even if it is other architecture.  So, I wrote configurable node's
      number.
      
      This patch set defines just default value for each arch which needs multi
      nodes except ia64.  But, it is easy to change to configurable if necessary.
      
      On ia64 the number of nodes can be already configured in generic ia64 and SN2
      config.  But, NODES_SHIFT is defined for DIG64 and HP'S machine too.  So, I
      changed it so that all platforms can be configured via CONFIG_NODES_SHIFT.  It
      would be simpler.
      
      See also: http://marc.theaimsgroup.com/?l=linux-kernel&m=114358010523896&w=2Signed-off-by: NYasunori Goto <y-goto@jp.fujitsu.com>
      Cc: Hirokazu Takata <takata@linux-m32r.org>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Andi Kleen <ak@muc.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Jack Steiner <steiner@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c80d79d7
  8. 08 4月, 2006 3 次提交
  9. 07 4月, 2006 3 次提交
  10. 05 4月, 2006 2 次提交
  11. 01 4月, 2006 1 次提交
  12. 31 3月, 2006 4 次提交
    • Z
      [IA64] Export cpu cache info by sysfs · f1918005
      Zhang, Yanmin 提交于
      The patch exports 8 attributes of cpu cache info under
      /sys/devices/system/cpu/cpuX/cache/indexX:
      1) level
      2) type
      3) coherency_line_size
      4) ways_of_associativity
      5) size
      6) shared_cpu_map
      7) attributes
      8) number_of_sets: number_of_sets=size/ways_of_associativity/coherency_line_size.
      Signed-off-by: NZhang Yanmin <yanmin.zhang@intel.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      f1918005
    • J
      [PATCH] Introduce sys_splice() system call · 5274f052
      Jens Axboe 提交于
      This adds support for the sys_splice system call. Using a pipe as a
      transport, it can connect to files or sockets (latter as output only).
      
      From the splice.c comments:
      
         "splice": joining two ropes together by interweaving their strands.
      
         This is the "extended pipe" functionality, where a pipe is used as
         an arbitrary in-memory buffer. Think of a pipe as a small kernel
         buffer that you can use to transfer data from one end to the other.
      
         The traditional unix read/write is extended with a "splice()" operation
         that transfers data buffers to or from a pipe buffer.
      
         Named by Larry McVoy, original implementation from Linus, extended by
         Jens to support splicing to files and fixing the initial implementation
         bugs.
      Signed-off-by: NJens Axboe <axboe@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      5274f052
    • B
      [IA64] ioremap() should prefer WB over UC · c1c57d76
      Bjorn Helgaas 提交于
      efi_memmap_init() collects full granules of WB memory, without
      regard for whether they also support UC.  So in order for ioremap()
      to work for main memory, it must prefer WB mappings when possible.
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      c1c57d76
    • J
      [IA64] Add __mca_table to the DISCARD list in gate.lds · 3283a67d
      Jes Sorensen 提交于
      Add __mca_table to the DISCARD list for the gate.lds linker script to
      avoid broken linker references when linking the final vmlinux file.
      
      Also add comment to include/asm-ia64/asmmacros.h to avoid anyone else
      hitting this problem in the future.
      
      Credits to James Bottomley <James.Bottomley@SteelEye.com> for spotting
      the DISCARD list in gate.lds.S
      Signed-off-by: NJes Sorensen <jes@sgi.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      3283a67d
  13. 30 3月, 2006 1 次提交
  14. 29 3月, 2006 4 次提交
  15. 28 3月, 2006 6 次提交
    • H
      [IA64-SGI] sn_hwperf use of num_online_cpus() · e6ef0fca
      hawkes@sgi.com 提交于
      Eliminate an unnecessary -- and flawed -- use of the expensive
      num_online_cpus().
      Signed-off-by: NJohn Hawkes <hawkes@sgi.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      e6ef0fca
    • C
      [IA64] optimize flush_tlb_range on large numa box · ce9eed5a
      Chen, Kenneth W 提交于
      It was reported from a field customer that global spin lock ptcg_lock
      is giving a lot of grief on munmap performance running on a large numa
      machine.  What appears to be a problem coming from flush_tlb_range(),
      which currently unconditionally calls platform_global_tlb_purge().
      For some of the numa machines in existence today, this function is
      mapped into ia64_global_tlb_purge(), which holds ptcg_lock spin lock
      while executing ptc.ga instruction.
      
      Here is a patch that attempt to avoid global tlb purge whenever
      possible.  It will use local tlb purge as much as possible. Though the
      conditions to use local tlb purge is pretty restrictive.  One of the
      side effect of having flush tlb range instruction on ia64 is that
      kernel don't get a chance to clear out cpu_vm_mask.  On ia64, this mask
      is sticky and it will accumulate if process bounces around.  Thus
      diminishing the possible use of ptc.l.  Thoughts?
      Signed-off-by: NKen Chen <kenneth.w.chen@intel.com>
      Acked-by: NJack Steiner <steiner@sgi.com>
      Acked-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      ce9eed5a
    • Z
      [IA64] lazy_mmu_prot_update needs to be aware of huge pages · 5e48521e
      Zhang, Yanmin 提交于
      Function lazy_mmu_prot_update is also used on huge pages when it is called
      by set_huge_ptep_writable, but it isn't aware of huge pages.
      Signed-off-by: NZhang Yanmin <yanmin.zhang@intel.com>
      Acked-by: NKen Chen <kenneth.w.chen@intel.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      5e48521e
    • A
      [PATCH] Notifier chain update: API changes · e041c683
      Alan Stern 提交于
      The kernel's implementation of notifier chains is unsafe.  There is no
      protection against entries being added to or removed from a chain while the
      chain is in use.  The issues were discussed in this thread:
      
          http://marc.theaimsgroup.com/?l=linux-kernel&m=113018709002036&w=2
      
      We noticed that notifier chains in the kernel fall into two basic usage
      classes:
      
      	"Blocking" chains are always called from a process context
      	and the callout routines are allowed to sleep;
      
      	"Atomic" chains can be called from an atomic context and
      	the callout routines are not allowed to sleep.
      
      We decided to codify this distinction and make it part of the API.  Therefore
      this set of patches introduces three new, parallel APIs: one for blocking
      notifiers, one for atomic notifiers, and one for "raw" notifiers (which is
      really just the old API under a new name).  New kinds of data structures are
      used for the heads of the chains, and new routines are defined for
      registration, unregistration, and calling a chain.  The three APIs are
      explained in include/linux/notifier.h and their implementation is in
      kernel/sys.c.
      
      With atomic and blocking chains, the implementation guarantees that the chain
      links will not be corrupted and that chain callers will not get messed up by
      entries being added or removed.  For raw chains the implementation provides no
      guarantees at all; users of this API must provide their own protections.  (The
      idea was that situations may come up where the assumptions of the atomic and
      blocking APIs are not appropriate, so it should be possible for users to
      handle these things in their own way.)
      
      There are some limitations, which should not be too hard to live with.  For
      atomic/blocking chains, registration and unregistration must always be done in
      a process context since the chain is protected by a mutex/rwsem.  Also, a
      callout routine for a non-raw chain must not try to register or unregister
      entries on its own chain.  (This did happen in a couple of places and the code
      had to be changed to avoid it.)
      
      Since atomic chains may be called from within an NMI handler, they cannot use
      spinlocks for synchronization.  Instead we use RCU.  The overhead falls almost
      entirely in the unregister routine, which is okay since unregistration is much
      less frequent that calling a chain.
      
      Here is the list of chains that we adjusted and their classifications.  None
      of them use the raw API, so for the moment it is only a placeholder.
      
        ATOMIC CHAINS
        -------------
      arch/i386/kernel/traps.c:		i386die_chain
      arch/ia64/kernel/traps.c:		ia64die_chain
      arch/powerpc/kernel/traps.c:		powerpc_die_chain
      arch/sparc64/kernel/traps.c:		sparc64die_chain
      arch/x86_64/kernel/traps.c:		die_chain
      drivers/char/ipmi/ipmi_si_intf.c:	xaction_notifier_list
      kernel/panic.c:				panic_notifier_list
      kernel/profile.c:			task_free_notifier
      net/bluetooth/hci_core.c:		hci_notifier
      net/ipv4/netfilter/ip_conntrack_core.c:	ip_conntrack_chain
      net/ipv4/netfilter/ip_conntrack_core.c:	ip_conntrack_expect_chain
      net/ipv6/addrconf.c:			inet6addr_chain
      net/netfilter/nf_conntrack_core.c:	nf_conntrack_chain
      net/netfilter/nf_conntrack_core.c:	nf_conntrack_expect_chain
      net/netlink/af_netlink.c:		netlink_chain
      
        BLOCKING CHAINS
        ---------------
      arch/powerpc/platforms/pseries/reconfig.c:	pSeries_reconfig_chain
      arch/s390/kernel/process.c:		idle_chain
      arch/x86_64/kernel/process.c		idle_notifier
      drivers/base/memory.c:			memory_chain
      drivers/cpufreq/cpufreq.c		cpufreq_policy_notifier_list
      drivers/cpufreq/cpufreq.c		cpufreq_transition_notifier_list
      drivers/macintosh/adb.c:		adb_client_list
      drivers/macintosh/via-pmu.c		sleep_notifier_list
      drivers/macintosh/via-pmu68k.c		sleep_notifier_list
      drivers/macintosh/windfarm_core.c	wf_client_list
      drivers/usb/core/notify.c		usb_notifier_list
      drivers/video/fbmem.c			fb_notifier_list
      kernel/cpu.c				cpu_chain
      kernel/module.c				module_notify_list
      kernel/profile.c			munmap_notifier
      kernel/profile.c			task_exit_notifier
      kernel/sys.c				reboot_notifier_list
      net/core/dev.c				netdev_chain
      net/decnet/dn_dev.c:			dnaddr_chain
      net/ipv4/devinet.c:			inetaddr_chain
      
      It's possible that some of these classifications are wrong.  If they are,
      please let us know or submit a patch to fix them.  Note that any chain that
      gets called very frequently should be atomic, because the rwsem read-locking
      used for blocking chains is very likely to incur cache misses on SMP systems.
      (However, if the chain's callout routines may sleep then the chain cannot be
      atomic.)
      
      The patch set was written by Alan Stern and Chandra Seetharaman, incorporating
      material written by Keith Owens and suggestions from Paul McKenney and Andrew
      Morton.
      
      [jes@sgi.com: restructure the notifier chain initialization macros]
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NChandra Seetharaman <sekharan@us.ibm.com>
      Signed-off-by: NJes Sorensen <jes@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e041c683
    • K
      [PATCH] for_each_online_pgdat: remove sorting pgdat · 3571761f
      KAMEZAWA Hiroyuki 提交于
      Because pgdat_list was linked to pgdat_list in *reverse* order, (By default)
      some of arch has to sort it by themselves.
      
      for_each_pgdat has gone..for_each_online_pgdat() uses node_online_map, which
      doesn't need to be sorted.
      
      This patch removes codes for sorting pgdat.
      Signed-off-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3571761f
    • K
      [PATCH] for_each_online_pgdat: renaming for_each_pgdat · ec936fc5
      KAMEZAWA Hiroyuki 提交于
      Replace for_each_pgdat() with for_each_online_pgdat().
      Signed-off-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ec936fc5
  16. 27 3月, 2006 2 次提交