[lkml]   [2017]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system
OK, I built a kernel 4.14.5 from vanilla sources using the Fedora .config (couldn't get the Fedora package to build).

I see no difference with both [0, 1] patches applied and the tpm modules loaded -- no keyboard or touchpad.

[Note: I'm not *consciously* using the TPM for anything, but /dev/tpm0 is present and have never initialised it. I don't know if anything in Fedora uses it by default if present.]


On 12/12/17 11:38, Javier Martinez Canillas wrote:
> Hello James,
> On 12/11/2017 08:37 PM, James Ettle wrote:
>> Hello,
>> [First: Apologies if cross-posting from BZ is bad form; my distro BZ advised I post this to your mailing list as well.]
>> Situation: enabling TPM on a Clevo W510LU with an Intel N3160 CPU breaks PS/2 keyboard and mouse. They just don't respond until after a suspend/resume cycle, and after that they later stop after a while.
>> I have confirmed this by blacklisting tpm modules. I noticed this first with kernel 4.13, and have bisected it down to:
>> 5e572cab92f0bb56ca1e6e5ee4d807663a7ccbad is the first bad commit
>> commit 5e572cab92f0bb56ca1e6e5ee4d807663a7ccbad
>> Author: Azhar Shaikh <>
>> Date: Sun Jun 18 19:17:59 2017 -0700
>> tpm: Enable CLKRUN protocol for Braswell systems
>> To overcome a hardware limitation on Intel Braswell systems,
>> disable CLKRUN protocol during TPM transactions and re-enable
>> once the transaction is completed.
>> Signed-off-by: Azhar Shaikh <>
>> Reviewed-by: Jarkko Sakkinen <>
>> Tested-by: Jarkko Sakkinen <>
>> Signed-off-by: Jarkko Sakkinen <>
>> Signed-off-by: James Morris <>
>> :040000 040000 5437c91886cb62c497255f2c60dbedd7268ab50d 1863a1738ded35a817aad52f9f2b451bd43623d7 M drivers
>> Currently in bugzilla 197287.
>> Please let me know if you need any further info.
> I don't have access to a Braswell machine to reproduce this. I tried to do it
> on different Intel systems by modifying is_bsw() to always return true, but
> that didn't work either. They work correctly even when CLKRUN_EN is toggled.
> I'm not familiar with LPC so please let me know if my assumptions are wrong,
> but I find suspicious that a driver for a single device attached to the bus
> can control the CLKRUN# signal which AFAIU may be needed for other devices.
> So that would explain why the mentioned commit causes issues for PS/2 mouse
> and keyboards, since these are attached to the LPC bus and may rely on the
> CLKRUN# signal for proper operation.
> I see that the following [0,1] patches for the tpm_tis driver landed a few
> days ago, they change how the CLKRUN protocol is enabled/disabled. Instead
> of doing it per each TPM transaction, it does it once for the duration of
> a TPM command.
> Not sure if that will make things better or worse for you, but it would be
> good to try in case it makes a difference.
> [0]:
> [1]:
>> Many thanks,
>> James.
> Best regards,

 \ /
  Last update: 2017-12-12 22:18    [W:0.082 / U:2.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site