From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C55C722423A for ; Thu, 9 Jul 2026 12:50:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783601425; cv=none; b=Pnxrhfu9OOUCglvrlrdaNMqSM5O8UrxftdOngGQS3hIn8l46PL1Az+sw6EWWNAUoRpvgMf6/mK8Mf4DsAiOohfpO3GGw2oKhODUL2mjGmjzYqAu55rSmL+WEdVs3wWzvljz3Tsn6MU2V8mLpEAvDJmNDP9L43wfRsm5vH//4EaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783601425; c=relaxed/simple; bh=EXfM0v4EhcxQ+tklDnuDMs1Avw18MIFqmglueS1d490=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ek53g4L8O/Te+EttsPfkYmhFYk2+ZpzDcucNVOuU3sukRqHt74Sf5wDZDy3Y+AePSZz9jGV/W6yN8nPqdEpy62GubYYM9h0OgyeamxGwHUEXtHCie2j9WKbv4wnTZgEE633n4qjUMB+pHa3zDrn4CMvrjrB+a8vfGJmzKgqxoYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=starlabs.systems; spf=pass smtp.mailfrom=starlabs.systems; dkim=pass (2048-bit key) header.d=starlabs-systems.20251104.gappssmtp.com header.i=@starlabs-systems.20251104.gappssmtp.com header.b=uiTBm7Bo; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=starlabs.systems Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starlabs.systems Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=starlabs-systems.20251104.gappssmtp.com header.i=@starlabs-systems.20251104.gappssmtp.com header.b="uiTBm7Bo" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-4758b2a9e2aso512252f8f.2 for ; Thu, 09 Jul 2026 05:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=starlabs-systems.20251104.gappssmtp.com; s=20251104; t=1783601421; x=1784206221; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=YwbEF25FIKLXdl4gOi13bRERXBt3gyz2qIndX0FIOYg=; b=uiTBm7Bo9+tuX/2ZqQ60t2r7Fn5cZBujaMnd8Y8Ey60OZC195iV2FVTgoT42/o4tYQ O2o4mcfw84aulDZotlr/IoEs+L/nKruF5m5nLhrAlj0XX7H7fqZFemu6Tfq6OfnLCO6R vEcwtIA1H2dYZOBL2rQ0UPsTJTHg5KlZk9eDKMKezULM2x5k1XqAhwRH2g/hKs4o+lK6 ISQOpDZnU1ZR2Cu7IcWZ46c2JseDoLpxrcxuZS6B2TkZ4hdzix6oKiH1y2AX+LUN7L6+ OGjIvgzXD8+T39klXNN6Tm7TGZtPipUEADVMOlVu9V29oJ8xmWiZ/LbtebUpJnIv6JJ3 HaYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783601421; x=1784206221; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YwbEF25FIKLXdl4gOi13bRERXBt3gyz2qIndX0FIOYg=; b=rl2w5AemYT121jlPV0/bB/yIR2LPMMHRC0A2ygVkM/eselMcJyDrSbHjeztEXcC6fY Wad6n4NqxAi/XgatEQXp0lhQQL0iYABfZXJFd0acCmX1QSWbqglB8TdmSNTKos9g26T+ ieZcrbxfjOV5FMn2FwsZjPoR1ZwziA6rVIOsY1sIenhhXXE6PG5L8PPxGmEcqcKMnah+ uED3vEzzrC0aTKkQabMeVhAjY+6jMUm3fWQ3rnMYZoiqapVkIRYWQ8SfwSwSguK7nX0l EWNE/K163KtXtby2Hxwk19yLL6AdUucw1WgLqEaWEATHCRWO5Omv5N39BldhD4hHDFpO aToQ== X-Forwarded-Encrypted: i=1; AHgh+RoysEw0lZLwuWQxSMIiYoFSWnoxdTowmtEqOPtfuPsuCCP7rlFGubVRIIEWkMsDnzx4p0p8rLbbNoDn1VI=@vger.kernel.org X-Gm-Message-State: AOJu0YxQEfZgVE6p0i17m7kkQxeH0SoFxpcKpNOBzd1XmLzKoiljwXNA k85DPQu55o8xjdPILPnU46xecYGcWAOeb0Te45a56pgk3K1pUqB0csE/dMqnyt16rQ== X-Gm-Gg: AfdE7cnVxd3HqJ0oDXcX3kAROwXa2NwIP5yKv3FGoEtfhpyW2Y1/sg21SE0lCWok9xU ZASbSbRaEaTPRq8k8J13w9dr1xDwABJyVOshSwke3ShtI9qo2tsPUMnmmk7NrpVJeKk3TD9HcrX hbUxWTgJV2OckAs8Mg6nKznC9rQzlHQwvanEcnPjziSuYM3Jc3IaVSMTGMs6SwTD3fjakIwd8Qv ifVYHPlFIfGGcOr7meeoFwK2jHmS1/HY4gB/5TbWys4n3MmpsefOHXgd95v8oOBWcqRy66PLfim MajWrMmufhQ0seHNKMpwGDjUJGkE1IksB+953VofCwaB9fcYSZbUNqCRldTgAyow464hAKho0vc 9AILJIXBqWoU1JH4ypDwzZnJy22MOcznGAylvJraQ2pPFChgeOC4V8dFdugZx7zDst3d6u9NH0a cPV5agnKgR1pq3mgw9b6Un/Il66cfY18R451vnSsrakmkazivYjn+/JdUY X-Received: by 2002:a05:6000:4027:b0:47d:e548:9b2 with SMTP id ffacd0b85a97d-47df071b752mr7412876f8f.2.1783601420418; Thu, 09 Jul 2026 05:50:20 -0700 (PDT) Received: from horizon.localdomain ([150.228.38.212]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47aa0f21543sm47589451f8f.35.2026.07.09.05.50.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 05:50:20 -0700 (PDT) From: Sean Rhodes To: platform-driver-x86@vger.kernel.org Cc: Tzung-Bi Shih , Brian Norris , Julius Werner , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Sean Rhodes , linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev Subject: [PATCH v2 0/1] coreboot CFR firmware attributes Date: Thu, 9 Jul 2026 13:50:16 +0100 Message-ID: X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This adds a firmware-attributes driver for coreboot CFR tables. Changes since v1: - Add explicit includes for the helper APIs used by the driver. - Use __free(kfree) and no_free_ptr() for EFI name allocation. - Use isascii() for EFI variable name validation. - Convert the EFI write path mutex to scoped_guard(). - Rename the label/current-value parser to avoid default-value ambiguity. - Use devm_kzalloc() and devm_mutex_init() for the driver state. - Clarify that -EOPNOTSUPP after a successful EFI write is the reboot-required path. Tested on Star Labs Lite GLKR, firmware 26.07, Linux 6.17.0-35-generic: loaded coreboot_table and coreboot-cfr as test modules, verified firmware-attributes sysfs exposure, fwupd BIOS settings enumeration, and the reboot-required write path with debug_level. Thanks, Sean Sean Rhodes (1): platform/x86: Add coreboot CFR firmware attributes MAINTAINERS | 6 + drivers/firmware/google/coreboot_table.h | 45 -- drivers/platform/x86/Kconfig | 13 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/coreboot-cfr.c | 986 +++++++++++++++++++++++ include/linux/coreboot.h | 147 ++++ 6 files changed, 1153 insertions(+), 45 deletions(-) create mode 100644 drivers/platform/x86/coreboot-cfr.c