]> git.hungrycats.org Git - linux/log
linux
21 years ago[PATCH] fs/partitions endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:52:26 +0000 (17:52 -0700)]
[PATCH] fs/partitions endianness annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] udf endianness annotation fix
Alexander Viro [Wed, 6 Oct 2004 00:52:14 +0000 (17:52 -0700)]
[PATCH] udf endianness annotation fix

udf/balloc.c::find_next_one_bit() had been confused about types...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] hton* and ntoh* endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:52:02 +0000 (17:52 -0700)]
[PATCH] hton* and ntoh* endianness annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] romfs endianness annotations
Alexander Viro [Wed, 6 Oct 2004 00:51:50 +0000 (17:51 -0700)]
[PATCH] romfs endianness annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] arcnet iomem annotations
Alexander Viro [Wed, 6 Oct 2004 00:51:38 +0000 (17:51 -0700)]
[PATCH] arcnet iomem annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] more NULL noise removal in drivers/scsi
Alexander Viro [Wed, 6 Oct 2004 00:51:26 +0000 (17:51 -0700)]
[PATCH] more NULL noise removal in drivers/scsi

trivial junk that had been hanging arond in my tree for months now...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] more new struct initializers
Alexander Viro [Wed, 6 Oct 2004 00:51:14 +0000 (17:51 -0700)]
[PATCH] more new struct initializers

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] sx8 iomem and endianness annotations + endianness bugfix
Alexander Viro [Wed, 6 Oct 2004 00:51:01 +0000 (17:51 -0700)]
[PATCH] sx8 iomem and endianness annotations + endianness bugfix

