mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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: d4c53ae8e4
("s390/ap: store TAPQ hwinfo in struct ap_card")
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
parent
bc46b7cbc5
commit
123b7c7c2b
@ -103,7 +103,7 @@ struct ap_tapq_hwinfo {
|
|||||||
unsigned int accel : 1; /* A */
|
unsigned int accel : 1; /* A */
|
||||||
unsigned int ep11 : 1; /* X */
|
unsigned int ep11 : 1; /* X */
|
||||||
unsigned int apxa : 1; /* APXA */
|
unsigned int apxa : 1; /* APXA */
|
||||||
unsigned int : 1;
|
unsigned int slcf : 1; /* Cmd filtering avail. */
|
||||||
unsigned int class : 8;
|
unsigned int class : 8;
|
||||||
unsigned int bs : 2; /* SE bind/assoc */
|
unsigned int bs : 2; /* SE bind/assoc */
|
||||||
unsigned int : 14;
|
unsigned int : 14;
|
||||||
|
@ -180,7 +180,7 @@ struct ap_card {
|
|||||||
atomic64_t total_request_count; /* # requests ever for this AP device.*/
|
atomic64_t total_request_count; /* # requests ever for this AP device.*/
|
||||||
};
|
};
|
||||||
|
|
||||||
#define TAPQ_CARD_HWINFO_MASK 0xFEFF0000FFFF0F0FUL
|
#define TAPQ_CARD_HWINFO_MASK 0xFFFF0000FFFF0F0FUL
|
||||||
#define ASSOC_IDX_INVALID 0x10000
|
#define ASSOC_IDX_INVALID 0x10000
|
||||||
|
|
||||||
#define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device)
|
#define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device)
|
||||||
|
Loading…
Reference in New Issue
Block a user