Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751539AbaB1KUc (ORCPT ); Fri, 28 Feb 2014 05:20:32 -0500 Received: from gw-1.arm.linux.org.uk ([78.32.30.217]:57956 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750907AbaB1KU2 (ORCPT ); Fri, 28 Feb 2014 05:20:28 -0500 Date: Fri, 28 Feb 2014 10:20:18 +0000 From: Russell King - ARM Linux To: Stephen Boyd Cc: Russ Dill , Sebastian Capella , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, "Rafael J. Wysocki" , Len Brown , Nicolas Pitre , Santosh Shilimkar , Will Deacon , Jonathan Austin , Catalin Marinas , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Lorenzo Pieralisi Subject: Re: [PATCH v6 2/2] ARM hibernation / suspend-to-disk Message-ID: <20140228102018.GP21483@n2100.arm.linux.org.uk> References: <1393545478-14908-1-git-send-email-sebastian.capella@linaro.org> <1393545478-14908-3-git-send-email-sebastian.capella@linaro.org> <530FD3CF.2040900@codeaurora.org> <530FEAA9.7040601@ti.com> <530FF245.7070300@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <530FF245.7070300@codeaurora.org> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 27, 2014 at 06:19:49PM -0800, Stephen Boyd wrote: > On 02/27/14 17:47, Russ Dill wrote: > > On 02/27/2014 04:09 PM, Stephen Boyd wrote: > >> On 02/27/14 15:57, Sebastian Capella wrote: > >>> diff --git a/arch/arm/include/asm/memory.h > >>> b/arch/arm/include/asm/memory.h index 8756e4b..1079ea8 100644 --- > >>> a/arch/arm/include/asm/memory.h +++ > >>> b/arch/arm/include/asm/memory.h @@ -291,6 +291,7 @@ static inline > >>> void *phys_to_virt(phys_addr_t x) */ #define __pa(x) > >>> __virt_to_phys((unsigned long)(x)) #define __va(x) ((void > >>> *)__phys_to_virt((phys_addr_t)(x))) +#define __pa_symbol(x) > >>> __pa(RELOC_HIDE((unsigned long)(x), 0)) > >> Just curious, is there a reason for the RELOC_HIDE() here? Or > >> __pa_symbol() for that matter? It looks like only x86 uses this on > >> the __nosave_{begin,end} symbol. Maybe it's copy-pasta? > > From my understanding this needs to stick around so long as gcc 3.x is > > supported (did it get dropped yet?) on ARM Linux since it doesn't > > support -fno-strict-overflow. > > I don't think it's been dropped yet but I wonder if anyone has tried > recent kernels with such a compiler? > > Would the usage of &__pv_table_begin in arch/arm/mm/mmu.c also need the > same treatment? We've never had to play these kinds of games on ARM irrespective of compiler version. -- FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it. -- 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/