Skip to contentSkip to conversation

arm64: Second round of fixes for -rc2

GIT PULL Merged Will Deacon 3 participants 6 messages May 24, 2019 – Aug 20, 2019

lore
Share & tools
lore
#0 lore raw

Hi Linus,

As promised, here's the second round of arm64 fixes for -rc2, based on -rc1. Details in the tag. The ACPI/IORT build fix is pretty big in the diffstat, but it's really just the result of code movement to ensure that the functions are guarded correctly when !CONFIG_IOMMU_SUPPORT.

Please pull.

Cheers,

Will

--->8

The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9:

Linux 5.2-rc1 (2019-05-19 15:47:09 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git tags/arm64-fixes

for you to fetch changes up to edbcf50eb8aea5f81ae6d83bb969cb0bc02805a1:

arm64: insn: Add BUILD_BUG_ON() for invalid masks (2019-05-24 14:58:30 +0100)

----------------------------------------------------------------
Second round of arm64 fixes for -rc2

- Fix incorrect LDADD instruction encoding in our disassembly macros

- Disable the broken ARM64_PSEUDO_NMI support for now

- Add workaround for Cortex-A76 CPU erratum #1463225

- Handle Cortex-A76/Neoverse-N1 erratum #1418040 w/ existing workaround

- Fix IORT build failure if IOMMU_SUPPORT=n

- Fix place-relative module relocation range checking and its interaction with KASLR

----------------------------------------------------------------
Ard Biesheuvel (2):
arm64/kernel: kaslr: reduce module randomization range to 2 GB arm64/module: deal with ambiguity in PRELxx relocation ranges

Jean-Philippe Brucker (2):
arm64: insn: Fix ldadd instruction encoding
arm64: insn: Add BUILD_BUG_ON() for invalid masks

Lorenzo Pieralisi (1):
ACPI/IORT: Fix build error when IOMMU_SUPPORT is disabled

Marc Zyngier (1):

      arm64: Handle erratum 1418040 as a superset of erratum 1188873

Will Deacon (3):
arm64: Remove useless message during oops
arm64: errata: Add workaround for Cortex-A76 erratum #1463225
arm64: Kconfig: Make ARM64_PSEUDO_NMI depend on BROKEN for now

 Documentation/arm64/silicon-errata.txt |   9 +-
 arch/arm64/Kconfig                     |  26 +++-
 arch/arm64/include/asm/cpucaps.h       |   5 +-
 arch/arm64/include/asm/insn.h          |  18 ++-
 arch/arm64/kernel/cpu_errata.c         |  48 +++++--
 arch/arm64/kernel/entry.S              |   4 +-
 arch/arm64/kernel/kaslr.c              |   6 +-
 arch/arm64/kernel/module.c             |  18 ++-
 arch/arm64/kernel/syscall.c            |  31 +++++
 arch/arm64/kernel/traps.c              |   4 -
 arch/arm64/mm/fault.c                  |  33 +++++
 drivers/acpi/arm64/iort.c              | 238 +++++++++++++++++----------------
 12 files changed, 284 insertions(+), 156 deletions(-)
#1 lore raw

Only tangentially relevant to this pull request:

Quoted 3 lines · Will Deacon

- Add workaround for Cortex-A76 CPU erratum #1463225
- Handle Cortex-A76/Neoverse-N1 erratum #1418040 w/ existing workaround

could you perhaps talk to somebody inside ARM about making the errata documentation publicly available?

I'm not sure why it seems to want an account at arm.com, and as a result some pretty fundamental development tools ("let me google that") don't work.

Linus

#2 lore raw
Quoted 7 lines · Linus Torvalds

Only tangentially relevant to this pull request:

Quoted 3 lines · Will Deacon

- Add workaround for Cortex-A76 CPU erratum #1463225
- Handle Cortex-A76/Neoverse-N1 erratum #1418040 w/ existing workaround

Quoted 6 lines

could you perhaps talk to somebody inside ARM about making the errata documentation publicly available?

I'm not sure why it seems to want an account at arm.com, and as a result some pretty fundamental development tools ("let me google that") don't work.

We recently removed a whole bunch of click-through/registration things for our documentation, so I'm surprised that it's still the case for the errata document (but it does appear to be).

I'll see if this can be fixed. After all, we end up descibing the thing in the Kconfig text anyway...

Cheers,

Will

merge bot Merged
#5 lore raw
In reply to Will Deacon
The pull request you sent on Fri, 24 May 2019 18:43:57 +0100:

The pull request you sent on Fri, 24 May 2019 18:43:57 +0100:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git tags/arm64-fixes

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/0a72ef89901409847036664c23ba6eee7cf08e0e

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker
#3 lore raw
In reply to Linus Torvalds
Quoted 7 lines · Linus Torvalds

Only tangentially relevant to this pull request:

Quoted 3 lines · Will Deacon

- Add workaround for Cortex-A76 CPU erratum #1463225
- Handle Cortex-A76/Neoverse-N1 erratum #1418040 w/ existing workaround

Quoted 6 lines

could you perhaps talk to somebody inside ARM about making the errata documentation publicly available?

I'm not sure why it seems to want an account at arm.com, and as a result some pretty fundamental development tools ("let me google that") don't work.

Thanks to the tech comms folks at Arm, this should now be available and work is ongoing to open up more of the documentation too.

For example, the A76 SDEN is here:

	https://static.docs.arm.com/sden885749/d/Arm_Cortex-A76_MP052_Software_Developer_Errata_Notice_v16.0.pdf

and if you hammer "cortex a76 1463225" into google, then it shows up after the Linux hits.

Will

#4 lore raw
Quoted 3 lines · Will Deacon

Thanks to the tech comms folks at Arm, this should now be available and work is ongoing to open up more of the documentation too.

Thanks.

Quoted 6 lines

For example, the A76 SDEN is here:

        https://static.docs.arm.com/sden885749/d/Arm_Cortex-A76_MP052_Software_Developer_Errata_Notice_v16.0.pdf

and if you hammer "cortex a76 1463225" into google, then it shows up after the Linux hits.

Yeah, I have long since given up on trying to keep track of everything going on, which is why "google finds it" is important to me. And I verified that yes, now google finds the ARM errata ;)

Lovely,

Linus