From: Sebastian Capella <sebastian.capella@linaro.org>
To: Sebastian Capella <sebastian.capella@linaro.org>,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
linaro-kernel@lists.linaro.org,
linux-arm-kernel@lists.infradead.org,
"Stephen Boyd" <sboyd@codeaurora.org>
Cc: "Russ Dill" <Russ.Dill@ti.com>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
"Russell King" <linux@arm.linux.org.uk>,
"Len Brown" <len.brown@intel.com>,
"Nicolas Pitre" <nico@linaro.org>,
"Santosh Shilimkar" <santosh.shilimkar@ti.com>,
"Will Deacon" <will.deacon@arm.com>,
"Jonathan Austin" <jonathan.austin@arm.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"\"Uwe Kleine-König\"" <u.kleine-koenig@pengutronix.de>,
"Stephen Boyd" <sboyd@codeaurora.org>,
"Laura Abbott" <lauraa@codeaurora.org>,
"Jiang Liu" <liuj97@gmail.com>,
"Sricharan R" <r.sricharan@ti.com>,
"Victor Kamensky" <victor.kamensky@linaro.org>,
"Stefano Stabellini" <stefano.stabellini@eu.citrix.com>,
"Ben Dooks" <ben.dooks@codethink.co.uk>,
"Charles Baylis" <charles.baylis@linaro.org>
Subject: Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk
Date: Thu, 06 Mar 2014 20:21:23 -0800 [thread overview]
Message-ID: <5319494b.0ac5440a.6abf.60c9@mx.google.com> (raw)
In-Reply-To: <1394016605-24120-3-git-send-email-sebastian.capella@linaro.org>
Sorry to those receiving repeated emails, I'm having an issue with some
of the special characters names.
Quoting Sebastian Capella (2014-03-05 02:50:05)
> From: Russ Dill <Russ.Dill@ti.com>
> Enable hibernation for ARM architectures and provide ARM
> architecture specific calls used during hibernation.
...
Quoting Stephen Boyd (2014-02-27 18:19:49)
> 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?
Hi Stephen,
I was wondering if you had any objections or additional comments on
the current patch.
I've basically dropped the RELOC_HIDE. It hasn't proven to be an issue
with the current compiler, and I was unable to revert back to 3.x
compiler on the cortex-v7 platforms I'm using.
Since this is being used on Hibernation, we would not be breaking any
existing functionality in any event, and it sounds like this is unlikely
to be an issue.
I spoke informally to a friend who works on toolchains at Linaro and
he suggested this may be related to the the strict-aliasing feature
which appears to be disabled by default in the kernel
(-fno-strict-aliasing) and generally not well liked.
Unless someone objects, I'll plan to add this to Russell's patch system.
Thanks,
Sebastian
next prev parent reply other threads:[~2014-03-07 4:21 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-05 10:50 [PATCH v7 0/2] hibernation support on ARM Sebastian Capella
2014-03-05 10:50 ` [PATCH v7 1/2] ARM: avoid tracers in soft_restart Sebastian Capella
2014-03-06 23:45 ` Sebastian Capella
2014-03-19 23:26 ` Sebastian Capella
2014-03-05 10:50 ` [PATCH v7 2/2] ARM hibernation / suspend-to-disk Sebastian Capella
2014-03-07 4:21 ` Sebastian Capella [this message]
2014-03-07 4:42 ` Stephen Boyd
2014-03-10 18:32 ` Sebastian Capella
2014-03-16 9:46 ` Russell King - ARM Linux
2014-03-17 22:07 ` Sebastian Capella
2014-03-16 7:09 ` Ezequiel Garcia
2014-03-17 19:10 ` Sebastian Capella
2014-03-17 20:44 ` Ezequiel Garcia
2014-03-17 22:39 ` Sebastian Capella
2014-03-19 15:44 ` Ezequiel Garcia
2014-03-19 20:47 ` Sebastian Capella
2014-03-19 21:06 ` Sebastian Capella
2014-03-24 18:06 ` Sebastian Capella
2014-03-25 18:38 ` Alexander Holler
2014-03-25 18:48 ` Sebastian Capella
2014-03-25 23:36 ` Alexander Holler
2014-03-26 0:00 ` Alexander Holler
2014-03-20 3:02 ` TonyHo
2014-03-20 17:26 ` Sebastian Capella
2014-04-16 10:12 ` Russell King - ARM Linux
2014-04-16 16:42 ` Sebastian Capella
2014-04-17 20:38 ` Sebastian Capella
2014-04-23 0:38 ` Sebastian Capella
2014-04-23 16:39 ` Sebastian Capella
2014-05-07 15:37 ` Pavel Machek
2014-05-07 22:20 ` Sebastian Capella
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5319494b.0ac5440a.6abf.60c9@mx.google.com \
--to=sebastian.capella@linaro.org \
--cc=Russ.Dill@ti.com \
--cc=ben.dooks@codethink.co.uk \
--cc=catalin.marinas@arm.com \
--cc=charles.baylis@linaro.org \
--cc=jonathan.austin@arm.com \
--cc=lauraa@codeaurora.org \
--cc=len.brown@intel.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=liuj97@gmail.com \
--cc=nico@linaro.org \
--cc=r.sricharan@ti.com \
--cc=rjw@rjwysocki.net \
--cc=santosh.shilimkar@ti.com \
--cc=sboyd@codeaurora.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=victor.kamensky@linaro.org \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome