From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795793330; b=mJgtcA2oTFYb7AVOM+vh6NkDxexjLrMuiLpE3Hw/U6+x60TwNap5s7YHcPMH7d+PJP0i RpkXJEPUA0MUCpFhSzDWLtNSEteIxiAehastsrB7vGw8BAQ0Pd6GF7vGtknHwzwRT28qV cJeQsUesHnMq8kGrVePyYqkvi4S00swPYnKnO8vChTFRmrKjUYHyTfABomPLPTYQoSi3l vzfmZlQ9WB4gA2F7LETxlNm/+YNTi6I/cr+rG4qHwsPO2w0hRXchjCJ5EenZZv+JBVth5 /bqjTcRk15BYOBuXZw54/5TJN6/ZFx9Eo6g2O5nt2jauIseeAEAC1wjo93VRyeRvZeA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795793330; h=DMARC-Filter:Received:Received:DKIM-Signature:From:Date:Subject: MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id: References:In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature: X-Developer-Key; bh=x2ph3tJO0wF67u279xWMKTDVsi25JZGANl4AM3ZKeTI=; b=Yo/E1K6zjqxRZI02stPJateUcQCArUg8eoZim/fFim6vIBzf9j+qQJ+E2+ciz4EkzXCZ tT5xPyND0QsloQdgRpB7OqPLflOmusvojfLXmZHpcFO/MIKZWBlosoJBEjfdssJDF7lyf teU7Z9ACjFqCNI4GLPdBYZK/LPqPmeKUXPlWSJIV3jiuMJJjxhDL5Yt1USIDyyuW8kkpB suImJKSW7U/nYWi9bYB/p6BqPoxEhxiL6djtpb4W7wu4C/ZM6/TqFpNT33iGoEG2I5x26 +6NPr7Ga8KBI7uU1AO3qXYm1UM0Tcyg/Z5A0GdKAxaV7j5lBjOruNlRjQS83M1gthiQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=TptThkPa; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E25C060A2611 for ; Fri, 27 Nov 2026 15:28:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E25C060A2611 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=TptThkPa Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 83B9D1E4D; Fri, 27 Nov 2026 07:28:46 -0800 (PST) Received: from e129823.arm.com (e129823.arm.com [10.2.213.3]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 931F83F632; Fri, 27 Nov 2026 07:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795793329; bh=eSKgfpq6erMkhPE8BARjc4AZ9OoO6f1AzBEKGIpJZBw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=TptThkPa5bdTNpVZLD+TKE9VM5gPrnRS57lgKxBXKz34hvBYGDu+lL1cPuYjiBV7W 03zMnANTJUTuvhMstMRvk+TRH0euFL4gV8/DZvnHBwFyTEzz/tLs5WugyVrbh4ZpKu jWLwmjOD0ZEXapgLW14T/OAORmwWwlnINp6NUOG8= From: Yeoreum Yun Date: Fri, 27 Nov 2026 15:28:33 +0000 Subject: [PATCH RFC v2 3/6] Documentation/ctlv: introduce ctlv-attestation-firme family X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261127-firme_interface-v2-3-ab88b2d0b4e0@arm.com> References: <20261127-firme_interface-v2-0-ab88b2d0b4e0@arm.com> In-Reply-To: <20261127-firme_interface-v2-0-ab88b2d0b4e0@arm.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Lorenzo Pieralisi , Catalin Marinas , Suzuki Poulose , Steven Price , Sami Mujawar , "Aneesh Kumar K.V" , Jiri Pirko , GONG Ruiqi , Jason Gunthorpe , Mark Brown , Yeoreum Yun X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4674; i=yeoreum.yun@arm.com; h=from:subject:message-id; bh=eSKgfpq6erMkhPE8BARjc4AZ9OoO6f1AzBEKGIpJZBw=; b=owEB7QES/pANAwAKAW3Vw9FaxTEzAcsmYgBrCaGncmU1WCQoOSsu79ygwoHEK70Kvtg7+xIBK t939vLQOu+JAbMEAAEKAB0WIQQtg+CS3QUzuFh1pJ1t1cPRWsUxMwUCawmhpwAKCRBt1cPRWsUx M9C2DACyERumOIWTl5y7byHWGEK9271zKshtGaenUWU01avZv1IUY+jw7uXLWjxTl/DCqnTlwLx PgwMQYa+7qzlfLxh31AyjyzQKbqiLgwA9ddvGOrcEciU/huYCYssiAbzGCVDY5+y5njoOhYx6Vv y9yqzadT+DnvVolMvtwJp4/ye4a5xU5kHGYqJjZz7YH99vWeNtQCkTio0ykl25flvFLVY1ANK27 SoVd25QwkLzHJ9hoQDD/oHd3+rPrINPNJwgR0VArZGnPNx1wKeLNzatMiJplrMZImYhT+xdvqrN ztqGbwftYpaJm8UOGErrUqhoHQ8aJcZ70VKZlBhRZ1tTr++dog9f+M4mpJNeM1pEkfGsCnLcP8k IJAWEKUqi5nILh15NVi1IRU+WhDbZmuF5+VK1491O2GCWQlJWK2L/if5Dax/PN5EOVkxsOyStDU snd/9IEYQ+N1krxb5ic78n3+PMOQsY00IhW0f/R0VYmPGCCrI7fv2Tu8LQVf5/EYiBkqg= X-Developer-Key: i=yeoreum.yun@arm.com; a=openpgp; fpr=2D83E092DD0533B85875A49D6DD5C3D15AC53133 Introduce ctlv-attestation-firme family and auto-generated abi files via make -C tools/ctlv regen. Signed-off-by: Yeoreum Yun --- Documentation/ctlv/abi/ctlv-attestation-firme.yaml | 19 +++++++++++++++++++ Documentation/ctlv/abi/families.registry.yaml | 1 + Documentation/ctlv/families.yaml | 1 + Documentation/ctlv/generated-files.yaml | 11 +++++++++++ Documentation/ctlv/specs/ctlv-attestation-firme.yaml | 20 ++++++++++++++++++++ include/uapi/ctlv/ctlv_families_gen.h | 1 + 6 files changed, 53 insertions(+) diff --git a/Documentation/ctlv/abi/ctlv-attestation-firme.yaml b/Documentation/ctlv/abi/ctlv-attestation-firme.yaml new file mode 100644 index 0000000000000..68acbd17b9341 --- /dev/null +++ b/Documentation/ctlv/abi/ctlv-attestation-firme.yaml @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) +%YAML 1.2 +--- +# Checked-in ABI snapshot of the ctlv-attestation-firme family, from +# Documentation/ctlv/specs/ctlv-attestation-firme.yaml, written by +# "make -C tools/ctlv regen". +# +# Updating the file is how a UAPI change gets reviewed; an update that +# removes or renumbers anything, narrows a bound, or makes a member required +# is an ABI break, whatever the file says afterwards. +family: {name: ctlv-attestation-firme, id: 6, inherits: ctlv-attestation} +enums: + evidence-vendor-format: {platform-attestation-token: 1} +records: + device-info: + id: 0x00010000 + fields: + version: {number: 1, type: uint, max: s32-max} +fills: {device-info: device-info} diff --git a/Documentation/ctlv/abi/families.registry.yaml b/Documentation/ctlv/abi/families.registry.yaml index 2146877a4f325..0784747a3ac87 100644 --- a/Documentation/ctlv/abi/families.registry.yaml +++ b/Documentation/ctlv/abi/families.registry.yaml @@ -10,3 +10,4 @@ families: - ctlv-test - ctlv-test-child - ctlv-attestation-sim + - ctlv-attestation-firme diff --git a/Documentation/ctlv/families.yaml b/Documentation/ctlv/families.yaml index 1fd60280cf037..49121305e3282 100644 --- a/Documentation/ctlv/families.yaml +++ b/Documentation/ctlv/families.yaml @@ -20,3 +20,4 @@ families: - ctlv-test - ctlv-test-child - ctlv-attestation-sim + - ctlv-attestation-firme diff --git a/Documentation/ctlv/generated-files.yaml b/Documentation/ctlv/generated-files.yaml index 2621d9fbb8327..b286e28c2b5b7 100644 --- a/Documentation/ctlv/generated-files.yaml +++ b/Documentation/ctlv/generated-files.yaml @@ -67,3 +67,14 @@ families: tools/testing/selftests/attestation/ctlv_attestation_sim_user_gen.h user-source: >- tools/testing/selftests/attestation/ctlv_attestation_sim_user_gen.c + + - name: ctlv-attestation-firme + source: Documentation/ctlv/specs/ctlv-attestation-firme.yaml + outputs: + uapi-header: include/uapi/ctlv/ctlv_attestation_firme_gen.h + kernel-header: drivers/attestation/generated/ctlv_attestation_firme_gen.h + kernel-source: drivers/attestation/generated/ctlv_attestation_firme_gen.c + user-header: >- + tools/testing/selftests/attestation/ctlv_attestation_firme_user_gen.h + user-source: >- + tools/testing/selftests/attestation/ctlv_attestation_firme_user_gen.c diff --git a/Documentation/ctlv/specs/ctlv-attestation-firme.yaml b/Documentation/ctlv/specs/ctlv-attestation-firme.yaml new file mode 100644 index 0000000000000..fdc8022851a43 --- /dev/null +++ b/Documentation/ctlv/specs/ctlv-attestation-firme.yaml @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) +%YAML 1.2 +--- +# +# The attestation device of FIRME for host: platform attestation token (PAT) +# +family: ctlv-attestation-firme +inherits: ctlv-attestation + +enums: + # Fills ctlv-attestation's evidence-vendor-format. + evidence-vendor-format: + # platform attestation token. + - platform-attestation-token + +records: + # Fills ctlv-attestation's device-info. + device-info: + # FIRME attestation service version. + version: uint(..s32-max) diff --git a/include/uapi/ctlv/ctlv_families_gen.h b/include/uapi/ctlv/ctlv_families_gen.h index c90f98173c706..e4c0b06a6d7eb 100644 --- a/include/uapi/ctlv/ctlv_families_gen.h +++ b/include/uapi/ctlv/ctlv_families_gen.h @@ -17,6 +17,7 @@ enum _ctlv_family { CTLV_FAMILY_TEST = 3, CTLV_FAMILY_TEST_CHILD = 4, CTLV_FAMILY_ATTESTATION_SIM = 5, + CTLV_FAMILY_ATTESTATION_FIRME = 6, }; #endif /* _UAPI_CTLV_CTLV_FAMILIES_GEN_H */ -- 2.43.0