|
@@ -740,6 +740,17 @@ static int nv_adma_check_cpb(struct ata_port *ap, int cpb_num, int force_err)
|
|
|
DPRINTK("Completing qc from tag %d with err_mask %u\n",cpb_num,
|
|
|
qc->err_mask);
|
|
|
ata_qc_complete(qc);
|
|
|
+ } else {
|
|
|
+ struct ata_eh_info *ehi = &ap->eh_info;
|
|
|
+ /* Notifier bits set without a command may indicate the drive
|
|
|
+ is misbehaving. Raise host state machine violation on this
|
|
|
+ condition. */
|
|
|
+ ata_port_printk(ap, KERN_ERR, "notifier for tag %d with no command?\n",
|
|
|
+ cpb_num);
|
|
|
+ ehi->err_mask |= AC_ERR_HSM;
|
|
|
+ ehi->action |= ATA_EH_SOFTRESET;
|
|
|
+ ata_port_freeze(ap);
|
|
|
+ return 1;
|
|
|
}
|
|
|
}
|
|
|
return 0;
|