Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1087333imm; Fri, 22 Jun 2018 10:05:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJQy5vXGqu0v26+zxRONQle19s1xDcmfWY3kuKejdnsyGNkGMweMVY/qY1+OQZcKR8O9eo4 X-Received: by 2002:a17:902:ba87:: with SMTP id k7-v6mr2509945pls.271.1529687157939; Fri, 22 Jun 2018 10:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529687157; cv=none; d=google.com; s=arc-20160816; b=vtAJJZnXnZkUXrWjui/eR3x9NlkZAuvyaTpNgSsbKDbolYNugZnDpMlI2hNPdPJ3bl ARJzGPYkcmDeapezlP9FzMQ8Asw/QawSqGZXlWnTSc58DVPL2kq2ncobJBOl7vRfmMm5 PyA1e39AwLdLFTS7DQxgQXOBfZ1I138aajdVa0jgnbBLW8nAdv8a2G7AHj0wzKg0cniY 2fLTyE3tQ+76RBR8okZ9YS/fA5OYUQQ+osIEi6Tey1x6R/2S6f5Fbd/J4unr2urqhl39 UGQUKKY/ONlMccO1Isarvgh3asAvWtzr5WMY/G6hBwghZM7szxvpZql9bbOUyhyw/f2d 7fow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Df0cUYgXRkl6/nzcXbaxbIZKaYYw5fHq24tP0QaJvrQ=; b=cbvBBEePmvP4ohWl/1KHo5fssdqdnRWiFbInDMOOT+4CPavjRi9zN9oUv29THE2bbM pHXZkM4MF13GyJIjo3bhKOVyPvKLYCh3ehD4KTk684UEIDGNyAmp8dFbfE8gXifEQcj9 JNOto7ro3/i0zPVjOnKBorubkqmkePxrp3QwN6KYSIBHAzSIX9ZuWUuofqZj06kvXng9 t1PwZfOZvXXQ/NrRD2qP2b0q9J5ZMNpcgFme/Ra83SNLLYMgw+8fFzY6ef+DWGV3g1l3 SGwldfIJZwClu6oCQMX8xRoJ1zKu4CdVfsU0Vjowg5qGBf6ukYqgaZAkEablzURxmqTn m4sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=qHbNefzA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d31-v6si8065813pld.23.2018.06.22.10.05.28; Fri, 22 Jun 2018 10:05:57 -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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=qHbNefzA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754698AbeFVRDU (ORCPT + 99 others); Fri, 22 Jun 2018 13:03:20 -0400 Received: from mail-bl2nam02on0061.outbound.protection.outlook.com ([104.47.38.61]:58464 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754595AbeFVRC2 (ORCPT ); Fri, 22 Jun 2018 13:02:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Df0cUYgXRkl6/nzcXbaxbIZKaYYw5fHq24tP0QaJvrQ=; b=qHbNefzAxfvNDUqVnUgDRzcdWxYMIGTGlF+ew90NLuqgLvVUpOxY78q7L+W0yE+nukBl8LMFp8kEWnTEnjEGUcTTcAliTFNAx3jqeW/zWRxIsd81bVV5Lmy2tBcF+RvushiYyXrDyGZt0MCkj3V4mis//RfQkVx7hY837TJ2PYo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Suravee.Suthikulpanit@amd.com; Received: from ssuthiku-ubuntu-b2.amd.com (165.204.78.1) by CY1PR12MB0133.namprd12.prod.outlook.com (2a01:111:e400:50f7::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.17; Fri, 22 Jun 2018 17:02:23 +0000 From: Suravee Suthikulpanit To: iommu@lists.linux-foundation.org, x86@kernel.org, linux-kernel@vger.kernel.org Cc: joro@8bytes.org, jroedel@suse.de, Suravee Suthikulpanit , Thomas Gleixner , Ingo Molnar Subject: [PATCH 1/3] x86: irq_remapping: Move irq remapping mode enum Date: Fri, 22 Jun 2018 12:02:05 -0500 Message-Id: <1529686927-7665-2-git-send-email-suravee.suthikulpanit@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529686927-7665-1-git-send-email-suravee.suthikulpanit@amd.com> References: <1529686927-7665-1-git-send-email-suravee.suthikulpanit@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: SN6PR1501CA0006.namprd15.prod.outlook.com (2603:10b6:805::19) To CY1PR12MB0133.namprd12.prod.outlook.com (2a01:111:e400:50f7::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98419757-19bb-4b71-f2ab-08d5d861eccd X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(8989114)(4534165)(4627221)(201703031133081)(201702281549075)(8990104)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020);SRVR:CY1PR12MB0133; X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0133;3:FH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vgdv8hdEMoCgoScPjAHCXUGSZlsqC80Ob7oYroglebndsqAtUJ0EPXEb4jdx3l52wfVP2UOQParXOdBM/4mombYLpli+sh1JShuZQyKRgoxPDhus159r36TMVWSCdSu8ij94WGHmangRPIZc9aaaMhF1K8RlEP3umi6RoDHZMHkrNCK+e2kiWJV1w122sVqvBuKln8ipgmM0OvqDFTw35YWMRAgklAlNfoFxQNsfgGDRAIupQheux92NzWCf8634K245k5MlAh8gZWmSdF1uHUVn3cwCd2jsiUKu1YXKcK5Bu4lfGVz38heAkTbIoTVSWY+/G70vI2UVnHqr4D1m6d4lDmv5AV4;4:ey3YeYC7vvhjyN1V8CoS35K8jDvsTmSBFw7ZRK7fszV6oCRX/V2mzsfgZQsIC0ll5YPI2MjzhoKtN4JH75eKOmfh9tanZxc75D8XoxNw1Gvg1p31gl2tk7YkhkAeRXcw2KyVlk3Lgka4nNASRkUgcXtAMKp0Wgtjq3NlR3yazxsenBk3cUyVYEhEHQte17EKTM8kTVtRjomBx61n2CxhVLFarOmVD49yrcytdfdEFwFJEWojSPdhbFQd5dDJo/wRv68jetFpkBSKCGbyCRWK/N1SBwQvKhyBXC6iZz/1o09AGqQH0G33elskbO/xa/F8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:CY1PR12MB0133;BCL:0;PCL:0;RULEID:;SRVR:CY1PR12MB0133; X-Forefront-PRVS: 071156160B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39380400002)(346002)(376002)(396003)(39860400002)(366004)(189003)(199004)(50466002)(7696005)(4326008)(186003)(52116002)(26005)(16526019)(47776003)(53936002)(6666003)(25786009)(386003)(5660300001)(6116002)(66066001)(76176011)(478600001)(48376002)(3846002)(72206003)(51416003)(956004)(11346002)(476003)(44832011)(2616005)(486006)(106356001)(81156014)(81166006)(16586007)(6486002)(446003)(50226002)(8936002)(86362001)(316002)(68736007)(36756003)(97736004)(53416004)(7736002)(54906003)(305945005)(105586002)(2906002)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR12MB0133;H:ssuthiku-ubuntu-b2.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR12MB0133;23:BPhr2rgpPTPSxVCEUyEo6GgjHhAnYtAytaTjeHGsF?= =?us-ascii?Q?LvpFd1+nBja0f+3evEumB3P7UmV63G3PlmgYKZU7cUiKt7jeaBiPZvhEJDmV?= =?us-ascii?Q?HYj/cJoMKyEXJOTxXMxCobS5knk3yprQx+7kapkQkWDmuFZyoaOPMh5B6WRB?= =?us-ascii?Q?CckLb1nfjhDLQWpFNbPKm9nY4QlUm7Jb4hYuMibAVj9NUG71Gf/zGCVTfpxn?= =?us-ascii?Q?17x21KzcSloOY5GrUQv8sET2DE/DP3M+YdqCLfvkXIeAPJQRO7N2WrMufjpC?= =?us-ascii?Q?Ce2JN+H271Hd9C3n8Do3qncl7HzxOPh/rX1+/A5ffQ9t3KENEmyGPyg0VmD3?= =?us-ascii?Q?nlP8+ClvtPXXTuEnEU365Z0ysZBvgylD8o7dIOOYyZ1BJAH0xbVm8vxformW?= =?us-ascii?Q?LOb505MrCaaQjyEtwQ0Fhpi9QGI0nfuTbOCMs40FNgA/POmbSR1sOk+464nf?= =?us-ascii?Q?yqxVkve8K9clbKWK3aRMrfqF2h3FF6JIXiQJr2IGsOsHaUgmAyUiLGV20IRz?= =?us-ascii?Q?Ocp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ostics: 1;CY1PR12MB0133;7:eNSXYfZWvlcWi36kyC2kmmeb1NtaB0DIkN3rYvQp8fgZYv8QDUQMfj+gT1jZwDl/4PuPs7a+8UD3bgsYKMBhpoUgya1eqgB/zBm8ntllPceVNg+G5pRq0tIW35VN3J3vJ64Fxdh5CDHop3UGKhul6y0T5GYmhrkBN0ZzXzW8I7fG4WtFgAOQs+Q3+bPIXioz6Hf5t+y0ecHCBSzEzxOtX3ELusbFO6imhL15sGbYavipj3Ji5f0FdpgB7cAaHlX8;20:CrmV5PDTT0Ojyk1y+gEgdY1EUXBl8bemL1WaWCORiC2HzrvH79zsGscJlI4X0Qr85Xzd6ZDZ6VOlXUTSAgCtMJoErUiIu5yuXFUmHFRuhCzSPcFKDBZPh/fTcgFtvVXFQCz2Kg862h7T45QiXVk4yKIhDJNC8IZAd5+1878WRLVl1akYkdhh18ti5yMbwRKgoG3UwzmS4Uew5CoEhP4vPHbZhKCCkxWWipkn2zHV7MS92kLJ7Q6CowwptJCuUHHV X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2018 17:02:23.3886 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98419757-19bb-4b71-f2ab-08d5d861eccd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0133 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The enum is currently defined in Intel-specific DMAR header file, but it is also used by APIC common code. Therefore, move it to a more appropriate interrupt-remapping common header file. This will also be used by subsequent patches. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit --- arch/x86/include/asm/irq_remapping.h | 5 +++++ include/linux/dmar.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/include/asm/irq_remapping.h b/arch/x86/include/asm/irq_remapping.h index 023b4a9..5f26962 100644 --- a/arch/x86/include/asm/irq_remapping.h +++ b/arch/x86/include/asm/irq_remapping.h @@ -33,6 +33,11 @@ enum irq_remap_cap { IRQ_POSTING_CAP = 0, }; +enum { + IRQ_REMAP_XAPIC_MODE, + IRQ_REMAP_X2APIC_MODE, +}; + struct vcpu_data { u64 pi_desc_addr; /* Physical address of PI Descriptor */ u32 vector; /* Guest vector of the interrupt */ diff --git a/include/linux/dmar.h b/include/linux/dmar.h index e2433bc..843a41b 100644 --- a/include/linux/dmar.h +++ b/include/linux/dmar.h @@ -265,11 +265,6 @@ static inline void dmar_copy_shared_irte(struct irte *dst, struct irte *src) #define PDA_LOW_BIT 26 #define PDA_HIGH_BIT 32 -enum { - IRQ_REMAP_XAPIC_MODE, - IRQ_REMAP_X2APIC_MODE, -}; - /* Can't use the common MSI interrupt functions * since DMAR is not a pci device */ -- 2.7.4