Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1371694 > unrolled thread

Re: [PATCH] iommu/rockchip: Only log stall errors when attaching

Started byJoerg Roedel <joro@8bytes.org>
First post2016-04-05 17:00 +0200
Last post2016-04-05 19:20 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] iommu/rockchip: Only log stall errors when attaching Joerg Roedel <joro@8bytes.org> - 2016-04-05 17:00 +0200
    Re: [PATCH] iommu/rockchip: Only log stall errors when attaching Heiko Stuebner <heiko@sntech.de> - 2016-04-05 18:50 +0200
      Re: [PATCH] iommu/rockchip: Only log stall errors when attaching Heiko Stuebner <heiko@sntech.de> - 2016-04-05 19:20 +0200

#1371694 — Re: [PATCH] iommu/rockchip: Only log stall errors when attaching

FromJoerg Roedel <joro@8bytes.org>
Date2016-04-05 17:00 +0200
SubjectRe: [PATCH] iommu/rockchip: Only log stall errors when attaching
Message-ID<rkACu-5ln-17@gated-at.bofh.it>
On Tue, Mar 22, 2016 at 04:04:33PM +0100, Tomeu Vizoso wrote:
> Move the logging of timeouts when stalling the MMU to
> rk_iommu_attach_device, as it's expected that sometimes the MMU won't
> get stalled when detaching a device, and it's not a real problem that
> would need to be communicated to the user.
> 
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>

Heiko, any opinion on this patch?

[toc] | [next] | [standalone]


#1371779

FromHeiko Stuebner <heiko@sntech.de>
Date2016-04-05 18:50 +0200
Message-ID<rkCkW-70h-3@gated-at.bofh.it>
In reply to#1371694
Am Dienstag, 5. April 2016, 16:57:26 schrieb Joerg Roedel:
> On Tue, Mar 22, 2016 at 04:04:33PM +0100, Tomeu Vizoso wrote:
> > Move the logging of timeouts when stalling the MMU to
> > rk_iommu_attach_device, as it's expected that sometimes the MMU won't
> > get stalled when detaching a device, and it's not a real problem that
> > would need to be communicated to the user.
> > 
> > Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
> 
> Heiko, any opinion on this patch?

I don't know enough about iommus (and the rockchip implementation) to judge 
if this is correct. The reasoning sound right though and it seems to fix an 
issue for Tomeu.

One complaint would be that I'd expect the behaviour to match between the 
enable and disable functions. Meaning I'd want the error message from 
rk_iommu_disable_stall to also move rk_iommu_attach_device.


Heiko

[toc] | [prev] | [next] | [standalone]


#1371809

FromHeiko Stuebner <heiko@sntech.de>
Date2016-04-05 19:20 +0200
Message-ID<rkCNY-7ui-17@gated-at.bofh.it>
In reply to#1371779
Am Dienstag, 5. April 2016, 09:48:15 schrieb Heiko Stuebner:
> Am Dienstag, 5. April 2016, 16:57:26 schrieb Joerg Roedel:
> > On Tue, Mar 22, 2016 at 04:04:33PM +0100, Tomeu Vizoso wrote:
> > > Move the logging of timeouts when stalling the MMU to
> > > rk_iommu_attach_device, as it's expected that sometimes the MMU won't
> > > get stalled when detaching a device, and it's not a real problem that
> > > would need to be communicated to the user.
> > > 
> > > Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
> > 
> > Heiko, any opinion on this patch?
> 
> I don't know enough about iommus (and the rockchip implementation) to
> judge if this is correct. The reasoning sound right though and it seems
> to fix an issue for Tomeu.
> 
> One complaint would be that I'd expect the behaviour to match between the
> enable and disable functions. Meaning I'd want the error message from
> rk_iommu_disable_stall to also move rk_iommu_attach_device.

hmm, or does John's patch maybe tie into this problem?

Aka, does the iommu simply does not detect when it's already stalled and 
emits the timeout then?

Tomeu, in which cases do you see the excess error message?

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web