]> git.hungrycats.org Git - linux/log
linux
22 years ago[MMC] Use raw CID rather than decoded CID
Russell King [Sat, 18 Sep 2004 11:50:57 +0000 (12:50 +0100)]
[MMC] Use raw CID rather than decoded CID

Save the raw CID information, and use this to match cards
with their corresponding mmc_card structure.  Different
protocol revisions have different CID formats.

22 years agoMerge http://lia64.bkbits.net/linux-ia64-release-2.6.9
Linus Torvalds [Thu, 16 Sep 2004 08:51:26 +0000 (01:51 -0700)]
Merge http://lia64.bkbits.net/linux-ia64-release-2.6.9
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/sgi
Tony Luck [Thu, 16 Sep 2004 22:26:36 +0000 (22:26 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/sgi
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years ago[IA64] SGI Altix hardware performance monitoring API
Mark Goodwin [Thu, 16 Sep 2004 22:25:43 +0000 (22:25 +0000)]
[IA64] SGI Altix hardware performance monitoring API

The SGI Altix PROM supports a SAL call for performance monitoring and for
exporting NUMA topology. We need this in community kernels for diagnostic
and performance tools to use, especially on very large machines.

This patch registers a dynamic misc device "sn_hwperf" that supports an
ioctl interface for reading/writing memory mapped registers on Altix
nodes and routers via the new SAL call. It also creates a read-only
procfs file "/proc/sgi_sn/sn_topology" to export NUMA topology and Altix
hardware inventory.

> What tools are using this?

Performance Co-Pilot http://oss.sgi.com/projects/pcp  in particular,
pmshub, shubstats and linkstat. Numerous other users include anything
that needs knowledge of numa topology/interconnect in order to perform
well, e.g. mpt. BTW I have not exported any API functions .. at this
point I don't think we need any modules to call the API.

Signed-off-by: Mark Goodwin <markgw@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/Linus
Tony Luck [Thu, 16 Sep 2004 20:26:04 +0000 (20:26 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/Linus
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years ago[IA64] Kconfig: Add help text for IA64_SGI_SN2 config option.
Jesse Barnes [Thu, 16 Sep 2004 19:57:29 +0000 (19:57 +0000)]
[IA64] Kconfig: Add help text for IA64_SGI_SN2 config option.

Mark Goodwin suggested that we document our platform a bit.  This patch adds
help text for the sn2 specific kernel option.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IA64] ar.k[56] have virtual addresses already, don't convert
Keith Owens [Thu, 16 Sep 2004 19:11:00 +0000 (19:11 +0000)]
[IA64] ar.k[56] have virtual addresses already, don't convert

r.k[56] used to contain physical addresses but now contain virtual
addresses.  There are code remnants which still believe that they are
physical and "convert" ar.k[56] to virtual.  This breaks when current
is not in region 7 (e.g. the idle task on cpu 0).

Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agoMerge http://linux-mh.bkbits.net/bluetooth-2.6
David S. Miller [Thu, 16 Sep 2004 06:29:07 +0000 (23:29 -0700)]
Merge http://linux-mh.bkbits.net/bluetooth-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[NETFILTER]: port physdev to ip6tables
Bart De Schuymer [Thu, 16 Sep 2004 06:19:01 +0000 (23:19 -0700)]
[NETFILTER]: port physdev to ip6tables

Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PKT_SCHED]: Fix slab corruption in cbq_destroy
Thomas Graf [Thu, 16 Sep 2004 06:13:12 +0000 (23:13 -0700)]
[PKT_SCHED]: Fix slab corruption in cbq_destroy

Fixes slab corruption in cbq_destroy. cbq_destroy_filters and
qdisc_put_rtab(q->link.R_tab) are already called in cbq_destroy_class.
The latter lead to a slab corruption due to repeated freeing of
q->link.R_tab because q->link is part of q->classes. Problem introduced
in 1.21.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPSEC]: Implement DSCP decapsulation
Herbert Xu [Thu, 16 Sep 2004 06:12:04 +0000 (23:12 -0700)]
[IPSEC]: Implement DSCP decapsulation

This patch adds DSCP decapsulation for IPsec.  This is enabled by
a per-state flag which is off by default.  Leaving it off by default
maintains compatibility and is also good for performance reasons.

I decided to not implement a toggle on the output path since not
encapsulating the DSCP can and should be done by netfilter.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV6]: Kill ip6_get_dsfield
Herbert Xu [Thu, 16 Sep 2004 06:10:18 +0000 (23:10 -0700)]
[IPV6]: Kill ip6_get_dsfield

