Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp3098454lfb; Tue, 28 Jun 2022 06:28:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uQ20PKmtIHLFg1xUU6pVrd5SiGsIdgZo75cAcWjr5n6Satu54DVMmo/7YnphB+PWmpsMuE X-Received: by 2002:a17:906:1018:b0:718:dd3f:f28c with SMTP id 24-20020a170906101800b00718dd3ff28cmr18343243ejm.55.1656422924137; Tue, 28 Jun 2022 06:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656422924; cv=none; d=google.com; s=arc-20160816; b=c7jc3pb+FQIQcgG8lgu6U9aVdbQtO6rOOoDMjq2YN4JmerbFx2A2AksLopeY4PFQLO Ex/6+eSy4Sv8J9vyczZKlkKUqVg/Zv2Bz2qd4ZVM0rVhP4ft1KhuMhOlQkvs/aYqAaG0 QtwxcKPnH+r2ijOz4WPfSFBAF57jy1oiB+BJbyBS+V7saEp4SlLpGYI+QoIahmFUVBqp 6N6YU77ulkHWpKtzbz1rWTfZukj0ua1bG1Io7kGvmlJ0W0mFqypMlpNWYyWVA5jMQGnw bZQ99HHBJuD/QEC1npG76MZ0DIk2ymbpVGDbLPgPPLBeO83NGTrlN1JbvAquN1AOBgVv 3QJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=sQtfeLCsqY1QDl/ZMDggkmNip1rvpK75UgJeraCNEKY=; b=Z1PPnr87+ZU6983lZKet5f4DSFu2L7qiYmOe1KQXymZjoGwh69pqQo+iJm8LeRTzm8 hGxrSn9TnYwaPUeMMnT9MpWLwGMv4X9fdoz4BLElLwz7rshdMpzXizBNpcCXSF/fPFD/ m2heXGVKjPGSiUrjRfMSuChgrwqOE3DrIZdkji9GDLHY4jW+oyI+2tezTZsLWPLHz2nR DVW1O9ny5FrkfjXCLl5SwCOjd1fA+D2orR78tbrrC4WNd09RhO/k74iue1dVPaGqIPB9 253UtRods//raSktIyo97Ts6/Qj/iGh6oZ2rR48ni3BYQLxMGoudrOOsQXWT0LTzL096 vn7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SKsRqnCr; 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 cx1-20020a05640222a100b00418c2b5befdsi12811264edb.479.2022.06.28.06.28.17; Tue, 28 Jun 2022 06:28:44 -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=SKsRqnCr; 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 S1345906AbiF1MjM (ORCPT + 99 others); Tue, 28 Jun 2022 08:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344722AbiF1MjJ (ORCPT ); Tue, 28 Jun 2022 08:39:09 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D852C2ED49 for ; Tue, 28 Jun 2022 05:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656419948; x=1687955948; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=xH+zDbWm9NnK+jA1wnqDI01ZjKwfPCHuUTs1IQUIh5U=; b=SKsRqnCrxFPq9RextccGAYul1UbiUaA9qE9j3RTMa6n4pkH6R1E0haKY +qCWstF8WngQKspmDkMQP5t5Ieh92hfG+/u31gapG0abmJyrMvau8Ba70 /zaNCS8+q8DBiaB2nJNnBK1pIlXa7LjvnrPWdUwJIQlUkrf9ZQU84Ct/c eKhmv1iup4pJBRSuzyA7t9xUjYch+3ZXt0CrfAjv5NERcwpasDjQy8aXg t4B9G0HyGxoIQzjeol0DdZHCUyyWCvPAshzU76iLkdUuakZRaNL5sh7t4 Lk1etFyVJQJ/RBbZYn3P4xOmFGQyqtP+7EejZAa82JPbBrhB7h00X2CdD g==; X-IronPort-AV: E=McAfee;i="6400,9594,10391"; a="281766486" X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="281766486" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 05:39:08 -0700 X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="646897670" Received: from ltang11-mobl1.ccr.corp.intel.com (HELO [10.249.169.64]) ([10.249.169.64]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 05:39:05 -0700 Message-ID: Date: Tue, 28 Jun 2022 20:39:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: baolu.lu@linux.intel.com, David Woodhouse , Jerry Snitselaar , Mike Travis , Dimitri Sivanich , Russ Anderson , iommu@lists.linux.dev, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 0/6] iommu/vt-d: Reset DMAR_UNITS_SUPPORTED Content-Language: en-US To: Joerg Roedel , Steve Wahl , Kevin Tian References: <20220625125204.2199437-1-baolu.lu@linux.intel.com> From: Baolu Lu In-Reply-To: <20220625125204.2199437-1-baolu.lu@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 2022/6/25 20:51, Lu Baolu wrote: > Hi folks, > > This is a follow-up series of changes proposed by this patch: > > https://lore.kernel.org/linux-iommu/20220615183650.32075-1-steve.wahl@hpe.com/ > > It removes several static arrays of size DMAR_UNITS_SUPPORTED and sets > the DMAR_UNITS_SUPPORTED to 1024. > > Please help review and suggest. This series is also available on github: https://github.com/LuBaolu/intel-iommu/commits/vtd-next-for-v5.20 Best regards, baolu > > Best regards, > baolu > > Lu Baolu (6): > iommu/vt-d: Remove unused domain_get_iommu() > iommu/vt-d: Use IDA interface to manage iommu sequence id > iommu/vt-d: Refactor iommu information of each domain > iommu/vt-d: Add VTD_FLAG_IOMMU_PROBED flag > iommu/vt-d: Remove global g_iommus array > iommu/vt-d: Make DMAR_UNITS_SUPPORTED default 1024 > > include/linux/dmar.h | 6 +- > drivers/iommu/intel/iommu.h | 29 ++++-- > drivers/iommu/intel/dmar.c | 33 ++----- > drivers/iommu/intel/iommu.c | 188 ++++++++++++++---------------------- > drivers/iommu/intel/pasid.c | 2 +- > drivers/iommu/intel/svm.c | 2 +- > 6 files changed, 103 insertions(+), 157 deletions(-) >