Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751592AbdF1O45 (ORCPT ); Wed, 28 Jun 2017 10:56:57 -0400 Received: from foss.arm.com ([217.140.101.70]:42604 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751509AbdF1O4z (ORCPT ); Wed, 28 Jun 2017 10:56:55 -0400 Date: Wed, 28 Jun 2017 15:55:59 +0100 From: Mark Rutland To: Florian Fainelli Cc: linux-arm-kernel@lists.infradead.org, "open list:GENERIC INCLUDE/ASM HEADER FILES" , Arnd Bergmann , Dave Gerlach , Tony Lindgren , Catalin Marinas , Will Deacon , Russell King , open list , bcm-kernel-feedback-list@broadcom.com, Greg Kroah-Hartman , Alexandre Belloni , linux-omap@vger.kernel.org, Shawn Guo , Keerthy J Subject: Re: [PATCH v3 4/4] misc: sram: Allow ARM64 to select SRAM_EXEC Message-ID: <20170628145558.GA8252@leverpostej> References: <20170617000744.22158-1-f.fainelli@gmail.com> <20170617000744.22158-5-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170617000744.22158-5-f.fainelli@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1266 Lines: 36 On Fri, Jun 16, 2017 at 05:07:44PM -0700, Florian Fainelli wrote: > Now that ARM64 also has a fncpy() implementation, allow selection > SRAM_EXEC for ARM64 as well. > > Signed-off-by: Florian Fainelli > --- > drivers/misc/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig > index 07bbd4cc1852..ac8779278c0c 100644 > --- a/drivers/misc/Kconfig > +++ b/drivers/misc/Kconfig > @@ -464,7 +464,7 @@ config SRAM > bool "Generic on-chip SRAM driver" > depends on HAS_IOMEM > select GENERIC_ALLOCATOR > - select SRAM_EXEC if ARM > + select SRAM_EXEC if ARM || ARM64 > help > This driver allows you to declare a memory region to be managed by > the genalloc API. It is supposed to be used for small on-chip SRAM As stated in another thread [1], NAK to this patch. Currently there are no users of this interface that we wish to enable for arm64, and this is liable to be abused to add platform-specific stuff that we expect to live in PSCI or other secure FW. Until we have a user that does not fall into that bucket, I see no reason to enable this for arm64. Thanks, Mark. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2017-June/516161.html