This patch kills the duplicate implementation of ip6_get_dsfield in
inet_ecn.h.  It now uses ipv6_get_dsfield from dsfield.h instead.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Thu, 16 Sep 2004 06:05:52 +0000 (23:05 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[IPV6]: NDISC: ensure responding to NS without link-layer information
Hideaki Yoshifuji [Thu, 16 Sep 2004 05:57:58 +0000 (22:57 -0700)]
[IPV6]: NDISC: ensure responding to NS without link-layer information

When sending NA in response to NS, we may not know the
link-layer address for the destination of the NA
since unicast NS is not required to include its link-layer information.
In this case, we first need to resolve the link-layer address.
(RFC 2461 7.2.4)

We now create neighbour entry for the destination
and link-layer information will be automatically solved
in the output path.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SUNGEM]: Add netpoll support.
Eric Lemoine [Thu, 16 Sep 2004 05:56:49 +0000 (22:56 -0700)]
[SUNGEM]: Add netpoll support.

Signed-off-by: Eric Lemoine <eric.lemoine@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PATCH] matroxfb update + sparse annotations
Petr Vandrovec [Thu, 16 Sep 2004 05:11:21 +0000 (22:11 -0700)]
[PATCH] matroxfb update + sparse annotations

This change switches matroxfb on x86 and x86_64 from dereferencing
pointers to {read,write}[bwl], as __pa() are gone from them, and so gcc
does not need an additional register for preserving address between
consecutive {read,write}[bwl].

Then it switches only supported architecture left (ppc/ppc64/arm) from
dereferencing pointers to __raw_{read,write}[bwl].

Third part is fixing sparse complaints: add __iomem here and there, and
switch one 1bit bitfield from int to unsigned int.

After this there should be no sparse complaints in matroxfb.

Signed-off-by: Petr Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix compat_do_execve stack usage
Alex Williamson [Thu, 16 Sep 2004 04:50:39 +0000 (21:50 -0700)]
[PATCH] fix compat_do_execve stack usage

Looks like a couple struct to pointer conversions were missed.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix ip_nat_ftp registration when no ports= arg
Rusty Russell [Thu, 16 Sep 2004 00:13:57 +0000 (17:13 -0700)]
[PATCH] Fix ip_nat_ftp registration when no ports= arg

FTP NAT module doesn't register anything with no args.  Oops.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] back out siginfo_t.si_rusage from waitid changes
Roland McGrath [Thu, 16 Sep 2004 00:12:54 +0000 (17:12 -0700)]
[PATCH] back out siginfo_t.si_rusage from waitid changes

As I explained in the waitid patches, I added the si_rusage field to
siginfo_t with the idea of having the siginfo_t waitid fills in contain all
the information that wait4 or any such call could ever tell you.  Nowhere
in POSIX nor anywhere else specifies this field in siginfo_t.

When Ulrich and I hashed out the system call interface we wanted, we looked
at siginfo_t and decided there was plenty of space to throw in si_rusage.
Well, it turns out we didn't check the 64-bit platforms.  There struct
rusage is ridiculously large (lots of longs for things that are never in a
million years going to hit 2^32), and my changes bumped up the size of
siginfo_t.  Changing that size is more trouble than it's worth.

This patch reverts the changes to the siginfo_t structure types,
and no longer provides the rusage details in SIGCHLD signal data.
Instead, I added a fifth argument to the waitid system call to fill in rusage.

waitid is the name of the POSIX function with four arguments.  It might
make sense to rename the system call `waitsys' to follow SGI's system call
with the same arguments, or `wait5' in the mindless tradition.  But, feh.
I just added the argument to sys_waitid, rather than worrying about
changing the name in all the tables (and choosing a new stupid name).

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://gkernel.bkbits.net/libata-2.6
Linus Torvalds [Thu, 16 Sep 2004 00:09:54 +0000 (17:09 -0700)]
Merge bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://drm.bkbits.net/drm-2.6
Linus Torvalds [Thu, 16 Sep 2004 00:06:56 +0000 (17:06 -0700)]
Merge bk://drm.bkbits.net/drm-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agodrm: actually __set_current_state is more correct
Dave Airlie [Fri, 17 Sep 2004 09:28:42 +0000 (19:28 +1000)]
drm: actually __set_current_state is more correct

Alan suggested using __set_current_state as being more correct for
the DRM so do that.

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agodrm: use set_current_state instead of direct assignment
Dave Airlie [Fri, 17 Sep 2004 07:15:38 +0000 (17:15 +1000)]
drm: use set_current_state instead of direct assignment

