Message ID | 20240112131857.900734-1-nfraprado@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-24680-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp167416dyc; Fri, 12 Jan 2024 05:21:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfaOAJVmJ1Btksi7jQhZfuDxytTjemn7nCu9mUj6tp991OehO9bgnLosQpBbRU0MrMp5x+ X-Received: by 2002:a05:622a:1828:b0:429:a2e7:d602 with SMTP id t40-20020a05622a182800b00429a2e7d602mr1475724qtc.87.1705065687918; Fri, 12 Jan 2024 05:21:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705065687; cv=none; d=google.com; s=arc-20160816; b=vf8KKVWcgRhfhYf5UmjZxvp5tWRVs+mIkUul4NAvGcTWbzig4fovfWpxy7eVJRyKp1 3QttqjClJIS+i+khKBS5fZkJc5wTkrlFEFSdHia0Ge22KjowIC11kYmGAnluMA9mfDPi PknwOsWqWrtgOpnobdwLwNGR0+qoYVCdQy5hMuaIM/mykyeidj/EIVOgOWXS3YoJ1lvi lFYq89loo48YGwEINLNvsRhSWsU0bgb7+lqT7t587Jg6P8fdX7UVwYTtJJKM/Td3bKdL 3Nk+Vt6JL6mK9b0uGVihM9bjQDvNWrDvG1FEZD4wlVO0K2xA/wHNqd6+vsNnL9tf3aop U1Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=kDqjwlOm1IAU85m3UXqg2WXV2Uwrapbnwo0gEMj3pm8=; fh=s17MhXSmZtbUd35pIugFpSDdSSlzaOUi6y+RD3uHeDE=; b=FCfkPWgm9jUakFQniwuTYRi49xbKLykQ20BVVAjf2ljxp95LCFGWjbaeMxc+QVAXsU nFewuTDs5dN5uDJOclqxq7MNkzXNGEUt7eAmNPjdzcJqPLqK1x0a/lSyugNrG5mWM388 PMMyBo628Dln4ZbeB4oH1UNol5HAIcbqFNHYWaUSVcrEolhwdAuFdmsnZ0mxmkYBMax/ v/aX9+u1QLbJaaDLz2eIR7H/dmwNOmeyPa9zjIzPoYckAkRrkTP/3yaP7eBBfXnDxmNs ZHATeiUcSAk8PATRx2RSbpl/5rDaFI5wSf5m92ovE8xymqLTMueLh3IReGD+KKx+SLu8 LZ0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=uz1bjXYH; spf=pass (google.com: domain of linux-kernel+bounces-24680-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24680-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g15-20020ac87d0f000000b00429d39e3b63si285729qtb.198.2024.01.12.05.21.27 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 05:21:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24680-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=uz1bjXYH; spf=pass (google.com: domain of linux-kernel+bounces-24680-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24680-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B366F1C216E1 for <ouuuleilei@gmail.com>; Fri, 12 Jan 2024 13:21:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40C3D6D1B0; Fri, 12 Jan 2024 13:21:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="uz1bjXYH" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E51459B4D; Fri, 12 Jan 2024 13:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705065670; bh=N49cN0M7bvB/ub5EP9AcuTijLYZG5qsI/dJkk5dugrA=; h=From:To:Cc:Subject:Date:From; b=uz1bjXYHA1bE4HFkpLIXMDhPQhkzVSx2oCCDlhCzkpe5DSFhXckci/NSupTYQI2D2 9RZhwp+nliPfAiB0M3mMmHDGRZLsbYqJUHs0CS7A4VeUSHpUvcbMacoveirsqOni8L bx18j3TvRBwgpqtWWWj2j16CBY1Ioni1yexK8Y4xVaUqwhq/FWxJyIq6OIhPjsiAph FlAnNQCt+Mpr+PAwsq1Jc5WdiK8Cgr2/+g/ZjUD5KIigc/PpHH2FheG+N6nIunZl4I uASvtagGFPuB3kO8jDDf25ZNeC+QeCyRZup/Xn0tDMxutyQkaC8HZNx4k5MskpEmSj BGoGMs83S6CIw== Received: from localhost.localdomain (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id A7EDF3781FE5; Fri, 12 Jan 2024 13:21:01 +0000 (UTC) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> To: Tzung-Bi Shih <tzungbi@kernel.org> Cc: kernel@collabora.com, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, chrome-platform@lists.linux.dev, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com>, Abhijit Gangurde <abhijit.gangurde@amd.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Arnd Bergmann <arnd@arndb.de>, Bjorn Andersson <quic_bjorande@quicinc.com>, Brian Norris <briannorris@chromium.org>, Catalin Marinas <catalin.marinas@arm.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Julius Werner <jwerner@chromium.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Marek Szyprowski <m.szyprowski@samsung.com>, Masahiro Yamada <masahiroy@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Neil Armstrong <neil.armstrong@linaro.org>, Nicolas Schier <nicolas@fjasle.eu>, Nipun Gupta <nipun.gupta@amd.com>, Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>, Umang Jain <umang.jain@ideasonboard.com>, Will Deacon <will@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/7] Allow coreboot modules to autoload and enable cbmem in the arm64 defconfig Date: Fri, 12 Jan 2024 10:18:29 -0300 Message-ID: <20240112131857.900734-1-nfraprado@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787890958817836403 X-GMAIL-MSGID: 1787890958817836403 |
Series |
Allow coreboot modules to autoload and enable cbmem in the arm64 defconfig
|
|
Message
Nícolas F. R. A. Prado
Jan. 12, 2024, 1:18 p.m. UTC
This series adds the missing pieces to the coreboot bus and the module alias generation to allow coreboot modules to be automatically loaded when matching devices are detected. The configs for cbmem coreboot entries are then enabled in the arm64 defconfig, as modules, to allow reading logs from coreboot on arm64 Chromebooks, which is useful for debugging the boot process. Changes in v2: - Added commits for vpd, memconsole and framebuffer drivers to add them to the module device table Nícolas F. R. A. Prado (7): firmware: coreboot: Generate modalias uevent for devices firmware: coreboot: Generate aliases for coreboot modules firmware: google: cbmem: Add to module device table firmware: google: vpd: Add to module device table firmware: google: memconsole: Add to module device table firmware: google: framebuffer: Add to module device table arm64: defconfig: Enable support for cbmem entries in the coreboot table arch/arm64/configs/defconfig | 3 +++ drivers/firmware/google/cbmem.c | 7 +++++++ drivers/firmware/google/coreboot_table.c | 9 +++++++++ drivers/firmware/google/framebuffer-coreboot.c | 7 +++++++ drivers/firmware/google/memconsole-coreboot.c | 7 +++++++ drivers/firmware/google/vpd.c | 7 +++++++ include/linux/mod_devicetable.h | 8 ++++++++ scripts/mod/devicetable-offsets.c | 3 +++ scripts/mod/file2alias.c | 10 ++++++++++ 9 files changed, 61 insertions(+)
Comments
Il 12/01/24 14:18, Nícolas F. R. A. Prado ha scritto: > > This series adds the missing pieces to the coreboot bus and the module > alias generation to allow coreboot modules to be automatically loaded > when matching devices are detected. > > The configs for cbmem coreboot entries are then enabled in the arm64 > defconfig, as modules, to allow reading logs from coreboot on arm64 > Chromebooks, which is useful for debugging the boot process. > For the entire series: Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > Changes in v2: > - Added commits for vpd, memconsole and framebuffer drivers to add them > to the module device table > > Nícolas F. R. A. Prado (7): > firmware: coreboot: Generate modalias uevent for devices > firmware: coreboot: Generate aliases for coreboot modules > firmware: google: cbmem: Add to module device table > firmware: google: vpd: Add to module device table > firmware: google: memconsole: Add to module device table > firmware: google: framebuffer: Add to module device table > arm64: defconfig: Enable support for cbmem entries in the coreboot > table > > arch/arm64/configs/defconfig | 3 +++ > drivers/firmware/google/cbmem.c | 7 +++++++ > drivers/firmware/google/coreboot_table.c | 9 +++++++++ > drivers/firmware/google/framebuffer-coreboot.c | 7 +++++++ > drivers/firmware/google/memconsole-coreboot.c | 7 +++++++ > drivers/firmware/google/vpd.c | 7 +++++++ > include/linux/mod_devicetable.h | 8 ++++++++ > scripts/mod/devicetable-offsets.c | 3 +++ > scripts/mod/file2alias.c | 10 ++++++++++ > 9 files changed, 61 insertions(+) >