Re: [PATCH v2 2/2] iommu/arm-smmu: Do not access non-existing SMR registers

2014-08-08 Thread Olav Haugan
On 8/7/2014 2:22 AM, Will Deacon wrote: > On Thu, Aug 07, 2014 at 12:34:09AM +0100, Olav Haugan wrote: >> On 8/6/2014 10:35 AM, Will Deacon wrote: >>> Hmm, I'm checking this with the architects because the TRMs aren't exactly >>> clear. The NUMSMRG works for stream-indexing (i.e. reports the number

Re: [PATCH v2 2/2] iommu/arm-smmu: Do not access non-existing SMR registers

2014-08-07 Thread Will Deacon
On Thu, Aug 07, 2014 at 12:34:09AM +0100, Olav Haugan wrote: > On 8/6/2014 10:35 AM, Will Deacon wrote: > > Hmm, I'm checking this with the architects because the TRMs aren't exactly > > clear. The NUMSMRG works for stream-indexing (i.e. reports the number of > > S2CRs), then all we have to do is c

Re: [PATCH v2 2/2] iommu/arm-smmu: Do not access non-existing SMR registers

2014-08-06 Thread Olav Haugan
On 8/6/2014 10:35 AM, Will Deacon wrote: > Hi Olav, > > On Wed, Aug 06, 2014 at 05:44:38PM +0100, Olav Haugan wrote: >> On 8/6/2014 3:19 AM, Will Deacon wrote: >>> On Mon, Aug 04, 2014 at 07:01:03PM +0100, Olav Haugan wrote: The SMR registers do not exist when stream matching is not supp

Re: [PATCH v2 2/2] iommu/arm-smmu: Do not access non-existing SMR registers

2014-08-06 Thread Will Deacon
Hi Olav, On Wed, Aug 06, 2014 at 05:44:38PM +0100, Olav Haugan wrote: > On 8/6/2014 3:19 AM, Will Deacon wrote: > > On Mon, Aug 04, 2014 at 07:01:03PM +0100, Olav Haugan wrote: > >> The SMR registers do not exist when stream matching is not > >> supported by the hardware. Avoid writing to this reg

Re: [PATCH v2 2/2] iommu/arm-smmu: Do not access non-existing SMR registers

2014-08-06 Thread Olav Haugan
On 8/6/2014 3:19 AM, Will Deacon wrote: > Hi Olav, > > On Mon, Aug 04, 2014 at 07:01:03PM +0100, Olav Haugan wrote: >> The SMR registers do not exist when stream matching is not >> supported by the hardware. Avoid writing to this register if not needed. >> >> Signed-off-by: Olav Haugan >> --- >>

Re: [PATCH v2 2/2] iommu/arm-smmu: Do not access non-existing SMR registers

2014-08-06 Thread Will Deacon
Hi Olav, On Mon, Aug 04, 2014 at 07:01:03PM +0100, Olav Haugan wrote: > The SMR registers do not exist when stream matching is not > supported by the hardware. Avoid writing to this register if not needed. > > Signed-off-by: Olav Haugan > --- > drivers/iommu/arm-smmu.c | 5 - > 1 file chang

[PATCH v2 2/2] iommu/arm-smmu: Do not access non-existing SMR registers

2014-08-04 Thread Olav Haugan
The SMR registers do not exist when stream matching is not supported by the hardware. Avoid writing to this register if not needed. Signed-off-by: Olav Haugan --- drivers/iommu/arm-smmu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/i