Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753855AbdLUKv1 (ORCPT ); Thu, 21 Dec 2017 05:51:27 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:53816 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753145AbdLUKvV (ORCPT ); Thu, 21 Dec 2017 05:51:21 -0500 Subject: Re: [PATCH 0/4] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled To: Javier Martinez Canillas , linux-kernel@vger.kernel.org Cc: Hans de Goede , Azhar Shaikh , Arnd Bergmann , Jarkko Sakkinen , Peter Huewe , Jason Gunthorpe , Greg Kroah-Hartman , linux-integrity@vger.kernel.org References: <20171220113538.16099-1-javierm@redhat.com> From: James Ettle Message-ID: <5c098570-5aea-533c-c096-b5eb5ecc5c95@ettle.org.uk> Date: Thu, 21 Dec 2017 10:51:13 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171220113538.16099-1-javierm@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:ry0DQ7DkpykcYo/uBMHkITAOYrquoQAo3gHIMFC/Z7CyCjYZWib gVIUVr8XFtqCxFctE9G4m2R51yP4eamuWEZ8WNqTGBxvJfvsu41RSzyF5YLR7jpfUj/vdxQ ykiLHQlF2H3zM61w923ALjiHmp6gpt9PMi3GB4ToF+7O4vQ+TOA6bDiC0veXa/Nl/J+96qy KpXYyS/JRoPjQyno6PaIA== X-UI-Out-Filterresults: notjunk:1;V01:K0:uQa7al+5kyU=:+JeE4lXb/bPqT8AqerZ5ml uHbvSegZsUonzko0M44ep6SyulhDpbViyy/snwuJMOl3z8fM1XYMVmMRTMsm9AmUBxMrognJm juwR+WtmjZ9e2WZKbFHK5Vr1gZHDyzDgANG+Hx98eB1qhiiLojPfOwWeQr/eOUu7ftzX+rY5I Q32ZYhysOGP1DbnL9ISTeTv+erag45sRwJAsfjd6TmQA46+LSUl5Zh4gDmAJU0QcmhckeEqyj IiWSN8XWW9KL+eWzgP0b6mHoUjub83KbgRafeDPekYH9qI+beMuJ87mVi/6kP5kLudcVADn+a WEyvVv2BSf1B3LboniSvp2+4UR1Fw6Ku93ECOYNAuke5S02kEIJGw3pL7lTHrSbOH2H20ixTX uF320Ti9JXz7spTU24F+r2MwoiVT7bVl7iOy7IfYWUPh/BDY9iFhf65Q3sDC4BXDX215IiPzv vSES1YDaZ++2jm5fwGIZHmvLTaUeX7Awqm/FrnjxcK0Bfez3JPmDWc9gwJZE4if+DINnYO1W2 yzLuJtkcJpbESstu/HRonxdTyG58EkASXvTFLUyAGLlWPPHnfO7ByoQK2tHxte7Xkj9kW/lRC MsKPA8+MYko2cseqwxZl8hyfmzI77uM9d26025sFqJ9UuVlHnHW2XJTEc2saFeW2wK1nn6mwk R3f6LDek+hFoI50GYzXTKZUq2oLGGAo7cGYst45V/3rq8jbYqwBdRrswcPBx7tTQrcuDAkEeT WQFL6COU/GWaLvsefVYY2m1FcmOzyLMMZoxfRibZ9JgjEqd0eBst8kzfQrA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2100 Lines: 58 OK, I built a kernel based on: - git clone of git.infradead.org/users/jjs/linux-tpmdd.git taken last night - applying the patch in https://patchwork.kernel.org/patch/10119417/ - stock config-4.14.6-300.fc27.x86_64 + make oldconfig The tpm modules are loaded and the keyboard is working. Note: I won't have access to this machine over the next few weeks. Thanks, James. On 20/12/17 11:35, Javier Martinez Canillas wrote: > Hello, > > Commit 5e572cab92f0 ("tpm: Enable CLKRUN protocol for Braswell systems") > added logic in the TPM TIS driver to disable the Low Pin Count CLKRUN > signal during TPM transactions. > > Unfortunately this breaks other devices that are attached to the LPC bus > like for example PS/2 mouse and keyboards. > > The bug was reported to the Fedora kernel [0] and the kernel bugzilla [1]. > This issue and the propossed solution were discussed in this [2] thread, > and the reporter (Jame Ettle) confirmed that his system works again after > the fix in this series. > > The patches are based on top or Jarkko Sakkinen's linux-tpmdd [3] tree. > > James, > > Even when there shouldn't be any functional changes, I included some other > fixes / cleanups in this series so it would be great if you can test them > again. I can't because I don't have access to a machine affected by this. > > [0]: https://bugzilla.redhat.com/show_bug.cgi?id=1498987 > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=197287 > [2]: https://patchwork.kernel.org/patch/10119417/ > [3]: git.infradead.org/users/jjs/linux-tpmdd.git > > Best regards, > Javier > > > Javier Martinez Canillas (4): > tpm: fix access attempt to an already unmapped I/O memory region > tpm: delete the TPM_TIS_CLK_ENABLE flag > tpm: follow coding style for variable declaration in > tpm_tis_core_init() > tpm: only attempt to disable the LPC CLKRUN if is already enabled > > drivers/char/tpm/tpm_tis.c | 17 +---------------- > drivers/char/tpm/tpm_tis_core.c | 24 +++++++++++++++++------- > drivers/char/tpm/tpm_tis_core.h | 1 - > 3 files changed, 18 insertions(+), 24 deletions(-) >