From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95BE3606A322 for ; Thu, 3 Dec 2026 05:03:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=fHbNpbn/; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=L0NIOsGN Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 67BA56F562; Thu, 3 Dec 2026 05:03:45 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ilK-6yRuq8b0; Thu, 3 Dec 2026 05:03:44 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org AD9796F60C Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796274224; b=IziisLj+s7CSHjZSThZtF7eS8WwuhOIkoqZGbuEEWb2pWxsuLzseyWtc8MCu7nWJ6etr TWDFH17+hG5rydnjPOS9H50CCnE9GkqZvMF9l1yPJq4/0C/ThZBug9G8xn6JgVznWAjV5 fZcACR+yoWkLO7owpDDDuwW2q8uaMA6FezofKQpOchBBMWp9yKqy9a7GQX+NEY3Qw7OS2 kcBH2W/VuPXbg/t+YY+tPr7tCri2F7a/OtdRFR3SgUmSs+Gb7rsvunbpeVo+5HcFYl4ze e0tVPUNsvvPPBXL86EbTnFlIxgl60kmiNIdLkEN3Pf8lxKufE0/9bMdm6dYqlfoq0Vg== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796274224; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Received: Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type: X-Mailman-Approved-At:X-BeenThere:X-Mailman-Version:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=8YnjoqJgLv+TAF4pffbF3nRI+WXp6R5eCz3oeN3n2ws=; b=M7NhNVkOIEzr+viQqIE6BU89Z7/WWcqjnk/0pYN5pH11Athfp0N37QXz3G3FxNz8vs5n F4g6E1vuLMAAODVsEjZJHdrIN9ZqRc+yqFijW8utRNBSKLM1+LdBZCMApumuo2XlkZqKO +0yxrmw8IBM33K9zMKMKeEBtGMflXe7cFHh8evEWw/0hOhMBUt03lP5nsDDPqU+If8Vz9 /Fz3u1R8iNtRty80XPcRIb0H1/PX8kLIBUwPgoPAeBW2hdckAP183PsxoYLxMvbMR7uRq KBuh8NQskwoFv65KLDaivyqAhZpH9p2tTCXXzHNnU59FXX1IRLF3cFm8ac+pQKXxc2g== ARC-Authentication-Results: i=1; smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796274224; bh=8YnjoqJgLv+TAF4pffbF3nRI+WXp6R5eCz3oeN3n2ws=; h=Date:Subject:From:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=fHbNpbn/DO8NuluVlnCPbp4BDisoFirHKO+fK7WtkB3jwTgnxjUthK55EYNCKIAdr YpTAQT2Mb6cEXJyI2YwLo4Kg4FqyxRVLaMxMWuHpoLuubJNB+PFRfhi5O7iRs6HVix Sm6KYe7/CzNO8r80zi/ziX8EQvnNHjK147yPTQbDAAglzYPwyvGhs/3uXS0+z4rj5f 4XlAtYkmB2WeJpnG2f/qYnUG243gx0NzaDjGeUh28Tzsg8iGspDsOx2khdc6JQvo+7 HKeApdHlWN1Wbol6VQzEa5MXIMPz1KMGxFoDaU611/FqOnSaEsovpyizSEwcsXryHc 2lPWHiF/LhsJA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id AD9796F60C; Thu, 3 Dec 2026 05:03:44 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists1.osuosl.org (Postfix) with ESMTP id 3394739B for ; Thu, 3 Dec 2026 02:21:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 25CE350482 for ; Thu, 3 Dec 2026 02:21:58 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id fPfHKqufTqKk for ; Thu, 3 Dec 2026 02:21:57 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 8231450479 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip="2607:f8b0:4864:20::1346" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::1346; helo=mail-dy1-x1346.google.com; envelope-from=3q9iqawgkboorv2z0s60u22uzs.q208-p227zw676.8-p227-352xsq7.25u@flex--dholmesm.bounces.google.com; receiver= Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=L0NIOsGN Received: from mail-dy1-x1346.google.com (mail-dy1-x1346.google.com [IPv6:2607:f8b0:4864:20::1346]) by smtp4.osuosl.org (Postfix) with ESMTPS id 8231450479 for ; Thu, 3 Dec 2026 02:21:57 +0000 (UTC) Received: by mail-dy1-x1346.google.com with SMTP id 5a478bee46e88-3869865a304so18166092eec.0 for ; Wed, 02 Dec 2026 18:21:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796264516; x=1796869316; darn=lists.u-boot-project.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=8YnjoqJgLv+TAF4pffbF3nRI+WXp6R5eCz3oeN3n2ws=; b=L0NIOsGNH/peFVsqlUWMnPXHpiYmwVFDSCMGC85vr4qzdU1rRPUuhT2a0bxwMgxc0h JK4VyBdAWE2t4Qx9qoOt/vc8EwxcaQZlI14bxHHSAGb23ovgGj05xC5rMMPTbE1C8mBc l1fW8cCJWkr2A3oAposBkhihoh1RODBODjYLSzyD29oRsndynax4rPYXDJF8bwyuQkfO K5NJ0gLQNZlazD3gertSarR+NSxRKfualOh5NLavRsXoQvTXkIQR3XfM8dSvRjOulBIx YZOm/V43JWBrDk78bDMGS4hVP3vEE6W6vvw9mIZhOJkxGqXkNwN4/WNHm28Xfln43Dtv cxAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796264516; x=1796869316; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=8YnjoqJgLv+TAF4pffbF3nRI+WXp6R5eCz3oeN3n2ws=; b=cfcUblU+l2NvnMaWgl3Oc2m+cruScoUxtwZOKxUUDMnVRRwuHed8ZrSvYPWJTZd5uK PPhgY7YgRsa0xHTGWaTEmomqOSfBck33/vJEnj7FZmOCSbDp1yZVsOnB9WodHBBdRIxh ppw8zM37G/LOrqlV8jOqPCNPYPtRupalNGHQLne4wsXvqnw299njCbloLT3tgZUSmnsC z+yrYUrn82xhQZGhw55eUDYHzgMrWA3ux/TgNnR2YgI9PQxRHVsxNUIgbKdMw2KE4mOc JHE4YXCzqAC4NgfCbLvcm6p/77YnDQhm8Em+Kn+9PkPXS3jjCQLq1TzkLaNwPEayvkT/ bbAw== X-Gm-Message-State: APuU4Z8LpiV6BxU7oVZU1aagdP/9oAUWAptq/kQidb/MRcQIy2NRfKwk FFAG/to7yJNiZHu7ciDYi9OjfOzGsU/XTkzyoqjHMDHmzumYIWSy/Hpa9r1RY5snY7f8T1mv6Pj GmP80CWuNqYFaev41SjFWmQ1FaG77ybbL61HHuwi8XUzbpA++Fs38fLYgWzoijVydVIA6Tr2HR7 tRHbodC+vU6zNLw0/Se691MOo4hKY4HnzxEi68UqJLj17o19v4P5LJ8PBOFVw= X-Received: from dybla7.prod.google.com ([2002:a05:7301:1a87:b0:381:610e:404b]) (user=dholmesm job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7301:416:b0:356:7ddb:2e54 with SMTP id 5a478bee46e88-38570f27b33mr41631267eec.29.1796264515678; Wed, 02 Dec 2026 18:21:55 -0800 (PST) Date: Thu, 03 Dec 2026 02:20:38 GMT X-Archived-By: Mime-Version: 1.0 Message-ID: <20261203022028.01-00-dholmesm@google.com> Subject: [PATCH 0/2] tpm: Fix MMIO TIS reg size parsing and absent-device detection From: Dan Holmes-Mitra To: u-boot@lists.u-boot-project.org Cc: Ilias Apalodimas , Tom Rini Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Thu, 03 Dec 2026 05:03:38 +0000 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Two small fixes for the TPM 2.0 TIS MMIO probe path: 1. tpm2_tis_mmio: Use dev_read_addr_size_index(dev, 0, &sz) instead of dev_read_u64(dev, "reg", &sz), which read the base address as the region size or failed on 32-bit #address-cells/#size-cells DT nodes. 2. tpm2_tis_core: Require status != 0xff in tpm_tis_wait_init() so unpopulated MMIO reads (all-ones, which has TPM_ACCESS_VALID set) do not falsely pass init, and reject 0xffffffff / 0x00000000 TPM_DID_VID values with -ENODEV after releasing locality. Tested: - Built qemu_arm64_defconfig with CONFIG_TPM_V2=y, CONFIG_TPM2_TIS_MMIO=y. - Checked with scripts/checkpatch.pl --strict --u-boot (0 errors, 0 warnings). Dan Holmes-Mitra (2): tpm: tpm2_tis_mmio: Read reg size via dev_read_addr_size_index() tpm: tpm2_tis_core: Reject 0xff TPM_ACCESS and invalid DID/VID drivers/tpm/tpm2_tis_core.c | 6 +++++- drivers/tpm/tpm2_tis_mmio.c | 10 +++------- 2 files changed, 8 insertions(+), 8 deletions(-) base-commit: d1caced3a435607435cb7969e34499051a4ac1e6 -- 2.56.1.911.g883d8bcb20-goog