Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E81636113 for ; Tue, 20 Feb 2024 01:58:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708394330; cv=none; b=eelT6NWsAVSkR75X1kZZHlOph24FTe/BVXkHwrpcBwAyO+aaafWeoloQANDH777XLkTC8a4OWWUboed5zz+bpypQ4BEFhsm6M3fHQmD7f1csGkO5V3kja/NLJqKDui6RkT3GibKjvswzKYdt4ws4Vhnt94OzeUO/cwND9hv1cMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708394330; c=relaxed/simple; bh=NcQcuILo08zWXSfM8VhRmkA7Nhl3f5vbJdYX+N5RanA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gGfD6vX5AMsvE34vYq6yJqZ8pAGYRxCqsL7YRQ/7tzMuryN5EnCy8oRZJkjDbyKTeEjX5N+2e3Epj72ec114EHfiAPdwB7eetPE2wChJnou3MWxzvhCywIcDOQKxEx/DRnKmkw6b1gunkcdUeBQe3B+QcQgSK6KUIhCDJa9IBhQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=BNE3LwEw; arc=none smtp.client-ip=140.211.166.133 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BNE3LwEw" Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9FC8D4018E for ; Tue, 20 Feb 2024 01:58:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -2.101 X-Spam-Level: Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kCKqLlzRCooh for ; Tue, 20 Feb 2024 01:58:46 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=198.175.65.9; helo=mgamail.intel.com; envelope-from=rex.zhang@intel.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 9F47D400B5 Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 9F47D400B5 Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=BNE3LwEw Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by smtp2.osuosl.org (Postfix) with ESMTPS id 9F47D400B5 for ; Tue, 20 Feb 2024 01:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708394327; x=1739930327; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=NcQcuILo08zWXSfM8VhRmkA7Nhl3f5vbJdYX+N5RanA=; b=BNE3LwEw+G76eP9QzEZqrvTK0IucIO4ArCUFRpw7XL2+PVN1y3Q/rIu/ etbe/nG70H+F8mdCkAizouTQ4CGaadgxbJp4hpULWcBqrkNE++zKg/qFS fkOfrbe9b4kGdO5SfgzE2FxUEQiuwMdXyukKhjIZbOtxc6phTJl1OEBWd rzQUj+EJdblaJbPCnlkiz2/289C9BoI/wMmDeq4GeVbZqxDEPUIvOZD+M 7qxU0lDQxQoKhgnRECFmasI7ayiyridxsOVNSbL1Wk1rzU+xkE+uKMbXa y+go388fQZWa7pcfZb8+a9xMOMpCH6TJoAjmF5jDT4tDZpPFTGv4tlYEa g==; X-IronPort-AV: E=McAfee;i="6600,9927,10989"; a="24940933" X-IronPort-AV: E=Sophos;i="6.06,171,1705392000"; d="scan'208";a="24940933" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 17:58:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,171,1705392000"; d="scan'208";a="4879409" Received: from rex-z390-aorus-pro.sh.intel.com ([10.239.161.21]) by fmviesa006.fm.intel.com with ESMTP; 19 Feb 2024 17:58:45 -0800 From: Rex Zhang To: ramesh.thomas@intel.com, rex.zhang@intel.com, tony.zhu@intel.com, accel-config@lists.linuxfoundation.org Subject: [PATCH 2/3] accel-config/test: Remove the script about vfio passthrough device Date: Tue, 20 Feb 2024 09:58:37 +0800 Message-Id: <20240220015838.127732-2-rex.zhang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240220015838.127732-1-rex.zhang@intel.com> References: <20240220015838.127732-1-rex.zhang@intel.com> Precedence: bulk X-Mailing-List: accel-config@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The operation translation fetch no longer use the vfio passthrough device to map/unmap address. Remove the relavant script. Signed-off-by: Rex Zhang --- test/iaa_user_test_runner.sh | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/test/iaa_user_test_runner.sh b/test/iaa_user_test_runner.sh index d85d043..eb9629b 100755 --- a/test/iaa_user_test_runner.sh +++ b/test/iaa_user_test_runner.sh @@ -20,10 +20,6 @@ fi echo "$IAA" WQ0=wq1.4 WQ1=wq1.1 -DBDF=`ls -l /sys/bus/dsa/devices/iax3 | awk -F '/' '{print $(NF - 1)}'` -VENDOR_ID=`lspci -n -s ${DBDF} | awk -F ' ' '{print $NF}' | awk -F ':' '{print $1}'` -DEVICE_ID=`lspci -n -s ${DBDF} | awk -F ' ' '{print $NF}' | awk -F ':' '{print $2}'` -VFIO_BINDED=0 IAA_OPCODE_NOOP=0x0 IAA_OPCODE_TRANSL_FETCH=0xa @@ -112,22 +108,6 @@ disable_wqs() "$ACCFG" disable-wq "$IAA"/"$WQ1" } -bind_vfio() -{ - echo "PCI dev info: ${DBDF} ${VENDOR_ID} ${DEVICE_ID}" - echo ${DBDF} > /sys/bus/pci/drivers/idxd/unbind - echo ${VENDOR_ID} ${DEVICE_ID} > /sys/bus/pci/drivers/vfio-pci/new_id - VFIO_BINDED=1 -} - -unbind_vfio() -{ - echo ${VENDOR_ID} ${DEVICE_ID} > /sys/bus/pci/drivers/vfio-pci/remove_id - echo ${DBDF} > /sys/bus/pci/drivers/vfio-pci/unbind - echo 1 > /sys/bus/pci/devices/${DBDF}/reset - echo ${DBDF} > /sys/bus/pci/drivers/idxd/bind -} - err_exit() { err_code=$? @@ -349,9 +329,7 @@ test_op_transl_fetch() echo "Testing $xfer_size bytes" "$IAATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \ - -f "$flag" -m 0 -t 5000 -v $DEV_OPT - "$IAATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \ - -f "$flag" -m 1 -t 5000 -v $DEV_OPT + -f "$flag" -t 5000 -v $DEV_OPT done done } @@ -500,8 +478,6 @@ if [ $((IAA_OPCODE_MASK_DECRYPT & OP_CAP2)) -ne 0 ]; then fi if [ $((IAA_OPCODE_MASK_TRANSL_FETCH & OP_CAP0)) -ne 0 ]; then - bind_vfio - flag="0x1" echo "Testing with 'block on fault' flag ON" test_op_transl_fetch $IAA_OPCODE_TRANSL_FETCH $flag @@ -509,8 +485,6 @@ if [ $((IAA_OPCODE_MASK_TRANSL_FETCH & OP_CAP0)) -ne 0 ]; then flag="0x0" echo "Testing with 'block on fault' flag OFF" test_op_transl_fetch $IAA_OPCODE_TRANSL_FETCH $flag - - unbind_vfio fi if [ "$input1" != "--skip-config" ]; then -- 2.25.1