Skip to content

Commit 123b7c7

Browse files
hfreudeAlexander Gordeev
authored andcommitted
s390/ap: Unmask SLCF bit in card and queue ap functions sysfs
The SLCF bit ("stateless command filtering") introduced with CEX8 cards was because of the function mask's default value suppressed when user space read the ap function for an AP card or queue. Unmask this bit so that user space applications like lszcrypt can evaluate and list this feature. Fixes: d4c53ae ("s390/ap: store TAPQ hwinfo in struct ap_card") Signed-off-by: Harald Freudenberger <[email protected]> Reviewed-by: Holger Dengler <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]>
1 parent bc46b7c commit 123b7c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/s390/include/asm/ap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct ap_tapq_hwinfo {
103103
unsigned int accel : 1; /* A */
104104
unsigned int ep11 : 1; /* X */
105105
unsigned int apxa : 1; /* APXA */
106-
unsigned int : 1;
106+
unsigned int slcf : 1; /* Cmd filtering avail. */
107107
unsigned int class : 8;
108108
unsigned int bs : 2; /* SE bind/assoc */
109109
unsigned int : 14;

drivers/s390/crypto/ap_bus.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ struct ap_card {
180180
atomic64_t total_request_count; /* # requests ever for this AP device.*/
181181
};
182182

183-
#define TAPQ_CARD_HWINFO_MASK 0xFEFF0000FFFF0F0FUL
183+
#define TAPQ_CARD_HWINFO_MASK 0xFFFF0000FFFF0F0FUL
184184
#define ASSOC_IDX_INVALID 0x10000
185185

186186
#define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device)

0 commit comments

Comments
 (0)