Skip to contentSkip to conversation

iw_cxgb4: Use dsgl by default

PATCH Applied Ganesh Goudar 4 participants 8 messages Feb 23, 2017 – Apr 25, 2017 4 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iw_cxgb4: Use dsgl by default

Enable the use of dsgl by default and determine whether dsgl is supported from lld info.

---
 drivers/infiniband/hw/cxgb4/mem.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/infiniband/hw/cxgb4/mem.c +3 -3
index 410408f..8db7a11 100644
@@ -38,9 +38,9 @@
 
 #include "iw_cxgb4.h"
 
-int use_dsgl = 0;
+int use_dsgl = 1;
 module_param(use_dsgl, int, 0644);
-MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=0)");
+MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=1)");
 
 #define T4_ULPTX_MIN_IO 32
 #define C4IW_MAX_INLINE_SIZE 96
@@ -231,7 +231,7 @@ static int _c4iw_write_mem_dma(struct c4iw_rdev *rdev, u32 addr, u32 len,
 static int write_adapter_mem(struct c4iw_rdev *rdev, u32 addr, u32 len,
 			     void *data, struct sk_buff *skb)
 {
-	if (is_t5(rdev->lldi.adapter_type) && use_dsgl) {
+	if (rdev->lldi.ulptx_memwrite_dsgl && use_dsgl) {
 		if (len > inline_threshold) {
 			if (_c4iw_write_mem_dma(rdev, addr, len, data, skb)) {
 				printk_ratelimited(KERN_WARNING
Signature · 6 lines
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1487833303-4779-1-git-send-email-ganeshgr-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org

#2 lore raw
Quoted 15 lines · Ganesh Goudar

Enable the use of dsgl by default and determine whether dsgl is supported from lld info.

---
 drivers/infiniband/hw/cxgb4/mem.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/infiniband/hw/cxgb4/mem.c +0 -0
index 410408f..8db7a11 100644

drivers/infiniband/hw/cxgb4/mem.c line 43

Quoted 8 lines
drivers/infiniband/hw/cxgb4/mem.c +2 -2
@@ -38,9 +38,9 @@
 
 #include "iw_cxgb4.h"
 
-int use_dsgl = 0;
+int use_dsgl = 1;
 module_param(use_dsgl, int, 0644);
-MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=0)");
+MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=1)");

Can we get rid of this module parameter completely?

Quoted 19 lines
drivers/infiniband/hw/cxgb4/mem.c +1 -2
 #define T4_ULPTX_MIN_IO 32
 #define C4IW_MAX_INLINE_SIZE 96
@@ -231,7 +231,7 @@ static int _c4iw_write_mem_dma(struct c4iw_rdev *rdev, u32 addr, u32 len,
 static int write_adapter_mem(struct c4iw_rdev *rdev, u32 addr, u32 len,
 			     void *data, struct sk_buff *skb)
 {
-	if (is_t5(rdev->lldi.adapter_type) && use_dsgl) {
+	if (rdev->lldi.ulptx_memwrite_dsgl && use_dsgl) {
 		if (len > inline_threshold) {
 			if (_c4iw_write_mem_dma(rdev, addr, len, data, skb)) {
 				printk_ratelimited(KERN_WARNING
--

2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170302144710.GF9525-U/[email protected]

#4 lore raw
Quoted 21 lines · Ganesh Goudar

Review

Quoted 11 lines

Enable the use of dsgl by default and determine whether dsgl is supported from lld info.

---
 drivers/infiniband/hw/cxgb4/mem.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/drivers/infiniband/hw/cxgb4/mem.c

Quoted 7 lines

index 410408f..8db7a11 100644

drivers/infiniband/hw/cxgb4/mem.c +0 -0
@@ -38,9 +38,9 @@
 
 #include "iw_cxgb4.h"
 
Quoted 7 lines

drivers/infiniband/hw/cxgb4/mem.c line 43

Quoted 5 lines
drivers/infiniband/hw/cxgb4/mem.c +2 -2
-int use_dsgl = 0;
+int use_dsgl = 1;
 module_param(use_dsgl, int, 0644);
-MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=0)");
+MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=1)");

Can we get rid of this module parameter completely?

We can, but we would need to deprecate it for a release or two. I believe removing them cold-turkey isn't recommended because it represents a form of user interface...

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 29 lines · Steve Wise
Quoted 21 lines · Ganesh Goudar

Review

Quoted 11 lines

Enable the use of dsgl by default and determine whether dsgl is supported from lld info.

---
 drivers/infiniband/hw/cxgb4/mem.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/drivers/infiniband/hw/cxgb4/mem.c

Quoted 7 lines

index 410408f..8db7a11 100644

drivers/infiniband/hw/cxgb4/mem.c +0 -0
@@ -38,9 +38,9 @@
 
 #include "iw_cxgb4.h"
 
Quoted 7 lines

drivers/infiniband/hw/cxgb4/mem.c line 43

Quoted 5 lines
drivers/infiniband/hw/cxgb4/mem.c +2 -2
-int use_dsgl = 0;
+int use_dsgl = 1;
 module_param(use_dsgl, int, 0644);
-MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=0)");
+MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=1)");

Can we get rid of this module parameter completely?

Quoted 3 lines

We can, but we would need to deprecate it for a release or two. I believe removing them cold-turkey isn't recommended because it represents a form of user interface...

You can rename it to be deprecated_use_dsgl instead of use_dsgl and wait for a couple of years to see if someone complains.

Thanks

Quoted 2 lines

A message that is not in the archive (sent off-list or not yet received): 20170302151122.GC14379-U/[email protected]

#7 lore raw
Quoted 30 lines · Steve Wise
Quoted 29 lines
Quoted 28 lines · Ganesh Goudar

Review

Quoted 11 lines

Enable the use of dsgl by default and determine whether dsgl is supported from lld info.

---
 drivers/infiniband/hw/cxgb4/mem.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/drivers/infiniband/hw/cxgb4/mem.c

drivers/infiniband/hw/cxgb4/mem.c line 43

Quoted 12 lines

index 410408f..8db7a11 100644

drivers/infiniband/hw/cxgb4/mem.c +2 -2
@@ -38,9 +38,9 @@
 
 #include "iw_cxgb4.h"
 
-int use_dsgl = 0;
+int use_dsgl = 1;
 module_param(use_dsgl, int, 0644);
-MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=0)");
+MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=1)");

Can we get rid of this module parameter completely?

Quoted 8 lines
Quoted 2 lines

We can, but we would need to deprecate it for a release or two. I believe removing them cold-turkey isn't recommended because it represents a form of

user

Quoted 1 line

interface...

You can rename it to be deprecated_use_dsgl instead of use_dsgl and wait for a couple of years to see if someone complains.

I think for cxgb4 module options, we just add "DEPRECATED" to the description for a few releases, then remove it.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw
Quoted 33 lines · Steve Wise
Quoted 33 lines · Steve Wise
Quoted 29 lines
Quoted 21 lines · Ganesh Goudar

Review

Quoted 11 lines

Enable the use of dsgl by default and determine whether dsgl is supported from lld info.

---
 drivers/infiniband/hw/cxgb4/mem.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/drivers/infiniband/hw/cxgb4/mem.c

Quoted 7 lines

index 410408f..8db7a11 100644

drivers/infiniband/hw/cxgb4/mem.c +0 -0
@@ -38,9 +38,9 @@
 
 #include "iw_cxgb4.h"
 
Quoted 7 lines

drivers/infiniband/hw/cxgb4/mem.c line 43

Quoted 5 lines
drivers/infiniband/hw/cxgb4/mem.c +2 -2
-int use_dsgl = 0;
+int use_dsgl = 1;
 module_param(use_dsgl, int, 0644);
-MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=0)");
+MODULE_PARM_DESC(use_dsgl, "Use DSGL for PBL/FastReg (default=1)");

Can we get rid of this module parameter completely?

Quoted 2 lines

We can, but we would need to deprecate it for a release or two. I believe removing them cold-turkey isn't recommended because it represents a form of

user

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

interface...

You can rename it to be deprecated_use_dsgl instead of use_dsgl and wait for a couple of years to see if someone complains.

I think for cxgb4 module options, we just add "DEPRECATED" to the description for a few releases, then remove it.

Sounds great.

Quoted 2 lines
Applied
#9 lore raw
In reply to a message not in the archive
Quoted 6 lines · Ganesh Goudar

Enable the use of dsgl by default and determine whether dsgl is supported from lld info.

I applied this, but I did add a deprecated tag to the module option description.

Signature · 9 lines
Doug Ledford <[email protected]>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw
Quoted 10 lines · Doug Ledford
Quoted 6 lines · Ganesh Goudar

Enable the use of dsgl by default and determine whether dsgl is supported from lld info.

I applied this, but I did add a deprecated tag to the module option description.

Thanks.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html