Suggested-by: Nishanth Aravamudan <nacc@us.ibm.com>
Approved-by: Dave Airlie <airlied@linux.ie>
22 years agodrm: add pci_enable_device
Dave Airlie [Fri, 17 Sep 2004 07:09:37 +0000 (17:09 +1000)]
drm: add pci_enable_device

Add pci_enable_device for any PCI device we want to use.

From: Bjorn Helgaas <bjorn.helgaas@hp.com>
Approved-by: David Airlie <airlied@linux.ie>
22 years agodrm: fix bug introduced in the macro removal
Dave Airlie [Fri, 17 Sep 2004 05:57:18 +0000 (15:57 +1000)]
drm: fix bug introduced in the macro removal

This caused issues with a PCI radeon card.

From: Jon Smirl
Approved-by: Dave Airlie <airlied@linux.ie>
22 years agoMerge bk://kernel.bkbits.net/vojtech/input
Linus Torvalds [Thu, 16 Sep 2004 00:04:04 +0000 (17:04 -0700)]
Merge bk://kernel.bkbits.net/vojtech/input
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge suse.cz:/data2/bk/linus into suse.cz:/data2/bk/input
Vojtech Pavlik [Thu, 16 Sep 2004 17:10:08 +0000 (19:10 +0200)]
Merge suse.cz:/data2/bk/linus into suse.cz:/data2/bk/input

22 years ago[IA64-SGI]: fix `qw' might be used uninitialized warning
Jesse Barnes [Wed, 15 Sep 2004 23:02:18 +0000 (23:02 +0000)]
[IA64-SGI]: fix `qw' might be used uninitialized warning

The compiler has no way of knowing whether nentries will be greater than 0, so
it was generating a warning that qw might be used uninitialized.  Fix it by
explicitly setting it to 0.  Cc'ing Brian in case he has an internal version
he'd like to keep in sync.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[libata] add hook, and export functions needed for sata2 drivers
Jeff Garzik [Wed, 15 Sep 2004 22:45:22 +0000 (18:45 -0400)]
[libata] add hook, and export functions needed for sata2 drivers

* add dev_select hook, and default/noop implementations
* export ata_dev_classify
* fix a couple bugs that cropped up when building with
  ATA_VERBOSE_DEBUG
* export __sata_phy_reset, a variant that does not call
  ata_bus_reset

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/trivial
Tony Luck [Wed, 15 Sep 2004 22:01:41 +0000 (22:01 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/trivial
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years ago[IA64] make INIT dump work again
Tony Luck [Wed, 15 Sep 2004 21:34:47 +0000 (21:34 +0000)]
[IA64] make INIT dump work again

current can be in region 5, use 'tpa' to convert to physical

Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years ago[IPV4]: More fib_hash cleanups.
David S. Miller [Wed, 15 Sep 2004 06:55:32 +0000 (23:55 -0700)]
[IPV4]: More fib_hash cleanups.

Kill fn_key_eq and fn_key_leq

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Fix tcp_find_option() bug properly.
David S. Miller [Wed, 15 Sep 2004 03:20:55 +0000 (20:20 -0700)]
[NETFILTER]: Fix tcp_find_option() bug properly.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Use hlist_for_each_entry_safe in fib_hash_move.
David S. Miller [Wed, 15 Sep 2004 02:18:46 +0000 (19:18 -0700)]
[IPV4]: Use hlist_for_each_entry_safe in fib_hash_move.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Basic cleanups in fib_hash.c
David S. Miller [Wed, 15 Sep 2004 02:16:19 +0000 (19:16 -0700)]
[IPV4]: Basic cleanups in fib_hash.c

1) Kill special key, prefix, and hash index types.
   They make the code less readable and maintainable.
2) __inline__ --> inline

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Fix off-by-one test error in ip_tables.c
David S. Miller [Wed, 15 Sep 2004 01:34:58 +0000 (18:34 -0700)]
[NETFILTER]: Fix off-by-one test error in ip_tables.c

Bug noticed by Ysauyuki Kozakai.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SUNGEM]: LLTX support
Eric Lemoine [Wed, 15 Sep 2004 01:18:16 +0000 (18:18 -0700)]
[SUNGEM]: LLTX support

Signed-off-by: Eric Lemoine <eric.lemoine@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SUNGEM]: Add tx_lock
Eric Lemoine [Wed, 15 Sep 2004 01:16:44 +0000 (18:16 -0700)]
[SUNGEM]: Add tx_lock

Using tx_lock in SunGEM makes the driver logic in conformance
with tg3 and e1000, easing maintainance.

