Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5075785ybc; Fri, 15 Nov 2019 14:24:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzN0Irq7IioZc2bzvH4G9aS6CTFECnq2wQ75RB3gk0Z/oxLEKl0jqv/oYgMWein+qxwDJIG X-Received: by 2002:a17:906:6a8e:: with SMTP id p14mr4370798ejr.137.1573856694857; Fri, 15 Nov 2019 14:24:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573856694; cv=none; d=google.com; s=arc-20160816; b=wXIL/v2/5U5UBGXaoMmWdaDjP6XNeqvKJUeWuIy4vjz9G+mPqI2UNVA7+qpTS15E3L 0TlckzAila4sO4JexjnomqoprhTcpFq8yEeydL7szxOV8Tqunb6BjhjsdXVGvr5/rN5V +bljxT6R3DwvJDBtPnSy+toR7VCF2oF+xBde3oHb9B4Wmr+aYf9JElJx5d4zHydWG+UG XIiqEax1wTVLJcwksCQt8Ss6PW8Ft7i9inAWfxuHtyugb2MBhLJ7PBwXFZoMkYqBeqa3 A3stH3k8K0mMUuACrLjjKAiu3bJzeyV1ZPag3Gp8IQmWf1uS1C5oPtQ5hIHXSKm0Br7l S05w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:from:subject:to:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=yppwufp6fi68L6zC976bP2MDCDwalyA413IHzRLTRlY=; b=fy7RETHhJNHDuZISUd21AVLD4xa36tUEFJz5YXkvwskCaz68dqFoCipc3B1xSsZMhZ KPo5A1wc4gXE9xfjQnIRO0B2G/SruFmWXCTXTef2ZGFHPszrUjzZc/bPbD0SUlcROCfM DTThX0D8brSMQYTr0W24go/MDGBe88+ZdTyCYu0xZ2S48YrPt3Jhwd0AkNnpuyTFqxWw OpSXAc+JEl4R3wBYpxDTKXGBwMuJyIxf35pvD2uH5uWw3vd+VFEqst2Duqpdin5IBhi4 zB5De2YW/Y5M68ZTPjnAqz/z2+wQcKZ1cRauakiDQpIJkncfOb2IE1KAG8HYsojPOf/h sy/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="nU5W/+Iy"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w56si7505412eda.376.2019.11.15.14.24.29; Fri, 15 Nov 2019 14:24:54 -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=@chromium.org header.s=google header.b="nU5W/+Iy"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727077AbfKOWX1 (ORCPT + 99 others); Fri, 15 Nov 2019 17:23:27 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39420 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726766AbfKOWX1 (ORCPT ); Fri, 15 Nov 2019 17:23:27 -0500 Received: by mail-pl1-f195.google.com with SMTP id o9so5608905plk.6 for ; Fri, 15 Nov 2019 14:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:cc:to:subject:from:user-agent:date; bh=yppwufp6fi68L6zC976bP2MDCDwalyA413IHzRLTRlY=; b=nU5W/+IyG98AxdUwHyf+wLywGa5TnF7Ai0NmHUxUTs4Rb8mMjLKWjb8Fh5+VprN3DU V+2cLvHSZv0bleZyU3hQ6Rw5+EY++Ytg1twvL14duo5hKv64vSPp3xonFA/g20jaLD2O ZvbBklGWeKej0ztEwQFh4h9GWvCjuRSzvoMdc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:cc:to:subject:from :user-agent:date; bh=yppwufp6fi68L6zC976bP2MDCDwalyA413IHzRLTRlY=; b=d7Ks9Doif9nEkmzSSEz3GHZhjrPvpmohuSstlK0jwivwFxyRtdtqnDvoS+ofC1PBBe XTh4/D/A517KJd0jCyCClLqKo/viTNQ+tJlQTLErRYikeHJE+muImPLorBKsDq9lIlz+ lz3Dqgf2bMvgV9jt7W46ZmZV/kuAPk+vkzrv4u7gh9l9/ZLSRqo84sHq0oayTRxT7+ug cm0TISVWxnalx6Q+IN+RKdGIK0JCwWBPcLX/39QzG3BQCFaZXdUC/gQvi4VSniAoFEIG BdMiSP3Dc3eakIPM7iSNTXT4AzMibpfv9esmv/H7yNcFR6SZFSz8PJWR3u2u4JrGdfjq pX+g== X-Gm-Message-State: APjAAAWu4L/Yx7BwdvXYimGMPbSeMZvMlCQP4cF5SVqG3GP61TZxdExA Yqm1lXmd14xptIpbrcuLsTcdKogf02U= X-Received: by 2002:a17:90b:300c:: with SMTP id hg12mr23008139pjb.75.1573856606375; Fri, 15 Nov 2019 14:23:26 -0800 (PST) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id i102sm11149578pje.17.2019.11.15.14.23.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2019 14:23:25 -0800 (PST) Message-ID: <5dcf255d.1c69fb81.e4c8b.0c06@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20191115161524.23738-1-patrick.rudolph@9elements.com> References: <20191115161524.23738-1-patrick.rudolph@9elements.com> Cc: coreboot@coreboot.org, Patrick Rudolph , Greg Kroah-Hartman , Thomas Gleixner , Allison Randal , Alexios Zavras , Julius Werner , Samuel Holland To: linux-kernel@vger.kernel.org, patrick.rudolph@9elements.com Subject: Re: [PATCH 0/2] firmware: google: Expose coreboot tables and CBMEM From: Stephen Boyd User-Agent: alot/0.8.1 Date: Fri, 15 Nov 2019 14:23:24 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting patrick.rudolph@9elements.com (2019-11-15 08:15:14) > From: Patrick Rudolph >=20 > As user land tools currently use /dev/mem to access coreboot tables and > CBMEM, provide a better way by using sysfs attributes. >=20 > Unconditionally expose all tables and buffers making future changes in > coreboot possible without modifying a kernel driver. >=20 > Patrick Rudolph (2): > firmware: google: Expose CBMEM over sysfs > firmware: google: Expose coreboot tables over sysfs >=20 > 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 ++ There should be some Documentation/ABI updates here too so we know how the sysfs files work.