]> git.hungrycats.org Git - linux/log
linux
20 years agoLinux 2.6.11-rc1 v2.6.11-rc1
Linus Torvalds [Tue, 11 Jan 2005 11:48:12 +0000 (03:48 -0800)]
Linux 2.6.11-rc1

20 years ago[PATCH] BUG on error handlings in Ext3 under I/O failure condition
Hisashi Hifumi [Tue, 11 Jan 2005 11:30:37 +0000 (03:30 -0800)]
[PATCH] BUG on error handlings in Ext3 under I/O failure condition

I found bugs on error handlings in the functions arround the ext3 file
system, which cause inadequate completions of synchronous write I/O
operations when disk I/O failures occur.  Both 2.4 and 2.6 have this
problem.

I carried out following experiment:

1.  Mount a ext3 file system on a SCSI disk with ordered mode.
2.  Open a file on the file system with O_SYNC|O_RDWR|O_TRUNC|O_CREAT flag.
3.  Write 512 bytes data to the file by calling write() every 5 seconds, and
     examine return values from the syscall.
     from write().
4.  Disconnect the SCSI cable,  and examine messages from the kernel.

After the SCSI cable is disconnected, write() must fail.  But the result
was different: write() succeeded for a while even though messages of the
kernel notified SCSI I/O error.

By applying following modifications, the above problem was solved.

Signed-off-by: Hisashi Hifumi <hifumi.hisashi@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] sched: Make PREEMPT_BKL depend on PREEMPT alone
Ingo Molnar [Tue, 11 Jan 2005 11:30:23 +0000 (03:30 -0800)]
[PATCH] sched: Make PREEMPT_BKL depend on PREEMPT alone

Make PREEMPT_BKL depend on PREEMPT alone - doesnt make sense to enable it
on SMP && !PREEMPT kernels.  (other than testing.)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: yenta override to re-allocate resources
Dominik Brodowski [Tue, 11 Jan 2005 11:30:10 +0000 (03:30 -0800)]
[PATCH] pcmcia: yenta override to re-allocate resources

From: Manfred Spraul

One bios assigns a small window for i/o access to yenta bridges.  But there
are Cardbus cards that needs lots of i/o ports.  yenta usually honors the bios
selected values, except if the bios choice is clearly invalid.  The patch
allows an override from the command line.

Signed-Off-By: Manfred Spraul <manfred@colorfullife.com>
Signed-Off-By: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: grab lock in resource_release
Dominik Brodowski [Tue, 11 Jan 2005 11:29:57 +0000 (03:29 -0800)]
[PATCH] pcmcia: grab lock in resource_release

Also lock the ->exit() function in rsrc_nostatic

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: remove typedef
Dominik Brodowski [Tue, 11 Jan 2005 11:29:44 +0000 (03:29 -0800)]
[PATCH] pcmcia: remove typedef

Remove the typedef'ing of struct resource_map.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: allocate resource database per-socket
Dominik Brodowski [Tue, 11 Jan 2005 11:29:31 +0000 (03:29 -0800)]
[PATCH] pcmcia: allocate resource database per-socket

Move the resource databases and the "mem_probe" flag into a struct
specific to rsrc_nonstatic, as it is not needed for the SS_CAP_STATIC_MAP
case. Saves a few bytes, and makes code clearer (in my opinion)

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: make rsrc_nonstatic an independend module
Dominik Brodowski [Tue, 11 Jan 2005 11:29:18 +0000 (03:29 -0800)]
[PATCH] pcmcia: make rsrc_nonstatic an independend module

Make rsrc_nonstatic an independent module.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: move resource handling code only for non-statically mapped sockets...
Dominik Brodowski [Tue, 11 Jan 2005 11:29:04 +0000 (03:29 -0800)]
[PATCH] pcmcia: move resource handling code only for non-statically mapped sockets to other file

Move all the "nonstatic" code to a new file, and link it into pcmcia_core.ko

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: adjust_ and release_resources only for non-statically mapped sockets
Dominik Brodowski [Tue, 11 Jan 2005 11:28:50 +0000 (03:28 -0800)]
[PATCH] pcmcia: adjust_ and release_resources only for non-statically mapped sockets

re-direct calls to adjust_resource_info for MEM and IO.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: find_mem_region only for non-statically mapped sockets
Dominik Brodowski [Tue, 11 Jan 2005 11:28:37 +0000 (03:28 -0800)]
[PATCH] pcmcia: find_mem_region only for non-statically mapped sockets

Calls to adjust_mem_region only happen if !SS_CAP_STATIC_MAP.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: find_io_region only for non-statically mapped sockets
Dominik Brodowski [Tue, 11 Jan 2005 11:28:24 +0000 (03:28 -0800)]
[PATCH] pcmcia: find_io_region only for non-statically mapped sockets

Calls to find_io_region only happen if !SS_CAP_STATIC_MAP.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: adjust_io_region only for non-statically mapped sockets
Dominik Brodowski [Tue, 11 Jan 2005 11:28:10 +0000 (03:28 -0800)]
[PATCH] pcmcia: adjust_io_region only for non-statically mapped sockets