Signed-off-by: Eric Lemoine <eric.lemoine@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years agoMerge bk://are.twiddle.net/axp-2.6/
Linus Torvalds [Wed, 15 Sep 2004 00:35:19 +0000 (17:35 -0700)]
Merge bk://are.twiddle.net/axp-2.6/
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] reduce [compat_]do_execve stack usage
Denis Vlasenko [Wed, 15 Sep 2004 00:25:30 +0000 (17:25 -0700)]
[PATCH] reduce [compat_]do_execve stack usage

Allocating the 'struct linux_binprm' on the stack chews up too much
stackspace.

Just kmalloc it instead.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[ALPHA] Implement _raw_write_trylock.
Richard Henderson [Tue, 14 Sep 2004 22:17:25 +0000 (15:17 -0700)]
[ALPHA] Implement _raw_write_trylock.

22 years ago[ALPHA] Minor updates for cpumask_t.
Richard Henderson [Tue, 14 Sep 2004 22:16:14 +0000 (15:16 -0700)]
[ALPHA] Minor updates for cpumask_t.

22 years agoMerge pobox.com:/spare/repo/linux-2.6
Jeff Garzik [Tue, 14 Sep 2004 18:57:20 +0000 (14:57 -0400)]
Merge pobox.com:/spare/repo/linux-2.6
into pobox.com:/spare/repo/libata-2.6

22 years ago[libata sata_svw] race condition fix, new device support
ananth@broadcom.com [Tue, 14 Sep 2004 18:25:41 +0000 (14:25 -0400)]
[libata sata_svw] race condition fix, new device support

* address race condition WRT order of DMA-start and ATA command issue
  (see code comment for more details)

* Add support for Frodo 4/8

22 years ago[libata] minor comment updates, preparing for iomap merge
Jeff Garzik [Tue, 14 Sep 2004 18:23:54 +0000 (14:23 -0400)]
[libata] minor comment updates, preparing for iomap merge

22 years ago[IPV6]: Missing xfrm_lookup() in icmpv6_{send,echo_reply}()
Hideaki Yoshifuji [Tue, 14 Sep 2004 15:32:27 +0000 (08:32 -0700)]
[IPV6]: Missing xfrm_lookup() in icmpv6_{send,echo_reply}()

net/ipv6/icmp.c was not converted in xfrm_lookup() extraction patch.
This patch converts it; adding the missing call to xfrm_lookup in
icmpv6_{send,echo_reply}().

Signed-off-by: Kazunori Miyazawa <kazunori@miyazawa.org>
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
SIgned-off-by: David S. Miller <davem@davemloft.net>
22 years ago[CRYPTO]: Zero out tfm before freeing in crypto_free_tfm().
David S. Miller [Tue, 14 Sep 2004 15:21:40 +0000 (08:21 -0700)]
[CRYPTO]: Zero out tfm before freeing in crypto_free_tfm().

Based upon discussions with Ulrich Kuehn
(ukuehn@acm.org)

Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[TG3]: Update driver version and reldate.
David S. Miller [Tue, 14 Sep 2004 15:15:26 +0000 (08:15 -0700)]
[TG3]: Update driver version and reldate.

22 years ago[TG3]: Recognize all onboard Sun variants, not just 5704.
David S. Miller [Tue, 14 Sep 2004 15:10:26 +0000 (08:10 -0700)]
[TG3]: Recognize all onboard Sun variants, not just 5704.

Based upon a report from Matthias Merz.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[TG3]: Fix thinko in 5704 fibre hw autoneg code.
Mike Waychison [Tue, 14 Sep 2004 15:06:01 +0000 (08:06 -0700)]
[TG3]: Fix thinko in 5704 fibre hw autoneg code.

Signed-off-by: Mike Waychison <michael.waychison@sun.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Make fib_semantics algorithms scale better.
David S. Miller [Tue, 14 Sep 2004 15:03:10 +0000 (08:03 -0700)]
[IPV4]: Make fib_semantics algorithms scale better.

A singly linked list was previously used to
do fib_info object lookup for various actions
in the routing code.  This does not scale very
well with many devices and even a moderate number
of routes.  This was noted by Benjamin Lahaise.

To fix all of this we use 3 hash tables, two of
which grow dynamically as the number fib_info
objects increases while the final one is fixes in
size.

The statically sized table hashes on device index.
This is used for fib_sync_down, fib_sync_up, and
ip_fib_check_default.

The first dynamically sized table is keyed on
protocol, prefsrc, and priority.  This is used
by fib_create_info() to look for existing fib_info
objects matching the new one being constructed.

The last dynamically sized table is keyed on
the preferred source of the route if it has one
specified.  This is used by fib_sync_down when
a local address disappears.

