cxgbe/iw_cxgbe: Minor changes for T6.
Submitted by: Krishnamraju Eraparaju at Chelsio Sponsored by: Chelsio Communications
This commit is contained in:
parent
b77b9c199a
commit
402e9063ac
@ -330,7 +330,7 @@ c4iw_modevent(module_t mod, int cmd, void *arg)
|
||||
case MOD_LOAD:
|
||||
rc = c4iw_mod_load();
|
||||
if (rc == 0)
|
||||
printf("iw_cxgbe: Chelsio T4/T5 RDMA driver loaded.\n");
|
||||
printf("iw_cxgbe: Chelsio T4/T5/T6 RDMA driver loaded.\n");
|
||||
break;
|
||||
|
||||
case MOD_UNLOAD:
|
||||
|
@ -46,11 +46,11 @@ __FBSDID("$FreeBSD$");
|
||||
#define T4_ULPTX_MIN_IO 32
|
||||
#define C4IW_MAX_INLINE_SIZE 96
|
||||
|
||||
static int mr_exceeds_hw_limits(struct c4iw_dev *dev, u64 length)
|
||||
static int
|
||||
mr_exceeds_hw_limits(struct c4iw_dev *dev __unused, u64 length)
|
||||
{
|
||||
return (is_t4(dev->rdev.adap) ||
|
||||
is_t5(dev->rdev.adap)) &&
|
||||
length >= 8*1024*1024*1024ULL;
|
||||
|
||||
return (length >= 8*1024*1024*1024ULL);
|
||||
}
|
||||
static int
|
||||
write_adapter_mem(struct c4iw_rdev *rdev, u32 addr, u32 len, void *data)
|
||||
|
@ -190,7 +190,7 @@ static int c4iw_mmap(struct ib_ucontext *context, struct vm_area_struct *vma)
|
||||
"%s:6 USER DB-GTS addr %p region %p, reglen %u",
|
||||
__func__, addr, va_udbs_res, len_udbs_res);
|
||||
#ifdef DOT5
|
||||
if (is_t5(rdev->lldi.adapter_type) && map_udb_as_wc)
|
||||
if (!is_t4(rdev->lldi.adapter_type) && map_udb_as_wc)
|
||||
vma->vm_page_prot = t4_pgprot_wc(vma->vm_page_prot);
|
||||
else
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user