Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4673241ybc; Fri, 15 Nov 2019 08:17:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxq2s083pfSjowkxeVSM4jI/jVsAmxcc+bScbFd7ezR5nxxm2W8qSBAFBj4PIoI/cGoU67S X-Received: by 2002:a17:906:2786:: with SMTP id j6mr1956266ejc.206.1573834655003; Fri, 15 Nov 2019 08:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573834654; cv=none; d=google.com; s=arc-20160816; b=CPeiLTIhvgbsh7OzKNOYn9M6iIOUE/Fa9hJI7/zC9Z7I2us+4TYX6ZubjwAe8n8WV4 mwj9KhflRLLX6bnrVnsjId+xmjmL6uvOcBQ/pgxfXFpKHALkEzxcvFxmwqiJ5P2nIV32 SGqopOtF6rwedyqcI7jNOhCBTjfV/jQ2nzW0XM0SQqDMhvrwG09tHCdzTJquQZ9e+nDJ rrnaQbyTRct2fSLJqzOXXGkYq95wtB1SjLIWbjM4bCEsDkIQUUohnnNQ+06YraV++XeB vH/v65YYQayCLX7QMNDweL/KtpJLo5txDbNYKWQL7XZJxHIuc0WwfuV+FanO1VGuYNio 2VZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4luxsISSnCBqbzNTIVaYf8SLEEQ3p09RVfNsyHSAmEQ=; b=RjRpAOEuOHkaSxRlFuXVD3PFcqebVV2R7vHAwLT4BtAqoy/XaPa76k4f2Ia8ofLyYi 3iViKYhGISa4oBpBAZU9gKnf08OmqDyHYGbjE6OhjtN2ylsQWMEa7stfo7HuFEiajV/3 TAgG3jKfdGxrsWn52FNwVeg3FxDPxI2LvHX3bKEEN6LQmy42y/h/cut99Cu5HU9ZQcVy dln6jTN8EPFPsoIjInlv8rrBAxUS5+02gB65m7Rfdx4suwII1A4a6huJC6OEIqCiTvCn ecycReMj3yhStS+7ucAh+t4P+jAaLPdMtCegx32pklGn9uqbO+NDM3xA6zxLZyTgFvtc BFyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=JAd4UxKP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s23si5742132eju.55.2019.11.15.08.17.09; Fri, 15 Nov 2019 08:17:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=JAd4UxKP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727567AbfKOQQE (ORCPT + 99 others); Fri, 15 Nov 2019 11:16:04 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:35492 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727423AbfKOQQD (ORCPT ); Fri, 15 Nov 2019 11:16:03 -0500 Received: by mail-wr1-f66.google.com with SMTP id s5so11613648wrw.2 for ; Fri, 15 Nov 2019 08:16:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4luxsISSnCBqbzNTIVaYf8SLEEQ3p09RVfNsyHSAmEQ=; b=JAd4UxKPFZPCjgRodJj4niKQ8jsOZobx9jfLQUg9CVwzDrQWRSnWts4bZfE97FudZR xIInMWMrOROwc5Ccpngr7MKtFMGcBvwl2VOyaB/l586VL2oUg+F+BAJABgcmE3K6boGe 6X1b+F2mrJRB4IUEyXM+PDjY2dEZBoAqgYliu/0Pe72ora0F+CVG16T1nPpDGBeU3u5S SogqlDTN7wo/wben8inQ7N2kRzFPREaNCx7Gi7radMtCuXaspUkCvVopUfKRTvs5P9La wKrrvna+HomAFvN5ozoO12Vg1o97WXwPfg5tKLAAb7hII5bCWvHdRZP7KQ9oOiAuN99F /mZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4luxsISSnCBqbzNTIVaYf8SLEEQ3p09RVfNsyHSAmEQ=; b=UUTpd7N4dWvkt3C+ND97nFtGAliI54E/Wx7wFg0yE2SWB8OX3KrPL0mk7+v3ok65hj A/YdKkUQPV4o4zlCccBIt7KNi4ODnZk6oYvL7fHUD1AFzrIb8j60NcZdHBDA96z7ucHO Z60ketaWIGW5fKf3nQUBnRwq0GkIB3usSkXnFEP7ATX52NppY9ZJls8ycE+1tcnScSkT cTHzFzR0aaJuQ5Q40a7tYIBDMpRlXBJkpZxbRHUDaivjdU8cbn7Lus3HlARVn0sytebL bynjRKgH5+M/m1NNmuTyKIwD+BGq396DelWr25b1AxBp4sF/lXxTUT0eYUgQZJrXccfd tGsg== X-Gm-Message-State: APjAAAWQzVFQJw8qBKAov/76hyIU5yGh42s3VmvAFBfxGZNkNi8RwsVW vvyGUzI1lt4zSyNvArXJDBV+AhEqATq3Issx X-Received: by 2002:adf:c449:: with SMTP id a9mr5872354wrg.240.1573834559976; Fri, 15 Nov 2019 08:15:59 -0800 (PST) Received: from rudolphp.sr1.9esec.dev (ip-94-114-101-228.unity-media.net. [94.114.101.228]) by smtp.gmail.com with ESMTPSA id o5sm11637467wrx.15.2019.11.15.08.15.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2019 08:15:59 -0800 (PST) From: patrick.rudolph@9elements.com To: linux-kernel@vger.kernel.org Cc: coreboot@coreboot.org, Patrick Rudolph , Greg Kroah-Hartman , Thomas Gleixner , Allison Randal , Alexios Zavras , Stephen Boyd , Julius Werner , Samuel Holland Subject: [PATCH 0/2] firmware: google: Expose coreboot tables and CBMEM Date: Fri, 15 Nov 2019 17:15:14 +0100 Message-Id: <20191115161524.23738-1-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Patrick Rudolph As user land tools currently use /dev/mem to access coreboot tables and CBMEM, provide a better way by using sysfs attributes. Unconditionally expose all tables and buffers making future changes in coreboot possible without modifying a kernel driver. Patrick Rudolph (2): firmware: google: Expose CBMEM over sysfs firmware: google: Expose coreboot tables over sysfs drivers/firmware/google/Kconfig | 6 + drivers/firmware/google/Makefile | 1 + drivers/firmware/google/cbmem-coreboot.c | 164 +++++++++++++++++++++++ drivers/firmware/google/coreboot_table.c | 59 ++++++++ drivers/firmware/google/coreboot_table.h | 13 ++ 5 files changed, 243 insertions(+) create mode 100644 drivers/firmware/google/cbmem-coreboot.c -- 2.21.0