There are still some scalability problems for
Bens test case in fib_hash.c and I will try to
attack those next.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Convert RTM+_* to enum.
Herbert Xu [Tue, 14 Sep 2004 14:23:34 +0000 (07:23 -0700)]
[NET]: Convert RTM+_* to enum.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years agoFix up typo in ppc64 eeh ioport_map() code.
Linus Torvalds [Tue, 14 Sep 2004 10:40:07 +0000 (03:40 -0700)]
Fix up typo in ppc64 eeh ioport_map() code.

Noticed by BenH, happily harmless (nothing that uses that
code has been committed yet, and PIO seems to be pretty much
unused on at least the Apple G5 machines: all the normal
hardware is set up purely for MMIO, to the point that I
couldn't even test this thing).

22 years agoAdd support for "string" ioread/iowrite.
Linus Torvalds [Tue, 14 Sep 2004 09:28:53 +0000 (02:28 -0700)]
Add support for "string" ioread/iowrite.

Things like SATA use this for data transfer.

Also export the iomap routines on ppc64.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Tue, 14 Sep 2004 08:38:29 +0000 (01:38 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM PATCH] 2094/1: don't lose the system timer after resuming from sleep on SA11x0 and
Nicolas Pitre [Tue, 14 Sep 2004 10:54:04 +0000 (11:54 +0100)]
[ARM PATCH] 2094/1: don't lose the system timer after resuming from sleep on SA11x0 and
 PXA2xx

Patch from Nicolas Pitre

Let's make sure OSCR doesn't end up to be restored with a value
past OSMR0 otherwise the system timer won't start ticking until
OSCR wraps around (aprox 17 min.

Also set OSCR _after_ OIER is restored to avoid matching when
corresponding match interrupt is masked out.

Signed-off-by: Nicolas Pitre
22 years ago[IPV4]: Use list.h facilities for fib_info_list.
David S. Miller [Tue, 14 Sep 2004 07:11:23 +0000 (00:11 -0700)]
[IPV4]: Use list.h facilities for fib_info_list.

Do not use a by-hand list implementation.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV6]: Do not export rt6_dflt_{pointer,lock}.
Hideaki Yoshifuji [Tue, 14 Sep 2004 07:03:47 +0000 (00:03 -0700)]
[IPV6]: Do not export rt6_dflt_{pointer,lock}.

Modify them using exported procedural interfaces instead.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by; David S. Miller <davem@davemloft.net>

22 years agoMerge bk://kernel.bkbits.net/acme/net-2.6
David S. Miller [Tue, 14 Sep 2004 06:57:17 +0000 (23:57 -0700)]
Merge bk://kernel.bkbits.net/acme/net-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years agoppc64: first cut at new iomap interfaces.
Linus Torvalds [Tue, 14 Sep 2004 03:38:50 +0000 (20:38 -0700)]
ppc64: first cut at new iomap interfaces.

Only the EEH case (pSeries) handled for now.

22 years agoUpdate shipped version of zconfig.tab.c to match bison/yacc file.
Linus Torvalds [Tue, 14 Sep 2004 02:36:53 +0000 (19:36 -0700)]
Update shipped version of zconfig.tab.c to match bison/yacc file.

22 years ago[PATCH] properly fix double current_menu
Roman Zippel [Tue, 14 Sep 2004 02:33:17 +0000 (19:33 -0700)]
[PATCH] properly fix double current_menu

The two current_menu variables are really two separate variables, so keep
them separate.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix OProfile locking
John Levon [Tue, 14 Sep 2004 02:32:22 +0000 (19:32 -0700)]
[PATCH] fix OProfile locking

This makes OProgile use get_task_mm() as discussed.  It also fixes up
Anton's previous patch.  Zwane's soaked this patch all night w/o
problems.

22 years agoFix up stupid last-minute edit of fork cleanup.
Linus Torvalds [Tue, 14 Sep 2004 02:17:49 +0000 (19:17 -0700)]
Fix up stupid last-minute edit of fork cleanup.

I'm a retard.

22 years agofivafb; Increase DDC/CI timeouts
Linus Torvalds [Tue, 14 Sep 2004 02:15:35 +0000 (19:15 -0700)]
fivafb; Increase DDC/CI timeouts

Nicolas Boichat reports that his monitor needs the slower
i2c bus timings. These values also match atyfb and the
original ones.

22 years agoFix fork failure case.
Linus Torvalds [Tue, 14 Sep 2004 02:04:35 +0000 (19:04 -0700)]
Fix fork failure case.

It would clear the segment registers in the parent, which
wasn't really intentional. Noticed by Andries Brouwer.

22 years ago[PATCH] i386: elf_read_implies_exec() fixup
Ingo Molnar [Tue, 14 Sep 2004 01:54:40 +0000 (18:54 -0700)]
[PATCH] i386: elf_read_implies_exec() fixup

The final ia64 related cleanup to elf_read_implies_exec() seems to have
broken it.  The effect is that the READ_IMPLIES_EXEC flag is never set
for !pt_gnu_stack binaries!

That's a bit more secure than we need to be, and might break some legacy
app that doesn't expect it.

22 years agoMerge bk://are.twiddle.net/axp-2.6
Linus Torvalds [Tue, 14 Sep 2004 01:42:25 +0000 (18:42 -0700)]
Merge bk://are.twiddle.net/axp-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Tue, 14 Sep 2004 01:39:38 +0000 (18:39 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] Fix ABI in set_mempolicy()
Andi Kleen [Tue, 14 Sep 2004 01:38:02 +0000 (18:38 -0700)]
[PATCH] Fix ABI in set_mempolicy()

Fix ABI in set_mempolicy() that got broken by an earlier change.

Add a check for very big input values and prevent excessive looping in the
kernel.

Cc: Paul "nyer, nyer, your mother wears combat boots!" Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 14 Sep 2004 01:26:31 +0000 (18:26 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM PATCH] 2093/1: S3C2410 - remove un-necessary resource from NAND
Ben Dooks [Tue, 14 Sep 2004 00:52:16 +0000 (01:52 +0100)]
[ARM PATCH] 2093/1: S3C2410 - remove un-necessary resource from NAND

Patch from Ben Dooks

Removed resource description left by copying error

Thanks to Klaus Fetscher for pointing this out.

Signed-off-by: Ben Dooks
22 years ago[PATCH] netpoll endian fixes
Matt Mackall [Tue, 14 Sep 2004 00:52:00 +0000 (17:52 -0700)]
[PATCH] netpoll endian fixes

Correct wrong ip header in netpoll_send_udp.

Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mark amiflop non-unloadable
Christoph Hellwig [Tue, 14 Sep 2004 00:51:48 +0000 (17:51 -0700)]
[PATCH] mark amiflop non-unloadable

As it's using the obsolete MOD_{INC,DEC}_USE_COUNT it's implicitly locked
already, but let's remove them and make it explicit so these macros can go
away completely without breaking m68k compile.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] <asm/softirq.h> crept back in h8300 and sh64
Christoph Hellwig [Tue, 14 Sep 2004 00:51:36 +0000 (17:51 -0700)]
[PATCH] <asm/softirq.h> crept back in h8300 and sh64

