All of lore.kernel.org
 help / color / mirror / Atom feed
From: gregkh <gregkh@linuxfoundation.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: stable@vger.kernel.org,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Russell King <rmk+kernel@arm.linux.org.uk>
Subject: Re: [PATCH] [stable 3.18 through 4.4] ARM: 8452/3: PJ4: make coprocessor access sequences buildable in Thumb2 mode
Date: Tue, 9 May 2017 09:44:27 +0200	[thread overview]
Message-ID: <20170509074427.GA4500@kroah.com> (raw)
In-Reply-To: <CAK8P3a344D+3edzu0xD5arsvHqAQ7B2F2W7rU6CwLL3ivY2vtw@mail.gmail.com>

On Mon, May 08, 2017 at 09:57:54PM +0200, Arnd Bergmann wrote:
> On Mon, May 8, 2017 at 9:55 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> > From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> >
> > Commit 5008efc83bf85b647aa1cbc44718b1675bbb7444 upstream.
> >
> > The PJ4 inline asm sequence to write to cp15 cannot be built in Thumb-2
> > mode, due to the way it performs arithmetic on the program counter, so it
> > is built in ARM mode instead. However, building C files in ARM mode under
> > CONFIG_THUMB2_KERNEL is problematic, since the instrumentation performed
> > by subsystems like ftrace does not expect having to deal with interworking
> > branches.
> >
> > Since the sequence in question is simply a poor man's ISB instruction,
> > let's use a straight 'isb' instead when building in Thumb2 mode. Thumb2
> > implies V7, so 'isb' should always be supported in that case.
> >
> > Acked-by: Arnd Bergmann <arnd@arndb.de>
> > Acked-by: Nicolas Pitre <nico@linaro.org>
> > Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> > Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> > Hi Greg,
> >
> > As Ard pointed out, commit 13d1b9575ac2c2da ("ARM: 8221/1: PJ4: allow
> > building in Thumb-2 mode") which I suggested for backports into
> > 3.16 is broken unless we also take this one.
> >
> > I checked the other stable branches and found that both 3.18 and
> > 4.4 contain only the first of the two, so please apply this one on
> > both branches as well.
> 
> Clarification: please apply this patch from email on 3.18.y and
> cherry-pick the original 5008efc83bf85b6 on 4.4.y to avoid
> rebasing yourself.

Now queued up this way, thanks.

greg k-h

      reply	other threads:[~2017-05-09  7:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08 19:55 [PATCH] [stable 3.18 through 4.4] ARM: 8452/3: PJ4: make coprocessor access sequences buildable in Thumb2 mode Arnd Bergmann
2017-05-08 19:57 ` Arnd Bergmann
2017-05-09  7:44   ` gregkh [this message]

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=20170509074427.GA4500@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=ard.biesheuvel@linaro.org \
    --cc=arnd@arndb.de \
    --cc=rmk+kernel@arm.linux.org.uk \
    --cc=stable@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.