Re: [PATCH for-rc] RDMA/hns: Add 64KB page size support for hip08

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 11, 2018 at 04:31:23PM +0800, Yixian Liu wrote:
> This patch adds the support of 64KB page size for hip08
> in kernel.
> 
> Signed-off-by: Yixian Liu <liuyixian@xxxxxxxxxx>
>  drivers/infiniband/hw/hns/hns_roce_device.h |  3 +++
>  drivers/infiniband/hw/hns/hns_roce_hw_v2.c  | 36 ++++++++++++++++-------------
>  drivers/infiniband/hw/hns/hns_roce_mr.c     |  6 -----
>  3 files changed, 23 insertions(+), 22 deletions(-)
> 
> diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h
> index fb305b7..53c2f1b 100644
> +++ b/drivers/infiniband/hw/hns/hns_roce_device.h
> @@ -100,6 +100,9 @@
>  #define SERV_TYPE_UC				2
>  #define SERV_TYPE_UD				3
>  
> +/* Configure to HW for PAGE_SIZE larger than 4KB */
> +#define PG_SHIFT_OFFSET				(PAGE_SHIFT - 12)

What happens if the kernel is built with PAGE_SHIFT < 12?

I'm guessing this needs a BUILD_BUG_ON as this HW cannot support that??

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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux