Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16827606ybl; Wed, 1 Jan 2020 14:56:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwf2TZFeE9F/Uy+43y7copreTI3jV5ipg74sEiH2NTdwYzx6mwbdQtkY9g20p4V+GdctL7S X-Received: by 2002:a05:6830:139a:: with SMTP id d26mr91030587otq.75.1577919398767; Wed, 01 Jan 2020 14:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577919398; cv=none; d=google.com; s=arc-20160816; b=EDYyQOtAXEu6FPU/FZzF2muUZCn07JIdknvhb3EjVvCBoZcEcjulnO5D+SwCPidV74 c4ltH23SCcSVGsiaC96Yo18scvXpyxJzUyKx8RryAIpN27IbZE/lTQqIq87XBlk5MT8O wENk3aKhe4QJIW14cW4and4VDYPQErTIGQJX4yNKqP9DY73+M6rNP6wu6UGprnYH7nF6 WTD/P0TmhgrGVKOgQsEyVz10iMZjOVVJyib/YhPQ6DcCxLtbr6RYKsbNDnsPHzEaurNV A6dcAVPGPZIsf7MnSNtCsfljKcSVmCPudwblcRq1y/P/yE3BCVkz8bsIqmsXboQwZ5L9 /jGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=m4g1EM/uMp6lAFpxtQOB5KdZUvd0RzaZy5BdRaHYtGA=; b=qLY8YA6gmn9JzWTWwJHSKA90dNl9Us4o7xNAJ8GrZs1qgfkOTJzR77SXeaSOnpilSx pOw7oojUj2TaVh5GRWI/N/3R5fwCITSSJBoWO1iehLYE9+9BZimKRYKByXHi9QWJTl30 I+QPon5fZqf0OgFo65s9o7VT0oIekXO0RWqNqA3Fl+pdbTvuZteRemxjygJjH2x6ASLS 4HPGZPXAFv9T2nHqBWxMbKg39XwQNRMb3Y8Q54bKdZwtosOV55t40i7D7zK0Sa2PbfL/ fnMpuH9mqTxCvyhduPay9kRbYCRK9POx3TQxCmT8hFDcYH6oe0a/G3r35rhVPIjkve6E Alwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=JSHvqra0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u191si21745859oia.86.2020.01.01.14.56.26; Wed, 01 Jan 2020 14:56:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=JSHvqra0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727468AbgAAWzq (ORCPT + 99 others); Wed, 1 Jan 2020 17:55:46 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:41484 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727428AbgAAWzq (ORCPT ); Wed, 1 Jan 2020 17:55:46 -0500 Received: by mail-ot1-f65.google.com with SMTP id r27so54665422otc.8 for ; Wed, 01 Jan 2020 14:55:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=m4g1EM/uMp6lAFpxtQOB5KdZUvd0RzaZy5BdRaHYtGA=; b=JSHvqra0nthVS/WZxbIUDhbkerztX4y6s1EJjespY6G9TCweChl7HbJNm1e4fAlegf sdU7DDAz1G1mSxB2Zcq8Ud74p6a5nXJaC8n7VAkjEg9e1ppOfy4r44K/t5D020wTsOI2 5kANlserTPCD/A6FRqOZpINlCVTxNOgd0MgPyzM0EUoFMFb2/bUIQ3hs/vBbphKhHVsu KGa3yJwGWPM/dQHcpRxuWZ9C2gBmT/6gpy3qAHkXW/JTMYzyb+X4KbMjIuthIP29USjX XTN0EbfsS2xSs8vB0OVXo9QP+86xYHA9airQntOhF4Ebz8Taq022dlgkXcA4J+UHsLH8 wOIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=m4g1EM/uMp6lAFpxtQOB5KdZUvd0RzaZy5BdRaHYtGA=; b=hclRDzAfjM8Pnz9HPI0yxyoauzlx7GDOPv5pyx3n/xOxLTBWX9eLwqKIDuERItp+Cb dY1xqUZ/zmhMsPiOePpgJiMGI8XXTdS6LNItvUWCALtyk5YdVOicuL/locn+t4cjDIIF YGaARMkQOu/1vA5X/Q+rhepRC9OHLXujv1Rl4ZiG9L0uY0xphGFpbCyv/7GTb5WZlIwZ sVXKM4gTk2K73uktCQv5fjh141SLII2Ihgqm/ihuZMzqVQ9kXiUNpRB1gPFkgm/h+iD5 gceYplSuBFOgzviCt5feTW2T2s+LLx8TLNRtp8U+4qEI2+4+TRu0oLfnMWRu21QJk8Rn fe6w== X-Gm-Message-State: APjAAAVqiISGWbnu5ukal8nsrlzxeV9vHN2H8jsQkQ2MTxtIXeqPtdol pZRGebkIeAziq/HkQQe4c/a3lvnIrpzYgNjlXsW+Bg== X-Received: by 2002:a9d:6f11:: with SMTP id n17mr73904211otq.126.1577919345862; Wed, 01 Jan 2020 14:55:45 -0800 (PST) MIME-Version: 1.0 References: <1577122577157232@kroah.com> <50217a688ffa56cf5f150ffd358daba2a88cad48.camel@linux.intel.com> <20191228151526.GA6971@linux.intel.com> <20191231003000.ywdvfjdhqadnl6wo@cantor> In-Reply-To: <20191231003000.ywdvfjdhqadnl6wo@cantor> From: Dan Williams Date: Wed, 1 Jan 2020 14:55:35 -0800 Message-ID: Subject: Re: Patch "tpm_tis: reserve chip for duration of tpm_tis_core_init" has been added to the 5.4-stable tree To: Jerry Snitselaar , Dan Williams , Jarkko Sakkinen , Greg KH , Christian Bundy , Jason Gunthorpe , Peter Huewe , Stefan Berger , stable-commits@vger.kernel.org, linux-integrity@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 30, 2019 at 4:30 PM Jerry Snitselaar wrote: > > On Sun Dec 29 19, Dan Williams wrote: > >On Sat, Dec 28, 2019 at 9:17 AM Dan Williams wrote: > >> > >> On Sat, Dec 28, 2019 at 7:15 AM Jarkko Sakkinen > >> wrote: > >> > > >> > On Fri, Dec 27, 2019 at 08:11:50AM +0200, Jarkko Sakkinen wrote: > >> > > Dan, please also test the branch and tell if other patches are needed. > >> > > I'm a bit blind with this as I don't have direct access to the faulting > >> > > hardware. Thanks. [*] > >> > > > >> > > [*] https://lkml.org/lkml/2019/12/27/12 > >> > > >> > Given that: > >> > > >> > 1. I cannot reproduce the bug locally. > >> > 2. Neither of the patches have any appropriate tags (tested-by and > >> > reviewed-by). [*] > >> > > >> > I'm sorry but how am I expected to include these patches? > >> > >> Thanks for the branch, I'll get it tested on the failing hardware. > >> Might be a few days due to holiday lag. > > > >This looked like the wrong revert to me, and testing confirms that > >this does not fix the problem. > > > >As I mentioned in the original report [1] the commit that bisect flagged was: > > > > 5b359c7c4372 tpm_tis_core: Turn on the TPM before probing IRQ's > > > >That commit moved tpm_chip_start() before irq probing. Commit > >21df4a8b6018 "tpm_tis: reserve chip for duration of tpm_tis_core_init" > >does not appear to change anything in that regard. > > > >Perhaps this hardware has always had broken interrupts and needs to be > >quirked off? I'm trying an experiment with tpm_tis_core.interrupts=0 > >workaround. > > > > Hi Dan, > > Just to make sure I understand correctly are you saying you still have > the screaming interrupt with the flag commit reverted, Correct. > or that it is > polling instead of using interrupts [2]? Was that testing with both > commits reverted, or just the flag commit? With both patches reverted the driver falls back to polled mode, with just the flag commit reverted the screaming interrupt issue is still present. > What kernel were you > running before you saw the issue with 5.3 stable? The regression was detected when moving to v5.3.6 which includes commit 7f064c378e2c "tpm_tis_core: Turn on the TPM before probing IRQ's". > On that kernel you > weren't seeing the polling message, and interrupts were working? I've never seen interrupts working. > Are > you able to boot a 5.0 kernel on the system? It would be interesting > to see how it was behaving before the power gating changes. I think it > would be using polling due to how the code behaves because of that > flag. It looks like without the flag being enabled by Stefan's commit > TPM_GLOBAL_INT_ENABLE will never get cleared because tpm_tis_probe_irq_single > expects tpm_tis_send to clear it if there is a problem, and without the > flag being set that whole section of code is skipped. I'll try to get a result from a pre-5.3.4 kernel to see what the behavior is. I did have system owner run an experiment with tpm_tis.interrupts=0 on the kernel command line and that also avoids the problem.