Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1449300rwd; Thu, 18 May 2023 12:06:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JIUJcgIS4yzboJrt80C6cQ7dGw9idk0qkrB3Ff0cY1hj9azyfKgpluR6wIlyqs+lvilXy X-Received: by 2002:a17:90a:43e1:b0:253:6db6:18be with SMTP id r88-20020a17090a43e100b002536db618bemr1885911pjg.14.1684436816584; Thu, 18 May 2023 12:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684436816; cv=none; d=google.com; s=arc-20160816; b=a0hzm3zq5FIZsLfN0t56bv9qNT0td7wgEjE2v1kSKwJrwultaCPHTzLo5e8mjwrR0F luNpsabVUqT7E05hmPnBicpklTtqCbUDV0bPen/aN6VU8bZTRFyBtjc5bYGeQMdMRx4Z I7zaCGIG9gqztIHb+hOeAf6VJ7MwlyzOgYoQmQs2F1LIwerZKYMuPO+kErSeE+4uPh5d 2EzN2XA97CVWIOI7cIQDvAUg7ii0HDB73upbZcxoeWwI072Yuci164RfDQkhDa0xSz59 kE3r7rOcroGrz5I9997iVVJp96PdAtUhW8DwNY4TxRb/U0xg2Z+ptf/MjHfAv6B/HzmE Uzdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jhNH5X6r0ZKpS+GpJhPbsRYtE9hrwN2qv/IBByfk+DM=; b=1JX7d3+kRWmEjwijkWvZuh7jhi/uXfSjNbDWq0j5J/KLp15KoJqvKXi8SgyUT0GOKh jJAhaYnBeyv0oxfsK/daHnwvnccz9CE/9lnF5UurBCPYNYXDUpRe2Vmrbhbb2q0p7jPr pjQ7bi+SlEL9otGb0uupJ2TNT4QVj1IeCB4kugRIGx82x70Uk+g8O1b57ud3Ah2KZPK7 1fRHTLenWRmFyudoXkLUY/yCiSvVV7abNtbiJaPlW/bpQqMJPnX2QD/pUkwgx/tXKwjs R5Z84g3vEfItbXgmUkuwANf3kUQgLM5jXdU8V2XkBIXO8EzLmgbD+216M4dBnCQkw2WH nY3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YBpJeJXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w69-20020a638248000000b0052d389c3ca7si2176036pgd.52.2023.05.18.12.06.43; Thu, 18 May 2023 12:06:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YBpJeJXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229942AbjERSux (ORCPT + 99 others); Thu, 18 May 2023 14:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229869AbjERSuv (ORCPT ); Thu, 18 May 2023 14:50:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47D63E4F for ; Thu, 18 May 2023 11:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684435805; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jhNH5X6r0ZKpS+GpJhPbsRYtE9hrwN2qv/IBByfk+DM=; b=YBpJeJXDKTyzbUcrLi93SVH2uHaGey5+1ExQYKBXR/crFhic7w1i8naAqdSZY2vd1Eb0Hg 20lhhF1kxjfm0H/fImoass2G3vjzevPt/9nFLr4Ng4nbQZkxcN48kTEscctahNXmsc2aoi Tv/9CmLh+e27wwWbtrAMU/jRcuClalk= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-505-vN-DZkkIPdaXZU97FiUFeg-1; Thu, 18 May 2023 14:50:04 -0400 X-MC-Unique: vN-DZkkIPdaXZU97FiUFeg-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-62387e4de2bso31257916d6.2 for ; Thu, 18 May 2023 11:50:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684435804; x=1687027804; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jhNH5X6r0ZKpS+GpJhPbsRYtE9hrwN2qv/IBByfk+DM=; b=Ldh8Z80VPuCV4XHWDrBhIC9NuKdJGS+seJf55+7SscYI0NhZkDFgeV/bf9ekt/9AiY 4bZ2KXCIHBHaM+m41HRGMG2y0ZmO8+hQrNzO6lDYDU82XrMXxa1KFYzxtED4nBxCOvgD DAPnqCrljKIShVHpvE0v6267f5wn9/jesQ1t7Zntx37CmzhCGrVbTFCboqr5EdpQ3hgD fGAGrOioCPWaOw12sr+7mi7bFw+/+fVIMgYVHN0klOvc1gfbF6U+jWMjqgnbfIvoCy1R 6ayOeRYyJActIaffCXo7MmPV9bbu+aAQW1/+c/l740gF8PUvwUrKw5us4L8+joY6O9Cc e33w== X-Gm-Message-State: AC+VfDzfsuAjU+y7SxQ2ETm8CfDR6cj0UywN9muF8VyykmejfaA3VVbX u86MG4XgpHB5fYcWqhlprFS40PNTsd7DXln9WoALtR24ERaSX3ZjaqJ+TQDNWvPr/PRBqw/uwZ2 WfnNZLX7xX9frxJQi2+rYGdct X-Received: by 2002:a05:6214:2a8b:b0:5c1:fa35:fe6 with SMTP id jr11-20020a0562142a8b00b005c1fa350fe6mr44431qvb.24.1684435803861; Thu, 18 May 2023 11:50:03 -0700 (PDT) X-Received: by 2002:a05:6214:2a8b:b0:5c1:fa35:fe6 with SMTP id jr11-20020a0562142a8b00b005c1fa350fe6mr44404qvb.24.1684435803593; Thu, 18 May 2023 11:50:03 -0700 (PDT) Received: from localhost (ip98-179-76-75.ph.ph.cox.net. [98.179.76.75]) by smtp.gmail.com with ESMTPSA id h11-20020a0cedab000000b0061ac0b43a16sm703530qvr.103.2023.05.18.11.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 May 2023 11:50:03 -0700 (PDT) Date: Thu, 18 May 2023 11:50:01 -0700 From: Jerry Snitselaar To: Peter Ujfalusi Cc: peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, l.sanfilippo@kunbus.com Subject: Re: [PATCH - for 6.4] tpm: tpm_tis: Disable interrupts for AEON UPX-i11 Message-ID: References: <20230517122931.22385-1-peter.ujfalusi@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230517122931.22385-1-peter.ujfalusi@linux.intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 17, 2023 at 03:29:31PM +0300, Peter Ujfalusi wrote: > The interrupts initially works on the device but they will stop arriving > after about 200 interrupts. > > On system reboot/shutdown this will cause a long wait (120000 jiffies). > > The interrupts on this device got enabled by commit > e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test") > > Prior to this point the interrupts were not enabled on this machine. > > Complements: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test") > Signed-off-by: Peter Ujfalusi > --- > Hi, > > This patch applies on top of mainline since 6.4-rc1 takes about 2 minutes to > reboot on this machine, linux-next have > e7d3e5c4b1dd tpm/tpm_tis: Disable interrupts for more Lenovo devices > > I'm not sure if I shouold send this on top of next or mainline is fine, please > let me know the preferred way to get this to 6.4. > > Regards, > Peter > > drivers/char/tpm/tpm_tis.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c > index 7af389806643..aad682c2ab21 100644 > --- a/drivers/char/tpm/tpm_tis.c > +++ b/drivers/char/tpm/tpm_tis.c > @@ -122,6 +122,13 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = { > DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T490s"), > }, > }, > + { > + .callback = tpm_tis_disable_irq, > + .ident = "UPX-TGL", Is this the product version returned by dmidecode? If yes, then the entry could be made more specific by adding a DMI_MATCH(DMI_PRODUCT_VERSION, "UPX-TGL"), and only disable for this device instead of any system that matches the vendor AAEON. > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR, "AAEON"), > + }, > + }, > {} > }; > > -- > 2.40.1 >