From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH OSSTEST v2 18/20] Osstest/Debian: Add "clk_ignore_unused" to default command line Date: Tue, 11 Nov 2014 17:50:05 +0100 Message-ID: <54623E3D.4060803@linaro.org> References: <1414579268.29975.13.camel@citrix.com> <1414579302-6692-18-git-send-email-ian.campbell@citrix.com> <21585.6188.366311.80971@mariner.uk.xensource.com> <1414672390.2064.31.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1414672390.2064.31.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , Ian Jackson Cc: xen-devel@lists.xen.org, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Hi, Somehow I missed this email. On 30/10/2014 13:33, Ian Campbell wrote: > create ! > title it arm: domain 0 disables clocks which are in fact being used > thanks > > On Wed, 2014-10-29 at 16:39 +0000, Ian Jackson wrote: >> Ian Campbell writes ("[PATCH OSSTEST v2 18/20] Osstest/Debian: Add "clk_ignore_unused" to default command line"): >>> This stops dom0 from messing with clocks which it should and is required on >>> some platforms. It's harmless even when not needed. >> >> This is pretty odd. Doesn't this correspond to some kind of bug, in >> the dom0 kernel perhaps ? > > dom0 is not aware that some clocks are actually in use (e.g. by the > hypervisor), so the bug is probably in the lack of some interface to > communicate this from Xen to dom0, or some other mechanism to gate this. In reality, Xen is only using the clock of the UART. Even though, I think this would also happen with platform device passthrough. For the latter, it would be fairly easy via a PV drivers. But for UART... gating the clock could be a nightmare because every platform have their own way to enable/disable the clock. Futhermore, the clock could be shared with multiple device... I'm wondering if we could expose the UART to DOM0 without marking as disabled. It would avoid DOM0 to mess up the clock while everything would be catch via the vuart implementation in Xen. Regards, -- Julien Grall