Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1306132ybl; Fri, 6 Dec 2019 15:04:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxFWktqtavzUotHL/jt1epuB4bffXt15vIQNJ85sipClghOrL1gDSDMGw8VPnf+S6oyt+l2 X-Received: by 2002:aca:f445:: with SMTP id s66mr14128711oih.95.1575673474084; Fri, 06 Dec 2019 15:04:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575673474; cv=none; d=google.com; s=arc-20160816; b=UJO1yil2XMmz9xvlPBlEW+fjvsR92iLnRYDy9p2kjpFAb8hpcWQkqISBhDqq+O22TI vUMA8xEF9oDOeO0d5+o4uy5OMX3eayvC4Cl9TsgYzWK7URmvmL62Myjo/a/jTJawOHVO kndkuTvL7Dl+FPdJv9rNe2ZcXPtZoBrDgUabJwE1ovnFleFvmWi8/a/7Qq2kU3kTaheX vABv6jhrTBiJ6o4yXOI4PHnmMGU7rucbpl4Pq6JniZppfGwrJoAMd6eB8WW7jhbXA9XC /LioR0914ANmsFtIkWpjHdM37xkRb60Lbm5dnDk153CdE42/kx66KKb869j65piwq8oD bdEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:in-reply-to:mime-version:references :mail-followup-to:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=u6WTqIKjz3S325CCDp38W7Sg6rbkSpfGWJMYdV0cMT0=; b=SbtQ+NaWrtkbaY+j3cAg30aXLMjuUvXVDG5cpbJk8s3jdYl5GuK6K7Zx8PV+jZV548 mkpYlURrVzLy6Q4DM9i2EKweD+NwhCXYRnYmVZUsx+koqy9L1F/xfDkxAgYAnOWY8VV8 W9V66PoYJwPpAhGFyUdvokP8saMwocnfhgje50onaNKMXn4f9XXJR2QZhcdO7P1L1Wus lXSfEXBl6YD8XxS5fqpALoWZwm+L97vgiI4wJ9o5iVfpec5Dve/AxW0CyVTi8wFypIyY BxsyLVIrx6lKIlNRwj0IdHqlIqmO3TYxMMUyCNvXz/CdyJ7QBTNnpbS0aHH0fE3U3CcW AKCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K7oCluiI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si7999233oiy.102.2019.12.06.15.03.59; Fri, 06 Dec 2019 15:04:34 -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=@redhat.com header.s=mimecast20190719 header.b=K7oCluiI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726403AbfLFXDC (ORCPT + 99 others); Fri, 6 Dec 2019 18:03:02 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:56852 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726374AbfLFXDC (ORCPT ); Fri, 6 Dec 2019 18:03:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575673381; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u6WTqIKjz3S325CCDp38W7Sg6rbkSpfGWJMYdV0cMT0=; b=K7oCluiIXRY/sk25EjRl4Lo6y5IX3Bz0285jxCljhmzTxEAvOAbSA2wGxG3PWa8G2DKyNR fFjuT0PKHXhqytXPLtkGU6GJjJb57hJi65UA9sC7eTHZIttmiTas8gXhxOp40xs8850rT9 9j7tv2YAPQEB36P75cQR2xPTpqKXQwQ= Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-323-h1sGsidiNpSA5ZjJSSNxPg-1; Fri, 06 Dec 2019 18:02:59 -0500 Received: by mail-pg1-f200.google.com with SMTP id o21so4615011pgm.11 for ; Fri, 06 Dec 2019 15:02:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=9Ch5m35fVkEKG5wxtfGoZa8Wx0h7Ub5VYf9I4jeT7RE=; b=RHFWYTCQdE+u+m5UMGrzPUTApjDWZWTNb1HiUDP9IE3RG7qpMhC47uWosXNq/NaCbi /RdOf96Xmht/fVc0AWL+o2voWk7tEtU26q52Q9CPWtekkZ34vRBOIJ6XHmq8xCvMDTkf h4m8Pu/+ZRMR0DyZMp2DJzB7f1xhcip+xTsFkpvx+d7sGgPbFJUMy3j9r+OsOZUrBnTe BFxA2eSsdYbO/Pohwygq9Imr8hIN0qqM+VCJLuqkxZryE5jGeoDvG/yc+hnL0wZMvHaq zpQWRw9SkKk6uAGonZuDkLop1MMUUVNb6fp228FsnIxOAZoUmx367JSVv0495LDrliwR 4ZjQ== X-Gm-Message-State: APjAAAVj2zmrmvywAl+8JgWNd4nUo8guapKUkVIsofji8B3uyKfrdSC5 EEEcTaDi36MMDUzlXfsoIBSQCGVW4PgLJJAKiJWHGiWraFH0I2GJtQK1LPmUsPl9FQZ5XU8gi24 3szFMyCNnC5+q2E6qUhh6P2RA X-Received: by 2002:a17:902:fe12:: with SMTP id g18mr17164259plj.20.1575673378486; Fri, 06 Dec 2019 15:02:58 -0800 (PST) X-Received: by 2002:a17:902:fe12:: with SMTP id g18mr17164215plj.20.1575673377994; Fri, 06 Dec 2019 15:02:57 -0800 (PST) Received: from localhost (ip70-163-223-149.ph.ph.cox.net. [70.163.223.149]) by smtp.gmail.com with ESMTPSA id m5sm4231286pjl.30.2019.12.06.15.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 15:02:57 -0800 (PST) Date: Fri, 6 Dec 2019 16:02:55 -0700 From: Jerry Snitselaar To: Jarkko Sakkinen Cc: Dan Williams , Linus Torvalds , Linux Kernel Mailing List , linux-integrity@vger.kernel.org, James Morris , Stefan Berger , stable Subject: Re: [GIT PULL] tpmdd updates for Linux v5.4 Message-ID: <20191206230255.mhinntfevp6vdlkj@cantor> Reply-To: Jerry Snitselaar Mail-Followup-To: Jarkko Sakkinen , Dan Williams , Linus Torvalds , Linux Kernel Mailing List , linux-integrity@vger.kernel.org, James Morris , Stefan Berger , stable References: <20190902143121.pjnykevzlajlcrh6@linux.intel.com> <20191127205800.GA14290@linux.intel.com> <20191127205912.GB14290@linux.intel.com> <20191128012055.f3a6gq7bjpvuierx@cantor> <20191129235322.GB21546@linux.intel.com> <20191130001253.rtovohtfbg25uifm@cantor> <20191206211834.GD9971@linux.intel.com> MIME-Version: 1.0 In-Reply-To: <20191206211834.GD9971@linux.intel.com> X-MC-Unique: h1sGsidiNpSA5ZjJSSNxPg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri Dec 06 19, Jarkko Sakkinen wrote: >On Fri, Nov 29, 2019 at 05:12:53PM -0700, Jerry Snitselaar wrote: >> On Sat Nov 30 19, Jarkko Sakkinen wrote: >> > On Wed, Nov 27, 2019 at 06:20:55PM -0700, Jerry Snitselaar wrote: >> > > There also was that other issue reported on the list about >> > > tpm_tis_core_init failing when calling tpm_get_timeouts due to the >> > > power gating changes. >> > >> > Please add a (lore.ko) link for reference to this thread. >> > >> > /Jarkko >> > >> >> https://lore.kernel.org/linux-integrity/a60dadce-3650-44ce-8785-2f737ab9= b993@www.fastmail.com/ > >tpm_chip_stop() probably causes the issue. That is why tpm2_probe() >works and failure happens after that. > >tpm_chip_stop() should be called once at the end of the function. > The patch I posted that fixed the issue for him moved the tpm_chip_start() from the irq probing section right below there to before the tpm_get_timeouts call, but your idea is better. Any thoughts on the irq issue? I need to go back and look at the older commits again, but before Stefan's patch enabling the irq flag I'm not sure the last time that testing code section in tpm_tis_send was actually used. I think prior to that it always just went straight to tpm_tis_send_main. 570a36097f30 ("tpm: drop 'irq' from struct tpm_vendor_specific") adds the flag, and I can see where it disables and enables the flag in the testing code in tpm_tis_send, but I don't see where it enables the flag originally for it to ever get into the testing section of tpm_tis_send. That means since this commit tpm_tis hasn't been using interrupts, right? Regards, Jerry >/Jarkko >