iw_cxgb4: Use dsgl by default
Subsystems (2)
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
@@ -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
Quoted 15 lines · Ganesh Goudar
Enable the use of dsgl by default and determine whether dsgl is supported from lld info.
Signed-off-by Steve Wise <[email protected]>Signed-off-by Bharat Potnuri <[email protected]>Signed-off-by Ganesh Goudar <[email protected]>--- drivers/infiniband/hw/cxgb4/mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/infiniband/hw/cxgb4/mem.c +0
-0
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]
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.
Signed-off-by Steve Wise <[email protected]>Signed-off-by Bharat Potnuri <[email protected]>Signed-off-by Ganesh Goudar <[email protected]>--- drivers/infiniband/hw/cxgb4/mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/infiniband/hw/cxgb4/mem.cQuoted 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
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.
Signed-off-by Steve Wise <[email protected]>Signed-off-by Bharat Potnuri <[email protected]>Signed-off-by Ganesh Goudar <[email protected]>--- drivers/infiniband/hw/cxgb4/mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/infiniband/hw/cxgb4/mem.cQuoted 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]
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.
Signed-off-by Steve Wise <[email protected]>Signed-off-by Bharat Potnuri <[email protected]>Signed-off-by Ganesh Goudar <[email protected]>--- drivers/infiniband/hw/cxgb4/mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/infiniband/hw/cxgb4/mem.cdrivers/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_dsglinstead ofuse_dsgland 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
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.
Signed-off-by Steve Wise <[email protected]>Signed-off-by Bharat Potnuri <[email protected]>Signed-off-by Ganesh Goudar <[email protected]>--- drivers/infiniband/hw/cxgb4/mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/infiniband/hw/cxgb4/mem.cQuoted 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_dsglinstead ofuse_dsgland 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
Doug Ledford
AppliedQuoted 6 lines · Ganesh Goudar
Enable the use of dsgl by default and determine whether dsgl is supported from lld info.
Signed-off-by Steve Wise <[email protected]>Signed-off-by Bharat Potnuri <[email protected]>Signed-off-by Ganesh Goudar <[email protected]>
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]
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.
Signed-off-by Steve Wise <[email protected]>Signed-off-by Bharat Potnuri <[email protected]>Signed-off-by Ganesh Goudar <[email protected]>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