From 38a999886111c1dc99e71df5dd651872a9b5ea7e Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 10 2020 05:26:31 +0000 Subject: Apply patch i40iw-autoload-breaks-suspend.patch patch_name: i40iw-autoload-breaks-suspend.patch present_in_specfile: true --- diff --git a/kernel-boot/rdma-hw-modules.rules b/kernel-boot/rdma-hw-modules.rules index bee416d..97faa07 100644 --- a/kernel-boot/rdma-hw-modules.rules +++ b/kernel-boot/rdma-hw-modules.rules @@ -10,7 +10,11 @@ ENV{ID_NET_DRIVER}=="be2net", RUN{builtin}+="kmod load ocrdma" ENV{ID_NET_DRIVER}=="bnxt_en", RUN{builtin}+="kmod load bnxt_re" ENV{ID_NET_DRIVER}=="cxgb4", RUN{builtin}+="kmod load iw_cxgb4" ENV{ID_NET_DRIVER}=="hns", RUN{builtin}+="kmod load hns_roce" -ENV{ID_NET_DRIVER}=="i40e", RUN{builtin}+="kmod load i40iw" +# i40iw is not entirely suspend/resume friendly, and many systems with +# i40e NICs aren't iwarp-capable, so Red Hat defaults to not auto-loading +# the i40iw driver here to keep suspend/resume working. The i40iw driver +# can still be loaded as needed by the rdma systemd service script. +# ENV{ID_NET_DRIVER}=="i40e", RUN{builtin}+="kmod load i40iw" ENV{ID_NET_DRIVER}=="mlx4_en", RUN{builtin}+="kmod load mlx4_ib" ENV{ID_NET_DRIVER}=="mlx5_core", RUN{builtin}+="kmod load mlx5_ib" ENV{ID_NET_DRIVER}=="qede", RUN{builtin}+="kmod load qedr"