Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934595AbdLRRzQ (ORCPT ); Mon, 18 Dec 2017 12:55:16 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:40168 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934430AbdLRRzH (ORCPT ); Mon, 18 Dec 2017 12:55:07 -0500 X-Google-Smtp-Source: ACJfBovRbGO573TZcbF03OWCd7twlR9ib7LwQgHhjQ9EiBH+Oq+iOgkAYQROiyi2IWH/Y8cVT5zpog== Date: Mon, 18 Dec 2017 10:55:02 -0700 From: Jason Gunthorpe To: Javier Martinez Canillas Cc: Jarkko Sakkinen , James Ettle , linux-integrity@vger.kernel.org, azhar.shaikh@intel.com, linux-kernel@vger.kernel.org, james.l.morris@oracle.com Subject: Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system Message-ID: <20171218175502.GC19056@ziepe.ca> References: <57d96314-cc9c-0656-186e-4eb77a132b70@ettle.org.uk> <34b361bf-cce7-a1ac-f8a3-76ef22f5b6b0@redhat.com> <5fb5de24-5a4c-4c01-1f72-49fc5844516c@ettle.org.uk> <011b4d29-9d93-4b7a-90dd-0c25cf184c3e@redhat.com> <20171214191052.GA20833@ziepe.ca> <20171215145630.ftsnj4azqqhzqwsh@linux.intel.com> <20171215173826.GD12434@ziepe.ca> <1513443676.29063.0.camel@linux.intel.com> <16609e73-e35d-4bb0-410d-e87915daba39@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16609e73-e35d-4bb0-410d-e87915daba39@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 754 Lines: 27 On Mon, Dec 18, 2017 at 01:29:01PM +0100, Javier Martinez Canillas wrote: > On 12/18/2017 01:22 PM, Javier Martinez Canillas wrote: > > [snip] > > > > > James, > > > > Can you please test the following (untested) patch on top of the other two > > mentioned patches to see if it makes a difference for you? > > > > I should had tried to at least compile the patch :) I think this is backwards.. If CLKRUN_EN is on (eg power management is NOT enabled on LPC) then TPM shouldn't do anything at all. If CLKRUN_EN is off, then it should try to turn it on/off to save power. Perhaps the best work around is to just delete the turning off of CLKRUN_EN ? Uses more power but keeps the clock running which should keep both TPM and superio happy. Jason