Content-Type: multipart/mixed; boundary="===============5613711805784350582==" MIME-Version: 1.0 From: Tony Zhu Subject: [Accel-config] [PATCH 1/1] accel-config: Fix idxd modprobe issue with idxd_mdev for user test Date: Fri, 05 Mar 2021 09:03:53 -0500 Message-ID: <20210305140353.1144196-1-tony.zhu@intel.com> To: accel-config@lists.01.org List-ID: --===============5613711805784350582== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable User test will clean the idxd module in the memory moving tests. As idxd_mdev is supported and it depends on idxd, should change the clean as idxd_mdev. To improve the robust and compatibility to old kernel, we add the condition to check if the module is loaded and keep idxd reset. Signed-off-by: Tony Zhu --- test/common | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/common b/test/common index a60bec2..4bd4ed3 100644 --- a/test/common +++ b/test/common @@ -99,7 +99,14 @@ check_prereq() # _cleanup() { - modprobe -r idxd + lsmod | grep -q "idxd_mdev" && { + modprobe -r idxd_mdev + sleep 1 + } + lsmod | grep -q "idxd" && { + modprobe -r idxd + sleep 1 + } modprobe idxd } = @@ -158,4 +165,4 @@ wq_mode2name() echo "UNKNOWN" ;; esac -} \ No newline at end of file +} -- = 2.27.0 --===============5613711805784350582==--