Calls to adjust_io_region only happen if !SS_CAP_STATIC_MAP.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: validate_mem only for non-statically mapped sockets
Dominik Brodowski [Tue, 11 Jan 2005 11:27:58 +0000 (03:27 -0800)]
[PATCH] pcmcia: validate_mem only for non-statically mapped sockets

validate_mem() does only make sense for !SS_CAP_STATIC_MAP sockets. Therefore,
re-direct validate_mem() calls only for those. The newly added redirection
layer will allow for a "library" module named "rsrc_nonstatic" which contains
the resource database handling code, and it will only need to be loaded for
the drivers which need it.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: per-socket resource database
Dominik Brodowski [Tue, 11 Jan 2005 11:27:45 +0000 (03:27 -0800)]
[PATCH] pcmcia: per-socket resource database

Make the io and mem db per-socket, as different sockets may have different
requirements or may not even need the resource db at all (SS_CAP_STATIC_MAP).
Updated to make rsrc_mem_probe per-socket and to remove unnecessary and even
broken check for empty list as per Russell King's suggestions.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: remove mtd and bulkmem (replaced by pcmciamtd)
Dominik Brodowski [Tue, 11 Jan 2005 11:27:32 +0000 (03:27 -0800)]
[PATCH] pcmcia: remove mtd and bulkmem (replaced by pcmciamtd)

Instead of "memory_cs", BIND_MTD, {FIRST,NEXT}_REGION, 2.6. kernels
use the "pcmciamtd" driver which doesn't need these functions. Cardmgr
still calls it in default configuration, so warn the user about changes
necessary to /etc/pcmcia/config , and remove the now unused code.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: remove dev_info from client
Dominik Brodowski [Tue, 11 Jan 2005 11:27:18 +0000 (03:27 -0800)]
[PATCH] pcmcia: remove dev_info from client

Remove the dev_info - contained name from struct client_t

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: remove unneeded parameter from rsrc_mgr
Dominik Brodowski [Tue, 11 Jan 2005 11:27:05 +0000 (03:27 -0800)]
[PATCH] pcmcia: remove unneeded parameter from rsrc_mgr

Remove the no longer used "name" parameter from alloc_io_space,
find_{io,mem}_region.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: remove client_attributes
Dominik Brodowski [Tue, 11 Jan 2005 11:26:51 +0000 (03:26 -0800)]
[PATCH] pcmcia: remove client_attributes

Remove the "Attributes" entry of struct client_t -- _all_ in-kernel drivers
did set it to INFO_IO_CLIENT | INFO_CARD_SHARE anyway, and the pcmcia core
didn't care at all what this value was set to.

Also, remove the setting of the respective request field in all in-kernel
drivers -- the request structure is kept the same, though, to keep external
drivers compiling.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: remove pending_events
Dominik Brodowski [Tue, 11 Jan 2005 11:26:35 +0000 (03:26 -0800)]
[PATCH] pcmcia: remove pending_events

PendingEvents is unused, so remove it

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: remove obsolete code
Dominik Brodowski [Tue, 11 Jan 2005 11:26:22 +0000 (03:26 -0800)]
[PATCH] pcmcia: remove obsolete code

Remove the code marked as obsolete -- nobody complained.

Signed-off-by: Dominik Broodwski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: pd6729: isa_irq handling
Dominik Brodowski [Tue, 11 Jan 2005 11:26:09 +0000 (03:26 -0800)]
[PATCH] pcmcia: pd6729: isa_irq handling

From:  Komuro <komurojun-mbn@nifty.com>

Allow for ISA interrupt routing on pd6729 pcmcia sockets. This is necessary
for correct operation of (certain?) PCI card readers.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: pd6729: cleanups
Dominik Brodowski [Tue, 11 Jan 2005 11:25:55 +0000 (03:25 -0800)]
[PATCH] pcmcia: pd6729: cleanups

From:  Komuro <komurojun-mbn@nifty.com>

line length fixes and x = x | y => x |= y cleanups

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: pd6729: e-mail update
Dominik Brodowski [Tue, 11 Jan 2005 11:25:45 +0000 (03:25 -0800)]
[PATCH] pcmcia: pd6729: e-mail update

From:  Komuro <komurojun-mbn@nifty.com>

e-mail update

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: rename PCMCIA devices
Dominik Brodowski [Tue, 11 Jan 2005 11:25:32 +0000 (03:25 -0800)]
[PATCH] pcmcia: rename PCMCIA devices

As per the default usage in the driver model, don't embed the bus name into
the device name

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: Add disable_clkrun option
Hirofumi Ogawa [Tue, 11 Jan 2005 11:25:18 +0000 (03:25 -0800)]
[PATCH] pcmcia: Add disable_clkrun option

I received report that transmission of Realtek 8139 doesn't work.  The
cause of this problem was CLKRUN protocols of laptop's TI 12xx CardBus
bridge.

