Message ID | 20230411064815.31456-17-baolu.lu@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2380268vqo; Tue, 11 Apr 2023 00:11:13 -0700 (PDT) X-Google-Smtp-Source: AKy350aJqpYBg7mzr+OOMQPF+7Z2QZ/HAMb5eiNXKNIgbA7oWtedz71Z+/NHUiH7+yrtjPpZvtp0 X-Received: by 2002:a17:90a:1947:b0:246:91ba:8153 with SMTP id 7-20020a17090a194700b0024691ba8153mr9273976pjh.40.1681197072976; Tue, 11 Apr 2023 00:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681197072; cv=none; d=google.com; s=arc-20160816; b=uwKH4zPigfmk5DYXep0zxJ3B+N5toUg3RXXSSndKFTTVQCvLHxXBYroqh+1y73shHp vNVObHW/61mDX8a57XAPpbdhXCQ7Y7oS4eHbrFdgZ0hI4uQYtwkmBQ6VkIVfjm9lNXiv LG4a+JjLJEPzBf5fMJnS0fohcyH19t+T/449lGLlYUNm8bBufe3PjJMLuMHtMxoYfB4y 9BKN+OoUc9OWxofoQA3vHi2WVfYuGSmZqhr2NyBznohDNtsWT0vKjtCQxAfgBV7LOxgg psfxj2h9+Abl6wHxQh+2eeyP6jPx+t6HRLbveemGAqij4ifh7fkG8Aqf0vpIbKegSFlO G99A== 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=JkWEsnZSHpDwUuQeyDX9oA5BBAR+sK+h6IMXfFeyS3k=; b=JZJm7v7YUVj1YyxVHTCFbpONQ2ntQgAuJMSTs4HrIHfkCA5zCxXjtgGaI7z/pXxJf+ ccfhfa+JwJKdDJ6Veuoqu6k2RUYjkI62IguZHyCO3mb/YKlXvtS4F2SnL44KJHLoclj0 Z82fLWMG7FbHL3AjwwTrf7ffKrhylLtNwCd2UucoQA9HDucFUYCsv0VeCZ0rXhRxJkEl ude6GJMvx8JquWpq7pLjqCBAB6JpP7WJWZUg6hC8M6/WPlMq2REMfp70VFovrapuBfhP 4mo1YGaKrSF2+Vr0a6pErKV7kNAA5pYO2ESrIkWJ5G4Zs1eM/AUb3YzvCNUzcGWDzW0x 031w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TYYmQlf2; 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 pg3-20020a17090b1e0300b00230ca3efcf3si13018779pjb.158.2023.04.11.00.11.00; Tue, 11 Apr 2023 00:11:12 -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=TYYmQlf2; 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 S230483AbjDKGvY (ORCPT <rfc822;yuanzuo1009@gmail.com> + 99 others); Tue, 11 Apr 2023 02:51:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbjDKGu7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 11 Apr 2023 02:50:59 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2F07421F for <linux-kernel@vger.kernel.org>; Mon, 10 Apr 2023 23:50: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=1681195822; x=1712731822; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tiukwRnefzsk0G3cv6MPqdFvIODlX3L3N/gwsxTD9ak=; b=TYYmQlf23hKJlTZzzU/jBNfNjkpByVzD5po2+SkVTTo6BFrhfPXwxSgP 5GOt5+DDR+DuhLorLkJFQ5OA8aIgBEqj7y90w9k7fA5NzCZlIK2sVjtuT 6njGOqZ2CnieccwCmUSlhZFBPMPj/+QI2zJZ8arY/HSO9+LCscqY4VwH1 g3SBkXgvAIRW5gtCXnSXHXoBZzr+orSk/sFZzeDqkc23KwUsy36Rxkj8D r7OIfn8oWRh5Mii6rEHHLCV8BGMnkQbEgCbl25aXN6DNaim67UZnbxz6S yHemX15qNV3nBS1wjLcgdtcPuBWkOhf4zPxINfiQ072ftcF+RoPJGUqUa w==; X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="341028633" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="341028633" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 23:48:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="1018256657" X-IronPort-AV: E=Sophos;i="5.98,336,1673942400"; d="scan'208";a="1018256657" Received: from allen-box.sh.intel.com ([10.239.159.127]) by fmsmga005.fm.intel.com with ESMTP; 10 Apr 2023 23:48:44 -0700 From: Lu Baolu <baolu.lu@linux.intel.com> To: Joerg Roedel <joro@8bytes.org> Cc: Vinod Koul <vkoul@kernel.org>, Tina Zhang <tina.zhang@intel.com>, Jacob Pan <jacob.jun.pan@linux.intel.com>, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 16/17] iommu/vt-d: Remove a useless BUG_ON(dev->is_virtfn) Date: Tue, 11 Apr 2023 14:48:14 +0800 Message-Id: <20230411064815.31456-17-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230411064815.31456-1-baolu.lu@linux.intel.com> References: <20230411064815.31456-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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?1762862902313724585?= X-GMAIL-MSGID: =?utf-8?q?1762862902313724585?= |
Series |
Intel IOMMU updates for Linux v6.4
|
|
Commit Message
Baolu Lu
April 11, 2023, 6:48 a.m. UTC
From: Tina Zhang <tina.zhang@intel.com> When dmar_alloc_pci_notify_info() is being invoked, the invoker has ensured the dev->is_virtfn is false. So, remove the useless BUG_ON in dmar_alloc_pci_notify_info(). Signed-off-by: Tina Zhang <tina.zhang@intel.com> Link: https://lore.kernel.org/r/20230406065944.2773296-7-tina.zhang@intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> --- drivers/iommu/intel/dmar.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/drivers/iommu/intel/dmar.c b/drivers/iommu/intel/dmar.c index f0f51c957ccb..9346c6e7ebae 100644 --- a/drivers/iommu/intel/dmar.c +++ b/drivers/iommu/intel/dmar.c @@ -127,8 +127,6 @@ dmar_alloc_pci_notify_info(struct pci_dev *dev, unsigned long event) struct pci_dev *tmp; struct dmar_pci_notify_info *info; - BUG_ON(dev->is_virtfn); - /* * Ignore devices that have a domain number higher than what can * be looked up in DMAR, e.g. VMD subdevices with domain 0x10000