fixed bug: le32_to_cpu(desc->size_hi) is broken on big-endian, since
->size_hi is 16bit.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] DAC960 iomem annotations
Alexander Viro [Wed, 6 Oct 2004 00:50:49 +0000 (17:50 -0700)]
[PATCH] DAC960 iomem annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Wed, 6 Oct 2004 00:38:22 +0000 (17:38 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Wed, 6 Oct 2004 00:36:37 +0000 (17:36 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[TCP]: Fix bug that hid sockets in tcp_diag
Herbert Xu [Tue, 5 Oct 2004 15:01:33 +0000 (08:01 -0700)]
[TCP]: Fix bug that hid sockets in tcp_diag

This patch squashes a bug in tcp_diag which was created when the
sk_* loops replaced the original for loops.  It's a pity that these
sk_*/hlist_*/list_* loops don't take an arbitrary expression as an
argument for continue.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[INET]: Fix ECN encapsulation.
Hideaki Yoshifuji [Tue, 5 Oct 2004 15:00:08 +0000 (08:00 -0700)]
[INET]: Fix ECN encapsulation.

We broke ECN encapsulation in tunnels recently.
Without this patch, even though encapusulated (inner) packet is
'not-ECN', encapusulating (outer) packet is sent with 'ECT(0)' set.
This is wrong and should be 'not-ECN.'
This patch fixes up.

From RFC3168:
   The full-functionality option for ECN encapsulation is to copy the
   ECN codepoint of the inside header to the outside header on
   encapsulation if the inside header is not-ECT or ECT, and to set the
   ECN codepoint of the outside header to ECT(0) if the ECN codepoint of
   the inside header is CE.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[TCP]: Show all SYN_RECV sockets in /proc/net/tcp
Herbert Xu [Tue, 5 Oct 2004 14:58:06 +0000 (07:58 -0700)]
[TCP]: Show all SYN_RECV sockets in /proc/net/tcp

I was fixing the tcp_diag so that it shows SYN_RECV sockets properly.
I found that /proc/net/tcp didn't do it correctly either.  So here is
a small patch to fix /proc/net/tcp.

The logic in there stinks though so I'd love to see a rewrite.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[SPARC64]: Make kprobe implementation more robust.
David S. Miller [Tue, 5 Oct 2004 14:28:15 +0000 (07:28 -0700)]
[SPARC64]: Make kprobe implementation more robust.

Switch over to use the single-step scheme which x86 uses
which is to execute the kprobe instruction in the
kprobe->insn[] area.  Also, make sure the kprobe execution
runs fully with interrupts disabled, so we do not deadlock.

This required adding code to fix things up as a result of
the instruction executing at a PC which is different from
where it would normally execute.  For example, if the
instruction is a PC-relative branch, we have to adjust the
final PC value.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years agoi386: mark do_test_wp_bit() noinline
Linus Torvalds [Tue, 5 Oct 2004 11:51:53 +0000 (04:51 -0700)]
i386: mark do_test_wp_bit() noinline

As reported by Zachary Amsden <zach@vmware.com>,
some gcc versions will inline the function even when
it is declared after the call-site. This particular
function must not be inlined, since the exception
recovery doesn't like __init sections (which the caller
is in).

21 years agoprism54: iomem annotations.
Linus Torvalds [Tue, 5 Oct 2004 11:18:28 +0000 (04:18 -0700)]
prism54: iomem annotations.

sparse still complains about the games the driver
plays with user pointers, though.

21 years agopcmcia: add iomem sparse annotations.
Linus Torvalds [Tue, 5 Oct 2004 11:01:31 +0000 (04:01 -0700)]
pcmcia: add iomem sparse annotations.

It was pretty clean already, adding the proper annotations
to the base pointers and a few functions was all it took
to make sparse happy about the PCI accesses.

21 years agoMerge bk://kernel.bkbits.net/jgarzik/net-drivers-2.6
Linus Torvalds [Tue, 5 Oct 2004 10:41:14 +0000 (03:41 -0700)]
Merge bk://kernel.bkbits.net/jgarzik/net-drivers-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge pobox.com:/spare/repo/linux-2.6
Jeff Garzik [Tue, 5 Oct 2004 16:16:25 +0000 (12:16 -0400)]
Merge pobox.com:/spare/repo/linux-2.6
into pobox.com:/spare/repo/net-drivers-2.6

21 years agoFix up CHECKFLAGS definitions
Linus Torvalds [Tue, 5 Oct 2004 10:29:04 +0000 (03:29 -0700)]
Fix up CHECKFLAGS definitions

More recent versions of sparse do not define the Linux-specific
default defines, so we make the main Makefile default to the
regular Linux preprocessor defines (__linux__,  linux, __STDC__
and unix, __unix__).

Also, sparse has long since fixed the default empty define to
be "1" as in regular C, so remove the unnecessary "=1" from
the architecture-specific sparse CHECKFLAGS.

21 years ago[PATCH] Fix task_hot() balancing
Ingo Molnar [Tue, 5 Oct 2004 09:44:44 +0000 (02:44 -0700)]
[PATCH] Fix task_hot() balancing

This fixes the integer underflow in task_hot() noticed by Kenneth W Chen
and makes use of p->last_ran to separate load-balancing timestamps (used
by task_hot()) from interactivity timestamps.  (which two interfered)

compiled, booted on x86 SMP.

Confirmed by Kenneth Chen <kenneth.w.chen@intel.com> to fix the db
transaction processing workload that showed the balancing problem.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 5 Oct 2004 09:42:41 +0000 (02:42 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Tue, 5 Oct 2004 09:41:37 +0000 (02:41 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[ARM] Fix missing definition for OVERCOMMIT_ALWAYS
Russell King [Tue, 5 Oct 2004 23:06:38 +0000 (00:06 +0100)]
[ARM] Fix missing definition for OVERCOMMIT_ALWAYS

21 years ago[ARM] Add save_time_delta()/restore_time_delta()
Russell King [Tue, 5 Oct 2004 17:16:55 +0000 (18:16 +0100)]
[ARM] Add save_time_delta()/restore_time_delta()

These two functions provide the infrastructure to manage time keeping
across a suspend/resume cycle.

21 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-serial
Linus Torvalds [Tue, 5 Oct 2004 09:39:40 +0000 (02:39 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-serial
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[SERIAL] Fix warning and remove mach-types.h include
Russell King [Tue, 5 Oct 2004 12:08:39 +0000 (13:08 +0100)]
[SERIAL] Fix warning and remove mach-types.h include

- s3c2410 doesn't use mach-types.h
- remove unused 'ret' variable

21 years ago[SERIAL] Pick nearest baud rate divider
Roger Blofeld [Tue, 5 Oct 2004 11:07:18 +0000 (12:07 +0100)]
[SERIAL] Pick nearest baud rate divider

From: Roger Blofeld

This patch modifies uart_get_divisor to select the nearest baud rate
divider rather than the lowest.  It minimizes baud rate errors.

For example, if uartclk is 33000000 and baud is 115200 the ratio is about
17.9 The current code selects 17 (5% error) but should select 18 (0.5%
error)

Signed-off-by: Andrew Morton
Signed-off-by: Russell King
21 years agoRemove test for __linux__ in auth_gss.h.
Linus Torvalds [Tue, 5 Oct 2004 09:37:30 +0000 (02:37 -0700)]
Remove test for __linux__ in auth_gss.h.

It's not necessarily even true when cross-compiling the
kernel, and the right thing to do is check for __KERNEL__
(which we already do, one line up).

21 years agoMerge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
David S. Miller [Tue, 5 Oct 2004 07:47:48 +0000 (00:47 -0700)]
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6

21 years ago[NET]: Fix secure tcp sequence number generation
Manfred Spraul [Tue, 5 Oct 2004 07:23:17 +0000 (00:23 -0700)]
[NET]: Fix secure tcp sequence number generation

Ted's recent random.c update broke the periodic rekeying:
schedule_work() doesn't provide synchronization. Additionally the first
syn values after boot are generated with secret 0 - not good.

Attached is a big cleanup. Linus asked me to send to to you for merging:

The tcp sequence number generator needs a random seed that is reset every
few minutes. Since the sequence numbers should be constantly increasing,
for each rekey 2^24 is added to the sequence number.
The actual use of the sequence number generator is lockless,
synchronization is achieved by having two copies of the control structure.

The attached patch:
- fixes a race in rekey_seq_generator(): schedule_work doesn't
   provide synchronization.
- Uses schedule_delayed_work() for the rekey: simplifies synchronization
   and speeds up the hot path.
- Adds a late_initcall for the first initialization after boot.
   init_call would be too early, I've checked that the late_initcall runs
   before net/ipv4/ipconfig.c, i.e. the BOOTP/DHCP autoconfiguration.

Signed-Off-By: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[PKT_SCHED]: Make rate estimator work on all platforms.
Thomas Graf [Tue, 5 Oct 2004 06:44:51 +0000 (23:44 -0700)]
[PKT_SCHED]: Make rate estimator work on all platforms.

Fixes the existing rate estimator to compile cleanly on all platforms
and avoids carrying on the variance on platforms with HZ%4 != 0.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[NET]: Generic network statistics/estimator
David S. Miller [Tue, 5 Oct 2004 06:38:47 +0000 (23:38 -0700)]
[NET]: Generic network statistics/estimator

Work done by Thomas Graf <tgraf@suug.ch> and
Jamal Hadi Salim <hadi@cyberus.ca>

The following patchset introduces generic network statistics for
netlink users. It uses nested TLV which prevents further compatibility
problems when introducing new statistics. Backward compatibility to
existing TLV types TCA_STATS and TCA_XSTATS is ensured but can be
easly removed once it is no longer needed. Therefore prior users of
struct tc_stats can be converted to this API and existing userspace
applications will not notice a difference while converted applications
can use the new extendable statistic interface.

Changes:
- Add generic network statistics API for netlink users.
- Introduces a generic rate estimator based on timers. Patch is based
  on Jamals patch and adapted to the new generic network statistics
  API.
- Add documentation of generic network statistics and estimator API.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[PKT_SCHED]: Remove useless line in cbq_dump_class
Thomas Graf [Tue, 5 Oct 2004 06:15:45 +0000 (23:15 -0700)]
[PKT_SCHED]: Remove useless line in cbq_dump_class

Remove useless line in cbq_dump_class probably introduced by
copy&paste from cbq_dump.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[DECNET]: Mark myself as maintainer.
Patrick Caulfield [Tue, 5 Oct 2004 05:36:01 +0000 (22:36 -0700)]
[DECNET]: Mark myself as maintainer.

Signed-off-by: Patrick Caulfield <patrick@tykepenguin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[IPV4]: Permit the official ARP hw type in SIOCSARP for FDDI.
Maciej W. Rozycki [Tue, 5 Oct 2004 05:34:07 +0000 (22:34 -0700)]
[IPV4]: Permit the official ARP hw type in SIOCSARP for FDDI.

Signed-off-by; Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[IPV4]: Set ARP hw type correctly for BOOTP over FDDI.
Maciej W. Rozycki [Tue, 5 Oct 2004 05:32:21 +0000 (22:32 -0700)]
[IPV4]: Set ARP hw type correctly for BOOTP over FDDI.

Signed-off-by; Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[NET]: Fix fddi_statistics for 64-bit
Maciej W. Rozycki [Tue, 5 Oct 2004 05:29:45 +0000 (22:29 -0700)]
[NET]: Fix fddi_statistics for 64-bit

 There is a problem with "struct fddi_statistics" for 64-bit systems.
The starting members of the struct are expected to correspond to the
respective members of "struct net_device_stats" (drivers for FDDI
devices return "struct fddi_statistics" in the response to the
get_stats() call of "struct net_device").  Unfortunately, due to using
different types (u32 vs ulong) they do not.  "struct net_device_stats"
is a public interface and as a result, bogus results are retrieved,
e.g. for /proc/net/dev.

 Here is my proposal to address the problem.  I think there is no
point in duplicating the layout of "struct net_device_stats" in
"struct fddi_statistics" as the former can simply be included as a
member avoiding this problem and actually any possible discrepancy in
the future.  This also preserves the layout of the structure for
32-bit systems.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[CRYPTO]: Add __init and __initdata to aes.c
James Morris [Tue, 5 Oct 2004 05:25:23 +0000 (22:25 -0700)]
[CRYPTO]: Add __init and __initdata to aes.c

This patch from Herbert V. Riedel <hvr@gnu.org> adds __initdata to the
generic AES code where appropriate.  I also added __init to f_mult().

Signed-off-by: Herbert V. Riedel <hvr@gnu.org>
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[NET]: Fix race between neigh-timer_handler and neigh_event_send
Greg Banks [Tue, 5 Oct 2004 04:37:55 +0000 (21:37 -0700)]
[NET]: Fix race between neigh-timer_handler and neigh_event_send

Fix a race between neigh_timer_handler() calling down to arp_solicit()
with an sk_buff peeked from the head of the neigh->arp_queue, and
neigh_event_send() unqueuing and freeing the head of the same queue
because it's reached the maximum length of 3, by taking an extra
sk_buff reference while holding neigh->lock.

Signed-off-by: Greg Banks <gnb@melbourne.sgi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[IPVS]: Fix endian problem on sync message size.
Wensong Zhang [Tue, 5 Oct 2004 04:21:08 +0000 (21:21 -0700)]
[IPVS]: Fix endian problem on sync message size.

Here is the patch from Justin Ossevoort <justin@snt.utwente.nl> to fix
endian problem on IPVS sync message size.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[PATCH] Fix error path in Video4Linux dpc7146 driver
Michael Hunold [Tue, 5 Oct 2004 00:54:19 +0000 (17:54 -0700)]
[PATCH] Fix error path in Video4Linux dpc7146 driver

The I2C adapter wasn't de-registered correctly in case the video card
wasn't found.  When the I2C subsystem tried to speak with the dangling
I2C adapter later on, usually an oops happened.

21 years agodrm: Stop i830 and i915 both being build at same time
Dave Airlie [Wed, 6 Oct 2004 05:20:14 +0000 (15:20 +1000)]
drm: Stop i830 and i915 both being build at same time

Roman Zippel submitted this to lk but I missed it, it does
what I tried to do badly before.

Signed-off-by: Dave Airlie <airlied@linux.ie>
21 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Mon, 4 Oct 2004 15:31:32 +0000 (08:31 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[ARM PATCH] 2123/4: S3C2410 - GPIO IRQ IRQ Filtering and pin number patch
Ben Dooks [Tue, 5 Oct 2004 00:11:26 +0000 (01:11 +0100)]
[ARM PATCH] 2123/4: S3C2410 - GPIO IRQ IRQ Filtering and pin number patch

Patch from Ben Dooks

Fixed GPG pin numbering, and missing changelog

Added code to setup the interrupt filtering on
compatible Pins

Signed-off-by: Ben Dooks
21 years ago[ARM PATCH] 2124/1: S3C2410 - include/asm-arm/arch-s3c2410/regs-spi.h
Ben Dooks [Mon, 4 Oct 2004 23:53:09 +0000 (00:53 +0100)]
[ARM PATCH] 2124/1: S3C2410 - include/asm-arm/arch-s3c2410/regs-spi.h

Patch from Ben Dooks

Header file defining S3C2410 SPI registers

Signed-off-by: Klaus Fetscher
Signed-off-by: Ben Dooks
21 years ago[ARM PATCH] 2122/1: S3C2410 - Documentation updates
Ben Dooks [Mon, 4 Oct 2004 23:48:28 +0000 (00:48 +0100)]
[ARM PATCH] 2122/1: S3C2410 - Documentation updates

Patch from Ben Dooks

Added documentation for the GPIO calls, updated
the overview with more information on the supported
core devices, and updated the state of the EB2410ITX

Signed-off-by: Ben Dooks
21 years ago[ARM] Fix params_phys with PIC decompressor builds.
Russell King [Mon, 4 Oct 2004 23:17:44 +0000 (00:17 +0100)]
[ARM] Fix params_phys with PIC decompressor builds.

21 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Mon, 4 Oct 2004 15:16:24 +0000 (08:16 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[PATCH] via-velocity: comment fixes
François Romieu [Mon, 4 Oct 2004 13:11:35 +0000 (09:11 -0400)]
[PATCH] via-velocity: comment fixes

Comment fixes.

Signed-off-by: Tejun Heo <tj@home-tj.org>
21 years ago[PATCH] via-velocity: wrong buffer offset in velocity_init_td_ring()
François Romieu [Mon, 4 Oct 2004 13:11:20 +0000 (09:11 -0400)]
[PATCH] via-velocity: wrong buffer offset in velocity_init_td_ring()

Buffer offset calculation was incorrect in velocity_init_td_ring().
This didn't cause any trouble because we only use the first td ring.

Signed-off-by: Tejun Heo <tj@home-tj.org>
21 years ago[PATCH] via-velocity: removal of incomplete endianness handling
François Romieu [Mon, 4 Oct 2004 13:11:05 +0000 (09:11 -0400)]
[PATCH] via-velocity: removal of incomplete endianness handling

Removed cpu_to_le32 call on OWNED_BY_NIC. This will produce 0x01000000 on
big endian machines while rdesc0.owner still evaluates to 0x00000000 or
0x00000001. BTW, unless we reorder bit fields on big endian machines or
use u32's and cpu_to_le32'd bit mask macros, current code won't work on big
endian machines.

Signed-off-by: Tejun Heo <tj@home-tj.org>
21 years ago[PATCH] via-velocity: early invocation of init_cam_filter()
François Romieu [Mon, 4 Oct 2004 13:10:51 +0000 (09:10 -0400)]
[PATCH] via-velocity: early invocation of init_cam_filter()

In velocity_init_registers(), init_cam_filter() clears mCAMmask which
might have been set by set_multi() (not sure if this can ever occur).
Modified to invoke init_cam_filter() first. Also, clear_isr() is called
twice. Removed the first invocation.

In velocity_found1(), there was a unneeded assignment from vptr to
dev->priv.  Removed.

Signed-off-by: Tejun Heo <tj@home-tj.org>
21 years ago[PATCH] via-velocity: received ring wrong index and missing barriers
François Romieu [Mon, 4 Oct 2004 13:10:39 +0000 (09:10 -0400)]
[PATCH] via-velocity: received ring wrong index and missing barriers

There were several receive ring related bugs.

In velocity_give_many_rx_descs(), index calculation was incorrect.
This and bugs in velocity_rx_srv() described in the following paragraph
caused packet loss, truncation and infinite error interrupt generation.

In velocity_rx_srv(), velocity_rx_refill() could be called without any
dirty slot.  With proper timing, This can result in refilling yet
unreceived packets and pushing dirty pointer ahead of the current pointer.
And vptr->rd_curr which is used by velocity_rx_refill() was updated after
calling velocity_rx_refill() thus screwing receive descriptor ring.
Also, between checking owner and reading the packet, rmb() is missing.

Signed-off-by: Tejun Heo <tj@home-tj.org>
21 years ago[PATCH] via-velocity: velocity_give_rx_desc() removal
François Romieu [Mon, 4 Oct 2004 13:10:25 +0000 (09:10 -0400)]
[PATCH] via-velocity: velocity_give_rx_desc() removal

In velocity_give_rx_desc(), there should be a wmb() between resetting the
first four bytes of rdesc0 and setting owner. As resetting the first four
bytes isn't necessary, I just removed the function and directly set owner.
Another rationale for removing the function:
The function doesn't handle synchronization. We should do wmb() before
calling the function.  So, I think using bare assignment makes the fact
more explicit.

Signed-off-by: Tejun Heo <tj@home-tj.org>
21 years ago[PATCH] via-velocity: removal of unused velocity_info.xmit_lock
François Romieu [Mon, 4 Oct 2004 13:10:12 +0000 (09:10 -0400)]
[PATCH] via-velocity: removal of unused velocity_info.xmit_lock

Removed unused velocity_info.xmit_lock.

Signed-off-by: Tejun Heo <tj@home-tj.org>
21 years ago[PATCH] via-velocity: properly manage the count of adapters
François Romieu [Mon, 4 Oct 2004 13:09:58 +0000 (09:09 -0400)]
[PATCH] via-velocity: properly manage the count of adapters

velocity_nics wasn't managed properly.

Signed-off-by: Tejun Heo <tj@home-tj.org>
21 years agoMerge pobox.com:/spare/repo/linux-2.6
Jeff Garzik [Mon, 4 Oct 2004 13:08:12 +0000 (09:08 -0400)]
Merge pobox.com:/spare/repo/linux-2.6
into pobox.com:/spare/repo/net-drivers-2.6

21 years ago[PATCH] olympic driver: fix kernel oops on lobe fault
Neil Horman [Mon, 4 Oct 2004 12:48:22 +0000 (08:48 -0400)]
[PATCH] olympic driver: fix kernel oops on lobe fault

It fixes an oops that results when a lobe fault is detected.  The oops
occurs because a lobe fault triggers an interrupt which is handled
in the current version of the driver by effectively shutting down the
card, and freeing its requisite irq.  The former is fine, the latter
is not, as its illegal to free an irq from within an interrupt context.

I've fixed this bug by removing the call to free_irq from the interrupt
handler (specifically the chunk around line 964 fixes that).  While I
was in there I noticed that there were several other conditions in
the interrupt handler that contained the same condition, so I made
the same fix there.  I re-added.

I also modified the contents of olympic_freemem (the chunk around line
898 to correct a misuse of a pointer after it requisite memory has
been free in the case the the adapter is re-initalized after a fault
to prevent that oops.  And then I clean up the interrupt handler to
simply use olympic_freemem from the close routine since the ring buffer
doesn't need to be freed until the driver is closed.

In addition to these changes I added a call to olympic init in
olympic_open and reset the spinlock so the adapter can be reset and
rejoin the ring without needing to rmmod/insmod the module.  Lastly I
cleaned up the wait queue code so that the close routine didn't have
to wait 60 seconds to close the adapter if a fatal fault has closed
the adapter.

Signed-off-by: Neil Horman <nhorman@redhat.com>
21 years ago[NET]: Kill typo in neighbour.c
David S. Miller [Mon, 4 Oct 2004 07:06:10 +0000 (00:06 -0700)]
[NET]: Kill typo in neighbour.c

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Mon, 4 Oct 2004 05:34:27 +0000 (22:34 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

21 years agoppc64: fix non-C99 named initializers
Linus Torvalds [Mon, 4 Oct 2004 05:17:43 +0000 (22:17 -0700)]
ppc64: fix non-C99 named initializers

Al suggested a sparse warning. And sure enough, it found
these ones.

21 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Mon, 4 Oct 2004 01:06:25 +0000 (18:06 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[PATCH] s390: sclp compile fix
Bastian Blank [Sun, 3 Oct 2004 10:03:46 +0000 (03:03 -0700)]
[PATCH] s390: sclp compile fix

The attached patch makes s390 sclp driver buildable again.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Sun, 3 Oct 2004 10:02:24 +0000 (03:02 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[ARM PATCH] 2121/1: S3C2410 - add S3C2410_MISCCR definitions for power down config
Ben Dooks [Sun, 3 Oct 2004 23:47:53 +0000 (00:47 +0100)]
[ARM PATCH] 2121/1: S3C2410 - add S3C2410_MISCCR definitions for power down config

Patch from Ben Dooks

Add definitions to the MISCCR register for configuration
of the signal states in power down mode.

Signed-off-by: Ben Dooks
21 years ago[ARM PATCH] 2120/1: S3C2410 - include/asm-arm/arch-s3c2410/regs-iic.h
Ben Dooks [Sun, 3 Oct 2004 23:40:37 +0000 (00:40 +0100)]
[ARM PATCH] 2120/1: S3C2410 - include/asm-arm/arch-s3c2410/regs-iic.h

Patch from Ben Dooks

Include file include/asm-arm/arch-s3c2410/regs-iic.h,
for the I2C controller on the S3C2410 Samsung SoC.

Signed-off-by: Ben Dooks
21 years ago[ARM PATCH] 2119/1: S3C2410 - include/asm-arm/arch-s3c2410/regs-mem.h
Ben Dooks [Sun, 3 Oct 2004 23:34:46 +0000 (00:34 +0100)]
[ARM PATCH] 2119/1: S3C2410 - include/asm-arm/arch-s3c2410/regs-mem.h

Patch from Ben Dooks

Header file include/asm-arm/arch-s3c2410/regs-mem.h containing
definitions for the S3C2410 memory controller

Signed-off-by: Ben Dooks
21 years ago[ARM PATCH] 2117/1: Fix ATU config on IQ80331 to prevent master aborts, replace 2099/1
Dave Jiang [Sun, 3 Oct 2004 23:28:36 +0000 (00:28 +0100)]
[ARM PATCH] 2117/1: Fix ATU config on IQ80331 to prevent master aborts, replace 2099/1

Patch from Dave Jiang

Latest IQ80331 redboot changed value of ATU registers and is causing master aborts on the plugged in card. Changing value back to previous sane state for Linux.

Signed-off-by: Dave Jiang (dave.jiang@gmail.com)
Patch in replacement of 2099/1 due to formatting problems.

21 years ago[ARM] clk_* functions take frequencies in Hz not kHz
Russell King [Sun, 3 Oct 2004 23:20:42 +0000 (00:20 +0100)]
[ARM] clk_* functions take frequencies in Hz not kHz

21 years ago[ARM] Add POSIX message queue and waitid syscalls.
Russell King [Sun, 3 Oct 2004 22:58:34 +0000 (23:58 +0100)]
[ARM] Add POSIX message queue and waitid syscalls.

21 years ago[ARM] mach-types update.
Russell King [Sun, 3 Oct 2004 22:46:48 +0000 (23:46 +0100)]
[ARM] mach-types update.

21 years ago[ARM] Remove "%?" from within macros containing assembly.
Russell King [Sun, 3 Oct 2004 22:09:31 +0000 (23:09 +0100)]
[ARM] Remove "%?" from within macros containing assembly.

Some compilers seem to get "%?" wrong in macros.

21 years ago[ARM] Check access permissions for whole of signal stack frame.
Russell King [Sun, 3 Oct 2004 21:46:58 +0000 (22:46 +0100)]
[ARM] Check access permissions for whole of signal stack frame.

We really need to check that we have access to the whole of the
signal frame when we allocate it, rather than "most of it" when
we have iWMMXt extensions selected.

21 years ago[ARM] Fix consistent.c for DMA allocations.
Russell King [Sun, 3 Oct 2004 21:36:58 +0000 (22:36 +0100)]
[ARM] Fix consistent.c for DMA allocations.

- Use ISA_DMA_THRESHOLD as the mask for GFP_DMA allocations.
- Don't allow DMA allocations which are for a "smaller" mask than
  ISA_DMA_THRESHOLD.
- Ensure that "handle" is initialised to our error value when
  returning an error.

21 years ago[ARM] Add "noirqdebug" option to match x86 option.
Russell King [Sun, 3 Oct 2004 21:13:48 +0000 (22:13 +0100)]
[ARM] Add "noirqdebug" option to match x86 option.

21 years ago[ARM] ecard.c locking and wait_event_interruptible() fix
Russell King [Sun, 3 Oct 2004 20:57:03 +0000 (21:57 +0100)]
[ARM] ecard.c locking and wait_event_interruptible() fix

Add locking for use of kecardd services.
Use wait_event_interruptible() rather htan interruptible_sleep_on().

21 years ago[ARM PATCH] 2118/1: S3C2410 - gpio updates and header file fix
Ben Dooks [Sun, 3 Oct 2004 16:52:59 +0000 (17:52 +0100)]
[ARM PATCH] 2118/1: S3C2410 - gpio updates and header file fix

Patch from Ben Dooks

Fix missing changelog entries in <asm-arm/arch-s3c2410/hardware.h>,
and erroneous EINT definitions in <asm-arm/arch-s3c2410/regs-gpio.h>.

Added s3c2410_gpio_getcfg(pin) and s3c2410_gpio_getirq(pin)
to get the current configuration of an pin, and which IRQ
(if any) maps to it.

Signed-off-by: Ben Dooks
21 years ago[ARM PATCH] 2103/1: BAST - USB power control
Ben Dooks [Sun, 3 Oct 2004 16:47:46 +0000 (17:47 +0100)]
[ARM PATCH] 2103/1: BAST - USB power control

Patch from Ben Dooks

USB power control and over-current sense

Signed-off-by: Ben Dooks
21 years ago[ARM PATCH] 2101/1: S3C2410 - usb port management
Ben Dooks [Sun, 3 Oct 2004 16:42:39 +0000 (17:42 +0100)]
[ARM PATCH] 2101/1: S3C2410 - usb port management

Patch from Ben Dooks

Port power control and management for S3C2410 internal
USB controller for different boards to interface their
power control system to.

Signed-off-by: Ben Dooks
21 years ago[ARM PATCH] 2095/1: i.MX time keeping
Sascha Hauer [Sun, 3 Oct 2004 16:34:05 +0000 (17:34 +0100)]
[ARM PATCH] 2095/1: i.MX time keeping

Patch from Sascha Hauer

This patch fixes the i.MX timer functions:
- imx_gettimeoffset() now returns proper values
- fix timer interrupt frequency

Signed-off-by: Sascha Hauer
21 years agoMerge bk://212.42.230.204/net-2.6
David S. Miller [Sun, 3 Oct 2004 08:03:28 +0000 (01:03 -0700)]
Merge bk://212.42.230.204/net-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

21 years agoMerge coreworks.de:/home/kaber/src/bk-repos/linux-2.6
Patrick McHardy [Mon, 4 Oct 2004 00:26:48 +0000 (02:26 +0200)]
Merge coreworks.de:/home/kaber/src/bk-repos/linux-2.6
into coreworks.de:/home/kaber/src/net/net-2.6

21 years ago[VLAN]: Missing rtnl_unlock in register_vlan_device error path
Patrick McHardy [Sun, 3 Oct 2004 22:44:53 +0000 (00:44 +0200)]
[VLAN]: Missing rtnl_unlock in register_vlan_device error path

Signed-off-by: Patrick McHardy <kaber@trash.net>
21 years ago[IPV6]: Fix free_netdev after failed alloc_netdev in sit_init
Patrick McHardy [Sun, 3 Oct 2004 22:43:32 +0000 (00:43 +0200)]
[IPV6]: Fix free_netdev after failed alloc_netdev in sit_init

Signed-off-by: Patrick McHardy <kaber@trash.net>
21 years ago[IPV4]: Fix ipip_fb_tunnel_dev leak in ipip_fini
Patrick McHardy [Sun, 3 Oct 2004 22:42:17 +0000 (00:42 +0200)]
[IPV4]: Fix ipip_fb_tunnel_dev leak in ipip_fini

Signed-off-by: Patrick McHardy <kaber@trash.net>
21 years ago[IPV4]: Fix free_netdev after failed alloc_netdev in ipip_init
Patrick McHardy [Sun, 3 Oct 2004 22:41:00 +0000 (00:41 +0200)]
[IPV4]: Fix free_netdev after failed alloc_netdev in ipip_init

Signed-off-by: Patrick McHardy <kaber@trash.net>
21 years ago[IPV4]: Fix free_netdev after failed alloc_netdev in ipgre_init
Patrick McHardy [Sun, 3 Oct 2004 22:39:25 +0000 (00:39 +0200)]
[IPV4]: Fix free_netdev after failed alloc_netdev in ipgre_init

Signed-off-by: Patrick McHardy <kaber@trash.net>
21 years ago[NET_SCHED]: Remove useless variable in tc_ctl_tfilter
Patrick McHardy [Sun, 3 Oct 2004 22:29:51 +0000 (00:29 +0200)]
[NET_SCHED]: Remove useless variable in tc_ctl_tfilter

Signed-off-by: Patrick McHardy <kaber@trash.net>
21 years ago[NET_SCHED]: Fix module leak in tc_ctl_tfilter error path
Patrick McHardy [Sun, 3 Oct 2004 22:25:10 +0000 (00:25 +0200)]
[NET_SCHED]: Fix module leak in tc_ctl_tfilter error path

Signed-off-by: Patrick McHardy <kaber@trash.net>
21 years ago[PKT_ACT]: Fixup tcf_result updating wrt. tcf_action_exec() calls.
David S. Miller [Sun, 3 Oct 2004 08:01:14 +0000 (01:01 -0700)]
[PKT_ACT]: Fixup tcf_result updating wrt. tcf_action_exec() calls.

- Pass tcf_result into tcf_action_exec()
- Update res->classid and res->class on non-zero
  skb->tc_classid, then reset skb->tc_classid
- Update tcf_action_exec() callers in cls_u32.c
  and cls_fw.c

Based upon a patch by Jamal Hadi Salim <hadi@cyberus.ca>

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[IPV6]: Missing ip_rt_put() in SIT error path.
Hideaki Yoshifuji [Sun, 3 Oct 2004 07:39:05 +0000 (00:39 -0700)]
[IPV6]: Missing ip_rt_put() in SIT error path.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[NET]: Remove neigh hash expansion into already locked section.
Herbert Xu [Sun, 3 Oct 2004 07:37:39 +0000 (00:37 -0700)]
[NET]: Remove neigh hash expansion into already locked section.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[TCP]: Rename tcp_skb_psize() to tcp_skb_mss().
David S. Miller [Sun, 3 Oct 2004 07:32:14 +0000 (00:32 -0700)]
[TCP]: Rename tcp_skb_psize() to tcp_skb_mss().

On request from Herbert Xu.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[SPARC64]: Update defconfig.
David S. Miller [Sun, 3 Oct 2004 07:30:28 +0000 (00:30 -0700)]
[SPARC64]: Update defconfig.

21 years ago[SPARC64]: Fix SI_TIMER conversion as ppc64 has.
David S. Miller [Sun, 3 Oct 2004 07:30:01 +0000 (00:30 -0700)]
[SPARC64]: Fix SI_TIMER conversion as ppc64 has.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years agoMerge bk://kernel.bkbits.net/acme/net-2.6
David S. Miller [Sun, 3 Oct 2004 07:26:22 +0000 (00:26 -0700)]
Merge bk://kernel.bkbits.net/acme/net-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

21 years ago[PATCH] ppc64: fix cross-compilation
Roland Dreier [Sun, 3 Oct 2004 04:04:37 +0000 (21:04 -0700)]
[PATCH] ppc64: fix cross-compilation

After the "ppc64 monster cleanup," I get

    powerpc-750-linux-gnu-strip: vmlinux: File format not recognized

from my ppc32 strip command when cross-compiling a ppc64 kernel, since
vmlinux is a 64-bit ELF file.  This patch fixes my build (and the
resulting kernel boots fine).

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Avoid unnecessary copy for EPOLL_CTL_DEL
Davide Libenzi [Sun, 3 Oct 2004 02:51:43 +0000 (19:51 -0700)]
[PATCH] Avoid unnecessary copy for EPOLL_CTL_DEL

Ulrich Drepper points out that EPOLL_CTL_DEL doesn't need to copy any of
the hash events.

Also, we should specify in the man pages that a NULL is allowed in
EPOLL_CTL_DEL.  Currently it does not say that.

Also, starting from when epoll uses rbtrees instead of hashes, the
'size' hint passed to epoll_create(2) is no more used.  But since an API
change has clearly to be excluded, I guess it'll stay as is.

Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>