CLKRUN is used for controlling the PCI clock by PCI devices (for power saving).
 If device has bug, probably it becomes the cause of stopping the PCI clock at
an unexpected timing.

In the problem of realtek 8139 case, the TX packet which the driver set to the
device was not sent out (still pending state in device).

If "disable_clkrun" is enabled, the problem of TX stopped occurring.  So, I
thought the cause is CLKRUN, and is hardware bug of Cardbus or realtek 8139.
(8139 seems only can control by rewriting EEPROM)

And looks like also
 http://support.microsoft.com/default.aspx?scid=kb;en-us;q294465
 http://support.microsoft.com/default.aspx?scid=kb;en-us;182591
has the problem of CLKRUN.

And I remember that this problem had happened on Thinkpad before.  In the
case, problem seems solved by similar workaround of sound/oss/cs46xx.c.

This patch adds "disable_clkrun" option as workaround of problem to
yenta_socket.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: reduce stack usage in ds_ioctl (Randy Dunlap)
Dominik Brodowski [Tue, 11 Jan 2005 11:25:05 +0000 (03:25 -0800)]
[PATCH] pcmcia: reduce stack usage in ds_ioctl (Randy Dunlap)

Reduce stack usage from 696 (0x2b8) to 24 (0x18) (on x86-32).

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Dominik Brodowski <linux@broro.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: SET_NETDEV for wireless network devices
Dominik Brodowski [Tue, 11 Jan 2005 11:24:52 +0000 (03:24 -0800)]
[PATCH] pcmcia: SET_NETDEV for wireless network devices

This patch updates pcmcia wireless drivers so that their class devices are
linked to the correct physical device.  Based on an patch by Adam Belay, but
adapted to a different pcmcia driver model implementation.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: SET_NETDEV for network devices
Dominik Brodowski [Tue, 11 Jan 2005 11:24:39 +0000 (03:24 -0800)]
[PATCH] pcmcia: SET_NETDEV for network devices

This patch updates pcmcia network drivers so that their class devices are
linked to the correct physical device.  Based on an patch by Adam Belay, but
adapted to a different pcmcia driver model implementation.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: use driver_find in ds
Dominik Brodowski [Tue, 11 Jan 2005 11:24:25 +0000 (03:24 -0800)]
[PATCH] pcmcia: use driver_find in ds

Use driver_find() in ds.c instead of legacy implementation, and make use of
its reference counting awareness.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: move struct client_t inside struct pcmcia_device
Dominik Brodowski [Tue, 11 Jan 2005 11:24:11 +0000 (03:24 -0800)]
[PATCH] pcmcia: move struct client_t inside struct pcmcia_device

Move the struct client_t inside struct pcmcia_device.  This means it gets
proper reference counting as well.  The clients list inside struct
pcmcia_socket can be removed now.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: BUG() if clients are kept too long
Dominik Brodowski [Tue, 11 Jan 2005 11:23:56 +0000 (03:23 -0800)]
[PATCH] pcmcia: BUG() if clients are kept too long

BUG if the socket's list of clients is not empty on shutdown and/or removal.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: BUG on dev_list != NULL
Dominik Brodowski [Tue, 11 Jan 2005 11:23:43 +0000 (03:23 -0800)]
[PATCH] pcmcia: BUG on dev_list != NULL

All in-kernel PCMCIA devices do unregister their client in their respective
->detach() function after a REMOVAL event.  So, AFAICS, the dev_list iteration
should always be false.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: direct-ordered unbind of devices
Dominik Brodowski [Tue, 11 Jan 2005 11:23:26 +0000 (03:23 -0800)]
[PATCH] pcmcia: direct-ordered unbind of devices

Restructure unbind_request():
Before, unbind_request was called by cardmgr on the following occasions:

a) if the CS_EVENT_CARD_INSERTION event failed

b) during do_remove(), which is called on
1) when cardmgr is informed of a CS_EVENT_CARD_REMOVAL event
2) when cardmgr is informed of a CS_EVENT_EJECTION_REQUEST event, if
   do_check() succeeds
3) cardmgr exit (SIGINT/SIGTERM), if do_check() succeeds

We can ignore a), as the user is informed of the problem anyway, and can
take appropriate action then (eject the card, update config, write new driver,
insert card...).

b1) can be done directly, even before the userspace cardmgr is informed.
    This speeds up the call to ->detach().

b2) All drivers I checked were based on the assumption that a
    CS_EVENT_CARD_REMOVAL event is received _first_, before a call to
    ->detach().  Most notably, some drivers issue first a call to their
    release() function [which else is called during EVENT_CARD_REMOVAL] during
    ->detach() if it hasn't been issued before.  So, it doesn't hurt if unbind
    is only called during the EVENT_CARD_REMOVAL step, and not during
    EJECTION_REQUEST.  The REMOVAL step is only called anyway if
    EJECTION_REQUEST succeeds, and the latter can only succeed if do_check()
    succeeds.

b3) If cardmgr exits from daemon mode, ds_release() is called.  I can't
    see a reason why this is good behaviour, especially as cards don't need
    cardmgr while running, only for setup.

