ipr: Inquiry IOA page 0xC4 during initialization.
authorGabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Tue, 3 Nov 2015 18:26:08 +0000 (16:26 -0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Nov 2015 00:31:37 +0000 (19:31 -0500)
commit1021b3ffad7682a09437cafffae32e26d0ce83e9
tree9c8a62dc6ed4d548e38c53d4705c5db130e4b5ce
parent4f92d01a642d27716f60cdab0fd3c527fb7cfb0f
ipr: Inquiry IOA page 0xC4 during initialization.

Add an IOA Inquiry command for Page 0xC4 during IOA initialization to
collect cache capabilities, particularly to check if Sync IOA Write
Cache is supported.

Inquiry will happen right after Cap Inquiry on page 0xD0; and will
execute only if the "Supported Pages" field in Inquiry Page 0x0 shows
support for Page 0xC4.  Otherwise, assume Sync IOA Write Cache is
not supported.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c
drivers/scsi/ipr.h