Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2149023rwb; Sun, 18 Sep 2022 23:41:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4HHb+KFce2a41Wc4IwRr6xZxvNvdefeZg2p7uyqUa8GW3nnLga7f2bXcbeEVQb16IXIDYU X-Received: by 2002:a05:6402:401b:b0:453:f519:94ad with SMTP id d27-20020a056402401b00b00453f51994admr4301613eda.144.1663569682045; Sun, 18 Sep 2022 23:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663569682; cv=none; d=google.com; s=arc-20160816; b=HUgZGf02kyxR6M5QikGYSTRnac1OtCEeqTZMERwc9GhAuN5GiyDI+y0ACfn363lDA7 QJ47rVOcyPrfHifxE3v7nQ1HnAAH+D9QBVgptu7g6pfD91uCBWaMk1qz7INKqVNeB5li OClOFd+yfaock4gqaTNwjxksXOikWVpCk/ARLjcmHUHN76q437vA3IuwWTHC0fNG+xGP AaiSDxcFFxJhorHuHYUAGg/zEw17oe0U3Avcdxy+M7xkQmDbksyd4XR0zp50Mg4+Xik0 Lb5ezzW+4LeYmEdArew/H1BkolcWLNHDw5InNzGndgD9fp1HoQ/b4uLM6NbmWcIV7BOM mj4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fyDplPVyIvq8oRhccCQDwBOAkYn5C9Hp2BTbcph7WsA=; b=XBRo3wJZLRBsOXXfHPlvP2ZU6MIqQT9fhSaXjD+3OS2fRLt4F0gTJvZ0lZ95hIv4X1 Rt/9zdqy730GnwB9wjekI8L6HpFXECtcjP8ydTZ0uZ4A5HlvnXbfnsT0mMGCeVJG1UQN 43Cui94/Q6qOLceQ1nBLWFNBX2gMB0s9z/OCsLsugH4FjE0FogI7tgvpgq1jBXZNwECj LDbjwHQ5YA6ALEI14IOYKv+iwG8UH5bDuh0KT96wURhkfO1ZmZlI6bJw3f0fxWYRSkV+ +TSw7E2boaWvAvEpOQiQPZuG9LY4kfrBAO+2XRR0PUA69d86K6cBU6SDP5pOrPx4l8v7 Mg1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="JF/3rt/J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw10-20020a1709066a0a00b00779a3220c5asi24759245ejc.343.2022.09.18.23.40.56; Sun, 18 Sep 2022 23:41:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="JF/3rt/J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbiISGbZ (ORCPT + 99 others); Mon, 19 Sep 2022 02:31:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbiISGbX (ORCPT ); Mon, 19 Sep 2022 02:31:23 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6321017A88 for ; Sun, 18 Sep 2022 23:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663569082; x=1695105082; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=dVdgBkbGUl4BGMdHCf+Lq0avz2hGOi0xJ/PV314U0jA=; b=JF/3rt/JtpSaeNGeTravto9P6ub73nIezKqCJPa45Zi6qBwk/QACcnQK lFBGG1GHxXY+G/tRNuEbT8htOVbz7eLkxJWkddKvSc5vywMFJtKfaz5V0 6Rv486PQu6CZwwmBc+yUmyOo/WCwXSEqHwbQhL9lVG91JKnIMnmQHqdlq VfzkVty3ma7GSmH5IF1/tK9l2EXAibTdQs5IyD8GuyxWTSp7+sSeZozJv GyBBvgPCRPvZANfuRtqIuMBUeiDUQbzu0qLt6isx8d8rJaNAZkppiUaWn fuBPHi0nQBNBmRvqnggIxHE/v+n2YBWHe3x7EkK3qafXQZdTczmRUqWZ5 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10474"; a="279699700" X-IronPort-AV: E=Sophos;i="5.93,327,1654585200"; d="scan'208";a="279699700" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2022 23:31:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,327,1654585200"; d="scan'208";a="680715154" Received: from allen-box.sh.intel.com ([10.239.159.48]) by fmsmga008.fm.intel.com with ESMTP; 18 Sep 2022 23:31:20 -0700 From: Lu Baolu To: iommu@lists.linux.dev Cc: Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Jacob Pan , linux-kernel@vger.kernel.org, Lu Baolu Subject: [PATCH 0/2] iommu/vt-d: Add ESRTPS & ESIRTPS check Date: Mon, 19 Sep 2022 14:25:21 +0800 Message-Id: <20220919062523.3438951-1-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, Some VT-d hardware implementations invalidates all DMA remapping or interrupt remapping hardware translation caches as part of SRTP or SIRTPS flow. The VT-d spec introduced two capability bits for these hardware behaviors. This series fine tuned the VT-d driver to avoid unnecessary global cache validations. Best regards, baolu Lu Baolu (2): iommu/vt-d: Avoid unnecessary global IRTE cache invalidation iommu/vt-d: Avoid unnecessary global DMA cache invalidation drivers/iommu/intel/iommu.h | 2 ++ drivers/iommu/intel/iommu.c | 7 +++++++ drivers/iommu/intel/irq_remapping.c | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) -- 2.34.1