Consequences:
- call unbind_request during CARD_REMOVAL handling, even before userspace
  is informed.
- return "0" if UNBIND_REQUEST is called from userspace.
- the driver's event handler is called with CARD_REMOVAL _always_ before
  ->detach() is called.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: use pcmcia_device in register_client
Dominik Brodowski [Tue, 11 Jan 2005 11:23:13 +0000 (03:23 -0800)]
[PATCH] pcmcia: use pcmcia_device in register_client

Search the devices_list for an UNBOUND client in register_client,
instead of the single linked list clients.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: code moving in ds
Dominik Brodowski [Tue, 11 Jan 2005 11:23:00 +0000 (03:23 -0800)]
[PATCH] pcmcia: code moving in ds

Move some code around in ds.c. Avoids forward-declarations, and keeps
related code close to each other.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: use pcmcia_device to mark clients as stale
Dominik Brodowski [Tue, 11 Jan 2005 11:22:46 +0000 (03:22 -0800)]
[PATCH] pcmcia: use pcmcia_device to mark clients as stale

Use pcmcia_dev instead of the "client" single-linked list to mark
clients as stale.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: use pcmcia_device in send_event
Dominik Brodowski [Tue, 11 Jan 2005 11:22:33 +0000 (03:22 -0800)]
[PATCH] pcmcia: use pcmcia_device in send_event

Use a struct pcmcia_device-based approach to inform "clients" of events.  It
needs to be done using bus_for_each_device() so that we don't need to take the
device_list spinlock.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: add a pointer to client in struct pcmcia_device
Dominik Brodowski [Tue, 11 Jan 2005 11:22:20 +0000 (03:22 -0800)]
[PATCH] pcmcia: add a pointer to client in struct pcmcia_device

Add a pointer to the "client" structure to struct pcmcia_device.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: get a reference to ds-socket for each pcmcia_device
Dominik Brodowski [Tue, 11 Jan 2005 11:22:07 +0000 (03:22 -0800)]
[PATCH] pcmcia: get a reference to ds-socket for each pcmcia_device

Obtain a reference to struct pcmcia_bus_socket for each pcmcia_device. This
means that pcmcia_device always holds an indirect reference to struct
pcmcia_socket as well.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: grab a reference to the cs-socket in ds
Dominik Brodowski [Tue, 11 Jan 2005 11:21:53 +0000 (03:21 -0800)]
[PATCH] pcmcia: grab a reference to the cs-socket in ds

Grab a reference of struct pcmcia_socket for every struct pcmcia_bus_socket.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: add pcmcia_(put,get)_socket
Dominik Brodowski [Tue, 11 Jan 2005 11:21:40 +0000 (03:21 -0800)]
[PATCH] pcmcia: add pcmcia_(put,get)_socket

Add pcmcia_{put,get}_socket

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: use kref instead of native atomic counter
Dominik Brodowski [Tue, 11 Jan 2005 11:21:26 +0000 (03:21 -0800)]
[PATCH] pcmcia: use kref instead of native atomic counter

Switch pcmcia_bus_socket's reference counting to struct kref.  Also, split the
access by number into two calls, so that get_bus_socket can be used in a more
generic way.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: device model integration can only be submitted under GPL, part 2
Dominik Brodowski [Tue, 11 Jan 2005 11:21:13 +0000 (03:21 -0800)]
[PATCH] pcmcia: device model integration can only be submitted under GPL, part 2

As discussed previously, my integration of ds.c and cs.c with the driver model
can and will only be available under the GPL, as it's too much derived of
other buses' implementation of integration with the driver model.

cs_internal.h did only contain the MPL header before - I contacted Dave Hinds
because of this, and as far as he can tell, it was just an oversight that this
was not marked as dual-licensed as the other files are.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: move pcmcia_(un,)register_client to ds
Dominik Brodowski [Tue, 11 Jan 2005 11:21:00 +0000 (03:21 -0800)]
[PATCH] pcmcia: move pcmcia_(un,)register_client to ds

Move pcmcia_{de,}register_client() from cs.c to ds.c, and remove the unused
pcmcia_get_{first,next}_client() calls -- they would be an unnecessary hassle
to deal with in the next patches.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: set driver's .owner field
Dominik Brodowski [Tue, 11 Jan 2005 11:20:46 +0000 (03:20 -0800)]
[PATCH] pcmcia: set driver's .owner field

Properly set the "owner" field in pcmcia-related struct device_driver.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: remove internal module use count, use module_refcount instead
Dominik Brodowski [Tue, 11 Jan 2005 11:20:33 +0000 (03:20 -0800)]
[PATCH] pcmcia: remove internal module use count, use module_refcount instead

Remove the internal driver use_count in ds.c, as the reference counting is
done in the module core anyways, and that reference count is available for
cardmgr's usage by a call to module_refcount.  And if !CONFIG_MODULE_UNLOAD,
rmmod is useless anyways, so avoid that call by cardmgr at all.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: remove socket_bind_t, use pcmcia_devices instead
Dominik Brodowski [Tue, 11 Jan 2005 11:20:20 +0000 (03:20 -0800)]
[PATCH] pcmcia: remove socket_bind_t, use pcmcia_devices instead

