Skip to contentSkip to conversation

pm80xx: Multiple inbound/outbound queue configuration

PATCH Superseded Anand 1 participant 1 message Mar 14, 2013

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Anand

author
#0 lore raw

PATCH v2 3/12 pm80xx: Multiple inbound/outbound queue configuration

Quoted 1 line

From f0b469f372f1c1faa393123f4a3a5e93e05b8387 Mon Sep 17 00:00:00 2001

From: Sakthivel K <[email protected]>
Date: Wed, 27 Feb 2013 20:25:25 +0530
Subject: [PATCH V2 03/12] pm80xx: Multiple inbound/outbound queue configuration

Memory allocation and configuration of multiple inbound and outbound queues.

---
 drivers/scsi/pm8001/pm8001_defs.h |   14 +++--
 drivers/scsi/pm8001/pm8001_hwi.c  |   43 ++++++++--------
 drivers/scsi/pm8001/pm8001_init.c |  101 +++++++++++++++++++++++++------------
 3 files changed, 98 insertions(+), 60 deletions(-)
drivers/scsi/pm8001/pm8001_defs.h +8 -6
index b25f87c..26a2ee6 100644
@@ -48,8 +48,7 @@ enum chip_flavors {
 	chip_8018,
 	chip_8019
 };
-#define USI_MAX_MEMCNT			9
-#define PM8001_MAX_DMA_SG		SG_ALL
+
 enum phy_speed {
 	PHY_SPEED_15 = 0x01,
 	PHY_SPEED_30 = 0x02,
@@ -87,13 +86,16 @@ enum port_type {
 #define	PM8001_MAX_DEVICES	 2048	/* max supported device */
 #define	PM8001_MAX_MSIX_VEC	 64	/* max msi-x int for spcv/ve */
 
+#define USI_MAX_MEMCNT_BASE	4
+#define IB			(USI_MAX_MEMCNT_BASE + 1)
+#define CI			(IB + PM8001_MAX_SPCV_INB_NUM)
+#define OB			(CI + PM8001_MAX_SPCV_INB_NUM)
+#define PI			(OB + PM8001_MAX_SPCV_OUTB_NUM)
+#define USI_MAX_MEMCNT		(PI + PM8001_MAX_SPCV_OUTB_NUM)
+#define PM8001_MAX_DMA_SG	SG_ALL
 enum memory_region_num {
 	AAP1 = 0x0, /* application acceleration processor */
 	IOP,	    /* IO processor */
-	CI,	    /* consumer index */
-	PI,	    /* producer index */
-	IB,	    /* inbound queue */
-	OB,	    /* outbound queue */
 	NVMD,	    /* NVM device */
 	DEV_MEM,    /* memory for devices */
 	CCB_MEM,    /* memory for command control block */
drivers/scsi/pm8001/pm8001_hwi.c +22 -21

96 lines not on this page · raw message

drivers/scsi/pm8001/pm8001_init.c +68 -33

147 lines not on this page · raw message

Signature · 1 line
1.7.1
Quoted 1 line

From f0b469f372f1c1faa393123f4a3a5e93e05b8387 Mon Sep 17 00:00:00 2001

From: Sakthivel K <[email protected]>
Date: Wed, 27 Feb 2013 20:25:25 +0530
Subject: [PATCH V2 03/12] pm80xx: Multiple inbound/outbound queue configuration

Memory allocation and configuration of multiple inbound and outbound queues.

---
 drivers/scsi/pm8001/pm8001_defs.h |   14 +++--
 drivers/scsi/pm8001/pm8001_hwi.c  |   43 ++++++++--------
 drivers/scsi/pm8001/pm8001_init.c |  101 +++++++++++++++++++++++++------------
 3 files changed, 98 insertions(+), 60 deletions(-)
drivers/scsi/pm8001/pm8001_defs.h +8 -6
index b25f87c..26a2ee6 100644
@@ -48,8 +48,7 @@ enum chip_flavors {
 	chip_8018,
 	chip_8019
 };
-#define USI_MAX_MEMCNT			9
-#define PM8001_MAX_DMA_SG		SG_ALL
+
 enum phy_speed {
 	PHY_SPEED_15 = 0x01,
 	PHY_SPEED_30 = 0x02,
@@ -87,13 +86,16 @@ enum port_type {
 #define	PM8001_MAX_DEVICES	 2048	/* max supported device */
 #define	PM8001_MAX_MSIX_VEC	 64	/* max msi-x int for spcv/ve */
 
+#define USI_MAX_MEMCNT_BASE	4
+#define IB			(USI_MAX_MEMCNT_BASE + 1)
+#define CI			(IB + PM8001_MAX_SPCV_INB_NUM)
+#define OB			(CI + PM8001_MAX_SPCV_INB_NUM)
+#define PI			(OB + PM8001_MAX_SPCV_OUTB_NUM)
+#define USI_MAX_MEMCNT		(PI + PM8001_MAX_SPCV_OUTB_NUM)
+#define PM8001_MAX_DMA_SG	SG_ALL
 enum memory_region_num {
 	AAP1 = 0x0, /* application acceleration processor */
 	IOP,	    /* IO processor */
-	CI,	    /* consumer index */
-	PI,	    /* producer index */
-	IB,	    /* inbound queue */
-	OB,	    /* outbound queue */
 	NVMD,	    /* NVM device */
 	DEV_MEM,    /* memory for devices */
 	CCB_MEM,    /* memory for command control block */
drivers/scsi/pm8001/pm8001_hwi.c +22 -21

96 lines not on this page · raw message

drivers/scsi/pm8001/pm8001_init.c +68 -33

147 lines not on this page · raw message

Signature · 1 line
1.7.1