[SCSI] hpsa: complain if physical or logical aborts are not supported
authorScott Teel <scott.teel@hp.com>
Tue, 18 Feb 2014 19:55:59 +0000 (13:55 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:04 +0000 (10:19 -0700)
Signed-off-by: Scott Teel <scott.teel@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c

index bbdd8bed42661d10d83da70f964485fdb9be9f3e..9fdcb189b024dba8bdefafbbf9cd80cf49aa43b0 100644 (file)
@@ -5044,6 +5044,10 @@ static void hpsa_find_board_params(struct ctlr_info *h)
 
        /* Find out what task management functions are supported and cache */
        h->TMFSupportFlags = readl(&(h->cfgtable->TMFSupportFlags));
+       if (!(HPSATMF_PHYS_TASK_ABORT & h->TMFSupportFlags))
+               dev_warn(&h->pdev->dev, "Physical aborts not supported\n");
+       if (!(HPSATMF_LOG_TASK_ABORT & h->TMFSupportFlags))
+               dev_warn(&h->pdev->dev, "Logical aborts not supported\n");
 }
 
 static inline bool hpsa_CISS_signature_present(struct ctlr_info *h)