Remove struct socket_bind_t by moving "dev_link_t *instance" to struct
pcmcia_device, and transforming all users of socket_bind_t to use struct
pcmcia_device instead.  Also, CodingStyle updates for get_device_info and
unbind_request.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: add pcmcia_device(s)
Dominik Brodowski [Tue, 11 Jan 2005 11:20:06 +0000 (03:20 -0800)]
[PATCH] pcmcia: add pcmcia_device(s)

Add pcmcia_device(s).

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: device model integration can only be submitted under GPL
Dominik Brodowski [Tue, 11 Jan 2005 11:19:53 +0000 (03:19 -0800)]
[PATCH] pcmcia: device model integration can only be submitted under GPL

As discussed previously, my integration of ds.c with the driver model
can and will only be available under the GPL, as it's too much
derived of other buses' implementation of integration with the driver model.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: unfiy bind_device and pcmcia_bind_device
Dominik Brodowski [Tue, 11 Jan 2005 11:19:40 +0000 (03:19 -0800)]
[PATCH] pcmcia: unfiy bind_device and pcmcia_bind_device

Unify bind_device and pcmcia_bind_device. Also, change bind_device so
that it conforms to CodingStyle.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: unify bind_mtd and pcmcia_bind_mtd
Dominik Brodowski [Tue, 11 Jan 2005 11:19:27 +0000 (03:19 -0800)]
[PATCH] pcmcia: unify bind_mtd and pcmcia_bind_mtd

Unify the pcmcia_bind_mtd and bind_mtd functions.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: call device drivers from ds, not from cs
Dominik Brodowski [Tue, 11 Jan 2005 11:19:14 +0000 (03:19 -0800)]
[PATCH] pcmcia: call device drivers from ds, not from cs

Call the PCMCIA 16-bit device drivers from ds.c instead of cs.c. Also,
remove the delayed handling of CS_REMOVAL events, but keep the ordering
the same as it used to be due to the delay.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] pcmcia: new ds - cs interface
Dominik Brodowski [Tue, 11 Jan 2005 11:19:00 +0000 (03:19 -0800)]
[PATCH] pcmcia: new ds - cs interface

Add a new registration function to register the PCMCIA 16-bit subsystem
(ds a.k.a. pcmcia) with the PCMICA core (cs a.k.a. pcmcia_core).

As send_event is only called with skt->sem held, we can use that to safeguard
skt->callback(), too. Note that the class_device_register() call by pccardd()
is done _before_ skt->sem() is held, and the pcmcia_socket_register() doesn't
hold skt->sem() as well, so there is no chance for a deadlock.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] fix ->setattr ATTR_SIZE locking for nfsd
Christoph Hellwig [Tue, 11 Jan 2005 11:18:47 +0000 (03:18 -0800)]
[PATCH] fix ->setattr ATTR_SIZE locking for nfsd

Since the big direct I/O rework do_truncate takes i_alloc_sem before
calling into ->setattr.  Unfortunately the other callers of ->setattr with
ATTR_SIZE, most notably nfsd don't take it.

The (out of tree) XFS dmapi code relies wants to release i_alloc_sem and
thus gets into problems like

http://oss.sgi.com/bugzilla/show_bug.cgi?id=365

This patch moves acquiring and releasing i_alloc_sem into notify_change()
to make the locking behaviour consistant.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] binfmt_elf fix return error codes and early corrupt binary detection
Marcelo Tosatti [Tue, 11 Jan 2005 11:18:34 +0000 (03:18 -0800)]
[PATCH] binfmt_elf fix return error codes and early corrupt binary detection

With Solar Designer <solar@openwall.com>

The following patch changes the following on ELF parsing/loading code
(fs/binfmt_elf):

- Stronger validity checks on ELF files:
        treat e_phnum (program header count) < 1 as invalid
        treat p_filesz (file size) < 2 invalid on program header interp. case
 - Saner return error codes
 - Make sure SIGKILL is delivered on error handling

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] Catch module parameter parsing failures
Rusty Russell [Tue, 11 Jan 2005 11:18:21 +0000 (03:18 -0800)]
[PATCH] Catch module parameter parsing failures

Radheka Godse <radheka.godse@intel.com> pointed out that parameter parsing
failures allow a module still to be loaded.  Trivial fix.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] easily tweakable comm length
Prasanna Meda [Tue, 11 Jan 2005 11:18:08 +0000 (03:18 -0800)]
[PATCH] easily tweakable comm length

This change still keeps the comm length at 16, but allows easier patching
for local modifications, and also introduces a macro to use instead of
magic 16, where sizeof(comm) is not preferable to use.

Not able to use killall, pidof etc.  effectively, when long process names
are used for scripts.  Just changing the command length from 16 to 32
breaks a.out coredump logic.  Deamonise and get_task_comm helped in other
places in 2.6.10.

