linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2 v2] Fix boot on Calxeda highbank
@ 2015-05-12  7:39 Sjoerd Simons
  2015-05-12  7:39 ` [PATCH 1/2] ARM: cache-l2c: Detect whether it's safe to unlock Sjoerd Simons
  2015-05-12  7:39 ` [PATCH 2/2] ARM: l2c: highbank: Add dummy configure function Sjoerd Simons
  0 siblings, 2 replies; 11+ messages in thread
From: Sjoerd Simons @ 2015-05-12  7:39 UTC (permalink / raw)
  To: linux-arm-kernel

When upgrading our trusted Calxeda server to Debian Jessie recently the machine
wedged during booting the installer. Upon further investigation, this happens
due to the transition to the generic L2C infrastructure introduced in 3.16. The
generic l2x0 code unlocks the cache during setup, however the Caldexa SMC
interface doesn't seem to allow the kernel to enable enable non-secure access
to the lock registers.. Queue Imprecise aborts and a fairly unhappy machine.

First patch in this series adds detection to the l2x0 code to check if
unlocking is possible. Second patch adds a (empty) configure callback for the
highbank l2c, reflecting the fact that there seemingly isn't anything to
configured via an SMC on these maches.

Changes since v1:
 - Auto-detect when unlocking the cache is unsafe rather then requiring a
   explicit flag to be set in the machine-specific code

Sjoerd Simons (2):
  ARM: cache-l2c: Detect whether it's safe to unlock
  ARM: l2c: highbank: Add dummy configure function

 arch/arm/mach-highbank/highbank.c |  8 ++++++++
 arch/arm/mm/cache-l2x0.c          | 20 ++++++++++++++++++++
 2 files changed, 28 insertions(+)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-05-27 17:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-12  7:39 [PATCH 0/2 v2] Fix boot on Calxeda highbank Sjoerd Simons
2015-05-12  7:39 ` [PATCH 1/2] ARM: cache-l2c: Detect whether it's safe to unlock Sjoerd Simons
2015-05-15 11:34   ` Russell King - ARM Linux
2015-05-27 13:00     ` Sjoerd Simons
2015-05-27 17:40       ` [PATCH 1/5] ARM: l2c: restore the behaviour documented above l2c_enable() Russell King
2015-05-27 17:40       ` [PATCH 2/5] ARM: l2c: write auxiliary control register first Russell King
2015-05-27 17:40       ` [PATCH 3/5] ARM: l2c: clean up l2c_configure() Russell King
2015-05-27 17:40       ` [PATCH 4/5] ARM: l2c: only unlock caches if NS_LOCKDOWN bit is set Russell King
2015-05-27 17:40       ` [PATCH 5/5] ARM: l2c: avoid passing auxiliary control register through enable method Russell King
2015-05-27 17:41       ` [PATCH 1/2] ARM: cache-l2c: Detect whether it's safe to unlock Russell King - ARM Linux
2015-05-12  7:39 ` [PATCH 2/2] ARM: l2c: highbank: Add dummy configure function Sjoerd Simons

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).