From patchwork Fri Aug 7 10:50:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Fedin X-Patchwork-Id: 6967921 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 53C26C05AC for ; Fri, 7 Aug 2015 10:53:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7B9C12020F for ; Fri, 7 Aug 2015 10:53:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 49B7E2017E for ; Fri, 7 Aug 2015 10:53:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNfFI-0000n9-Kx; Fri, 07 Aug 2015 10:51:28 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNfF5-0000Pm-SB for linux-arm-kernel@lists.infradead.org; Fri, 07 Aug 2015 10:51:20 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NSP00KD8KSM8E80@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 07 Aug 2015 11:50:46 +0100 (BST) X-AuditID: cbfec7f5-f794b6d000001495-a3-55c48d867718 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 74.12.05269.68D84C55; Fri, 7 Aug 2015 11:50:46 +0100 (BST) Received: from fedinw7x64 ([106.109.131.169]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NSP00I6OKSL3TA0@eusync4.samsung.com>; Fri, 07 Aug 2015 11:50:46 +0100 (BST) From: Pavel Fedin To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 TRIVIAL] Enable GICv2m on ARM virt machine Date: Fri, 07 Aug 2015 13:50:45 +0300 Message-id: <00fa01d0d0fe$ea19e2e0$be4da8a0$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: AdDQ/obPqU//qFcoQa2oWAB895if0A== Content-language: ru X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplkeLIzCtJLcpLzFFi42I5/e/4Nd223iOhBg1HBC02Pb7GanH7Mq/F 3zv/2Cze77/M5MDisWbeGkaPluYeNo9NqzrZPDYvqQ9gieKySUnNySxLLdK3S+DKuLVkHmvB ee6KvjX3WBsYb3F2MXJySAiYSHR1nGWBsMUkLtxbz9bFyMUhJLCUUWLD9yYo5zujxI3Z3Ywg VUIC/hLXtmxkB7HZBNQlTn/9ANYtIqAhMaXrMVicWSBDYt3hL2C2sICtxLJ3q5hBbBYBVYlp s3eA1fMKWEps+tPACGELSvyYfI8FoldLYv3O40wQtrzE5jVvmSGuU5DYcfY1I8hBPALzgA76 tQasmUfAV2L5hSdQiZmMEmtuHWGFuEhP4vTcW6wQk0Qkpv27xzyBUWQWkoWzkCychWThLCQt CxhZVjGKppYmFxQnpeca6RUn5haX5qXrJefnbmKERM7XHYxLj1kdYhTgYFTi4U34dzhUiDWx rLgy9xCjBAezkgjv2eojoUK8KYmVValF+fFFpTmpxYcYpTlYlMR5Z+56HyIkkJ5YkpqdmlqQ WgSTZeLglGpgLLgq61bBuE566X9el5tXdHzFzrrNvOvY1OU6pzBtQ5ahku8E82tT/iy1SvI/ URlccGqTSOzC9Rvlp23P/1z6gKfSo3dJnfImDwn2Jwecm1+wX6x9qdiwqO/Th0Qhb5UUT657 dUZ7OfaFsBu9nXCZNVemJO1/b7isz3a9N6ITL3q/W7DYydFOiaU4I9FQi7moOBEAsP5CNJgC AAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150807_035116_557296_230FFBB4 X-CRM114-Status: GOOD ( 12.55 ) X-Spam-Score: -7.0 (-------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 'Marc Zyngier' , trivial@kernel.org, 'Russell King' Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP qemu implementation of "virt" includes GICv2m. This commit allows to use it also on ARM32 architecture. msi.h is added because it is required by linux/msi.h if CONFIG_GENERIC_MSI_IRQ_DOMAIN is defined. It gets enabled by the following KConfig dependency chain: ARM_GIC_V2M => PCI_MSI_IRQ_DOMAIN => GENERIC_MSI_IRQ_DOMAIN Signed-off-by: Pavel Fedin --- v1 => v2: Added verbose explanation in commit message --- arch/arm/Kconfig | 1 + arch/arm/include/asm/Kbuild | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 45df48b..1091025 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -815,6 +815,7 @@ config ARCH_VIRT bool "Dummy Virtual Machine" if ARCH_MULTI_V7 select ARM_AMBA select ARM_GIC + select ARM_GIC_V2M if PCI_MSI select ARM_PSCI select HAVE_ARM_ARCH_TIMER diff --git a/arch/arm/include/asm/Kbuild b/arch/arm/include/asm/Kbuild index 3c4596d..01806f5 100644 --- a/arch/arm/include/asm/Kbuild +++ b/arch/arm/include/asm/Kbuild @@ -14,6 +14,7 @@ generic-y += local.h generic-y += local64.h generic-y += mcs_spinlock.h generic-y += msgbuf.h +generic-y += msi.h generic-y += param.h generic-y += parport.h generic-y += poll.h