Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp33028ybc; Mon, 11 Nov 2019 19:38:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzMIlrvNowFZDtidG52/DoHPW3ohGRQwY87j67SXWdwshY2/gH9ExzCj3iLjI0ZvoBXRKYu X-Received: by 2002:a17:907:426e:: with SMTP id nx22mr15397187ejb.139.1573529928408; Mon, 11 Nov 2019 19:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573529928; cv=none; d=google.com; s=arc-20160816; b=rWy6DabdAtO9D/5KvuhekXmwzhkjGtDhU37wVhcUQ9UJxUUg0TN76hJw11LZbZI3gW 9TEZgLqAv66wNuUZeOSXycLuvdT9E0xjuhzInxjBGTr1Avy8zRWil/sREDBN4zE1liRT u8GA2fVHXWawWyAsod2x9rOZ+xKPnqyt5yoVPwB4wjNxMfGoxSnP559etHBVupR9BLRP Eydp9l85wHh3KkgIREUuCcACDxHwVc1LVxpLBlwEK79N64I46J+qqtgQQjNcR/mN3xsH 0oeU/MjLzNS+Gcv11rbHJWV975DvtRXIi7iZgv60pwBbmTJL9qIyUwkSYRQvZ2HTG4NW 5aMA== 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:mime-version:mail-followup-to:reply-to :message-id:subject:to:from:date:dkim-signature; bh=aCpQt1ZhYboSDvHFUTsiD3XPm9kOvrjtHzxUZdWKqsM=; b=fzMF7rGM4z0e5FBED5JxtMM1vo/VnuY7WufWEB5n34TonwbRY2Zxr5/OoYhBZqZBbl lW29B8M5D88jhE6ugqKAt9gcYvxK7CgYEW9DV5z9TrfWeZ5kMOrNHaC+A7Vrbu+UC2BG YbMG5tj3Lzl7AD8RxAO4h4KF+Y1NDp4wl8qzGKN+mh/1AKJVFHYKUIPovVEeWXlDo0NO 981TG/78uo/J9RlFyQPjP5VWQ29Kyc2D1j2aNw//idhCltvZIO7nWaQPib4jBaUZZA91 Z082/w2IcHZpcaYZzdwBddJf6pGL2akGZ46Kxv8jahwHJKWj6sd6Yd0rPGakxC6Ndg0L e0SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J3w8q5KX; 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 z3si10271989ejb.42.2019.11.11.19.38.12; Mon, 11 Nov 2019 19:38:48 -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=J3w8q5KX; 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 S1726965AbfKLDgp (ORCPT + 99 others); Mon, 11 Nov 2019 22:36:45 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:32019 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbfKLDgo (ORCPT ); Mon, 11 Nov 2019 22:36:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573529803; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aCpQt1ZhYboSDvHFUTsiD3XPm9kOvrjtHzxUZdWKqsM=; b=J3w8q5KX5NNE0vro3b8LfZheQjghX1v0SxB7qqZrNkHPeX4eOW9sIXqxBcMSSyxifvlA/1 OyICUTMI2T56DpIjIvnDjdxwMPPbb4WeEyR+gT2VoQ8Dosk0ISWyDowYQjU38TsaARnODK 7pMCL2s8VvjVuB9HELntzkVpzaZq77g= Received: from mail-yb1-f200.google.com (mail-yb1-f200.google.com [209.85.219.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-9-B9DZbdVSMXG5rv-E5SWzBQ-1; Mon, 11 Nov 2019 22:36:41 -0500 Received: by mail-yb1-f200.google.com with SMTP id u10so141037ybm.4 for ; Mon, 11 Nov 2019 19:36:41 -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:subject:message-id:reply-to :mail-followup-to:mime-version:content-disposition; bh=/1ARDGGQ15uF46oAOzdoibrj2QJIiMCSuS05wL1ErLI=; b=XdLJLQKMBvAHHCjv++WwtmLIT1JnwtCzuncloMMtUMp/xVseObOv9p11NiQFKy6Djr Vt4+fcAhVGXhjbnG5zox4lQCBIybhAQ10K6QVH+ihhlLRbtJIVFAkARMa7HTPIwavb6h 0nZBzGqS++50TsIC+Pk87Mq4pHpowi95BistbIQclNX5vh+5KXDXAFa8JZJc8AC+ApXz TR1Lvv4pu4bjtTRg+hJrEis0paHIEdSVQI1ESPs7KUsHJCGZqgOs8/peqczxXSEmIRJK SQXxeHodHN9pS4uStSEhTkui9vAydAOtIxi4emH8ErxGvlV10hpLEdVeYJXOuOYSViwt jb2A== X-Gm-Message-State: APjAAAWmJSK3JZNzknUXrOG42LBtfgwa/aBGdh26Gmh5kc2tKCcLOjyr xvjPd96MYr/OvTyqShEmZlTzO5F5tDsAriPlKyHPbVbAn0zn452eQX4DHyvjf5Q8p+DeX5kqNZL LBgRgjPVhelIdYb+JeUAaBkwF X-Received: by 2002:a0d:d307:: with SMTP id v7mr18393618ywd.300.1573529800611; Mon, 11 Nov 2019 19:36:40 -0800 (PST) X-Received: by 2002:a0d:d307:: with SMTP id v7mr18393605ywd.300.1573529800280; Mon, 11 Nov 2019 19:36:40 -0800 (PST) Received: from localhost (ip70-163-223-149.ph.ph.cox.net. [70.163.223.149]) by smtp.gmail.com with ESMTPSA id x78sm7369131ywg.108.2019.11.11.19.36.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 19:36:39 -0800 (PST) Date: Mon, 11 Nov 2019 20:36:37 -0700 From: Jerry Snitselaar To: Stefan Berger , Jarkko Sakkinen , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: question about setting TPM_CHIP_FLAG_IRQ in tpm_tis_core_init Message-ID: <20191112033637.kxotlhm6mtr5irvd@cantor> Reply-To: Jerry Snitselaar Mail-Followup-To: Stefan Berger , Jarkko Sakkinen , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 X-MC-Unique: B9DZbdVSMXG5rv-E5SWzBQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252; 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 Question about 1ea32c83c699 ("tpm_tis_core: Set TPM_CHIP_FLAG_IRQ before pr= obing for interrupts"). Doesn't tpm_tis_send set this flag, and setting it here in tpm_tis_core_ini= t short circuits what tpm_tis_send was doing before? There is a bug report of an interrupt storm = from a tpm on a t490s laptop with the Fedora 31 kernel (5.3), and I'm wondering if this change could cau= se that. Before they got the warning about interrupts not working, and using polling instead.