lpfc 8.3.22: T10-DIF corrections
Subsystems (2)
PATCH 2/6 lpfc 8.3.22: T10-DIF corrections
T10-DIF corrections
- Add selective reset jump table entry
- Split T10-DIF BDEs that cross 4K boundary
Signed-off-by Alex Iannicelli <[email protected]>
Signed-off-by James Smart <[email protected]>
---
lpfc.h | 2 ++ lpfc_attr.c | 4 ++-- lpfc_crtn.h | 4 ++-- lpfc_hw.h | 11 +++++++++++ lpfc_init.c | 1 + lpfc_scsi.c | 41 ++++++++++++++++++++++++++++++----------- 6 files changed, 48 insertions(+), 15 deletions(-)
drivers/scsi/lpfc/lpfc_attr.c +2 -2
@@ -685,7 +685,7 @@ lpfc_do_offline(struct lpfc_hba *phba, u* -EIO reset not configured or error posting the event * zero for success **/ -static int +int lpfc_selective_reset (struct lpfc_hba *phba) {struct completion online_compl;
@@ -746,7 +746,7 @@ lpfc_issue_reset(struct device *dev, strint status = -EINVAL ;if (strncmp (buf,"selective" ,sizeof ("selective" ) -1 ) ==0 ) - status =lpfc_selective_reset (phba); + status = phba->lpfc_selective_reset (phba);if (status ==0 )return strlen (buf);
drivers/scsi/lpfc/lpfc_crtn.h +2 -2
@@ -254,8 +254,8 @@ uint16_t lpfc_sli_next_iotag(struct lpfcvoid lpfc_sli_cancel_iocbs (struct lpfc_hba *,struct list_head *,uint32_t ,uint32_t );void lpfc_sli_wake_mbox_wait (struct lpfc_hba *,LPFC_MBOXQ_t *); - -void lpfc_reset_barrier (struct lpfc_hba * phba); +int lpfc_selective_reset (struct lpfc_hba *); +void lpfc_reset_barrier (struct lpfc_hba *);int lpfc_sli_brdready (struct lpfc_hba *,uint32_t );int lpfc_sli_brdkill (struct lpfc_hba *);int lpfc_sli_brdreset (struct lpfc_hba *);
drivers/scsi/lpfc/lpfc.h +2 -0
@@ -539,6 +539,8 @@ struct lpfc_hba { (struct lpfc_hba *, uint32_t);int (*lpfc_hba_down_link) (struct lpfc_hba *,uint32_t ); +int (*lpfc_selective_reset) + (struct lpfc_hba *);/* SLI4 specific HBA data structure */ struct lpfc_sli4_hba sli4_hba;
drivers/scsi/lpfc/lpfc_hw.h +11 -0
@@ -1713,6 +1713,17 @@ struct lpfc_pde6 {#define pde6_apptagval_WORD word2 }; +struct lpfc_pde7 { +uint32_t word0; +#define pde7_type_SHIFT 24 +#define pde7_type_MASK 0x000000ff +#define pde7_type_WORD word0 +#define pde7_rsvd0_SHIFT 0 +#define pde7_rsvd0_MASK 0x00ffffff +#define pde7_rsvd0_WORD word0 +uint32_t addrHigh; +uint32_t addrLow; +};/* Structure for MB Command LOAD_SM and DOWN_LOAD */
drivers/scsi/lpfc/lpfc_init.c +1 -0
@@ -4474,6 +4474,7 @@ lpfc_init_api_table_setup(struct lpfc_hb { phba->lpfc_hba_init_link = lpfc_hba_init_link; phba->lpfc_hba_down_link = lpfc_hba_down_link; + phba->lpfc_selective_reset = lpfc_selective_reset;switch (dev_grp) {case LPFC_PCI_DEV_LP : phba->lpfc_hba_down_post = lpfc_hba_down_post_s3;
drivers/scsi/lpfc/lpfc_scsi.c +30 -11
75 lines not on this page · raw message