Message ID | 20230413040645.46157-8-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 b10csp774833vqo; Wed, 12 Apr 2023 21:20:30 -0700 (PDT) X-Google-Smtp-Source: AKy350b6sHfkCo8sS0SvzHrbCpUA+SwA4y/H/V6oLKRwrmRR1on0iG78FRzr4zJzUfWhS+tDCpLK X-Received: by 2002:a05:6402:2141:b0:505:745:a271 with SMTP id bq1-20020a056402214100b005050745a271mr1276770edb.23.1681359629756; Wed, 12 Apr 2023 21:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681359629; cv=none; d=google.com; s=arc-20160816; b=t6byncZ8f7UVTTPH861vRgtBwEDy3F8bq+NsB7reUItw1uHltBGGVvoFYjKUn6T9mU 8pKU9pNAPQKQyNp6yApEtNPZWVgjhTdXB6/3OySzh2Rx4ec1O/HEfnb0NzxTANtBSc6s fos49MxoVWpRUM7bjFJM7KcvzfOZfv9BzoiX7D84ypkC9/0vEitrVOi4TuPFCT1rR/Sp 3IJ17jB/kO3m6Jm+YOiY3AOANgMJ/zBssDOTquMhc14IyjbQb0vaQ6VVObKsa7kTIMhs 3ImZxpZ2S2FUyQ+TOBhV+c/z2o+Asp9eMRaAcdkISef3ZRJCxCHrkI34k30RkHP/Pa8u mKvg== 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=gtm8RkT0yxwe71dbqxBAk2+ojNT/TWjrefqo1SdVU6I=; b=hNvWQYDmO4q8dLh02rWbzb4Yiu4CSCWmbzSa55gf6QqVDZxQudLgrEgxjnSJzrtJZ4 fuxDiUcFtK4UhddQhaLHYrEAQr6ADBuxJspjKrE6p68rtLzbS4xhpr5Yc7CB7iPkWpRF Wj69aos2Nn7J/84Pdnd8LsREzJ/7MHJ3+wJ6XXx6/rbkV3bdAvqfPGR2R19rjfYEJDrV dgWX1GyACWcGOK/yO/VqeV3m4Ja6W3WDA6mqh4lXQeECsDv7VWwwq142kW5e72etH/ji Vt/FwaVSyQZy460Z48nxnYDndY55Bpk8Yjznq/zpOXHeW4LMccWQdmq4mv/FzLbSgP7t bWOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aLApzQdi; 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 k18-20020aa7d8d2000000b0050202f2c2f7si740425eds.424.2023.04.12.21.20.05; Wed, 12 Apr 2023 21:20:29 -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=aLApzQdi; 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 S230063AbjDMEHs (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Thu, 13 Apr 2023 00:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbjDMEG6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Apr 2023 00:06:58 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F15A576AE for <linux-kernel@vger.kernel.org>; Wed, 12 Apr 2023 21:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681358817; x=1712894817; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KLcSzST6hDd+fcr/F74YMXpjYh9sQavSmsQ3e9U8YPk=; b=aLApzQdiJi4uay8uEI4J9WflgjO17BjCpwY7RlyRMJtCwKY7r2lZe2vO 0UUJaIEeBHtEz//fW2HaBuhlCw2Tbp7j2CYRXQo8M/fInszr/Z7QANSJN YOgLs5IoNyC3DtabVdfpCyarMs9vFbk9lwLMhk4zIi6vnmQKHY4zCtTch Hl95ZA847SXtPZuow80x6ZjQ4e4mlVfYkOhXVDbd9bMEhM2AWPyGeaRaB rhw2TMqziY9PPwKoho1QEIMt1N/kZs1FtUbcbB1JNyYR7I5BcuhPVanGj xYZIAwNj1kn8IHLdRv3AV1IEYs15+6SoOLaBAMRGc3HOUBG+BWZwn9NQW Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="332786576" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="332786576" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 21:06:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="935361017" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="935361017" Received: from allen-box.sh.intel.com ([10.239.159.127]) by fmsmga006.fm.intel.com with ESMTP; 12 Apr 2023 21:06:54 -0700 From: Lu Baolu <baolu.lu@linux.intel.com> To: Joerg Roedel <joro@8bytes.org> Cc: 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 v2 07/17] iommu/vt-d: Do not use GFP_ATOMIC when not needed Date: Thu, 13 Apr 2023 12:06:35 +0800 Message-Id: <20230413040645.46157-8-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230413040645.46157-1-baolu.lu@linux.intel.com> References: <20230413040645.46157-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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED 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?1763033354673966493?= X-GMAIL-MSGID: =?utf-8?q?1763033354673966493?= |
Series |
Intel IOMMU updates for Linux v6.4
|
|
Commit Message
Baolu Lu
April 13, 2023, 4:06 a.m. UTC
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> There is no need to use GFP_ATOMIC here. GFP_KERNEL is already used for some other memory allocations just a few lines above. Commit e3a981d61d15 ("iommu/vt-d: Convert allocations to GFP_KERNEL") has changed the other memory allocation flags. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/e2a8a1019ffc8a86b4b4ed93def3623f60581274.1675542576.git.christophe.jaillet@wanadoo.fr Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> --- drivers/iommu/intel/irq_remapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/intel/irq_remapping.c b/drivers/iommu/intel/irq_remapping.c index df9e261af0b5..a1b987335b31 100644 --- a/drivers/iommu/intel/irq_remapping.c +++ b/drivers/iommu/intel/irq_remapping.c @@ -548,7 +548,7 @@ static int intel_setup_irq_remapping(struct intel_iommu *iommu) goto out_free_table; } - bitmap = bitmap_zalloc(INTR_REMAP_TABLE_ENTRIES, GFP_ATOMIC); + bitmap = bitmap_zalloc(INTR_REMAP_TABLE_ENTRIES, GFP_KERNEL); if (bitmap == NULL) { pr_err("IR%d: failed to allocate bitmap\n", iommu->seq_id); goto out_free_pages;