Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2976604f authored by James Smart's avatar James Smart Committed by android-build-merger
Browse files

scsi: lpfc: Correct WQ creation for pagesize

am: 27ab5414

Change-Id: Ic25594875ecb0a1c1b38245a700cd8c7c0582b1b
parents 0d4bafcf 27ab5414
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1185,6 +1185,7 @@ struct lpfc_mbx_wq_create {
#define lpfc_mbx_wq_create_page_size_SHIFT	0
#define lpfc_mbx_wq_create_page_size_SHIFT	0
#define lpfc_mbx_wq_create_page_size_MASK	0x000000FF
#define lpfc_mbx_wq_create_page_size_MASK	0x000000FF
#define lpfc_mbx_wq_create_page_size_WORD	word1
#define lpfc_mbx_wq_create_page_size_WORD	word1
#define LPFC_WQ_PAGE_SIZE_4096	0x1
#define lpfc_mbx_wq_create_wqe_size_SHIFT	8
#define lpfc_mbx_wq_create_wqe_size_SHIFT	8
#define lpfc_mbx_wq_create_wqe_size_MASK	0x0000000F
#define lpfc_mbx_wq_create_wqe_size_MASK	0x0000000F
#define lpfc_mbx_wq_create_wqe_size_WORD	word1
#define lpfc_mbx_wq_create_wqe_size_WORD	word1
@@ -1256,6 +1257,7 @@ struct rq_context {
#define lpfc_rq_context_page_size_SHIFT	0		/* Version 1 Only */
#define lpfc_rq_context_page_size_SHIFT	0		/* Version 1 Only */
#define lpfc_rq_context_page_size_MASK	0x000000FF
#define lpfc_rq_context_page_size_MASK	0x000000FF
#define lpfc_rq_context_page_size_WORD	word0
#define lpfc_rq_context_page_size_WORD	word0
#define	LPFC_RQ_PAGE_SIZE_4096	0x1
	uint32_t reserved1;
	uint32_t reserved1;
	uint32_t word2;
	uint32_t word2;
#define lpfc_rq_context_cq_id_SHIFT	16
#define lpfc_rq_context_cq_id_SHIFT	16
+5 −4
Original line number Original line Diff line number Diff line
@@ -13678,7 +13678,7 @@ lpfc_wq_create(struct lpfc_hba *phba, struct lpfc_queue *wq,
			       LPFC_WQ_WQE_SIZE_128);
			       LPFC_WQ_WQE_SIZE_128);
			bf_set(lpfc_mbx_wq_create_page_size,
			bf_set(lpfc_mbx_wq_create_page_size,
			       &wq_create->u.request_1,
			       &wq_create->u.request_1,
			       (PAGE_SIZE/SLI4_PAGE_SIZE));
			       LPFC_WQ_PAGE_SIZE_4096);
			page = wq_create->u.request_1.page;
			page = wq_create->u.request_1.page;
			break;
			break;
		}
		}
@@ -13704,8 +13704,9 @@ lpfc_wq_create(struct lpfc_hba *phba, struct lpfc_queue *wq,
			       LPFC_WQ_WQE_SIZE_128);
			       LPFC_WQ_WQE_SIZE_128);
			break;
			break;
		}
		}
		bf_set(lpfc_mbx_wq_create_page_size, &wq_create->u.request_1,
		bf_set(lpfc_mbx_wq_create_page_size,
		       (PAGE_SIZE/SLI4_PAGE_SIZE));
		       &wq_create->u.request_1,
		       LPFC_WQ_PAGE_SIZE_4096);
		page = wq_create->u.request_1.page;
		page = wq_create->u.request_1.page;
		break;
		break;
	default:
	default:
@@ -13891,7 +13892,7 @@ lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq,
		       LPFC_RQE_SIZE_8);
		       LPFC_RQE_SIZE_8);
		bf_set(lpfc_rq_context_page_size,
		bf_set(lpfc_rq_context_page_size,
		       &rq_create->u.request.context,
		       &rq_create->u.request.context,
		       (PAGE_SIZE/SLI4_PAGE_SIZE));
		       LPFC_RQ_PAGE_SIZE_4096);
	} else {
	} else {
		switch (hrq->entry_count) {
		switch (hrq->entry_count) {
		default:
		default: