Return-Path: X-Google-Smtp-Source: AH8x226q8IXlSR8HOW7GYO6GXnZgJArsBZgQ153TieMUTuih6g+OiKSEUsNFlBJoDV/s+ccypO/w ARC-Seal: i=1; a=rsa-sha256; t=1516844484; cv=none; d=google.com; s=arc-20160816; b=EgonF7WSQYADulzSFvvbNEHT9dPkBqhoTzClZJVlw8aqOTB1tzqaQChvbuaFmrSA2E 24rmfsixEubVOZ/DK5++tcNFnhZ72mgI90vgP7GCbboja7jNLlbjLwvFo3VjmYwRgnuF 7UFokichqoLv5PjClwjsORDkpQVTRafMnjjsRth4JmLHGot3T0wxqnuS95mm/HygeGOZ 30NHagLcjYmAcEX8KUDHJuvps9SQ/z1ix5mmz3G5TwQdZKM2tYOG+897XvqC9yve/fj7 4LuBxCH1QhmRrjxCmwhHQlq/GHi19dl/Ha/vlscrtIQdMUcim9s2AfWvhbelyP5/FwrS nRBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=kFT1sp2J3vZCdmYAyyMWt/zLoYM5YuB3SuWAl2Ybfws=; b=Ohk7oTV5P5xC7kGh+5vasrn2Iuwh6Rc0p2/HH7pp6YVt4tigbDMooNLoJKZwX1CmL8 MZpJqBkXEJXOBPuFD4J6MNr7QXk7KY5HraW5dJYeIC66EAfDpHO2i8LSxs6VwFg60zaa y9tRkT7T9IpO3IzcZKYFIKhw3/0BHJQIeJdpNWAZwYPvKZpN8RZmDAwRHmYeGVQAfzZ0 NMPGP9Q0pbdx3MFr4SQWlcMJpyJf+mGzyzxhQKc1//7rXcafBKXK0H2jukb0Ruvf2uyx 2Y7hBgdr2ZCkEX+VgzYVYxxrwSqTYTcwz7br7FowvAse17KnnEyHn+aBJ1PyMRGwkTjd zwgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=tuOYa8KD; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=UC1SsIV+; spf=pass (google.com: domain of samuel@sholland.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=samuel@sholland.org Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=tuOYa8KD; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=UC1SsIV+; spf=pass (google.com: domain of samuel@sholland.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=samuel@sholland.org X-ME-Sender: From: Samuel Holland To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Cc: coreboot@coreboot.org, Thierry Escande , Wei-Ning Huang , Julius Werner , Dmitry Torokhov , Guenter Roeck , Samuel Holland Subject: [PATCH 0/5] coreboot table bus and framebuffer driver Date: Wed, 24 Jan 2018 19:41:15 -0600 Message-Id: <20180125014120.20851-1-samuel@sholland.org> X-Mailer: git-send-email 2.13.6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590526722620328845?= X-GMAIL-MSGID: =?utf-8?q?1590526722620328845?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On many systems, coreboot[1] firmware can initialize graphics hardware and set up a high-resolution linear framebuffer. It exports information about this framebuffer, along with various other information, in a table discoverable via ACPI or a device tree. coreboot also supports booting Linux directly from flash as a "payload". Projects such as Heads[2], u-root[3], and petitboot[4] provide a minimal userland that can then be used to chainload (via kexec) into a full Linux system loaded from disk or over the network. Fitting even a minimal Linux system on an SPI flash chip is challenging. Reusing the framebuffer setup from coreboot provides an enormous benefit to these projects by allowing them to omit full graphics drivers from their kernel builds. It also speeds up boot times by avoiding duplicated effort, and because coreboot's graphics initialization is often much faster than the Linux driver. Patch 1 of this series expands coreboot table support into an enumerable bus that devices can hang off of. Patches 2-3 convert the existing drivers to use the new bus structure instead of ad-hoc platform devices, and patch 4 removes the old coreboot_table_find function. Finally, patch 5 adds a new driver for the coreboot-initialized framebuffer. It improves on earlier work[5] by being architecture- independent and not needing to scan through low memory. This patchset has been tested on a Lenovo ThinkPad X220, and earlier versions of these patches have been tested by various members of the coreboot community on other hardware. [1]: https://www.coreboot.org/Welcome_to_coreboot [2]: https://github.com/osresearch/heads [3]: https://github.com/u-root/u-root [4]: https://www.kernel.org/pub/linux/kernel/people/geoff/petitboot/petitboot.html [5]: https://mail.coreboot.org/pipermail/coreboot/2014-September/078551.html Samuel Holland (5): firmware: coreboot: Expose the coreboot table as a bus firmware: memconsole: Probe via coreboot bus firmware: vpd: Probe via coreboot bus firmware: coreboot: Remove unused coreboot_table_find firmware: coreboot: Add coreboot framebuffer driver drivers/firmware/google/Kconfig | 8 ++ drivers/firmware/google/Makefile | 1 + drivers/firmware/google/coreboot_table-acpi.c | 2 +- drivers/firmware/google/coreboot_table-of.c | 2 +- drivers/firmware/google/coreboot_table.c | 130 ++++++++++++++++++------- drivers/firmware/google/coreboot_table.h | 72 +++++++++++--- drivers/firmware/google/framebuffer-coreboot.c | 115 ++++++++++++++++++++++ drivers/firmware/google/memconsole-coreboot.c | 49 ++++------ drivers/firmware/google/vpd.c | 43 +++----- 9 files changed, 313 insertions(+), 109 deletions(-) create mode 100644 drivers/firmware/google/framebuffer-coreboot.c -- 2.13.6