<asm/softirq.h> went away in 2.5, but new ports keep adding instances again
and again.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] BSD disklabel: handle more than 8 partitions
Roland McGrath [Tue, 14 Sep 2004 00:51:24 +0000 (17:51 -0700)]
[PATCH] BSD disklabel: handle more than 8 partitions

NetBSD allows 16 partitions, not just 8.  This patch both ups the number,
and makes the recognition code tell you if the count in the disklabel
exceeds the number supported by the kernel.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] small <linux/hardirq.h> tweaks
Christoph Hellwig [Tue, 14 Sep 2004 00:51:13 +0000 (17:51 -0700)]
[PATCH] small <linux/hardirq.h> tweaks

- I misspelled CONFIG_PREEMPT CONFIG_PREEPT as various people noticed.
  But in fact that ifdef should just go, else we'll get drivers that
  compile with CONFIG_PREEMPT but not without sooner or later.

- remove unused hardirq_trylock and hardirq_endlock

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix uninitialized warnings in mempolicy.c
Jesse Barnes [Tue, 14 Sep 2004 00:51:00 +0000 (17:51 -0700)]
[PATCH] fix uninitialized warnings in mempolicy.c

err may be used uninitialized in mempolicy.c in both compat_set_mempolicy
and compat_mbind.  This patch fixes that by setting them both to 0.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add support for word-length UART registers
Deepak Saxena [Tue, 14 Sep 2004 00:50:46 +0000 (17:50 -0700)]
[PATCH] Add support for word-length UART registers

UARTS on several Intel IXP2000 systems are connected in such a way that
they can only be addressed using full word accesses instead of bytes.
Following patch adds a UPIO_MEM32 io-type to identify these UARTs.

Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] block highmem flushes
Jens Axboe [Tue, 14 Sep 2004 00:50:33 +0000 (17:50 -0700)]
[PATCH] block highmem flushes

