forked from Minki/linux
a4f17cc726
This patch introduces the mechanism to inject artificial events to the CIO layer. One of the main-event type which triggers the CommonIO operations are Channel Report events. When a malfunction or other condition affecting channel-subsystem operation is recognized, a Channel Report Word (consisting of one or more CRWs) describing the condition is made pending for retrieval and analysis by the program. The CRW contains information concerning the identity and state of a facility following the detection of the malfunction or other condition. The patch introduces two debugfs interfaces which can be used to inject 'artificial' events from the userspace. It is intended to provide an easy means to increase the test coverage for CIO code. And this functionality can be enabled via a new configuration option CONFIG_CIO_INJECT. The newly introduces debugfs interfaces can be used as mentioned below to generate different fake-events. To use the crw_inject, first we should enable it by using enable_inject interface. i.e echo 1 > /sys/kernel/debug/s390/cio/enable_inject After the first step, user can simulate CRW as follows: echo <solicited> <overflow> <chaining> <rsc> <ancillary> <erc> <rsid> \ > /sys/kernel/debug/s390/cio/crw_inject Example: A permanent error ERC on CHPID 0x60 would look like this: echo 0 0 0 4 0 6 0x60 > /sys/kernel/debug/s390/cio/crw_inject and an initialized ERC on the same CHPID: echo 0 0 0 4 0 2 0x60 > /sys/kernel/debug/s390/cio/crw_inject Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
28 lines
930 B
Makefile
28 lines
930 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the S/390 common i/o drivers
|
|
#
|
|
|
|
# The following is required for define_trace.h to find ./trace.h
|
|
CFLAGS_trace.o := -I$(src)
|
|
CFLAGS_vfio_ccw_trace.o := -I$(src)
|
|
|
|
obj-y += airq.o blacklist.o chsc.o cio.o css.o chp.o idset.o isc.o \
|
|
fcx.o itcw.o crw.o ccwreq.o trace.o ioasm.o cio_debugfs.o
|
|
ccw_device-objs += device.o device_fsm.o device_ops.o
|
|
ccw_device-objs += device_id.o device_pgid.o device_status.o
|
|
obj-y += ccw_device.o cmf.o
|
|
obj-$(CONFIG_CHSC_SCH) += chsc_sch.o
|
|
obj-$(CONFIG_EADM_SCH) += eadm_sch.o
|
|
obj-$(CONFIG_SCM_BUS) += scm.o
|
|
obj-$(CONFIG_CCWGROUP) += ccwgroup.o
|
|
|
|
qdio-objs := qdio_main.o qdio_thinint.o qdio_debug.o qdio_setup.o
|
|
obj-$(CONFIG_QDIO) += qdio.o
|
|
|
|
vfio_ccw-objs += vfio_ccw_drv.o vfio_ccw_cp.o vfio_ccw_ops.o vfio_ccw_fsm.o \
|
|
vfio_ccw_async.o vfio_ccw_trace.o vfio_ccw_chp.o
|
|
obj-$(CONFIG_VFIO_CCW) += vfio_ccw.o
|
|
|
|
obj-$(CONFIG_CIO_INJECT) += cio_inject.o
|