Signed-off-by: Prasanna Meda <pmeda@akamai.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] audit return code and log format fix
Peter Martuccelli [Tue, 11 Jan 2005 11:17:55 +0000 (03:17 -0800)]
[PATCH] audit return code and log format fix

A couple of one liners to resolve two issues that have come up regarding
audit.

Roger reported a problem with audit.c:audit_receive_skb which improperly
negates the errno argument when netlink_ack is called.

The second issue was reported by Steve on the linux-audit list,
auditsc.s:audit_log_exit using %u instead of %d in the audit_log_format
call.

Please note, there is a mailing list available for audit discussion at
https://www.redhat.com/archives/linux-audit/

Signed-off-by: Peter Martuccelli <peterm@redhat.com>
Signed-off-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Roger Luethi <rl@hellgate.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] seclvl: add missing dependency
Akinobu Mita [Tue, 11 Jan 2005 11:17:41 +0000 (03:17 -0800)]
[PATCH] seclvl: add missing dependency

*** Warning: "crypto_free_tfm" [security/seclvl.ko] undefined!
*** Warning: "crypto_alloc_tfm" [security/seclvl.ko] undefined!
*** Warning: "crypto_unregister_alg" [crypto/sha1.ko] undefined!
*** Warning: "crypto_register_alg" [crypto/sha1.ko] undefined!

Signed-off-by: Akinobu Mita <amgta@yacht.ocn.ne.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Fix a compile warning
Jeff Dike [Tue, 11 Jan 2005 11:17:28 +0000 (03:17 -0800)]
[PATCH] UML: Fix a compile warning

An eliminated warning from Chris Wright.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: define CONFIG_INPUT better
Jeff Dike [Tue, 11 Jan 2005 11:17:15 +0000 (03:17 -0800)]
[PATCH] UML: define CONFIG_INPUT better

From: Chris Wright - define CONFIG_INPUT to shut up a config warning.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Fix make clean
Jeff Dike [Tue, 11 Jan 2005 11:17:01 +0000 (03:17 -0800)]
[PATCH] UML: Fix make clean

From: Chris Wright - make clean gets rid of more stuff

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Fix sys_call_table syntax
Jeff Dike [Tue, 11 Jan 2005 11:16:48 +0000 (03:16 -0800)]
[PATCH] UML: Fix sys_call_table syntax

From: Chris Wright - Fix the syntax of the sys_call_table initializers.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: sparse annotations
Jeff Dike [Tue, 11 Jan 2005 11:16:34 +0000 (03:16 -0800)]
[PATCH] UML: sparse annotations

Lots of sparse annotations from Chris Wright.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Add a missing include
Jeff Dike [Tue, 11 Jan 2005 11:16:20 +0000 (03:16 -0800)]
[PATCH] UML: Add a missing include

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Allow arches to opt out of !SA_INFO signals
Jeff Dike [Tue, 11 Jan 2005 11:16:07 +0000 (03:16 -0800)]
[PATCH] UML: Allow arches to opt out of !SA_INFO signals

x86_64 only delivers signals in the SA_INFO style, whether you ask
for it or not.  This patch adds a config option which says whether
the arch is SA_INFO-only or not, and ifdefs out the sigcontext
signal delivery if so.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Silence some message from the console driver
Jeff Dike [Tue, 11 Jan 2005 11:15:54 +0000 (03:15 -0800)]
[PATCH] UML: Silence some message from the console driver

This shuts up some messages about ioctls being called when they are handled
by the line discipline.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: 64-bit cleanups
Jeff Dike [Tue, 11 Jan 2005 11:15:41 +0000 (03:15 -0800)]
[PATCH] UML: 64-bit cleanups

This makes a bunch of 64-bit cleanups exposed by x86_64.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: add the new syscalls
Jeff Dike [Tue, 11 Jan 2005 11:15:27 +0000 (03:15 -0800)]
[PATCH] UML: add the new syscalls

Add the new 2.6.10 syscalls.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: 2.6.10 ptrace updates
Jeff Dike [Tue, 11 Jan 2005 11:15:14 +0000 (03:15 -0800)]
[PATCH] UML: 2.6.10 ptrace updates

Add some of the 2.6.10 ptrace updates.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: use for_each_cpu
Jeff Dike [Tue, 11 Jan 2005 11:15:01 +0000 (03:15 -0800)]
[PATCH] UML: use for_each_cpu

Use for_each_cpu rather than iterating over processors by hand.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: code tidying
Jeff Dike [Tue, 11 Jan 2005 11:14:48 +0000 (03:14 -0800)]
[PATCH] UML: code tidying

Some small cleanups that resulted from the x86_64 merge:
Some unneeded includes were removed
Some overlong lines were shortened
current_thread_info was replaced by a generic version.
Some warnings were fixed

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Use va_copy
Bodo Stroesser [Tue, 11 Jan 2005 11:14:35 +0000 (03:14 -0800)]
[PATCH] UML: Use va_copy

