Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1018848rwd; Wed, 7 Jun 2023 09:50:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cHASIzhGBKRaV5KNZvfE3R22KFHozn5QrcQ6iOBOr2aF4QTC0itvuUbGRQ17+0yeufhiR X-Received: by 2002:a17:90b:e0d:b0:256:8e2d:1ec8 with SMTP id ge13-20020a17090b0e0d00b002568e2d1ec8mr5061038pjb.41.1686156621628; Wed, 07 Jun 2023 09:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686156621; cv=none; d=google.com; s=arc-20160816; b=KoVs5IaZWJiue79E7uUn783a9bC1HoeOgP1q6miYZFdXvfgv7wDUHwvcChGer1eAmS AeqTHWeWitjiO3eIYsAtayYQ65y3EQOakz/GwQ6zYcu5nbwCta2jT4/i3fdxZCOwLYE2 mTX4OtgbeFBv788JEL+YElKsuBlhyZfYzKwljjMr5kq+ovy625Y1/Mpo5fZwxuu3zHeZ HVngLOPSWMMUDn87UsJsmMUQKmdhnL3WD0WrfEF6HaDnrvkelBUfNAiDVC1snFN7vnrc ctUmf8mvXx7SvHFR5X73C+JYUqvXW10ZaeTk905G0qFX2zK5MpVi05difSDAs28FR18m zmLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:cc:to:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=Em8C8hCy7lnUmqFcW3pJDNHAopCyuFwz+cJIxNERAdc=; b=VoCUeAF3vBBb+YLBZVrMu3GYfDo9Facu5uNTZuu4D5v76rAf1MlT5RRkxWZpCpLpOi 2LleunKDRYO6dFm3sOil14/X2k1zTk36FK/HsFmyAR0aQXTCINllmpMI3w+Sz+zdRkKS 1QFgGNeWB4NQm3BpyOWYBcxPunjEHKGDiYZcazY8XgIMC9Jjt0ID11X+w59aHsJ9kTBv 9gG24zZgF8OudMlyPbQo28ZaoVI+Zt+rxQcpqZB31oHoeSk09/Hypq24WWSLz+7DEk82 3D3+rtCGg7/pAj/JCgjssuyRlxNY4IeHMv7K0tpGFZ1Lo6CuMyqv+rFTtoMGZzizq2cl E9Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="IA/k9fLj"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca5-20020a17090af30500b00255d8dda719si1343729pjb.148.2023.06.07.09.50.08; Wed, 07 Jun 2023 09:50:21 -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="IA/k9fLj"; 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 S241543AbjFGQPZ (ORCPT + 99 others); Wed, 7 Jun 2023 12:15:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234951AbjFGQPY (ORCPT ); Wed, 7 Jun 2023 12:15:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31BDD1BEF; Wed, 7 Jun 2023 09:15:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C05AF614D3; Wed, 7 Jun 2023 16:15:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A50CC433D2; Wed, 7 Jun 2023 16:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686154522; bh=Nw67u17v+ICwqaNY1RqAFUyDGxpkSGDXq3fprBLEPag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IA/k9fLjhb6VMhvJDYK3cYyav0NmL5B1JH0VyC5peNtLTPAoEFQRxBA9JjRjogHQ3 SpNgiNx36bNqJ4YSWlCEKfREf5D+t1GrI+MXplKCW8/iupGHC3H6D4tS+OYYMZyFNZ 74MdvfZhTajycdNXS9rYKDmqRVOzrqBpRaTsPlQ05XPqdaFdTPHI/71FAaYBiwD5rg dLi9OnGPVDxWXKntFtD9dFp212GGkULUecSZOlxCBQ12zIbwkCMAz+HI+ikV8rQGnJ FNdIfvxhKDsEZ0L325hvPlF1NuDKm3Q0IECvO4Yi6HLxbN3ezV0vqdIoS9DD0rI5+7 4f2rPamgnBhoA== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 07 Jun 2023 19:15:18 +0300 Message-Id: From: "Jarkko Sakkinen" To: "Chris Packham" , "Lino Sanfilippo" , "Sasha Levin" , "Peter Huewe" , "Jason Gunthorpe" Cc: "linux-integrity@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: New kernel warning after updating from LTS 5.15.110 to 5.15.112 (and 5.15.113) X-Mailer: aerc 0.14.0 References: <7bb470fa70ff5944b7b9b82ac17d759819bccdf2.camel@kernel.org> <0bdf509f-f71a-e3b2-b9fb-4a726021219b@alliedtelesis.co.nz> In-Reply-To: <0bdf509f-f71a-e3b2-b9fb-4a726021219b@alliedtelesis.co.nz> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Jun 7, 2023 at 12:04 AM EEST, Chris Packham wrote: > Hi Jarkko, > > On 6/06/23 21:39, Jarkko Sakkinen wrote: > > On Sun, 2023-05-28 at 23:42 +0000, Chris Packham wrote: > >> Hi, > >> > >> We have an embedded product with an Infineon SLM9670 TPM. After updati= ng > >> to a newer LTS kernel version we started seeing the following warning = at > >> boot. > >> > >> [=C2=A0=C2=A0=C2=A0 4.741025] ------------[ cut here ]------------ > >> [=C2=A0=C2=A0=C2=A0 4.749894] irq 38 handler tis_int_handler+0x0/0x154= enabled interrupts > >> [=C2=A0=C2=A0=C2=A0 4.756555] WARNING: CPU: 0 PID: 0 at kernel/irq/han= dle.c:159 > >> __handle_irq_event_percpu+0xf4/0x180 > >> [=C2=A0=C2=A0=C2=A0 4.765557] Modules linked in: > >> [=C2=A0=C2=A0=C2=A0 4.768626] CPU: 0 PID: 0 Comm: swapper/0 Not tainte= d 5.15.113 #1 > >> [=C2=A0=C2=A0=C2=A0 4.774747] Hardware name: Allied Telesis x250-18XS = (DT) > >> [=C2=A0=C2=A0=C2=A0 4.780080] pstate: 60000005 (nZCv daif -PAN -UAO -T= CO -DIT -SSBS > >> BTYPE=3D--) > >> [=C2=A0=C2=A0=C2=A0 4.787072] pc : __handle_irq_event_percpu+0xf4/0x18= 0 > >> [=C2=A0=C2=A0=C2=A0 4.792146] lr : __handle_irq_event_percpu+0xf4/0x18= 0 > >> [=C2=A0=C2=A0=C2=A0 4.797220] sp : ffff800008003e40 > >> [=C2=A0=C2=A0=C2=A0 4.800547] x29: ffff800008003e40 x28: ffff800009395= 1c0 x27: > >> ffff80000902a9b8 > >> [=C2=A0=C2=A0=C2=A0 4.807716] x26: ffff800008fe8d28 x25: ffff8000094a6= 2bd x24: > >> ffff000001b92400 > >> [=C2=A0=C2=A0=C2=A0 4.814885] x23: 0000000000000026 x22: ffff800008003= ec4 x21: > >> 0000000000000000 > >> [=C2=A0=C2=A0=C2=A0 4.822053] x20: 0000000000000001 x19: ffff000002381= 200 x18: > >> ffffffffffffffff > >> [=C2=A0=C2=A0=C2=A0 4.829222] x17: ffff800076962000 x16: ffff800008000= 000 x15: > >> ffff800088003b57 > >> [=C2=A0=C2=A0=C2=A0 4.836390] x14: 0000000000000000 x13: ffff8000093a5= 078 x12: > >> 000000000000035d > >> [=C2=A0=C2=A0=C2=A0 4.843558] x11: 000000000000011f x10: ffff8000093a5= 078 x9 : > >> ffff8000093a5078 > >> [=C2=A0=C2=A0=C2=A0 4.850727] x8 : 00000000ffffefff x7 : ffff8000093fd= 078 x6 : > >> ffff8000093fd078 > >> [=C2=A0=C2=A0=C2=A0 4.857895] x5 : 000000000000bff4 x4 : 0000000000000= 000 x3 : > >> 0000000000000000 > >> [=C2=A0=C2=A0=C2=A0 4.865062] x2 : 0000000000000000 x1 : 0000000000000= 000 x0 : > >> ffff8000093951c0 > >> [=C2=A0=C2=A0=C2=A0 4.872230] Call trace: > >> [=C2=A0=C2=A0=C2=A0 4.874686]=C2=A0 __handle_irq_event_percpu+0xf4/0x1= 80 > >> [=C2=A0=C2=A0=C2=A0 4.879411]=C2=A0 handle_irq_event+0x64/0xec > >> [=C2=A0=C2=A0=C2=A0 4.883264]=C2=A0 handle_level_irq+0xc0/0x1b0 > >> [=C2=A0=C2=A0=C2=A0 4.887202]=C2=A0 generic_handle_irq+0x30/0x50 > >> [=C2=A0=C2=A0=C2=A0 4.891229]=C2=A0 mvebu_gpio_irq_handler+0x11c/0x2a0 > >> [=C2=A0=C2=A0=C2=A0 4.895780]=C2=A0 handle_domain_irq+0x60/0x90 > >> [=C2=A0=C2=A0=C2=A0 4.899720]=C2=A0 gic_handle_irq+0x4c/0xd0 > >> [=C2=A0=C2=A0=C2=A0 4.903398]=C2=A0 call_on_irq_stack+0x20/0x4c > >> [=C2=A0=C2=A0=C2=A0 4.907338]=C2=A0 do_interrupt_handler+0x54/0x60 > >> [=C2=A0=C2=A0=C2=A0 4.911538]=C2=A0 el1_interrupt+0x30/0x80 > >> [=C2=A0=C2=A0=C2=A0 4.915130]=C2=A0 el1h_64_irq_handler+0x18/0x24 > >> [=C2=A0=C2=A0=C2=A0 4.919244]=C2=A0 el1h_64_irq+0x78/0x7c > >> [=C2=A0=C2=A0=C2=A0 4.922659]=C2=A0 arch_cpu_idle+0x18/0x2c > >> [=C2=A0=C2=A0=C2=A0 4.926249]=C2=A0 do_idle+0xc4/0x150 > >> [=C2=A0=C2=A0=C2=A0 4.929404]=C2=A0 cpu_startup_entry+0x28/0x60 > >> [=C2=A0=C2=A0=C2=A0 4.933343]=C2=A0 rest_init+0xe4/0xf4 > >> [=C2=A0=C2=A0=C2=A0 4.936584]=C2=A0 arch_call_rest_init+0x10/0x1c > >> [=C2=A0=C2=A0=C2=A0 4.940699]=C2=A0 start_kernel+0x600/0x640 > >> [=C2=A0=C2=A0=C2=A0 4.944375]=C2=A0 __primary_switched+0xbc/0xc4 > >> [=C2=A0=C2=A0=C2=A0 4.948402] ---[ end trace 940193047b35b311 ]--- > >> > >> Initially I dismissed this as a warning that would probably be cleaned > >> up when we did more work on the TPM support for our product but we als= o > >> seem to be getting some new i2c issues and possibly a kernel stack > >> corruption that we've conflated with this TPM warning. > > Hi, sorry for late response. I've been moving my (home) office to > > a different location during last couple of weeks, and email has been > > piling up. > > > > What does dmidecode give you? > > > > More specific, I'm interested on DMI type 43: > > > > $ sudo dmidecode -t 43 > > # dmidecode 3.4 > > Getting SMBIOS data from sysfs. > > SMBIOS 3.4.0 present. > > > > Handle 0x004D, DMI type 43, 31 bytes > > TPM Device > > Vendor ID: INTC > > Specification Version: 2.0 > > Firmware Revision: 600.18 > > Description: INTEL > > Characteristics: > > Family configurable via platform software support > > OEM-specific Information: 0x00000000 > > > > BR, Jarkko > > This is an embedded ARM64 (Marvell CN9130 SoC) device so no BIOS. The=20 > relevant snippet from the device tree is > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tpm@1 { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 compatible =3D "infineon,slb9670"; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 reg =3D <1>; /* Chip select 1 */ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 interrupt-parent =3D <&cp0_gpio2>; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 interrupts =3D <30 IRQ_TYPE_LEVEL_LOW>; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 spi-max-frequency =3D <31250000>; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }; > > and I can tell you that the specific TPM chip is an Infinieon=20 > SLM9670AQ20FW1311XTMA1 OK, you know what I own that chip in the form of LetsTrustTPM product. I have not used it a lot because of lack of time but I could try to reproduce the bug with that and RPi 3B, or at least see what happens with different hardware platform with the same TPM chip. BR, Jarkko