linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* SMMU driver and stall vs terminate mode
@ 2016-06-20 15:28 Stuart Yoder
  2016-06-20 16:08 ` Robin Murphy
  0 siblings, 1 reply; 6+ messages in thread
From: Stuart Yoder @ 2016-06-20 15:28 UTC (permalink / raw)
  To: linux-arm-kernel

Robin/Will,

Right now the SMMU driver is hardcoded to configure 'stall' mode for
context faults:

      /* SCTLR */
      reg = SCTLR_CFCFG | SCTLR_CFIE | SCTLR_CFRE | SCTLR_M | SCTLR_EAE_SBOP;

We are running into an issue with a device where it seems behave sanely
when SCTLR_CFCFG=0 ...i.e. 'terminate' mode, but in stall mode seems to be
unaware that an access violation occurred.

Is there really some assumption that all devices that send transcactions
through the SMMU _must_ be able to handle stall mode?  I am trying to
find out from our hw designers what is going on at the signal level for
the device in question, but it seems to me that 'terminate' mode exists
for a reason and I wonder what your thoughts are about providing a
configuration option to allow configuration of terminate mode if a particular
SoC requires it.

Thanks,
Stuart

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

end of thread, other threads:[~2016-06-21 14:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-20 15:28 SMMU driver and stall vs terminate mode Stuart Yoder
2016-06-20 16:08 ` Robin Murphy
2016-06-21  9:42   ` Will Deacon
2016-06-21 14:36     ` Stuart Yoder
2016-06-21 14:47       ` Brian Starkey
2016-06-21 14:33   ` Stuart Yoder

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).