Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp843743lfb; Fri, 13 May 2022 21:33:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfJJJdAmQV9li6VHRmjt+3yfGEKkRS/y/as1ESyZklJjdG6ZgVpHEZbveIcgU9tLaV3leB X-Received: by 2002:a1c:a185:0:b0:392:206d:209d with SMTP id k127-20020a1ca185000000b00392206d209dmr7151931wme.168.1652502828019; Fri, 13 May 2022 21:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652502828; cv=none; d=google.com; s=arc-20160816; b=nK+pD4eFW7svLKK6kkeHMoxNRu/NOT0FI0R/xyW1O7oqsiq1LA68u3ZNnsjOhK8LH8 jsyuY7K/+72L7diXa5LuG48qHv1DQHbBDjzQvHKds9prXzZ3ecMlmieR16ihHV2xvdNs W3DlLTWMWAvE8r5trtsxrEYNMM5YwcYZxKFON1dXDgTfgcLhs/V6j+q7/0xNbfiO7FCZ BsVu0ScvDSR7IM8Id2lT8ZJdsRCmtCinrHlIUu7BwkIyUAxBAD7zkaMltc+QB0j25OWa LFAimnMPOMWwIweagu/BLmZh9sjxto41ml2Zg1qbIo1QJv13C43wVrtCzHLxAi/jwS0q D53g== 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=PNDzKxF7OXEWP8cZNXnNXf7RtuG4xuXcSBZZJZRrFes=; b=gXtHCU4q10JkxoqF9U2hYOVmt0bZp6mNpMrwrpDdYCwNuQGX+q2cWx3RrFCM9AlHFO R0Ob/cq9FoGd6iqb+EyE8I3wrtQR3K6AiJQXQzDE3Goi1vX3eS+11FssEyZWHdJPt0yo RVjQ8AnKAIWzLTAVs4P+ddrDW/ErjOHlEXNtlkkMgz57lVtN+9NGAu3zXPCQ+0tumEPh O2KCVESdlfZ2LrAd9BvF6MjWNgsR/76bU7i6NEz9DjyXMOzsQ8fveEPcZFRxPICsPbO7 cWUZjizNWeDzKhxSPzICNGUT0tjinuBu1aGGGXx/UR9GNOOgB85QHfS8iFo8XmXkveB+ UvrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fS0tiTIl; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u14-20020a5d6dae000000b0020acdeacad0si4354320wrs.1014.2022.05.13.21.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:33:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fS0tiTIl; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DC199360D99; Fri, 13 May 2022 20:00:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230293AbiENC7C (ORCPT + 99 others); Fri, 13 May 2022 22:59:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbiENC6B (ORCPT ); Fri, 13 May 2022 22:58:01 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C11E3A2531 for ; Fri, 13 May 2022 18:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652492797; x=1684028797; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Q4OHxOkBcZ+3CvVCvY0m+wxDlD8i3ZcBOa66oWnNSzg=; b=fS0tiTIlHN/rXK09vydbfoIzwYSBe1egHqUCaNQ6ubAz3LB9V62LvYX2 uSt49kida25Cd5S4iXHr+HZpZ+OKNpzf6kKw+QQvHzOieqhw+JPZlxLXH QrSrriapt2K7S0glU1jPNnX5NzY35QYRaJnp7BpfInQa+s9moN69D64F8 WcEMsfn1lbkt/J0FrPuLXcUR7gYs26amnjPixEohiLIg+xPvWUyP0+wH7 GBRqiZaHVjOpql986qge+64Blbj0ZHGSqpKnsXLxUDH3v4HTld4KUXq0c aeHTjQvStdGZf+sMyZdXfQdruHbb0pGbytajG0djA/lHbKypkBLXERX1M A==; X-IronPort-AV: E=McAfee;i="6400,9594,10346"; a="270387987" X-IronPort-AV: E=Sophos;i="5.91,223,1647327600"; d="scan'208";a="270387987" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 18:46:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,223,1647327600"; d="scan'208";a="712630756" Received: from allen-box.sh.intel.com ([10.239.159.48]) by fmsmga001.fm.intel.com with ESMTP; 13 May 2022 18:46:31 -0700 From: Lu Baolu To: Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Paolo Bonzini , David Airlie , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Daniel Vetter , Kevin Tian , Ashok Raj , Liu Yi L , Jacob Pan , Ning Sun Cc: Will Deacon , Robin Murphy , Jason Gunthorpe , Christoph Hellwig , Steve Wahl , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Lu Baolu Subject: [PATCH 0/7] iommu/vt-d: Make intel-iommu.h private Date: Sat, 14 May 2022 09:43:15 +0800 Message-Id: <20220514014322.2927339-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=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, The include/linux/intel-iommu.h should be private to the Intel IOMMU driver. Other drivers or components should interact with the IOMMU drivers through the kAPIs provided by the iommu core. This series cleanups all includes of intel-iommu.h outside of the Intel IOMMU driver and move this header from include/linux to drivers/iommu/intel/. No functional changes intended. Please help to review and suggest. Best regards, baolu Lu Baolu (7): iommu/vt-d: Move trace/events/intel_iommu.h under iommu agp/intel: Use per device iommu check iommu/vt-d: Remove unnecessary exported symbol drm/i915: Remove unnecessary include KVM: x86: Remove unnecessary include x86/boot/tboot: Move tboot_force_iommu() to Intel IOMMU iommu/vt-d: Move include/linux/intel_iommu.h under iommu include/linux/tboot.h | 2 -- drivers/gpu/drm/i915/i915_drv.h | 1 - .../iommu/intel/iommu.h | 1 - .../iommu/intel/trace.h | 7 +++++- arch/x86/kernel/tboot.c | 15 ------------- arch/x86/kvm/x86.c | 1 - drivers/char/agp/intel-gtt.c | 17 ++++++-------- drivers/gpu/drm/i915/display/intel_display.c | 1 - .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 1 - drivers/iommu/intel/cap_audit.c | 2 +- drivers/iommu/intel/debugfs.c | 2 +- drivers/iommu/intel/dmar.c | 4 ++-- drivers/iommu/intel/iommu.c | 22 +++++++++++++------ drivers/iommu/intel/irq_remapping.c | 2 +- drivers/iommu/intel/pasid.c | 2 +- drivers/iommu/intel/perf.c | 2 +- drivers/iommu/intel/svm.c | 4 ++-- drivers/iommu/intel/trace.c | 2 +- MAINTAINERS | 1 - 19 files changed, 38 insertions(+), 51 deletions(-) rename include/linux/intel-iommu.h => drivers/iommu/intel/iommu.h (99%) rename include/trace/events/intel_iommu.h => drivers/iommu/intel/trace.h (93%) -- 2.25.1