Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1309869iog; Sat, 25 Jun 2022 06:11:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uprbzp8raWSy2euvTMiAz+358rUwdv5Eslh95iq2qoCQcseg3ZOyBE3/b0ANKP6VBTuW65 X-Received: by 2002:a17:907:7248:b0:726:30fc:e7fc with SMTP id ds8-20020a170907724800b0072630fce7fcmr4070967ejc.274.1656162718102; Sat, 25 Jun 2022 06:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656162718; cv=none; d=google.com; s=arc-20160816; b=bUpqdAecs6CbR7M4qOYaIY2B+HdLkAbav0PBtUUZCkFG1046wSCqE1PJEAFBNaPBoB oZSabbzyfRbAjYM5iH47YuXDM9u1c/bnVk4A19364RlR3x26oJ2H8QGNjQGZUhPpomnf aYnVX65mQ3c0gl72AdiJfOybdnlV1NXwIwDizKSn3Lr/SRAXhvCgUMtUvXD46lRq7mJ7 G1QF0DhYtx/MljQ60B6XViynnFx2MX3Ofb5USYplQfuPNpT5JnDnc/WW2Rfm7G/pEm7O sSLkMLpcmS2sbp7ifwoe9VfnoRufyc7SY94djU0jbDOhfj61+hHFqbCa4nCu0RkYE8Um Xicg== 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=946PCjZcfjrmnigbxFKNLHznI3KCludFcnyJyApU4Z4=; b=d9CgK9FAmA37c5YvWcRaVLK63MZL/afQ1ps9iTX4du30rBtoNlXXpV4AITPldhJDwn yUX8+6lPHHHLR+fVIwg8hvBJmu0mBl7Psyv12Im/HBnphXqifz2UYOnq1JGDVom3iMlk gN5Sb4SxGZPfyqcvcqPljXaiGyTi1BbF6JIw5RPLQHlYoWmj+u+bBDbAI5hnUWGrm/uY Qf8adEadmrQDMBX7ePmW6JKZIC5Kx0RsjkXfcC+HaDGSElGKff1ThSC80OR8OG9en/mh 5I1O+4kL3Z3z5M6llKhpOSacKHPc7Ds7wU/I9lvSP49yqCiRt8ejRF4c8BMKwhRw4b+R TOmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=H6WxCrcY; 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 v5-20020a056402348500b0042e256e4d71si7218555edc.228.2022.06.25.06.11.32; Sat, 25 Jun 2022 06:11:57 -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=H6WxCrcY; 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 S232848AbiFYM4c (ORCPT + 99 others); Sat, 25 Jun 2022 08:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232616AbiFYM4b (ORCPT ); Sat, 25 Jun 2022 08:56:31 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7ACB18362 for ; Sat, 25 Jun 2022 05:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656161790; x=1687697790; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=S3kTFxDx/UlQ4ttkSgT0OD0LBtEA6KOASNkdzOFb+uw=; b=H6WxCrcYp5INSCdtEI8dHR1v9lOMT6G/X/kin9tduJ9z2DsmMHDRMpY4 ckKGYzFJsvV7otDu21F2KCK8zeRGCjQAlzgJcsIt0c8fuDZsJouqUgeS5 XEmoV0qHuUnZQNxb4d96HY8I/JYHPGDQfMGqXEFeCxhYBswPWz/PiWlHN qQdayAcbrrFdLOupdpLN6dWm/vE8nsRNilV5OYF7ypJD2Q0VLv/rfsYRq 6wPVRR1BsJPC/8kaK0Vv4ulkcPKZwfJ1BBLg+Wr4faLkpOUGqVlp9Q5hc /wQ0EqZIX/UGSGYug3oslhEMdG8khEOulkYvfplnwteXmgbo7PcGTZbyp Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10388"; a="278727935" X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="278727935" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2022 05:56:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="586890349" Received: from allen-box.sh.intel.com ([10.239.159.48]) by orsmga007.jf.intel.com with ESMTP; 25 Jun 2022 05:56:27 -0700 From: Lu Baolu To: Joerg Roedel , Steve Wahl , Kevin Tian Cc: David Woodhouse , Jerry Snitselaar , Mike Travis , Dimitri Sivanich , Russ Anderson , iommu@lists.linux.dev, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Lu Baolu Subject: [PATCH v1 0/6] iommu/vt-d: Reset DMAR_UNITS_SUPPORTED Date: Sat, 25 Jun 2022 20:51:58 +0800 Message-Id: <20220625125204.2199437-1-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,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 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. 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(-) -- 2.25.1