All of lore.kernel.org
 help / color / mirror / Atom feed
From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/3] arm64: spin-table: handle unmapped cpu-release-addrs
Date: Fri, 15 Aug 2014 12:57:14 +0100	[thread overview]
Message-ID: <20140815115714.GP27466@arm.com> (raw)
In-Reply-To: <CAKv+Gu9ftjZby+5U5Vs0hXhyFdNLwx4MwvC-LL=y3a9eSz34iQ@mail.gmail.com>

On Thu, Aug 14, 2014 at 07:10:13PM +0100, Ard Biesheuvel wrote:
> On 14 August 2014 19:13, Catalin Marinas <catalin.marinas@arm.com> wrote:
> > On Wed, Aug 13, 2014 at 01:58:45PM +0100, Mark Rutland wrote:
> >> > With the 3.17 merge window not far from closing, is there anything we
> >> > could still do this cycle to get $subject addressed?
> >> > As I have indicated before, the newly introduced TEXT_OFFSET fuzzing
> >> > may break APM Mustang if booting from UEFI (i.e., for low values of
> >> > rand()), and as this option is recommended for distribution kernels,
> >> > it could make apt-get update'ing your kernel a frustrating experience.
> >> > However, the fix for that issue triggers the issue addressed by
> >> > $subject.
> >> >
> >> > In my personal opinion, relaxing the requirements imposed on where
> >> > your cpu-release-addr may live could remain a separate discussion. In
> >> > the APM Mustang case, even when adhering to booting.txt by the letter
> >> > (i.e., pu cpu-release-addr in a memreserved area in DRAM and load
> >> > Image at a 2 meg boundary + TEXT_OFFSET), the kernel fails to bring up
> >> > the secondaries if the cpu-release-addr is below the kernel.
> >>
> >> For the moment I would be happy with the patch as it stands (using
> >> ioremap_cache).
> >>
> >> Catalin, Will?
> >
> > Using ioremap_cache() sounds fine to me but I have to dig the original
> > patches as I've only been cc'ed in the middle of the thread (and that's
> > just for patch 1/3).
> >
> 
> http://marc.info/?l=linux-arm-kernel&m=140671806332258&w=2
> http://marc.info/?l=linux-arm-kernel&m=140671807532262&w=2
> http://marc.info/?l=linux-arm-kernel&m=140671807732263&w=2
> 
> Patch 3/3 makes the EFI stub load Image at the lowest 2 meg boundary +
> TEXT_OFFSET instead of erroring out when base of DRAM + TEXT_OFFSET is
> occupied. This is necessary as the randomized TEXT_OFFSET could
> potentially conflict with reserved areas at the base of DRAM if a low
> value happens to be chosen.
> 
> Patch 1/3 fixes the resulting breakage on APM Mustang in bringing up
> the secondaries, as on that board in particular, the reserved area at
> the base of DRAM contains the holding pen, and loading Image higher up
> makes the mailbox inaccessible through the linear mapping hence the
> need for ioremap_cache()
> 
> Patch 2/3 is also a fix for a potential issue on UEFI boot, but it is
> unrelated to 1/3 and 3/3

I was planning to take all of these for 3.18 as there's no regression here
(the fuzzing is a new debug feature and defaults to `n'). Do you think these
qualify as -rc1 material?

Will

  reply	other threads:[~2014-08-15 11:57 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKv+Gu_UjRNhhiM0GPsKRdXRtmEnY6cbpY-JZ33RUMapbPYsbQ@mail.gmail.com>
2014-08-13 12:58 ` [PATCH v2 1/3] arm64: spin-table: handle unmapped cpu-release-addrs Mark Rutland
2014-08-14 17:13   ` Catalin Marinas
2014-08-14 18:10     ` Ard Biesheuvel
2014-08-15 11:57       ` Will Deacon [this message]
2014-08-15 12:07         ` Ard Biesheuvel
2014-08-15 12:53           ` Will Deacon
2014-08-15 13:28             ` Ard Biesheuvel
2014-08-15 14:35               ` Mark Salter
2014-08-15 14:38                 ` Will Deacon
2014-08-17  0:06                   ` Leif Lindholm
2014-08-18 16:47                     ` Catalin Marinas
2014-08-18 17:22                       ` Ard Biesheuvel
2014-07-30 10:59 [PATCH 0/3 v2] arm64/efi: improve TEXT_OFFSET handling Ard Biesheuvel
     [not found] ` <1406717944-24725-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-07-30 10:59   ` [PATCH v2 1/3] arm64: spin-table: handle unmapped cpu-release-addrs Ard Biesheuvel
2014-07-30 10:59     ` Ard Biesheuvel
     [not found]     ` <1406717944-24725-2-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-07-30 11:30       ` Will Deacon
2014-07-30 11:30         ` Will Deacon
     [not found]         ` <20140730113013.GL12239-5wv7dgnIgG8@public.gmane.org>
2014-07-30 12:00           ` Ard Biesheuvel
2014-07-30 12:00             ` Ard Biesheuvel
     [not found]             ` <CAKv+Gu-891BPCMCB2xnhsaUHxz_BCMkwbbwQ76kmK=JsUdifHQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-30 12:05               ` Ard Biesheuvel
2014-07-30 12:05                 ` Ard Biesheuvel
2014-07-30 12:30               ` Mark Rutland
2014-07-30 12:30                 ` Mark Rutland
2014-07-30 12:42                 ` Will Deacon
2014-07-30 12:42                   ` Will Deacon
     [not found]                   ` <20140730124258.GP12239-5wv7dgnIgG8@public.gmane.org>
2014-07-30 12:49                     ` Mark Rutland
2014-07-30 12:49                       ` Mark Rutland
2014-07-30 13:10                       ` Ard Biesheuvel
2014-07-30 13:10                         ` Ard Biesheuvel
     [not found]                         ` <CAKv+Gu-OunL2FdzvZ6y95cKaewOyFaoCgX+Rqsg4R92yLAg=tQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-30 13:28                           ` Ard Biesheuvel
2014-07-30 13:28                             ` Ard Biesheuvel
2014-07-30 19:17           ` Ard Biesheuvel
2014-07-30 19:17             ` Ard Biesheuvel
     [not found]             ` <CAKv+Gu8ne8k2NV12SyWye5aYJKHG0wHKAO+=V=1L89_hvyGopw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-31  9:45               ` Will Deacon
2014-07-31  9:45                 ` Will Deacon
     [not found]                 ` <20140731094515.GE26853-5wv7dgnIgG8@public.gmane.org>
2014-07-31  9:58                   ` Mark Rutland
2014-07-31  9:58                     ` Mark Rutland
2014-07-31 10:04                     ` Will Deacon
2014-07-31 10:04                       ` Will Deacon
     [not found]                       ` <20140731100439.GI26853-5wv7dgnIgG8@public.gmane.org>
2014-07-31 10:16                         ` Ard Biesheuvel
2014-07-31 10:16                           ` Ard Biesheuvel
2014-07-31 10:39                         ` Mark Rutland
2014-07-31 10:39                           ` Mark Rutland
2014-08-01 11:35                           ` Ard Biesheuvel
2014-08-01 11:35                             ` Ard Biesheuvel
2014-07-31 14:41                         ` Mark Salter
2014-07-31 14:41                           ` Mark Salter
2014-07-31 10:01                   ` Ard Biesheuvel
2014-07-31 10:01                     ` Ard Biesheuvel

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=20140815115714.GP27466@arm.com \
    --to=will.deacon@arm.com \
    --cc=linux-arm-kernel@lists.infradead.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.