Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753217AbbH0QRQ (ORCPT ); Thu, 27 Aug 2015 12:17:16 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:33106 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbbH0QRO (ORCPT ); Thu, 27 Aug 2015 12:17:14 -0400 Subject: Re: [PATCH] arm: Handle starting up in secure mode To: Christopher Covington References: <1440424572-27116-1-git-send-email-cov@codeaurora.org> Cc: Russell King , Will Deacon , Mark Rutland , Nicolas Pitre , "Jon Medhurst (Tixy)" , Ard Biesheuvel , Wang Nan , Nathan Lynch , Stephen Boyd , Yingjoe Chen , Masahiro Yamada , Gregory CLEMENT , Arnd Bergmann , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Kees Cook , Florian Fainelli , Maxime Coquelin stm32 , Linus Walleij , Paul Bolle , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Daniel Thompson Message-ID: <55DF3807.40506@linaro.org> Date: Thu, 27 Aug 2015 17:17:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1440424572-27116-1-git-send-email-cov@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 22 On 24/08/15 14:55, Christopher Covington wrote: > ARM Linux appears to have never been made aware of the ARMv7 security > extensions. When CONFIG_ARM_SEC_EXT=y, have it probe for its security > state by checking whether CNTFRQ is writeable and potentially make > mode changes based on the information. The most features are available > from hypervisor (HYP) mode, so switch to it possible. Failing that, > prefer non-secure supervisor (SVC) mode to secure supervisor mode. If there is no hypervisor mode available what benefit do we get from transitioning to non-secure mode? When running in secure mode we retain access to some potentially useful features such as having access to FIQ. Daniel. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/