vfio/ccw: remove old IDA format restrictions
authorEric Farman <farman@linux.ibm.com>
Fri, 19 Feb 2021 19:41:49 +0000 (20:41 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Jan 2023 13:34:09 +0000 (14:34 +0100)
By this point, all the pieces are in place to properly support
a 2K Format-2 IDAL, and to convert a guest Format-1 IDAL to
the 2K Format-2 variety. Let's remove the fence that prohibits
them, and allow a guest to submit them if desired.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Documentation/s390/vfio-ccw.rst
drivers/s390/cio/vfio_ccw_cp.c

index ea928a3806f43f8f6133e8e8e7d657da699250e1..a11c24701dcda421c33b8de6563ce90693128059 100644 (file)
@@ -219,8 +219,8 @@ values may occur:
   The operation was successful.
 
 ``-EOPNOTSUPP``
-  The orb specified transport mode or an unidentified IDAW format, or the
-  scsw specified a function other than the start function.
+  The ORB specified transport mode or the
+  SCSW specified a function other than the start function.
 
 ``-EIO``
   A request was issued while the device was not in a state ready to accept
index 1500058dbe1f40a4ffac03ec9707ed739f6a0f17..1c31e81ca8de1c41555285ddf69522260a7f3c7e 100644 (file)
@@ -380,14 +380,6 @@ static int ccwchain_calc_length(u64 iova, struct channel_program *cp)
        do {
                cnt++;
 
-               /*
-                * As we don't want to fail direct addressing even if the
-                * orb specified one of the unsupported formats, we defer
-                * checking for IDAWs in unsupported formats to here.
-                */
-               if ((!cp->orb.cmd.c64 || cp->orb.cmd.i2k) && ccw_is_idal(ccw))
-                       return -EOPNOTSUPP;
-
                /*
                 * We want to keep counting if the current CCW has the
                 * command-chaining flag enabled, or if it is a TIC CCW