From patchwork Fri Aug 11 23:40:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarkko Sakkinen X-Patchwork-Id: 134778 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1423610vqi; Fri, 11 Aug 2023 16:49:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXK/gsl2aveEb3uKD91VX2xpmIonTEDvAgXyndjd5RAlJyEaCiAwU+PcMItsU45qF9Ldsa X-Received: by 2002:a17:90a:664a:b0:268:34b1:a5a9 with SMTP id f10-20020a17090a664a00b0026834b1a5a9mr2816346pjm.8.1691797774183; Fri, 11 Aug 2023 16:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691797774; cv=none; d=google.com; s=arc-20160816; b=NFrZx4Fz84J0KxPMyLSin62FyBHbakWv1gc+CsddfF3fxJydRlY2IZVRFjgm3c/wc1 uXDBkmVzpxN0PQ94QPLLG67NlF3L8jUT44WQba4Yjte0Sk1ZjpJm4PL8+JGkwF0DnidT PNJ6w0W7ZTcgzmtF6gqqnGpEAwHVZyAI8p5lY/a2eZDp2OhK4auZ3oa3/Gz5ORPj1Ipj jb2qAQ5CwJsXioVixDhNYO9Nkke6FqTm1HmBzX5biIAbvWShZuuPC2QmI8LIqVdI9QVu jdflBz2r7wtx7SLp1lD5EMzuDYDugoYTKr4Rk6sDbdLBKiNxRQgqi1UbXy3oKhK9bjN1 IKzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FqOMcXziVUO7DLiTKSLZSull1+Ds5EMtyd4kxIZE0ng=; fh=VzGccbf5gggVWOtyoIMWYT+dpRIibXUx22YKQygPFZc=; b=qgaJjmvOrN4WF2UtBAwDPAeFxPFa6i8H7XLn3MdsclMhkXSNwwVLJr3sFhpnVHS0Sa SiOvFTsKsDjaOdjykhl8c7+mMn6JT3FgbZhNA6CqFoyHFQwhSa3sy8RiAEYNJM0aGZWY 77jLXYH6xaVsuMkweXupNdCIboU8CCFlB8FeVzxyTM6/3FGkZO1oJQhfTIEPP9GfHb0Z Mv4wYllWVlOYGQsQzAg16JX9BK1/BAq60zRL4sBBsoCyO8CFHWfER+j0NmaW1RkCsepJ Lyn6rmsRxkdiElq4ELaP8Wh+nUBiqZ9B3cfmNZ1SpIM5yEtx2mDk6po3T9q5yoNrKXzH DB5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uq3xkCyE; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id le6-20020a170902fb0600b001b23d721059si3868055plb.317.2023.08.11.16.49.21; Fri, 11 Aug 2023 16:49:34 -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=@kernel.org header.s=k20201202 header.b=Uq3xkCyE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237261AbjHKXkQ (ORCPT + 99 others); Fri, 11 Aug 2023 19:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237253AbjHKXkP (ORCPT ); Fri, 11 Aug 2023 19:40:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93F4610FE; Fri, 11 Aug 2023 16:40:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1DFBC67BF6; Fri, 11 Aug 2023 23:40:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A79CC433C7; Fri, 11 Aug 2023 23:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691797213; bh=R2sg8Db9dBVponQJLVp+BrZA8E82CBv1tB6TGddHoN4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uq3xkCyExr0bAf02PkbcC409sZ8cxS1DxQ077j7t81RnQrHuQWGqD61Kjzbw4iGAy osnXYnbQPKkDkRocy0dLSsE6g4mjgplWyvHTfps1/yHrMuU8l12yd4Jz06l3UhBRta Lz3HVMqZUAYcUKgn3fLDdfFven/MjaKgJ4N3VasBaJ0c+zXi0GC02JwGlczDokgzuY aT9jG+99ppj8P1wT0HzIeoCRUHsVyhTzibT6OE0IBgoKSOMrtf/MUSU7DgsAGFBfJ6 ZmFnkf8mDDQwnOmR19JQTfEmfnXGht80yA+CfvAjtdX0+deKZTbdM7sN5Aqwj72Xm2 eWGx9fpgBsk9g== From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: Linus Torvalds , Peter Ujfalusi , stable@vger.kernel.org, Jarkko Sakkinen , Peter Huewe , Jason Gunthorpe , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] tpm: tpm_tis: Fix UPX-i11 DMI_MATCH condition Date: Sat, 12 Aug 2023 02:40:01 +0300 Message-Id: <20230811234002.2656180-2-jarkko@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230811234002.2656180-1-jarkko@kernel.org> References: <20230811234002.2656180-1-jarkko@kernel.org> MIME-Version: 1.0 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_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773978542827788314 X-GMAIL-MSGID: 1773978542827788314 From: Peter Ujfalusi The patch which made it to the kernel somehow changed the match condition from DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01") to DMI_MATCH(DMI_PRODUCT_VERSION, "UPX-TGL") Revert back to the correct match condition to disable the interrupt mode on the board. Cc: stable@vger.kernel.org # v6.4+ Fixes: edb13d7bb034 ("tpm: tpm_tis: Disable interrupts *only* for AEON UPX-i11") Link: https://lore.kernel.org/lkml/20230524085844.11580-1-peter.ujfalusi@linux.intel.com/ Signed-off-by: Peter Ujfalusi Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index ac4daaf294a3..3c0f68b9e44f 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -183,7 +183,7 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = { .ident = "UPX-TGL", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "AAEON"), - DMI_MATCH(DMI_PRODUCT_VERSION, "UPX-TGL"), + DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01"), }, }, {}