Message ID | 20221205131412.2003159-2-baolu.lu@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2252782wrr; Mon, 5 Dec 2022 05:29:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf75GTLRX34fv2d77WlQX6I8AD0QyVCFhtjp5l4Jm5GeToi4DVF1j4LTrbaKl7EQmx1o7IOU X-Received: by 2002:a17:907:774e:b0:7ae:39b4:7208 with SMTP id kx14-20020a170907774e00b007ae39b47208mr4174484ejc.766.1670246982885; Mon, 05 Dec 2022 05:29:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670246982; cv=none; d=google.com; s=arc-20160816; b=UN2Pcn8OmYYqkNFtN0sU1HnYub8sQf+eJQVD044wD3iJWoSVZE+iXxMJV9wnhDB3i1 1BCiOmKGHGGUaidvHHTo6wla7qHL9NoL9OwTaeukdpq8PegNHhZmKhRikPm9MiBotguJ 3iESPY51FyupBgiCOUDmHn9HcgDdfekZYvkHevh4t19UKRiWypyXshKYvdDeAxkUDb9B 9W7jENQ0dEU1BJE/jAepEmSBduFDFfWwNuYM3uxdaWTlzvMSIyxwgaU5S3QHQaQZf/Zx j4EGSyHKcRrF4QI2fgIiAo0cdL0M8fDuFqmcS2hlzTmfkn882Qh8DTStCaSBpykxDQgQ ZWOw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+qzdAeEETwcqHdNu176lTpDvjEpR2vefKX2XOhnlpjw=; b=LCxtb3eUOEJ/F3kV4yPqmALmOC2oVs9PfneMtRpUnGdED5wS3hXVbPAWfqrZC6iBEQ cKz86+D59GJQT2ngW1LXEOcPHXn1m3PjBQk9XKpBVGulxOzQWRm7Y7OWm3NXqxlxKNM+ HSlKJWS7EUV/A3zJ4+qUtjZqIBfgdfyaDcdiRpZQEhtCtjRXKEvX4/4fZg7rQFqgJuIO gaNUoDp30JQwK9OalxcROejzphSvbKNt2cWhNcsRaJOCxZv7f/FJlJFJhgBOka8HBSex 9xhHgzMwvhhTFuAGkEXjHtQ1ATQ0vVrJ9taolw51iZCDzxUDPK/m9nVokRzkmslaBBpb zoCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ildT5qOL; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020aa7d355000000b00461ebe2a168si10557041edr.447.2022.12.05.05.29.17; Mon, 05 Dec 2022 05:29:42 -0800 (PST) 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=ildT5qOL; 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 S232168AbiLENVo (ORCPT <rfc822;jaysivo@gmail.com> + 99 others); Mon, 5 Dec 2022 08:21:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232177AbiLENVg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Dec 2022 08:21:36 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9099D1C424 for <linux-kernel@vger.kernel.org>; Mon, 5 Dec 2022 05:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670246495; x=1701782495; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tvirCoktsOJCDgLp5DXt2SRw2Wm/ltzUXfTouRmkaSQ=; b=ildT5qOLNqHg8JiLzvQKlWMSeOy4AGtPGWoTFntjK5scufuvPD6pbU4R NVDZq3RT6xkwg+XMNlVAO/ys9oEJuo8m3XL2oAbG72yRG0heZUidkwwua yCQSkS9IC9Ql5e8bOXvPRIZG9axmOGiBMcG1DMgsmFnSVnhY5aZhzkOB8 WPbHSNRIug6IIaJ4q4idsIRNFzwGxRd8aU05E9nfj8Siq/XcDTv+X787V W8Yn+PiKjsu/WGJWbuQ5l492uHHyMK3gPT0vElqfGAxrc3ju17Lz25NF9 dfXpSdHm6YHcblpEdx3OJC8PZOgRjmeAhPh8tFY6J94bcn3jYbntXpQQg w==; X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="315046107" X-IronPort-AV: E=Sophos;i="5.96,219,1665471600"; d="scan'208";a="315046107" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2022 05:21:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="676583250" X-IronPort-AV: E=Sophos;i="5.96,219,1665471600"; d="scan'208";a="676583250" Received: from allen-box.sh.intel.com ([10.239.159.48]) by orsmga008.jf.intel.com with ESMTP; 05 Dec 2022 05:21:33 -0800 From: Lu Baolu <baolu.lu@linux.intel.com> To: Joerg Roedel <joro@8bytes.org> Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>, Ashok Raj <ashok.raj@intel.com>, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] iommu/vt-d: Fix buggy QAT device mask Date: Mon, 5 Dec 2022 21:14:12 +0800 Message-Id: <20221205131412.2003159-2-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221205131412.2003159-1-baolu.lu@linux.intel.com> References: <20221205131412.2003159-1-baolu.lu@linux.intel.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751380900453169916?= X-GMAIL-MSGID: =?utf-8?q?1751380900453169916?= |
Series |
iommu/vt-d: Fixes for v6.1
|
|
Commit Message
Baolu Lu
Dec. 5, 2022, 1:14 p.m. UTC
From: Jacob Pan <jacob.jun.pan@linux.intel.com> Impacted QAT device IDs that need extra dtlb flush quirk is ranging from 0x4940 to 0x4943. After bitwise AND device ID with 0xfffc the result should be 0x4940 instead of 0x494c to identify these devices. Fixes: e65a6897be5e ("iommu/vt-d: Add a fix for devices need extra dtlb flush") Reported-by: Raghunathan Srinivasan <raghunathan.srinivasan@intel.com> Signed-off-by: Ashok Raj <ashok.raj@intel.com> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Link: https://lore.kernel.org/r/20221203005610.2927487-1-jacob.jun.pan@linux.intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> --- drivers/iommu/intel/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index 5287efe247b1..644ca49e8cf8 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -1402,7 +1402,7 @@ static void domain_update_iotlb(struct dmar_domain *domain) * check because it applies only to the built-in QAT devices and it doesn't * grant additional privileges. */ -#define BUGGY_QAT_DEVID_MASK 0x494c +#define BUGGY_QAT_DEVID_MASK 0x4940 static bool dev_needs_extra_dtlb_flush(struct pci_dev *pdev) { if (pdev->vendor != PCI_VENDOR_ID_INTEL)