Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932720AbcDERLG (ORCPT ); Tue, 5 Apr 2016 13:11:06 -0400 Received: from gloria.sntech.de ([95.129.55.99]:51636 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752651AbcDERLE (ORCPT ); Tue, 5 Apr 2016 13:11:04 -0400 From: Heiko Stuebner To: Joerg Roedel Cc: Tomeu Vizoso , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH] iommu/rockchip: Only log stall errors when attaching Date: Tue, 05 Apr 2016 10:10:48 -0700 Message-ID: <2124490.J3euH9zgZk@phil> User-Agent: KMail/4.14.10 (Linux/4.3.0-1-amd64; KDE/4.14.14; x86_64; ; ) In-Reply-To: <7194078.9M5myMDU4z@phil> References: <1458659073-13553-1-git-send-email-tomeu.vizoso@collabora.com> <20160405145726.GD11519@8bytes.org> <7194078.9M5myMDU4z@phil> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1168 Lines: 26 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 > > > > 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?