In arch/um/kernel/skas/uaccess.c, the simple assignment
   va_list args = *((va_list *) arg_ptr);
is used in do_buffer_op() to obtain a copy of a va_list, that
was delivered as a pointer only.
But this construction doesn't compile on s390. Instead,
va_copy() and va_end() should be used (see "man va_start").

Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Don't use __NR_waitpid on arches which don't have it
Bodo Stroesser [Tue, 11 Jan 2005 11:14:22 +0000 (03:14 -0800)]
[PATCH] UML: Don't use __NR_waitpid on arches which don't have it

Some architectures (e.g. s390) don't have __NR_waitpid.
Thus, it must not be used in arch/um/kernel/tt/ptproxy/proxy.c

Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Split out arch link address definitions
Jeff Dike [Tue, 11 Jan 2005 11:14:08 +0000 (03:14 -0800)]
[PATCH] UML: Split out arch link address definitions

Define addresses at which UML will link and make them settable by the arch.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: x86-64 headers
Jeff Dike [Tue, 11 Jan 2005 11:13:55 +0000 (03:13 -0800)]
[PATCH] UML: x86-64 headers

Add a bunch of headers to include/asm-um to support x86_64.
Also move some arch-specific things from generic files to x86-specific ones.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Separate out the time code
Jeff Dike [Tue, 11 Jan 2005 11:13:41 +0000 (03:13 -0800)]
[PATCH] UML: Separate out the time code

Move the i386 __delay to sys-i386 and add an implementation for x86_64.
Also get rid of the definition of um_udelay_t.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Make a common misconfiguration impossible
Jeff Dike [Tue, 11 Jan 2005 11:13:27 +0000 (03:13 -0800)]
[PATCH] UML: Make a common misconfiguration impossible

This patch makes UML produce error messages instead of silently exiting
when one of several configuration mistakes are made.  FD_CHAN is now
mandatory so that people don't turn it off and complain about no boot
messages.

Some printks were turned into printfs in the tt mode gdb code so that they
appear on the screen.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Separate out signal reception
Jeff Dike [Tue, 11 Jan 2005 11:13:13 +0000 (03:13 -0800)]
[PATCH] UML: Separate out signal reception

This patch moves most of the signal handlers to os-Linux, adds an
arch-specific mechanism to get the address of the sigcontext structure,
and implements it for i386 and x86_64.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: x86_64 ptrace support
Jeff Dike [Tue, 11 Jan 2005 11:13:00 +0000 (03:13 -0800)]
[PATCH] UML: x86_64 ptrace support

This adds the x86_64 ptrace support.
It also cleans up the existing code somewhat, eliminating a couple of
simple header files, and generalizing the mk_ptregs buils to accomodate
multiple architectures.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Factor out register saving and restoring
Jeff Dike [Tue, 11 Jan 2005 09:53:34 +0000 (01:53 -0800)]
[PATCH] UML: Factor out register saving and restoring

This moves the register shuffling code into arch/um/os-Linux/sys-$(SUBARCH),
making it purely userspace code.  It also adds an x86_64 implementation of
registers.c.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: x86-64 config support
Jeff Dike [Tue, 11 Jan 2005 09:53:20 +0000 (01:53 -0800)]
[PATCH] UML: x86-64 config support

This adds architecture-specific Kconfig support, plus Kconfig_i386 and
Kconfig_x86_64.  Currently the only option defined there is CONFIG_64_BIT.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: x86-64 core support
Jeff Dike [Tue, 11 Jan 2005 09:53:06 +0000 (01:53 -0800)]
[PATCH] UML: x86-64 core support

This adds the new files from the x86_64 port which just drop in and don't
require any work anywhere else.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Three-level page table support
Jeff Dike [Tue, 11 Jan 2005 09:52:52 +0000 (01:52 -0800)]
[PATCH] UML: Three-level page table support

This is the three-level page table support from the x86_64 patch.  It can
be enabled on x86, although it's not particularly needed at this point.
However, it can be used to implement very large physical memory (with
almost all of it in highmem) on UML.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: split out arch-specific syscalls from generic ones
Jeff Dike [Tue, 11 Jan 2005 09:52:38 +0000 (01:52 -0800)]
[PATCH] UML: split out arch-specific syscalls from generic ones

This factors out a bunch of non-generic system calls into i386-specific
code.  It also adds the x86_64-specific system calls.
A couple of generic system calls handlers are declared in sysdep-i386 because
x86 has no declarations for them, but x86_64 has incompatible ones.

Also splits out syscalls on behalf on UML/S390 from Bodo Stroesser

Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: Use va_end wherever va_args are used
Jeff Dike [Tue, 11 Jan 2005 09:52:24 +0000 (01:52 -0800)]
[PATCH] UML: Use va_end wherever va_args are used

Finish using va_list correctly, by calling va_end.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] UML: add some pudding
Jeff Dike [Tue, 11 Jan 2005 09:52:11 +0000 (01:52 -0800)]
[PATCH] UML: add some pudding

This adds pud_t support to UML.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Notify user of MCE events.
Zwane Mwaikambo [Tue, 11 Jan 2005 09:51:57 +0000 (01:51 -0800)]
[PATCH] x86_64: Notify user of MCE events.

x86_64 uses a userspace mce utility to decode MCEs, this patch will ensure
that the user is notified of MCE events being logged too.

Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Disable conforming bit on USER32_CS segment
Andi Kleen [Tue, 11 Jan 2005 09:51:44 +0000 (01:51 -0800)]
[PATCH] x86_64: Disable conforming bit on USER32_CS segment

Disable conforming bit on USER32_CS segment

No difference, but it's more consistent.  Pointed out by Petr Vandrovec and
some VMWare people

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Fix signal FPU leak on i386 and x86-64
Andi Kleen [Tue, 11 Jan 2005 09:51:31 +0000 (01:51 -0800)]
[PATCH] x86_64: Fix signal FPU leak on i386 and x86-64

Found by Bodo Stroesser. Description from Bodo:

>>
On i386, if a signal handler is started, the kernel saves the fpu-state
of the interrupted routine in the sigcontext on the stack. Calling
unlazy_fpu() and setting current->used_math=0, the kernel supplies the
signal-handler with a cleared virtual fpu.
On sigreturn(), the old fpu-state of the interrupted routine is
restored.

If a process never used the fpu, it virtually has a cleared fpu.
If such a process is interrupted by a signal handler, no fpu-context is
saved and sigcontext->fpstate is set to NULL.

Assume, that the signal handler uses the fpu. Then, AFAICS, on sigreturn
current->used_math will be 1. Since sigcontext->fpstate still is NULL,
restore_sigcontext() doesn't call restore_i387(). Thus, no
clear_fpu() is done, current->used_math is not reset.

Now, the interrupted processes fpu no longer is cleared!
<<

Fix by AK. Just clear the FPU again when this happens.

patch for i386 and x86-64.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Fix a lot of broken white space in arch/x86_64/kernel/setup.c
Andi Kleen [Tue, 11 Jan 2005 09:51:18 +0000 (01:51 -0800)]
[PATCH] x86_64: Fix a lot of broken white space in arch/x86_64/kernel/setup.c

Fix a lot of broken white space in arch/x86_64/kernel/setup.c

Only touches white space, no functional changes.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Remove unused prototypes.
Andi Kleen [Tue, 11 Jan 2005 09:51:05 +0000 (01:51 -0800)]
[PATCH] x86_64: Remove unused prototypes.

Pointed out by Matthew Wilcox.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Cleanups preparing for memory hotplug
Andi Kleen [Tue, 11 Jan 2005 09:50:51 +0000 (01:50 -0800)]
[PATCH] x86_64: Cleanups preparing for memory hotplug

From: Matt Tolentino

Some cleanup work in early page table init preparing for memory hotplug.

Hacked up by AK

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Don't sync APIC ARBs on P4s.
Andi Kleen [Tue, 11 Jan 2005 09:50:38 +0000 (01:50 -0800)]
[PATCH] x86_64: Don't sync APIC ARBs on P4s.

Merged from i386

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Prevent gcc from generating MMX code by mistake.
Andi Kleen [Tue, 11 Jan 2005 09:50:25 +0000 (01:50 -0800)]
[PATCH] x86_64: Prevent gcc from generating MMX code by mistake.

This will help only on gcc 4+.  On older gccs there is a workaround too, but
it is so ugly and there are no actual observed failures that I didn't apply
it.

Signed-off-by: Andi Kleen <ak@suse.de>
Cc: <rth@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Remove check that limited max number of IO-APIC to 8.
Andi Kleen [Tue, 11 Jan 2005 09:50:12 +0000 (01:50 -0800)]
[PATCH] x86_64: Remove check that limited max number of IO-APIC to 8.

The original check was apparently to work around some old BIOS bugs and we
just assume x86-64 machines don't have this class of problems.

Originally found by <YhLu@tyan.com>

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Remove direct mem_map references
Andi Kleen [Tue, 11 Jan 2005 09:49:59 +0000 (01:49 -0800)]
[PATCH] x86_64: Remove direct mem_map references

This removes all but one direct reference to mem_map for x86-64.  This is
needed on systems where we break the mem_map up and directly indexing into
mem_map to get the page structure doesn't work anymore.

Signed-off-by: Matt Tolentino <matthew.e.tolentino@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Add new key syscalls.
Andi Kleen [Tue, 11 Jan 2005 09:49:46 +0000 (01:49 -0800)]
[PATCH] x86_64: Add new key syscalls.

Add new key syscalls.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 years ago[PATCH] x86_64: Fix mptables printk
Andi Kleen [Tue, 11 Jan 2005 09:49:32 +0000 (01:49 -0800)]
[PATCH] x86_64: Fix mptables printk

This fixes the erroneous No mptables found printk on x86_64 mpparse.  We will
only print the message now if no mptables are found after all scans complete.

Signed-off-by: Justin M. Forbes <jmforbes@linuxtx.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>