Add a couple of missing cache flushes to the bouncing code.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: remove CONFIG_UML_SMP
Paolo \'Blaisorblade\' Giarrusso [Tue, 14 Sep 2004 00:50:21 +0000 (17:50 -0700)]
[PATCH] uml: remove CONFIG_UML_SMP

Using CONFIG_UML_SMP and then making CONFIG_SMP = CONFIG_UML_SMP is useless
(there was a reason in 2.4, to have different help texts, but not now).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: smp build fix
Paolo \'Blaisorblade\' Giarrusso [Tue, 14 Sep 2004 00:50:09 +0000 (17:50 -0700)]
[PATCH] uml: smp build fix

From: Sonny Rao <sonny@burdell.org>

Make the SMP code compile, at least, to make testing possible, and remove
its dependency on CONFIG_BROKEN.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: remove commented old code in Kconfig
Paolo \'Blaisorblade\' Giarrusso [Tue, 14 Sep 2004 00:49:54 +0000 (17:49 -0700)]
[PATCH] uml: remove commented old code in Kconfig

Drop a config option which has disappeared from all archs.  Btw, this
shouldn't be in the UML-specific part, but since we cannot include generic
Kconfigs to avoid problem with hardware-related configs, it's duplicated
for now.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: refer to CONFIG_USERMODE, not to CONFIG_UM
Paolo \'Blaisorblade\' Giarrusso [Tue, 14 Sep 2004 00:49:42 +0000 (17:49 -0700)]
[PATCH] uml: refer to CONFIG_USERMODE, not to CONFIG_UM

Correct one Kconfig dependency, which should refer to CONFIG_USERMODE
rather than to CONFIG_UM.

We should also figure out how to make the config process work better for
UML.  We would like to make UML able to "source drivers/Kconfig" and have
the right drivers selectable (i.e.  LVM, ramdisk, and so on) and the ones
for actual hardware excluded.  I've been reading such a request even from
Jeff Dike at the last Kernel Summit, (in the lwn.net coverage) but without
any followup.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: disable pending signals across a reboot
Jeff Dike [Tue, 14 Sep 2004 00:49:28 +0000 (17:49 -0700)]
[PATCH] uml: disable pending signals across a reboot

On reboot, all signals and signal sources are disabled so that
late-arriving signals don't show up after the reboot exec, confusing the
new image, which is not expecting signals yet.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: fix binary layout assumption
Jeff Dike [Tue, 14 Sep 2004 00:49:16 +0000 (17:49 -0700)]
[PATCH] uml: fix binary layout assumption

This patch calculates section boundaries differently so as to not get
tripped up by holes in the binary such as are introduced by exec-shield.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: fix scheduler race
Jeff Dike [Tue, 14 Sep 2004 00:49:04 +0000 (17:49 -0700)]
[PATCH] uml: fix scheduler race

This fixes a use-after-free bug in the context switching.  A process going
out of context after exiting wakes up the next process and then kills
itself.  The problem is that when it gets around to killing itself is up to
the host and can happen a long time later, including after the incoming
process has freed its stack, and that memory is possibly being used for
something else.

The fix is to have the incoming process kill the exiting process just to
make sure it can't be running at the point that its stack is freed.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: eliminate useless thread field
Jeff Dike [Tue, 14 Sep 2004 00:48:53 +0000 (17:48 -0700)]
[PATCH] uml: eliminate useless thread field

This patch eliminates use of task.thread.kernel_stack.  It was unnecessary,
confusing, and was masking some kernel stack size assumptions.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: remove ghash.h
Jeff Dike [Tue, 14 Sep 2004 00:48:40 +0000 (17:48 -0700)]
[PATCH] uml: remove ghash.h

Remove dependency on ghash.h.  Remvoe ghash.h, too.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] HVCS fix to replace yield with tty_wait_until_sent in hvcs_close
Ryan S. Arnold [Tue, 14 Sep 2004 00:48:26 +0000 (17:48 -0700)]
[PATCH] HVCS fix to replace yield with tty_wait_until_sent in hvcs_close

Following the same advice you gave in a recent hvc_console patch I have
modified HVCS to remove a while() { yield(); } from hvcs_close() which may
cause problems where real time scheduling is concerned and replaced it with
tty_wait_until_sent() which uses a real wait queue and is the proper method
for blocking a tty operation while waiting for data to be sent.  This patch
has been tested to verify that all the paths of code that were changed were
hit during the code run and performed as expected including hotplug remove
of hvcs adapters and hangup of ttys.

- Replaced yield() in hvcs_close() with tty_wait_until_sent() to prevent
  possible lockup with realtime scheduling.

