@@ -26,11 +26,12 @@ static uint8_t *array_queue;
static struct ap_config_info qci;
int ap_pqap_tapq(uint8_t ap, uint8_t qn, struct ap_queue_status *apqsw,
- struct pqap_r2 *r2)
+ struct pqap_r2 *r2, bool t)
{
struct pqap_r0 r0 = {
.ap = ap,
.qn = qn,
+ .t = t,
.fc = PQAP_TEST_APQ
};
uint64_t bogus_cc = 2;
@@ -177,7 +178,7 @@ static int pqap_reset_wait(uint8_t ap, uint8_t qn, struct ap_queue_status *apqsw
do {
/* Give it some time to process before the retry */
mdelay(20);
- cc = ap_pqap_tapq(ap, qn, apqsw, &r2);
+ cc = ap_pqap_tapq(ap, qn, apqsw, &r2, false);
} while (apqsw->rc == AP_RC_RESET_IN_PROGRESS);
if (apqsw->rc)
@@ -109,7 +109,7 @@ enum {
int ap_setup(uint8_t **ap_array, uint8_t **qn_array, uint8_t *naps, uint8_t *nqns);
int ap_pqap_tapq(uint8_t ap, uint8_t qn, struct ap_queue_status *apqsw,
- struct pqap_r2 *r2);
+ struct pqap_r2 *r2, bool t);
int ap_pqap_reset(uint8_t ap, uint8_t qn, struct ap_queue_status *apqsw);
int ap_pqap_reset_zeroize(uint8_t ap, uint8_t qn, struct ap_queue_status *apqsw);
int ap_pqap_qci(struct ap_config_info *info);
@@ -325,7 +325,7 @@ static void test_pqap_aqic(void)
do {
mdelay(20);
- cc = ap_pqap_tapq(apn, qn, &apqsw, &r2);
+ cc = ap_pqap_tapq(apn, qn, &apqsw, &r2, false);
} while (cc == 0 && apqsw.irq_enabled == 0);
report(cc == 0 && apqsw.irq_enabled == 1, "enable IRQs tapq data");
@@ -338,7 +338,7 @@ static void test_pqap_aqic(void)
do {
mdelay(20);
- cc = ap_pqap_tapq(apn, qn, &apqsw, &r2);
+ cc = ap_pqap_tapq(apn, qn, &apqsw, &r2, false);
} while (cc == 0 && apqsw.irq_enabled == 1);
report(cc == 0 && apqsw.irq_enabled == 0, "disable IRQs tapq data");
@@ -365,12 +365,12 @@ static void test_pqap_resets(void)
do {
mdelay(20);
- cc = ap_pqap_tapq(apn, qn, &apqsw, &r2);
+ cc = ap_pqap_tapq(apn, qn, &apqsw, &r2, false);
} while (cc == 0 && apqsw.irq_enabled == 0);
report(apqsw.irq_enabled == 1, "IRQs enabled tapq data");
ap_pqap_reset(apn, qn, &apqsw);
- cc = ap_pqap_tapq(apn, qn, &apqsw, &r2);
+ cc = ap_pqap_tapq(apn, qn, &apqsw, &r2, false);
assert(!cc);
report(apqsw.irq_enabled == 0, "IRQs have been disabled via reset");
@@ -385,12 +385,12 @@ static void test_pqap_resets(void)
do {
mdelay(20);
- cc = ap_pqap_tapq(apn, qn, &apqsw, &r2);
+ cc = ap_pqap_tapq(apn, qn, &apqsw, &r2, false);
} while (cc == 0 && apqsw.irq_enabled == 0);
report(apqsw.irq_enabled == 1, "IRQs enabled tapq data");
ap_pqap_reset_zeroize(apn, qn, &apqsw);
- cc = ap_pqap_tapq(apn, qn, &apqsw, &r2);
+ cc = ap_pqap_tapq(apn, qn, &apqsw, &r2, false);
assert(!cc);
report(apqsw.irq_enabled == 0, "IRQs have been disabled via reset");
When the t bit is one the first 32 bits of register 2 are populated on a tapq. Those bits tell us in which mode the queu is and which facilities it supports. Signed-off-by: Janosch Frank <frankja@linux.ibm.com> --- lib/s390x/ap.c | 5 +++-- lib/s390x/ap.h | 2 +- s390x/ap.c | 12 ++++++------ 3 files changed, 10 insertions(+), 9 deletions(-)