Re: [PATCH v2 rdma-core 1/6] Common infrastructure for auto loading rdma modules

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

 



On Thu, Jul 27, 2017 at 04:31:20PM -0600, Jason Gunthorpe wrote:

[...]

Sorry Jason, I can't test this till next week.  On inspection I found a couple of issues
below.

> diff --git a/kernel-boot/rdma-description.rules b/kernel-boot/rdma-description.rules
> new file mode 100644
> index 00000000000000..4d7c5808401ac7
> --- /dev/null
> +++ b/kernel-boot/rdma-description.rules
> @@ -0,0 +1,42 @@
> +# This is a version of net-description.rules for /sys/class/infiniband devices
> +
> +ACTION=="remove", GOTO="rdma_description_end"
> +SUBSYSTEM!="infiniband", GOTO="rdma_description_end"
> +
> +# NOTE: DRIVERS searches up the sysfs path to find the driver that is bound to
> +# the PCI/etc device that the RDMA device is linked to. This is not the kernel
> +# driver that is supplying the RDMA device (eg as seen in ID_NET_DRIVER)
> +
> +# FIXME: with kernel support we could actually detect the protocols the RDMA
> +# driver itself supports, this is a work around for lack of that support.
> +# In future we could do this with a udev IMPORT{program} helper program
> +# that extracted the ID information from the RDMA netlink.
> +
> +# Hardware that supports InfiniBand
> +DRIVERS=="mlx4_core", ENV{ID_RDMA_INFINIBAND}="1"
> +DRIVERS=="mlx5_core", ENV{ID_RDMA_INFINIBAND}="1"
> +DRIVERS=="qib", ENV{ID_RDMA_INFINIBAND}="1"
> +
> +# Hardware that supports OPA
> +DRIVERS=="hfi1verbs", ENV{ID_RDMA_OPA}="1"
> +
> +# Hardware that supports iWarp
> +DRIVERS=="cxgb3", ENV{ID_RDMA_IWARP}="1"
> +DRIVERS=="cxgb4", ENV{ID_RDMA_IWARP}="1"

Need to add nes and i40e here under iWARP.
This is enough to autoload iwpmd for nes and i40e/i40iw, correct?

> +
> +# Hardware that supports RoCE
> +DRIVERS=="be2net", ENV{ID_RDMA_ROCE}="1"
> +DRIVERS=="bnxt_en", ENV{ID_RDMA_ROCE}="1"
> +DRIVERS=="hns", ENV{ID_RDMA_ROCE}="1"
> +DRIVERS=="i40e", ENV{ID_RDMA_ROCE}="1"

i40e does not support RoCE, see above.

Chien
--
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