12 Oct, 2007
5 commits
-
The early console device is special as it already has all needed data
set and raw3215[0] allocated from con3215_init(). Therefore, it needs
special treatment in the probe function so it can be matched with the
3215 driver which is already owning it.Signed-off-by: Cornelia Huck
Signed-off-by: Martin Schwidefsky -
Constraint for err is wrong since it is preinitialized and the code
relies on it in case of an exception.Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky -
Currently there are situations, where the tape medium state (loaded, unloaded,
unknown) is not set correctly. The reason is that the medium association
field is used to determine the medium state. This not always leads to
correct results. To fix that we use another field of the medium sense
data instead.Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky -
memcpy_real uses the mvcle instruction. This instruction alters all used
registers (source, destination and 2 x count). Therefore we have to flag
those registers as input/output registers (+d). In addition to that, we
have to specify, that we read from memory designated by "src" and write to
memory designated by "dest".Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky -
Also removes a bunch of ^L in drivers/s390/cio/cmf.c
Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky
10 Oct, 2007
2 commits
-
Remove one level of nesting where appropriate.
Signed-off-by: Jens Axboe
-
Every usage of rq_for_each_bio wraps a usage of
bio_for_each_segment, so these can be combined into
rq_for_each_segment.We define "struct req_iterator" to hold the 'bio' and 'index' that
are needed for the double iteration.Signed-off-by: Neil Brown
Various compile fixes by me...
Signed-off-by: Jens Axboe
22 Aug, 2007
2 commits
-
When a vmur device is removed due to a detach of the device, currently the
ur device structure is freed. Unfortunately it can happen, that there is
still a user of the device structure, when the character device is open
during the detach process. To fix this, reference counting for the vmur
structure is introduced.
In addition to that, the online, offline, probe and remove functions are
serialized now using a global mutex.Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky
Signed-off-by: Heiko Carstens -
There are several s390 diagnose calls, which must be executed below the
2GB memory boundary. In order to enforce this, those diagnoses must be
compiled into the kernel. Currently diag 14 can be called within the
vmur kernel module from addresses above 2GB. This leads to specification
exceptions. This patch moves diag10, diag14 and diag210 into the new
diag.c file.Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky
Signed-off-by: Heiko Carstens
10 Aug, 2007
6 commits
-
Locking added so that multithreaded applications can now do writes
from different threads without the risk of storage corruption.Signed-off-by: Melissa Howland
Signed-off-by: Martin Schwidefsky -
If memory buffers above 2GB are used, diagnose 14 raises a specification
exception. This fix ensures that buffer allocation is done below the 2GB
boundary.Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky -
If the z/VM reader is already open, it can happen that after opening the
Linux reader device, not the topmost file is processed. According the
semantics of the Linux z/VM unit record device driver, always the topmost
file has to be processed. With this fix an error is returned if that is
not the case.Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky -
If a reader file with HOLD status is at the top of the reader queue, currently
all read requests will return data of the second file in the queue. But the
semantics of vmur is that always the topmost file is read. With this fix
-EPERM is returned on open, if the topmost reader file is in HOLD status.Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky -
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
000000000ff9fb08 000000000ff9fb18 0000000000000002 0000000000000000
000000000ff9fbb8 000000000ff9fb30 000000000ff9fb30 0000000000104198
0000000000000000 0000000000000002 0000000000000000 0000000000000000
000000000ff9fb18 000000000000000c 000000000ff9fb18 000000000ff9fb88
0000000000448db0 0000000000104198 000000000ff9fb18 000000000ff9fb68
Call Trace:
([] show_trace+0x12e/0x170)
[] show_stack+0xc6/0xf8
[] dump_stack+0x2e/0x3c
[] __lock_acquire+0x460/0x1048
[] lock_acquire+0x92/0xb8
[] _spin_lock_irqsave+0x62/0x80
[] complete+0x32/0x78
[] ur_int_handler+0xc8/0xec [vmur]
[] ccw_device_call_handler+0xae/0xd4
[] ccw_device_irq+0x5c/0x130
[] io_subchannel_irq+0x8c/0x118
[] do_IRQ+0x16c/0x194
[] io_no_vtime+0x16/0x1c
[] 0x80001394Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky -
vmur allocates one contiguous kernel buffer to copy user data when creating
ccw programs for punch or printer. If big block sizes are used, under memory
pressure it can happen, that we do not get memory in one chunk. Now we
allocate memory for each single record to avoid high order allocations.Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky
27 Jul, 2007
4 commits
-
Also convert to slab_is_available() as an indicator if
get_zeroed_page() will work or not.Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky -
Record length of spool file must be only stored in 1st SPLINK record
Signed-off-by: Frank Munzert
Signed-off-by: Martin Schwidefsky -
Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky -
sclp is always compiled in.
Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky
24 Jul, 2007
1 commit
-
Some of the code has been gradually transitioned to using the proper
struct request_queue, but there's lots left. So do a full sweet of
the kernel and get rid of this typedef and replace its uses with
the proper type.Signed-off-by: Jens Axboe
20 Jul, 2007
1 commit
-
Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).
Here is a short excerpt of the semantic patch performing
this transformation:@@
type T2;
expression x;
identifier f,fld;
expression E;
expression E1,E2;
expression e1,e2,e3,y;
statement S;
@@x =
- kmalloc
+ kzalloc
(E1,E2)
... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
- memset((T2)x,0,E1);@@
expression E1,E2,E3;
@@- kzalloc(E1 * E2,E3)
+ kcalloc(E1,E2,E3)[akpm@linux-foundation.org: get kcalloc args the right way around]
Signed-off-by: Yoann Padioleau
Cc: Richard Henderson
Cc: Ivan Kokshaysky
Acked-by: Russell King
Cc: Bryan Wu
Acked-by: Jiri Slaby
Cc: Dave Airlie
Acked-by: Roland Dreier
Cc: Jiri Kosina
Acked-by: Dmitry Torokhov
Cc: Benjamin Herrenschmidt
Acked-by: Mauro Carvalho Chehab
Acked-by: Pierre Ossman
Cc: Jeff Garzik
Cc: "David S. Miller"
Acked-by: Greg KH
Cc: James Bottomley
Cc: "Antonino A. Daplas"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
18 Jul, 2007
1 commit
-
I really don't see anybody else wanting to select it ;)
Signed-off-by: Linus Torvalds
17 Jul, 2007
2 commits
-
z/VM Unit record character device driver to access VM reader, punch,
and printer.Signed-off-by: Frank Munzert
Signed-off-by: Martin Schwidefsky -
A number of small changes to vmcp:
- Change preferred email address.
- Use PRINT_xxx machros from debug.h like most s390 drivers, define
"vmcp:" as PRINTK_HEADER and wrap error message at column 80.
- Add error number to error message.
- Update copyright, as I touched this file.
- Small whitespace diff.
- Use mutex instead of semaphore (Thanks Heiko for the patch)
- Don't register debug feature on failure.
- Check debug feature registration on init to avoid a potential oops
on unload if the debug feature could not be registered--> 2 more
messages.Signed-off-by: Christian Borntraeger
Signed-off-by: Martin Schwidefsky
10 Jul, 2007
5 commits
-
Use __init and __exit for vmlogrdr. Both functions are only referenced
by the module_init exit macros, so this change should be fine.Acked-by: Stefan Weinhuber
Signed-off-by: Christian Borntraeger
Signed-off-by: Martin Schwidefsky -
Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky -
Check if a command is available before executing. Saves some
superfluous service calls that won't succeed anyway.Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky -
Introduce some new interfaces so that random subsystems don't have to
mess around with sclp internal structures.Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky -
No need to use the "&" prefix and, since you're calling nonseekable_open(),
there is no need to use no_llseek().Signed-off-by: Robert P. J. Day
Signed-off-by: Martin Schwidefsky
19 Jun, 2007
1 commit
-
Added members for volume number and real memory size to header information.
Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky
31 May, 2007
1 commit
-
Signed-off-by: Christoph Hellwig
Signed-off-by: Martin Schwidefsky
10 May, 2007
4 commits
-
Disband drivers/s390/Kconfig, use the common Kconfig files. The s390
specific config options from drivers/s390/Kconfig are moved to the
respective common Kconfig files.Signed-off-by: Martin Schwidefsky
-
Monthly sparse warning avoidance patch. Sigh.
Signed-off-by: Heiko Carstens
-
Signed-off-by: Martin Schwidefsky
-
The function shouldn't have existed in the first place (not MSS-aware).
Introduce a new function ccw_device_get_id() that extracts the
ccw_dev_id structure of a ccw device and convert all users of
_ccw_device_get_device_number to ccw_device_get_id.Signed-off-by: Cornelia Huck
Signed-off-by: Martin Schwidefsky
09 May, 2007
1 commit
-
Signed-off-by: Michael Opdenacker
Signed-off-by: Adrian Bunk
05 May, 2007
1 commit
-
Instead of the deprecated read_conf_data(), implement a new function
tape_3590_read_dev_chars().Signed-off-by: Michael Holzheu
Signed-off-by: Martin Schwidefsky
27 Apr, 2007
3 commits
-
SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead.
Signed-off-by: Milind Arun Choudhary
Cc: Heiko Carstens
Signed-off-by: Andrew Morton
Signed-off-by: Martin Schwidefsky -
Generate uevents for all cpus if cpu capability changes. This can
happen e.g. because the cpus are overheating. The cpu capability can
be read via /sys/devices/system/cpu/cpuN/capability.Signed-off-by: Martin Schwidefsky
Signed-off-by: Heiko Carstens -
Use only capital letters for defines.
Cc: Peter Oberparleiter
Signed-off-by: Stefan Haberland
Signed-off-by: Heiko Carstens
Signed-off-by: Martin Schwidefsky