linux/drivers/s390
Heiko Carstens 15e9b586e0 [S390] Reset infrastructure for re-IPL.
In case of re-IPL and diag308 doesn't work we have to reset all devices
manually and wait synchronously that each reset finished.
This patch adds the necessary infrastucture and the first exploiter of it.

Subsystems that need to add a function that needs to be called at re-IPL
may register/unregister this function via

struct reset_call {
	struct reset_call *next;
	void (*fn)(void);
};

void register_reset_call(struct reset_call *reset);
void unregister_reset_call(struct reset_call *reset);

When the registered function get called the context is:

- all cpus beside the current one are stopped
- all machine checks and interrupts are disabled
- prefixing is disabled
- a default machine check handler is available for use

The registered functions may not take any locks are sleep.

For the common I/O layer part of this patch:

Introduce a reset_call css_reset that does the following:
- clear all subchannels
- perform a rchp on all channel paths and wait for the resulting
  machine checks
This replaces the calls to clear_all_subchannels() and
cio_reset_channel_paths() for kexec and ccw reipl. reipl_ccw_dev() now
uses reipl_find_schid() to determine the subchannel id for a given
device id.
Also remove cio_reset_channel_paths() and friends since they are not
needed anymore.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2006-12-04 15:40:26 +01:00
..
block [S390] return 'count' for successful execution of dasd_eer_enable. 2006-12-04 15:40:18 +01:00
char [S390] 3215 device locking. 2006-12-04 15:40:07 +01:00
cio [S390] Reset infrastructure for re-IPL. 2006-12-04 15:40:26 +01:00
crypto [S390] Add MODALIAS= to the uevent for the ap bus. 2006-12-04 15:40:10 +01:00
net [NET] driver/s390/net: Checksum annotations. 2006-12-02 21:23:43 -08:00
scsi [SCSI] zfcp: initialize scsi_host_template.max_sectors with appropriate value 2006-10-25 15:12:50 -07:00
ebcdic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [S390] Linux API for writing z/VM APPLDATA Monitor records. 2006-09-20 15:59:34 +02:00
Makefile [PATCH] s390: move s390_root_dev_* out of the cio layer 2006-01-06 08:33:49 -08:00
s390_rdev.c [PATCH] s390: kzalloc() conversion in drivers/s390 2006-03-24 07:33:18 -08:00
s390mach.c [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
s390mach.h [PATCH] s390: Add missing memory constraint to stcrw() 2006-02-01 08:53:24 -08:00
sysinfo.c [S390] cleanup sysinfo and add system z9 specific extensions. 2006-09-20 15:59:10 +02:00