]> git.hungrycats.org Git - linux/log
linux
22 years agoRemove libata's version of msleep()
Greg Kroah-Hartman [Tue, 18 May 2004 08:55:19 +0000 (01:55 -0700)]
Remove libata's version of msleep()

22 years agoDelete block/carmel.c's version of msleep()
Greg Kroah-Hartman [Tue, 18 May 2004 08:51:44 +0000 (01:51 -0700)]
Delete block/carmel.c's version of msleep()

22 years agoAdd msleep function to the kernel core to prevent duplication.
Greg Kroah-Hartman [Tue, 18 May 2004 08:49:36 +0000 (01:49 -0700)]
Add msleep function to the kernel core to prevent duplication.

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

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Mon, 17 May 2004 15:55:19 +0000 (08:55 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years ago[PATCH] ppc64: fix non-SMP build break
Olof Johansson [Mon, 17 May 2004 14:12:36 +0000 (07:12 -0700)]
[PATCH] ppc64: fix non-SMP build break

arch/ppc64/lib/locks.c was recently added by Paulus' lock rewrite. It's
always compiled, which breaks non-SMP builds. Below patch makes it depend
on CONFIG_SMP.

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/pci-2.6
Linus Torvalds [Mon, 17 May 2004 12:20:19 +0000 (05:20 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/pci-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
Linus Torvalds [Mon, 17 May 2004 09:51:13 +0000 (02:51 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agomerge
Greg Kroah-Hartman [Mon, 17 May 2004 09:44:49 +0000 (02:44 -0700)]
merge

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.6
Greg Kroah-Hartman [Mon, 17 May 2004 09:19:41 +0000 (02:19 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.6
into kroah.com:/home/greg/linux/BK/usb-2.6

22 years agoPCI Hotplug: clean up a lot of global symbols that do not need to be.
Greg Kroah-Hartman [Mon, 17 May 2004 09:08:02 +0000 (02:08 -0700)]
PCI Hotplug: clean up a lot of global symbols that do not need to be.

22 years agoUSB: fix up formatting issues with aiptek driver
Greg Kroah-Hartman [Mon, 17 May 2004 08:58:40 +0000 (01:58 -0700)]
USB: fix up formatting issues with aiptek driver

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Mon, 17 May 2004 08:52:19 +0000 (01:52 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://dsaxena.bkbits.net/linux-2.6-for-rmk
Russell King [Tue, 18 May 2004 00:06:50 +0000 (01:06 +0100)]
Merge bk://dsaxena.bkbits.net/linux-2.6-for-rmk
into flint.arm.linux.org.uk:/usr/src/bk/linux-2.6-rmk

22 years ago[ARM] Add linux/module.h include for ioremap.
Russell King [Mon, 17 May 2004 23:46:10 +0000 (00:46 +0100)]
[ARM] Add linux/module.h include for ioremap.

22 years ago[ARM] Update atomic.h
Russell King [Mon, 17 May 2004 23:28:23 +0000 (00:28 +0100)]
[ARM] Update atomic.h

This re-jigs atomic.h by providing atomic_add_return and
atomic_sub_return as other architectures do.  This allows us to
implement the atomic ops that test the new value without having
to write the underlying atomic operation in various forms.

22 years ago[ARM] Fix use of page->count
Ian Campbell [Mon, 17 May 2004 21:02:14 +0000 (22:02 +0100)]
[ARM] Fix use of page->count

Patch from: Ian Campbell

This changes the atomic_t in struct page named count into a private
member _count which breaks arch/arm/mm/init.c at line 80 which reads
page->count directly in show_mem().

The comments in the above changeset suggest that page_count(page) is
precisely equal to the old page->count semantics, even though the
semantics of _count are different, so I think the following is correct

22 years agoUSB: fix dumb compile error in aiptek driver
Greg Kroah-Hartman [Mon, 17 May 2004 08:37:07 +0000 (01:37 -0700)]
USB: fix dumb compile error in aiptek driver

Doesn't anyone ever actually build the patches they send me...

22 years ago[PATCH] USB: purge wait_ms from core
Oliver Neukum [Mon, 17 May 2004 08:35:00 +0000 (01:35 -0700)]
[PATCH] USB: purge wait_ms from core

this makes the core use the new safe waiting helper.

  - remove wait_ms from hub driver

22 years ago[PATCH] USB: new delay helper safe wrt waitqueues
Oliver Neukum [Mon, 17 May 2004 08:34:21 +0000 (01:34 -0700)]
[PATCH] USB: new delay helper safe wrt waitqueues

this is a new waiting helper safe even if we are left on a waitqueue.
This version addresses Alan's concerns about ifdefs. Please apply.

  - add delay helper that is safe even if we are still on another waitqueue

22 years ago[PATCH] USB: ethernet/rndis gadget address params
David Brownell [Mon, 17 May 2004 08:33:22 +0000 (01:33 -0700)]
[PATCH] USB: ethernet/rndis gadget address params

This resolves a FIXME by adding module parameters that can
be used to provide stable (vs random) addresses, and gets
rid of a runtime error from obsolete module parameter usage
in the RNDIS code.

The stable ethernet addresses are nice to hosts, which will
normally want to save them away in config databases.  For
example, without stable addresses Windows XP will end up
recording quite a lot of RNDIS devices.

22 years ago[PATCH] USB: RNDIS (and CDC) filter flag handling
David Brownell [Mon, 17 May 2004 08:32:03 +0000 (01:32 -0700)]
[PATCH] USB: RNDIS (and CDC) filter flag handling

This should fix the problem David Meggy found, where RNDIS was setting
the OID_GEN_CURRENT_PACKET_FILTER state incorrectly.  It's the same
issue Andrew Morton noticed a while back, for that matter, but with
more than just a "now compiles on 64 bit" fix.

Basically the code needs to interpret 32 bits provided in the request
from the (Windows) host, rather than 8 bits of other memory that's got
some irrelevant value.

The fix is just to save the 32 bits.  I did the same thing with the
CDC Ethernet filter, which should eventually be used the same way:  to
limit what packets get sent to the host.  Also defined a couple more
of the CDC requests.

22 years ago[PATCH] USB: Aiptek.c Driver patch
Bryan W. Headley [Mon, 17 May 2004 08:31:31 +0000 (01:31 -0700)]
[PATCH] USB: Aiptek.c Driver patch

22 years agoMerge bk://gkernel.bkbits.net/libata-2.6
Linus Torvalds [Mon, 17 May 2004 07:01:34 +0000 (00:01 -0700)]
Merge bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge redhat.com:/spare/repo/netdev-2.6/remove-rcpci
Jeff Garzik [Mon, 17 May 2004 11:15:48 +0000 (07:15 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/remove-rcpci
into redhat.com:/spare/repo/net-drivers-2.6

22 years agoMerge redhat.com:/spare/repo/netdev-2.6/fealnx
Jeff Garzik [Mon, 17 May 2004 11:14:07 +0000 (07:14 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/fealnx
into redhat.com:/spare/repo/net-drivers-2.6

22 years agoMerge
David S. Miller [Mon, 17 May 2004 04:47:28 +0000 (21:47 -0700)]
Merge

22 years ago[PATCH] USB: further fix to mdc800
Oliver Neukum [Mon, 17 May 2004 04:38:40 +0000 (21:38 -0700)]
[PATCH] USB: further fix to mdc800

I made a mistake fixing that driver. Here's the fix. Please apply soon.

  - fix race condition leading to busy waiting

22 years ago[PATCH] USB: fix MSEC_TO_JIFFIES in usb code
David Brownell [Mon, 17 May 2004 04:13:32 +0000 (21:13 -0700)]
[PATCH] USB: fix MSEC_TO_JIFFIES in usb code

Here are some MSEC_TO_JIFFIES() fixes missed by whoever did it,
plus a minor fix to grab root_hub->serialize() during OHCI
suspend.  (I forgot to cut/paste those lines from resume.)

22 years ago[PATCH] USB: fix CONFIG_PM build issues
David Brownell [Mon, 17 May 2004 04:12:22 +0000 (21:12 -0700)]
[PATCH] USB: fix CONFIG_PM build issues

22 years ago[PATCH] USB: fix obsolete header usage in usb storage
Arjan van de Ven [Mon, 17 May 2004 04:01:17 +0000 (21:01 -0700)]
[PATCH] USB: fix obsolete header usage in usb storage

drivers/scsi/hosts.h is obsolete, <scsi/scsi_host.h> is the prefered header
nowadays. (hosts.h is just a 1 line wrapper to include it for now anyway)

22 years ago[PATCH] USB: fix usb-serial serial_open oops
Zwane Mwaikambo [Mon, 17 May 2004 04:00:46 +0000 (21:00 -0700)]
[PATCH] USB: fix usb-serial serial_open oops

No usb serial devices, just compiled in and the system has a USB controller.

Unable to handle kernel NULL pointer dereference at virtual address 0000000c
 printing eip:
c046a188
*pde = 00000000
Oops: 0000 [#1]
PREEMPT SMP DEBUG_PAGEALLOC
Modules linked in:
CPU:    0
EIP:    0060:[<c046a188>]    Not tainted VLI
EFLAGS: 00010246   (2.6.6-mm3)
EIP is at serial_open+0x38/0x170
eax: 00000000   ebx: dc883000   ecx: c0613db8   edx: 00000000
esi: 00000001   edi: 00000000   ebp: dc84cef0   esp: dc84cedc
ds: 007b   es: 007b   ss: 0068
Process serial (pid: 1073, threadinfo=dc84c000 task=ddffca50)
Stack: 00000000 de8f4f5c ffffffed 00000100 de8f4f5c dc84cf14 c035a874 090115a0
       0bc00000 dc883000 00000000 de8f4f5c 00000001 df8a2dfc dc84cf40 c0171270
       dc84c000 00000001 00000000 de8f4f5c dbc75e94 00000000 de8f4f5c dbc75e94
Call Trace:
 [<c01076c5>] show_stack+0x75/0x90
 [<c010781f>] show_registers+0x11f/0x180
 [<c01079c6>] die+0xb6/0x170
 [<c011af20>] do_page_fault+0x1e0/0x525
 [<c010732d>] error_code+0x2d/0x40
 [<c035a874>] tty_open+0x274/0x3b0
 [<c0171270>] chrdev_open+0x160/0x340
 [<c0166426>] dentry_open+0x156/0x230
 [<c01662cd>] filp_open+0x4d/0x50
 [<c0166858>] sys_open+0x38/0x70
 [<c0106199>] sysenter_past_esp+0x52/0x79

Code: de 63 c0 89 55 f0 c7 45 ec 00 00 00 00 85 f6 0f 85 31 01 00 00 c7 83
8c 09 00 00 00 00 00 00 8b 43 08 e8 3c fe ff ff 31 d2 89 c7 <8a> 50 0c 8b
43 08 29 d0 8b 74 87 18 89 b3 8c 09 00 00 89 5e 04

(gdb) list *serial_open+0x38
0xc046a188 is in serial_open (drivers/usb/serial/usb-serial.c:465).
460
461             /* get the serial object associated with this tty pointer */
462             serial = usb_serial_get_by_index(tty->index);
463
464             /* set up our port structure making the tty driver remember our port object, and us it */
465             portNumber = tty->index - serial->minor;
466             port = serial->port[portNumber];
467             tty->driver_data = port;
468
469             port->tty = tty;

22 years agoUSB: fix build error in drivers/usb/serial/console.c
Greg Kroah-Hartman [Mon, 17 May 2004 02:46:52 +0000 (19:46 -0700)]
USB: fix build error in drivers/usb/serial/console.c

Thanks to Adrian Bunk <bunk@fs.tum.de> for pointing this out.

22 years ago[libata] replace ATA_QCFLAG_ATAPI with inline helper
Jeff Garzik [Sun, 16 May 2004 21:41:56 +0000 (17:41 -0400)]
[libata] replace ATA_QCFLAG_ATAPI with inline helper

Detection of an ATAPI taskfile is possible using a simple test
on existing information, so there is no need to cache this value
in a separate flag (ATA_QCFLAG_ATAPI).  Instead, create and use
a new helper function is_atapi_taskfile().

22 years ago[libata] scsi simulator improvements: MODE SENSE, SEEK(6,10), REZERO_UNIT
Jeff Garzik [Sun, 16 May 2004 20:21:15 +0000 (16:21 -0400)]
[libata] scsi simulator improvements: MODE SENSE, SEEK(6,10), REZERO_UNIT

* SEEK(6), SEEK(10), and REZERO_UNIT are no-ops.  Unconditionally
  complete these commands with success.
* MODE SENSE caching page work:
* correct page length
* set bit, if read-ahead is disabled
* set bit, if writeback caching is enabled
  (previously, this bit was never set, even if
   writeback caching was enabled)
* add MODE SENSE r/w error recovery page

22 years ago[libata] comments and constants
Jeff Garzik [Sun, 16 May 2004 18:19:19 +0000 (14:19 -0400)]
[libata] comments and constants

* note a nasty problem with shared interrupts that must be fixed
  before we turn on certain code paths.
* add a few comments to the READ CAPACITY scsi simulator
* remove a FIXME comment from the TEST UNIT READY scsi simulator
* add constant for ATA command CHECK POWER MODE, and associated
  "mandatory" power management feature set bit.

22 years ago[libata] SCSI->ATA simulator hacking: INQUIRY command
Jeff Garzik [Sun, 16 May 2004 17:33:18 +0000 (13:33 -0400)]
[libata] SCSI->ATA simulator hacking: INQUIRY command

The SCSI T10 committee is working on a document describing a standard
method for translating ATA<->SCSI, since it being done quite often
these days.  Some of the recommendations are reasonable, and we implement
two here:

* Mirror that ATA 'removeable media' bit into INQUIRY output.
* Change behavior of INQUIRY output field 'product revision' from
  the libata software version number to the first 4 bytes of the
  ATA device's firmware revision number.

Rather than cache the firmware revision in struct ata_device, as was/is
done with two other strings, I took the opportunity to eliminate the
caching of the two other strings, 'vendor' and 'product'.  These strings
are now retrieved as needed from the IDENTIFY [PACKET] DEVICE info page,
since we cache its entire contents.

Retrieving a string from the identify-device page is done via the
helper function ata_dev_id_string(), which is now exported.

This patch winds up making struct ata_device 40 bytes smaller, and
the libata core gets a bit smaller as well.

22 years ago[libata] remove redundant use of ATA_QCFLAG_SG in ATAPI packet translation
Jeff Garzik [Sun, 16 May 2004 14:48:08 +0000 (10:48 -0400)]
[libata] remove redundant use of ATA_QCFLAG_SG in ATAPI packet translation

ata_scsi_translate() sets this flag for all ATA->SCSI translated
commands, so it need not be done in atapi_xlat().  The now-removed
use in atapi_xlat() was also inconsistent WRT PIO versus DMA.

22 years ago[libata] DMADIR support
Jeff Garzik [Sun, 16 May 2004 14:35:15 +0000 (10:35 -0400)]
[libata] DMADIR support

DMADIR bit is necessary for some PATA->SATA bridges.  These
bridges require the OS driver to specify the data xfer direction,
for PACKET (a.k.a. scsi) commands.

A reliable DMADIR detection method hasn't yet been developed,
and ATAPI is still a WIP, so DMADIR is enabled with an ifdef for
now.

22 years agoMerge bk://gkernel.bkbits.net/libata-2.6
Linus Torvalds [Sun, 16 May 2004 12:47:53 +0000 (05:47 -0700)]
Merge bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-serial
Linus Torvalds [Sun, 16 May 2004 12:39:44 +0000 (05:39 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-serial
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[SERIAL] Remove base_baud default from 8250_pci
Russell King [Sun, 16 May 2004 13:08:21 +0000 (14:08 +0100)]
[SERIAL] Remove base_baud default from 8250_pci

Since all boards specify base_baud, the code to default base_baud to
the architecture-defined BASE_BAUD is redundant.  Also, defaulting
to the architecture-defined BASE_BAUD is wrong since the UARTs on a
serial PCI card will be clocked at the same rate no matter what the
architecture of the host machine.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Sun, 16 May 2004 12:15:02 +0000 (05:15 -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] Convert execve() to be a function rather than a SWI call.
Russell King [Sun, 16 May 2004 15:37:30 +0000 (16:37 +0100)]
[ARM] Convert execve() to be a function rather than a SWI call.

This eliminates the last SWI user from the kernel - now all SWI calls
will only come from userspace.  More importantly, this also allows us
to empty the kernel stack when starting userspace programs from
kernelspace, thereby ensuring that the user registers always appear
at the top of the kernel stack.

22 years ago[ARM] Move a bunch of symbol exports from armksyms.c
Russell King [Sun, 16 May 2004 15:12:49 +0000 (16:12 +0100)]
[ARM] Move a bunch of symbol exports from armksyms.c

This moves a bunch of EXPORT_SYMBOL() statements from armksyms.c
into the file which defines the function/variable such that the
exports are localised.

This also means we can get rid of the ugly __xxx_to_xxx__is_a_macro
in include/asm-arm/arch-*/memory.h

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.6
Linus Torvalds [Sun, 16 May 2004 12:08:10 +0000 (05:08 -0700)]
Merge bk://gkernel.bkbits.net/net-drivers-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge redhat.com:/spare/repo/netdev-2.6/remove-comx
Jeff Garzik [Sun, 16 May 2004 13:55:11 +0000 (09:55 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/remove-comx
into redhat.com:/spare/repo/net-drivers-2.6

22 years agoRemove drivers/net/auto_irq.c.
Jonathan Corbet [Sun, 16 May 2004 05:52:33 +0000 (01:52 -0400)]
Remove drivers/net/auto_irq.c.

No more users of the autoirq_xxx() API existed, so this file is not
only unused, it isn't even listed in any makefiles.

22 years ago[PATCH] Fixed quota recursion fix
Andrew Morton [Sun, 16 May 2004 01:55:56 +0000 (18:55 -0700)]
[PATCH] Fixed quota recursion fix

This fixes the gfp_mask setting on the quota inode.

22 years agoMerge redhat.com:/spare/repo/b44-2.6.5
Jeff Garzik [Sat, 15 May 2004 14:45:33 +0000 (10:45 -0400)]
Merge redhat.com:/spare/repo/b44-2.6.5
into redhat.com:/spare/repo/net-drivers-2.6

22 years ago[netdrvr b44] better reset behavior
Pekka Pietikäinen [Sat, 15 May 2004 14:28:24 +0000 (10:28 -0400)]
[netdrvr b44] better reset behavior

This patch makes the b44-after-bcm4400 scenario work for
me. What was happening is that the broadcom driver sets a "power off MAC"
bit, and we didn't remove that when initializing the chip.
Also added some (a bit ugly, I know  ) logic to clear up the address
filter stuff, which is what recent broadcom drivers do...

22 years ago[libata] handle non-data ATAPI commands via interrupt
Jeff Garzik [Sat, 15 May 2004 14:07:32 +0000 (10:07 -0400)]
[libata] handle non-data ATAPI commands via interrupt

It's easier to do it this way, than polling, at the moment.

Also, fix a test in ata_scsi_translate that was incorrectly
erroring-out non-data commands.

22 years ago[libata] minor stuff
Jeff Garzik [Sat, 15 May 2004 10:36:08 +0000 (06:36 -0400)]
[libata] minor stuff

* now that ATAPI is close to working, making ATAPI DMA interrupts
  in ata_host_intr
* remove unnecessary space character in printk() output (oh, the horror)

22 years ago[PATCH] alpha: fix GP-load symbol linkage
Richard Henderson [Sat, 15 May 2004 10:29:10 +0000 (03:29 -0700)]
[PATCH] alpha: fix GP-load symbol linkage

From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>

This skips the GP-loading function prologue (two instructions: 8 bytes)
on BRSGP linkage correctly, fixing an oops on alpha while loading the
aic7xxx driver.

22 years agoWe need to use "memset_io()" when accessing PCI
Linus Torvalds [Sat, 15 May 2004 10:11:18 +0000 (03:11 -0700)]
We need to use "memset_io()" when accessing PCI
mapped memory.

A regular "memset()" may be using cache control
instructions etc, which is not appropriate for
memory-mapped IO.

This also fixes a warning.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Sat, 15 May 2004 09:31:31 +0000 (02:31 -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] 1879/1: fix a few xscale "drain write & fill buffer" instructions
Robin Farine [Sat, 15 May 2004 16:32:59 +0000 (17:32 +0100)]
[ARM PATCH] 1879/1: fix a few xscale "drain write & fill buffer" instructions

Patch from Robin Farine

Fix the xscale cache handling routines that were invalidating a D
cache line instead of draining the write & fill buffer as intended.

22 years ago[ARM PATCH] 1883/1: Bit 4 in pmd should be 0 for the ARMv6 architecture
Catalin Marinas [Sat, 15 May 2004 16:26:45 +0000 (17:26 +0100)]
[ARM PATCH] 1883/1: Bit 4 in pmd should be 0 for the ARMv6 architecture

Patch from Catalin Marinas

Unlike the v5 architecture, the ARM1136 requires that BIT4 is 0 in
the first level page descriptor (ARM1136 TRM, page 6-39). It works
at the moment but it might break future v6 cores.

22 years ago[ARM PATCH] 1882/1: Fixes in the v6_dma_(invalidate|flush)_range functions
Catalin Marinas [Sat, 15 May 2004 16:19:34 +0000 (17:19 +0100)]
[ARM PATCH] 1882/1: Fixes in the v6_dma_(invalidate|flush)_range functions

Patch from Catalin Marinas

The v6_dma_invalidate_range - the "mcr" instruction for draining

the write buffer requires r0 == 0. A "cmp" instruction for

testing the end address is missing in the v6_dma_flush_range

function.

22 years ago[ARM PATCH] 1881/1: Illegal strex instruction generated by gcc
Catalin Marinas [Sat, 15 May 2004 16:13:48 +0000 (17:13 +0100)]
[ARM PATCH] 1881/1: Illegal strex instruction generated by gcc

Patch from Catalin Marinas

The _raw_write_(try)lock functions in include/asm-arm/spinlock.h

should use the early clobber modifier (&) for the "tmp" register.

A newer compiler (gcc-3.4.0) generates an "strexeq %0, %1, [%2]"

instruction where %0 is the same as %2, which is illegal.

22 years ago[ARM PATCH] 1880/1: cache_type is uninitialised in the blockops_check() function
Catalin Marinas [Sat, 15 May 2004 16:07:10 +0000 (17:07 +0100)]
[ARM PATCH] 1880/1: cache_type is uninitialised in the blockops_check() function

Patch from Catalin Marinas

In the blockops_check() function, cache_type is uninitialised

because an "mcr" instruction is used instead of "mrc".

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
Linus Torvalds [Sat, 15 May 2004 09:26:27 +0000 (02:26 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-serial
Linus Torvalds [Sat, 15 May 2004 09:22:48 +0000 (02:22 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-serial
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] Quota fix 2
Jan Kara [Sat, 15 May 2004 09:20:21 +0000 (02:20 -0700)]
[PATCH] Quota fix 2

This fixes the problem with recursion into filesystem when inode of
quota file needs a page + some other allocation problems.  I hope I got
the GFP mask setting right..

22 years agoMerge bk://gkernel.bkbits.net/libata-2.6
Linus Torvalds [Sat, 15 May 2004 09:17:59 +0000 (02:17 -0700)]
Merge bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[libata] internal cleanups
Jeff Garzik [Sat, 15 May 2004 09:09:25 +0000 (05:09 -0400)]
[libata] internal cleanups

Remove unused 'done_late' arg to ata_qc_complete(), which was never
useful in 2.4, and never used at all in 2.6.

This allows us to eliminate the same arg from ata_dma_complete(),
and also make it more correct by passing the command rather than
the ATA port structure as arg0.

22 years agoMerge redhat.com:/spare/repo/sata-hacks/atapi-hacks-2.6
Jeff Garzik [Sat, 15 May 2004 08:47:04 +0000 (04:47 -0400)]
Merge redhat.com:/spare/repo/sata-hacks/atapi-hacks-2.6
into redhat.com:/spare/repo/libata-2.6

22 years agoFix gidsetsize == 0 for real this time.
Linus Torvalds [Sat, 15 May 2004 04:13:22 +0000 (21:13 -0700)]
Fix gidsetsize == 0 for real this time.

We need to always allocate at least one indirect block
pointer, since we always fill out blocks[0] even if
we don't have any groups.

22 years ago[PATCH] remove bogus drivers/ide/pci/cmd640.h
Bartlomiej Zolnierkiewicz [Sat, 15 May 2004 04:08:29 +0000 (21:08 -0700)]
[PATCH] remove bogus drivers/ide/pci/cmd640.h

Trivia.

CMD640 driver doesn't use generic IDE PCI code (it doesn't even include
this header).

22 years ago[PATCH] ide-disk.c: more write cache fixes
Bartlomiej Zolnierkiewicz [Sat, 15 May 2004 04:01:48 +0000 (21:01 -0700)]
[PATCH] ide-disk.c: more write cache fixes

- many Maxtor disks incorrectly claim CACHE FLUSH EXT command support,
  fix it by checking both CACHE FLUSH EXT command and LBA48 support
  (thanks to Eric D. Mudama for help in fixing this)

- write_cache() was called with 'drive->id->cfs_enable_2 & 0x3000' as 'int arg'
  argument which was always truncated to zero due to 'u8 drive->wcache = arg'
  assignment so write cache was indeed enabled but drive->wcache was zero
  (thanks to Rene Herman for help in debugging this)

- flush cache in idedisk_start_power_step() only if ATA-6 CACHE FLUSH (EXT)
  bits are present in disk's identify data (prevents sending unknown commands)

- set drive->wcache in idedisk_setup() not idedisk_attach() (no need to check
  id->command_set_2 - we check id->cfs_enable_2 instead in write_cache() call)

- use ide_cacheflush_p() in idedisk_setup()

- minor cleanups

22 years ago[PATCH] Handle empty nodes in sysfs on x86-64
Andi Kleen [Sat, 15 May 2004 03:41:14 +0000 (20:41 -0700)]
[PATCH] Handle empty nodes in sysfs on x86-64

This code is shared between i386 and x86-64, and x86-64 needs to check
for empty nodes here.  Otherwise you can get oopses at boot in some
circumstances.

This handles empty nodes != 0; empty node zero are still broken in other
ways.

22 years ago[PATCH] x86-64: fix /dev/mem caching behaviour
Andi Kleen [Sat, 15 May 2004 03:41:03 +0000 (20:41 -0700)]
[PATCH] x86-64: fix /dev/mem caching behaviour

This changes the /dev/mem caching behaviour on x86-64 to be compatible
with i386.

By default everything is set cached.

This actually makes WC MTRRs on AMD systems work, which would get
overriden by the UC PAT bits that were set earlier.  This can make DVD
decoding with hardware support a lot faster.

It also supports O_SYNC now, like i386, although that is not really
safe, because it allows the user to create undefined cache attribute
conflicts that can corrupt caches in some circumstances.  I kept it for
now.  Better would to disallow it, until Terrence Ripperda's PAT
framework is getting merged, that can avoid these problems.

Actually it would be probably a good idea to add a printk here to catch
broken programs for i386 and x86-64, but that is for another patch.

22 years ago[PATCH] x86-64 updates
Andi Kleen [Sat, 15 May 2004 03:40:53 +0000 (20:40 -0700)]
[PATCH] x86-64 updates

Various accumulated x86-64 patches and bug fixes.

It fixes one nasty bug that has been there since NX is used by
default in the kernel. With heavy AGP memory allocation it would
set NX on parts of the kernel mapping in some corner cases, which gave
endless crash loops. Thanks goes to some wizards in AMD debug labs
for getting a trace out of this.

Also various other fixes. This patches only changes x86-64 specific
files, i have some changes outside too that I am sending separately.

 - Fix help test for CONFIG_NUMA
 - Don't enable SMT nice on CMP
 - Move HT and MWAIT checks up to generic code
 - Update defconfig
 - Remove duplicated includes (Arthur Othieno)
 - Set up GSI entry for ACPI SCI correctly (from i386)
 - Fix some comments
 - Fix threadinfo printing in oopses
 - Set task alignment to 16 bytes
 - Handle NX bit for code pages correctly in change_page_attr()
 - Use generic nops for non amd specific kernel
 - Add __KERNEL__ checks in unistd.h (David Lee)

22 years agoFix bogus debug code in usb/misc/cytherm.c
Linus Torvalds [Sat, 15 May 2004 03:38:09 +0000 (20:38 -0700)]
Fix bogus debug code in usb/misc/cytherm.c

Uncovered by recent cleanup of "dev_dbg()".

22 years ago[PATCH] i2o_config build fix
Andrew Morton [Sat, 15 May 2004 03:27:04 +0000 (20:27 -0700)]
[PATCH] i2o_config build fix

Stomp a C99ism.

22 years ago[PATCH] Fix botched fbdev lvalue conversion
Andrew Morton [Sat, 15 May 2004 03:26:53 +0000 (20:26 -0700)]
[PATCH] Fix botched fbdev lvalue conversion

22 years ago[PATCH] typhoon locking fix
Andrew Morton [Sat, 15 May 2004 03:26:42 +0000 (20:26 -0700)]
[PATCH] typhoon locking fix

Initialise the semaphore even if !MODULE

22 years ago[PATCH] radeonfb stack space fix
Andrew Morton [Sat, 15 May 2004 03:26:32 +0000 (20:26 -0700)]
[PATCH] radeonfb stack space fix

These (unused) arrays are causing huge stack utilisation when instantiated in
an auto variable.  Remove them for now.

22 years ago[PATCH] bootmem.c cleanup
Andrew Morton [Sat, 15 May 2004 03:26:21 +0000 (20:26 -0700)]
[PATCH] bootmem.c cleanup

From: Michael Buesch <mbuesch@freenet.de>

- BUG_ON() conversion

- Remove redundant dump_stack() (BUG already does that)

22 years ago[PATCH] groups_alloc(0) clobbers memory past end of block
Andrew Morton [Sat, 15 May 2004 03:26:11 +0000 (20:26 -0700)]
[PATCH] groups_alloc(0) clobbers memory past end of block

From: Olaf Kirch <okir@suse.de>

Authentication code in net/sunrpc makes frequent use of groups_alloc(0),
which seems to clobber memory past the end of what it allocated.

If called with gidsetsize == 0, groups_alloc will set nblocks = 0,
but still does a

group_info->blocks[0] = group_info->small_block;

22 years ago[PATCH] ac97_plugin_ad1980 porting fix
Andrew Morton [Sat, 15 May 2004 03:26:00 +0000 (20:26 -0700)]
[PATCH] ac97_plugin_ad1980 porting fix

From: "Uwe Bugla" <uwe.bugla@gmx.de>

Fix up a mistake in the 2.4->2.6 forward-port of this driver.

22 years ago[PATCH] Increase xfsbufd_centisecs when in laptop mode
Andrew Morton [Sat, 15 May 2004 03:25:50 +0000 (20:25 -0700)]
[PATCH] Increase xfsbufd_centisecs when in laptop mode

From: Bart Samwel <bart@samwel.tk>

The attached patch is the outcome of a discussion with Nathan.

When laptop mode is active, there is no need for XFS to wake up xfsbufd (the
daemon that flushes buffers that are too old) too often.  The default is once
every second, this patch makes laptop mode do it once every 30 seconds.

22 years ago[PATCH] Laptop mode control script support for XFS *_centisecs sysctl values.
Andrew Morton [Sat, 15 May 2004 03:25:39 +0000 (20:25 -0700)]
[PATCH] Laptop mode control script support for XFS *_centisecs sysctl values.

From: Bart Samwel <bart@samwel.tk>

XFS now uses
/proc/sys/fs/xfs/xfssyncd_centisecs
/proc/sys/fs/xfs/xfsbufd_centisecs
/proc/sys/fs/xfs/age_buffer_centisecs

Here's a patch to support these values in the laptop mode control script.

22 years ago[PATCH] remove unused acpi_irq_to_vector()
Andrew Morton [Sat, 15 May 2004 03:25:29 +0000 (20:25 -0700)]
[PATCH] remove unused acpi_irq_to_vector()

From: Bjorn Helgaas <bjorn.helgaas@hp.com>

Now that everybody has acpi_gsi_to_irq(), we can nuke the deprecated
acpi_irq_to_vector().  No references remain.

22 years ago[PATCH] floppy.c: better/cleaner use of debugt
Andrew Morton [Sat, 15 May 2004 03:25:17 +0000 (20:25 -0700)]
[PATCH] floppy.c: better/cleaner use of debugt

From: "Randy.Dunlap" <rddunlap@osdl.org>

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

floppy_debugt.patch: better use of the debugt functions.

22 years ago[PATCH] floppy.c: better floppy_init error handling
Andrew Morton [Sat, 15 May 2004 03:25:08 +0000 (20:25 -0700)]
[PATCH] floppy.c: better floppy_init error handling

From: "Randy.Dunlap" <rddunlap@osdl.org>

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

Adds a better audit for floppy_init().  Fixes one real bug (in calling
blk_queue_max_sectors()).

22 years ago[PATCH] Export `laptop_mode' for XFS
Andrew Morton [Sat, 15 May 2004 03:24:57 +0000 (20:24 -0700)]
[PATCH] Export `laptop_mode' for XFS

From: <bart@samwel.tk>

XFS needs `laptop_mode'.

22 years ago[PATCH] Remove old sh-sci driver
Andrew Morton [Sat, 15 May 2004 03:24:47 +0000 (20:24 -0700)]
[PATCH] Remove old sh-sci driver

From: Paul Mundt <lethal@linux-sh.org>

The old drivers/char sh-sci driver is no long used by anyone, both sh and
h8300 are using the drivers/serial version at this point, so we can get rid
of the old one entirely.

22 years ago[PATCH] Fix x86_64 allmodconfig with gcc-3.4.0
Andrew Morton [Sat, 15 May 2004 03:24:36 +0000 (20:24 -0700)]
[PATCH] Fix x86_64 allmodconfig with gcc-3.4.0

From: Andi Kleen <ak@muc.de>

*** Warning: "memcmp" [drivers/atm/zatm.ko] undefined!

gcc 3.4 specific problem.  This patch should fix it.  Actually it would be
better to move all these EXPORT_SYMBOLs into lib/string.c, it is silly that
each arch has to duplicate all that.

22 years ago[PATCH] remove driver model code in mwave driver
Andrew Morton [Sat, 15 May 2004 03:24:25 +0000 (20:24 -0700)]
[PATCH] remove driver model code in mwave driver

From: Christoph Hellwig <hch@lst.de>

Someone blindly added sysfs support to the driver long time ago without
understanding the implications (and if they were understood the driver
would need half a rewrite for it).  Herber Xu recently noticed the problems
this causes on unload, so let's if 0 out all that code and get the driver
working again.

22 years ago[PATCH] Make /proc/sysrq-trigger ignore sysrq_enabled
Andrew Morton [Sat, 15 May 2004 03:24:15 +0000 (20:24 -0700)]
[PATCH] Make /proc/sysrq-trigger ignore sysrq_enabled

It's silly that writing to /proc/sysrq-trigger does nothing if you haven't
enabled /proc/sys/kernel/sysrq.  So provide a new __handle_sysrq() which
ignores the sysrq_enabled check.

The patch also withdraws __handle_sysrq_nolock() from the kernel API.  It had
no callers.

22 years ago[PATCH] x86_64 msr.c warning fix
Andrew Morton [Sat, 15 May 2004 03:24:04 +0000 (20:24 -0700)]
[PATCH] x86_64 msr.c warning fix

arch/x86_64/kernel/msr.c:1:10: warning: extra tokens at end of #ident directive

22 years ago[PATCH] fix aic7xxx_old.c for !PCI
Andrew Morton [Sat, 15 May 2004 03:23:54 +0000 (20:23 -0700)]
[PATCH] fix aic7xxx_old.c for !PCI

From: Adrian Bunk <bunk@fs.tum.de>

drivers/scsi/aic7xxx_old.c: In function `aic7xxx_release':
drivers/scsi/aic7xxx_old.c:10971: warning: implicit declaration of function `pci_release_regions'

22 years ago[PATCH] fix tlan.c for !PCI
Andrew Morton [Sat, 15 May 2004 03:23:43 +0000 (20:23 -0700)]
[PATCH] fix tlan.c for !PCI

From: Adrian Bunk <bunk@fs.tum.de>

drivers/net/tlan.c: In function `tlan_remove_one':
drivers/net/tlan.c:449: warning: implicit declaration of function `pci_release_regions'

22 years ago[PATCH] fix cyclades compile with !PCI
Andrew Morton [Sat, 15 May 2004 03:23:33 +0000 (20:23 -0700)]
[PATCH] fix cyclades compile with !PCI

From: Adrian Bunk <bunk@fs.tum.de>

drivers/char/cyclades.c: In function `cy_cleanup_module':
drivers/char/cyclades.c:5638: warning: implicit declaration of function `pci_release_regions'

22 years ago[PATCH] Fix endianess in modpost when cross-compiling for sparc on i386
Andrew Morton [Sat, 15 May 2004 03:23:22 +0000 (20:23 -0700)]
[PATCH] Fix endianess in modpost when cross-compiling for sparc on i386

From: Mathieu Chouquet-Stringer <mchouque@online.fr>

This patch makes the following code work again:

#ifdef STT_REGISTER
                if (info->hdr->e_machine == EM_SPARC ||
                    info->hdr->e_machine == EM_SPARCV9) {
                        /* Ignore register directives. */
                        if (ELF_ST_TYPE(sym->st_info) == STT_REGISTER)
                                break;
                }
#endif

This portion of code is sparc specific and nothing else in modpost.c uses
e_machine meaning cross-compiling for sparc on i386 (or any little endian
machine) is the only way to experience the bug.

Without it, e_machine has the wrong value and modpost then generates a lot
of "*** Warning: \"symbol\" [filename.ko] undefined" messages.

22 years ago[PATCH] m68k: use print_modules()
Andrew Morton [Sat, 15 May 2004 03:23:12 +0000 (20:23 -0700)]
[PATCH] m68k: use print_modules()

From: Geert Uytterhoeven <geert@linux-m68k.org>

22 years ago[PATCH] implement print_modules()
Andrew Morton [Sat, 15 May 2004 03:23:01 +0000 (20:23 -0700)]
[PATCH] implement print_modules()

From: Arjan van de Ven <arjanv@redhat.com>,
      Rusty Russell <rusty@rustcorp.com.au>

The patch below resolves the "Not Yet Implemented" print_modules() thing.
This is a really useful feature for distros; it allows us to do statistical
analysis on which modules are present how often in oopses compared to how
often they are used normally.  In addition it helps to spot candidates for
certain bugs without having to go back to the customer asking for this
information.

22 years ago[PATCH] Fix reiserfs oom crash
Andrew Morton [Sat, 15 May 2004 03:22:51 +0000 (20:22 -0700)]
[PATCH] Fix reiserfs oom crash

From: Oleg Drokin <green@linuxhacker.ru>

Thanks to Standford guys, a case where reiserfs can dereference NULL
pointer if memory allocation fail during mount was identified.

22 years ago[PATCH] fix block layer ioctl bug
Andrew Morton [Sat, 15 May 2004 03:22:41 +0000 (20:22 -0700)]
[PATCH] fix block layer ioctl bug

From: Alan Cox <alan@redhat.com>

The block layer checks for -EINVAL from block layer driver ioctls.  This is
wrong - ENOTTY is unknown and some drivers correctly use this.  I suspect
for an internal ioctl 2.7 should change to -ENOIOCTLCMD and bitch about old
style returns

This is conservative fix for the 2.6 case, it keeps the bogus -EINVAL to
avoid breaking stuff