- Removed hvcs_final_close() and reordered cleanup operations to prevent
  discarding of pending data during an hvcs_close() call.

- Removed spinlock protection of hvcs_struct data members in
  hvcs_write_room() and hvcs_chars_in_buffer() because they aren't needed.

Signed-off-by: Ryan S. Arnold <rsa@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] blk: max_sectors tunables
Ingo Molnar [Tue, 14 Sep 2004 00:48:14 +0000 (17:48 -0700)]
[PATCH] blk: max_sectors tunables

Introduces two new /sys/block values:

  /sys/block/*/queue/max_hw_sectors_kb
  /sys/block/*/queue/max_sectors_kb

max_hw_sectors_kb is the maximum that the driver can handle and is
readonly.  max_sectors_kb is the current max_sectors value and can be tuned
by root.  PAGE_SIZE granularity is enforced.

It's all locking-safe and all affected layered drivers have been updated as
well.  The patch has been in testing for a couple of weeks already as part
of the voluntary-preempt patches and it works just fine - people use it to
reduce IDE IRQ handling latencies.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add prctl to modify current->comm
Andi Kleen [Tue, 14 Sep 2004 00:48:01 +0000 (17:48 -0700)]
[PATCH] Add prctl to modify current->comm

This patch adds a prctl to modify current->comm as shown in /proc.  This
feature was requested by KDE developers.  In KDE most programs are started by
forking from a kdeinit program that already has the libraries loaded and some
other state.

Problem is to give these forked programs the proper name.  It already writes
the command line in the environment (as seen in ps), but top uses a different
field in /proc/pid/status that reports current->comm.  And that was always
"kdeinit" instead of the real command name.  So you ended up with lots of
kdeinits in your top listing, which was not very useful.

This patch adds a new prctl PR_SET_NAME to allow a program to change its comm
field.

I considered the potential security issues of a program obscuring itself with
this interface, but I don't think it matters much because a program can
already obscure itself when the admin uses ps instead of top.  In case of a
KDE desktop calling everything kdeinit is much more obfuscation than the
alternative.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove exports from audit code
Christoph Hellwig [Tue, 14 Sep 2004 00:47:51 +0000 (17:47 -0700)]
[PATCH] remove exports from audit code

Tons of exports in the new audit code, but not a single module that
actually uses one of them.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[ARM PATCH] 2092/1: S3C2410 - gpio bugfix and additions
Ben Dooks [Tue, 14 Sep 2004 00:47:50 +0000 (01:47 +0100)]
[ARM PATCH] 2092/1: S3C2410 - gpio bugfix and additions

Patch from Ben Dooks

Fix inverted mask in s3c2410_gpio_setpin() function,
add s3c2410_modify_misccr() for shared register, and
add s3c2410_gpio_getpin()

Signed-off-by: Ben Dooks
22 years ago[PATCH] mark dq_list_lock static
Christoph Hellwig [Tue, 14 Sep 2004 00:47:38 +0000 (17:47 -0700)]
[PATCH] mark dq_list_lock static

Only used in dq_list_lock these days.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mark md_interrupt_thread static
Christoph Hellwig [Tue, 14 Sep 2004 00:47:27 +0000 (17:47 -0700)]
[PATCH] mark md_interrupt_thread static

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] make kmem_find_general_cachep static in slab.c
Christoph Hellwig [Tue, 14 Sep 2004 00:47:15 +0000 (17:47 -0700)]
[PATCH] make kmem_find_general_cachep static in slab.c

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] __copy_to_user() check in cdrom_read_cdda_old()
Jesper Juhl [Tue, 14 Sep 2004 00:47:02 +0000 (17:47 -0700)]
[PATCH] __copy_to_user() check in cdrom_read_cdda_old()

akpm: really, reads are supposed to return the number-of-bytes-read on faults,
or -EFAULT of no bytes were read.  This patch returns either zero or -EFAULT,
ignoring any successfully transferred data.  But the user interface (whcih is
an ioctl()) was never set up to do that.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Allocate correct amount of memory for pid hash
Anton Blanchard [Tue, 14 Sep 2004 00:46:50 +0000 (17:46 -0700)]
[PATCH] Allocate correct amount of memory for pid hash

We are now allocating twice as much memory as required.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] shmem: Copyright file_setup trivia
Hugh Dickins [Tue, 14 Sep 2004 00:46:38 +0000 (17:46 -0700)]
[PATCH] shmem: Copyright file_setup trivia

I _think_ shmem_file_setup is protected against negative loff_t size by the
TASK_SIZE in each arch, but prefer the security of an explicit test.  Wipe
those parentheses off its return(file), and update our Copyright.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>