From patchwork Wed Aug 22 14:29:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10880 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 849B223E56 for ; Wed, 22 Aug 2012 14:30:09 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 979A2A18D68 for ; Wed, 22 Aug 2012 14:29:57 +0000 (UTC) Received: by ggmi2 with SMTP id i2so719339ggm.11 for ; Wed, 22 Aug 2012 07:30:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=MKHb2wrFqq0NOL742IhW8AML3Q4fW2yE99ehz13y/Ig=; b=MIcnby4gG9JLXcAZYAqufLdKoMG7oiIaMIYOr4yJd3ktxhjQ4Z6uWNo9flv5ejlXAf dBQEX3EulbuCOrsexKV+d9pWmZSt+y9vBftsuECrmuhI2WRc8j3iAS7VBhENQZF5Jpqz zOMr7gqftqrv2Vfdcuc+USNuDQMgb4d43OHnITqiNaM80TuFoIH39MmVBL7LjGQw6dJw wJP8YVdvz7+botjS8KjMX+hz2fAj9rVxLK3h71QVcjRh0XjYOOVh7jfBYUh18fPsQRAb +0qqGC+kUMFb6/ui+GAwP4S+pIfN8VDMKyui9XkM/rDSrIKy4rwgLLYPvDEHr3SIGo4d vdVg== Received: by 10.50.217.227 with SMTP id pb3mr2382203igc.28.1345645808231; Wed, 22 Aug 2012 07:30:08 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp205473igc; Wed, 22 Aug 2012 07:30:07 -0700 (PDT) Received: by 10.180.86.133 with SMTP id p5mr6344204wiz.17.1345645806969; Wed, 22 Aug 2012 07:30:06 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.186]) by mx.google.com with ESMTP id i16si6102128weo.120.2012.08.22.07.30.06; Wed, 22 Aug 2012 07:30:06 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.186; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0M4gBt-1TrlIU0L6L-00yyzO; Wed, 22 Aug 2012 16:29:55 +0200 From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Will Deacon Subject: [PATCH 2/4] ARM: allow PID_IN_CONTEXTIDR only for ARMv7 Date: Wed, 22 Aug 2012 16:29:38 +0200 Message-Id: <1345645780-2749-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1345645780-2749-1-git-send-email-arnd@arndb.de> References: <1345645780-2749-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:39epySVFofFwEtk6U40Voqvt3hnhyvYchW/XWNhCCAJ Zl/1jPEETAxb1Sad7ZWmnX6Tpx5ugtDXGKz0hQDsebMblTmyDd kelB2ElpcCtZga+ezHp7xmDVPwtu1kI/q+5OmEA9TcXNI9c2Ae qiKpABXyOh/YZFp9c9OQowD8QxSNgbP3urzLl7924cFCvPqvES NLwKreao/RlyhXdGwfVQBVuLFXcO0xqLeH75Pe/Zcb5Vv5MtDF vKkCcQMaUhray8T56aVKqbEKlrKu8/1B6euHP+FvKVuEKu7Bq1 PnlbM3BznKVhfwrmPL0z556mbbTp7bIXQP0G9fXeFqtsVTGD/L 5hp1hgBXt4K97NURsNW+/cV5AZFmRJcjat/1P6nXqk18G08PK6 hlaULMVZDv9iw== X-Gm-Message-State: ALoCoQlgrUi+NrT3rtPWqXPWLIc30+EBTTbvk3/7meJo5zL+0bkCXw5agGcbxuEBwXYdoH3jFWu3 When ARMv6 is enabled, we build the kernel with -march=armv6 or -march=armv6k, which means the bfi instruction is not available. Instead, it only works with -march=armv6t2 or -march=armv7-a. Without this patch, building rand-enIHAOL results in: /tmp/ccwCsCXC.s: Assembler messages: /tmp/ccwCsCXC.s:49: Error: selected processor does not support ARM mode `bfi r3,r2,#0,#8' Signed-off-by: Arnd Bergmann Cc: Will Deacon Cc: Russell King --- arch/arm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index f15f82b..11b9ff4 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -398,6 +398,7 @@ config ARM_KPROBES_TEST config PID_IN_CONTEXTIDR bool "Write the current PID to the CONTEXTIDR register" depends on CPU_COPY_V6 + depends on CPU_V7 && !CPU_V6 help Enabling this option causes the kernel to write the current PID to the PROCID field of the CONTEXTIDR register, at the expense of some