Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4732809imm; Tue, 11 Sep 2018 17:12:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaqgMnjcoyerpXkMEQsrJvST2dW8UCHsXXWvooTP0YjPjsF7LrF5SYrxMZlsVPh8BdMNxS2 X-Received: by 2002:a62:c082:: with SMTP id g2-v6mr32258255pfk.72.1536711122101; Tue, 11 Sep 2018 17:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536711122; cv=none; d=google.com; s=arc-20160816; b=DKPKIy2HA4ATvfCniSyD1zwpJhMtcepvyxS81KX9b4KiKCnVN/aeJWqP22zy+MqP3H 15QmgSqc8/FsIN1kZtRKSBsN1T3Tg0rNHvkUXZxPeNHiiJa/kORJnkw0uKADp2xIyafK +3+8H0hb6S+gyndu9cvZlPQ3CpT/6Z1E6wf3jnJipNIUgdS1n2JzevLDVK22BL4TwbEH QGKG2T2hUqgaaeQG6p+JZNbKawprorAP0AB/IIPkQkQ31JmnrzC0FP+D0KMufFxJpJH/ Oz8/bUwU6rA0TzDtBIAxa9Sj8FyJC22HfuMgZlfTtK9ENqD0NQ6YCuC/WBRPTnniJwtC FAfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Uah2MpNFrNaQ/8l+by0Z1XuLJKOL4SfD9W+vbilb+Rw=; b=w4RhlakPHLb3nfapuhQcv00kvyMzG2MNsXLPBLRVy5rSeFm1W7k0VqhflYeB4IfO24 Y/95NcXiD45LXACFj33iYCXPFCzA3hpwLsjNxR3scQFQwgSUqEiA6Mpwn+oAAezuBSC6 KLKRoQV5dy73cZksKkiSqFaAPtD3hzSL4nJLg7dQU0bMHuhdDL+ZIZWl72a/tsth745O JijhrOH6nc4+1/BiUgbWF0cMFRNaEBG5cismyBbtA/d2J/Q8fVaZg/jfx76p8LIjBlYJ 1pCj7yMH2WYPFmU6lepHiECh1jzYC7Jq+mC/H/xHSP3LIdG/Tg8W1HqMCZgrIOcDZhR3 6VPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9-v6si5117478plk.321.2018.09.11.17.11.47; Tue, 11 Sep 2018 17:12:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727943AbeILFML (ORCPT + 99 others); Wed, 12 Sep 2018 01:12:11 -0400 Received: from mga03.intel.com ([134.134.136.65]:25689 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725740AbeILFMK (ORCPT ); Wed, 12 Sep 2018 01:12:10 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Sep 2018 17:10:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,362,1531810800"; d="scan'208";a="72213119" Received: from sohilbuildbox.sc.intel.com (HELO localhost.localdomain) ([172.25.110.4]) by orsmga007.jf.intel.com with ESMTP; 11 Sep 2018 17:10:06 -0700 From: Sohil Mehta To: Joerg Roedel Cc: Ashok Raj , David Woodhouse , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jacob Pan , Gayatri Kammela , Sohil Mehta , Ravi V Shankar , Andy Shevchenko , Lu Baolu , Fenghua Yu Subject: [PATCH v8 2/6] iommu/vt-d: Update register definitions to VT-d 3.0 specification Date: Tue, 11 Sep 2018 17:11:37 -0700 Message-Id: <20180912001141.64025-3-sohil.mehta@intel.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180912001141.64025-1-sohil.mehta@intel.com> References: <20180912001141.64025-1-sohil.mehta@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new register definitions added in the VT-d 3.0 specification. Also include registers that were missing previously. Cc: Lu Baolu Cc: Fenghua Yu Cc: Jacob Pan Cc: Ashok Raj Cc: Gayatri Kammela Signed-off-by: Sohil Mehta --- v8: Simplify and split the patches differently include/linux/intel-iommu.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index b7cf32e8ae1f..3bdb9aa198af 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -72,6 +72,42 @@ #define DMAR_PEDATA_REG 0xe4 /* Page request event interrupt data register */ #define DMAR_PEADDR_REG 0xe8 /* Page request event interrupt addr register */ #define DMAR_PEUADDR_REG 0xec /* Page request event Upper address register */ +#define DMAR_MTRRCAP_REG 0x100 /* MTRR capability register */ +#define DMAR_MTRRDEF_REG 0x108 /* MTRR default type register */ +#define DMAR_MTRR_FIX64K_00000_REG 0x120 /* MTRR Fixed range registers */ +#define DMAR_MTRR_FIX16K_80000_REG 0x128 +#define DMAR_MTRR_FIX16K_A0000_REG 0x130 +#define DMAR_MTRR_FIX4K_C0000_REG 0x138 +#define DMAR_MTRR_FIX4K_C8000_REG 0x140 +#define DMAR_MTRR_FIX4K_D0000_REG 0x148 +#define DMAR_MTRR_FIX4K_D8000_REG 0x150 +#define DMAR_MTRR_FIX4K_E0000_REG 0x158 +#define DMAR_MTRR_FIX4K_E8000_REG 0x160 +#define DMAR_MTRR_FIX4K_F0000_REG 0x168 +#define DMAR_MTRR_FIX4K_F8000_REG 0x170 +#define DMAR_MTRR_PHYSBASE0_REG 0x180 /* MTRR Variable range registers */ +#define DMAR_MTRR_PHYSMASK0_REG 0x188 +#define DMAR_MTRR_PHYSBASE1_REG 0x190 +#define DMAR_MTRR_PHYSMASK1_REG 0x198 +#define DMAR_MTRR_PHYSBASE2_REG 0x1a0 +#define DMAR_MTRR_PHYSMASK2_REG 0x1a8 +#define DMAR_MTRR_PHYSBASE3_REG 0x1b0 +#define DMAR_MTRR_PHYSMASK3_REG 0x1b8 +#define DMAR_MTRR_PHYSBASE4_REG 0x1c0 +#define DMAR_MTRR_PHYSMASK4_REG 0x1c8 +#define DMAR_MTRR_PHYSBASE5_REG 0x1d0 +#define DMAR_MTRR_PHYSMASK5_REG 0x1d8 +#define DMAR_MTRR_PHYSBASE6_REG 0x1e0 +#define DMAR_MTRR_PHYSMASK6_REG 0x1e8 +#define DMAR_MTRR_PHYSBASE7_REG 0x1f0 +#define DMAR_MTRR_PHYSMASK7_REG 0x1f8 +#define DMAR_MTRR_PHYSBASE8_REG 0x200 +#define DMAR_MTRR_PHYSMASK8_REG 0x208 +#define DMAR_MTRR_PHYSBASE9_REG 0x210 +#define DMAR_MTRR_PHYSMASK9_REG 0x218 +#define DMAR_VCCAP_REG 0xe00 /* Virtual command capability register */ +#define DMAR_VCMD_REG 0xe10 /* Virtual command register */ +#define DMAR_VCRSP_REG 0xe20 /* Virtual command response register */ #define OFFSET_STRIDE (9) -- 2.18.0