All of lore.kernel.org
 help / color / mirror / Atom feed
* SMMU driver and stall vs terminate mode
@ 2016-06-20 15:28 ` Stuart Yoder
  0 siblings, 0 replies; 12+ messages in thread
From: Stuart Yoder @ 2016-06-20 15:28 UTC (permalink / raw)
  To: Robin Murphy, Will Deacon
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Bharat Bhushan,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

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] 12+ messages in thread

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

Thread overview: 12+ 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 15:28 ` Stuart Yoder
     [not found] ` <HE1PR04MB1641B0F8442061E3437037628D2A0-6LN7OEpIatU5tNmRkpaxD89NdZoXdze2vxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-06-20 16:08   ` Robin Murphy
2016-06-20 16:08     ` Robin Murphy
     [not found]     ` <5768150D.2070705-5wv7dgnIgG8@public.gmane.org>
2016-06-21  9:42       ` Will Deacon
2016-06-21  9:42         ` Will Deacon
     [not found]         ` <20160621094237.GL29165-5wv7dgnIgG8@public.gmane.org>
2016-06-21 14:36           ` Stuart Yoder
2016-06-21 14:36             ` Stuart Yoder
2016-06-21 14:47             ` Brian Starkey
2016-06-21 14:47               ` Brian Starkey
2016-06-21 14:33       ` Stuart Yoder
2016-06-21 14:33         ` Stuart Yoder

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.