Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3077420ybz; Sun, 19 Apr 2020 17:10:09 -0700 (PDT) X-Google-Smtp-Source: APiQypLP2xJzvmLDGflcJ1teSyaYSXMYx3rhHjNR4ks8/2yyEw6Kb8uk9OtYsx09byMcgF2Grlnc X-Received: by 2002:a17:906:54cd:: with SMTP id c13mr13065602ejp.307.1587341409167; Sun, 19 Apr 2020 17:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587341409; cv=none; d=google.com; s=arc-20160816; b=jX7UrZpO4M3k/8ePhhrV9lqWkJdflwIjei2rKxCKcJnveeBVwmIp2vnzOl9TeWbaCu MMFFP/5cpYeOSk/oI+fyFpxGr3tgXm68c3o9I6MTzybTi8J784aEqnv2eTdSB0OS3k+h Z7l7ewQrEZPcTam6EV1wLKwZpjtcB33ujaKRyfGN16TGqvNj6950gumCjEbtIKp5DZ2e jhz/wt6GNaEZjJGRdeolpj/wKoDbloy3vDlSRVS9l8AsinMg/c1jU1AyOZ4624Y2piJv lfXjDenkBgBkDduJYA2DJTZJyq6MAeHcrwiSUP9CoWcyOh8AJeeKXYIYmmbsdgnrkl4W SMYw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :dkim-signature; bh=tCGTCYij53Y5eRWvqAR4daOqpsfyW4OV2+tWac0W1G8=; b=x90MByuYYy3pnSuozZJDztEVf91hM3irIzVf48DpNUF+JLo1bfhD60sN+N8c+DZXY5 BBqFrnACoO7dmGP6vxoswY0SQoXtr3tDqmGR+g42OHrhWOrOb2FxsZ51MxBDiO9/AKre 6bxnwLF2ueu4nGlu+F/3fAs0xno0pY26dv0j/MDr2tKisak7n+6ybXVfW9RRY+4aEPf/ SoCFS0m/hkmHf2YHJnSW9/16CA/nqeB07H+fZHsuEUsicYthzQoFuhapXaf/0cjGiA3E oc/++6yWkhDrUAQh/r8S4/0AyufmzfafMLUehOR+dSKBMRajzpj0SW5YINL+JkYyg88j vRdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=KejOEjjs; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=yo2ir058; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si19249004edj.96.2020.04.19.17.09.46; Sun, 19 Apr 2020 17:10:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=KejOEjjs; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=yo2ir058; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726091AbgDTAHr (ORCPT + 99 others); Sun, 19 Apr 2020 20:07:47 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:50323 "EHLO wout3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbgDTAHq (ORCPT ); Sun, 19 Apr 2020 20:07:46 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id DE8E8458; Sun, 19 Apr 2020 20:07:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 19 Apr 2020 20:07:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=t CGTCYij53Y5eRWvqAR4daOqpsfyW4OV2+tWac0W1G8=; b=KejOEjjsoNTf14bWi vLaOpZjumX3BPHpQCkiU0wtvX5qKDm4vc7++9KwM2cuc2QCGOQ7DjST+JCdxGYqs PEmca1Eu8fWAGFG/UCuuuPKa//mbUmu2D4QbYj0v9EnVONUKesYl5Ms1k2yRPyl2 mTOOcJM+r4qMIlj/X/YIfyWSDH5PhyPWlv867tpz+qyn5xsgZtgPFln5Xyq+J3A5 6Q00vKPEGu1EmsO3x1cmD0RFqHu7m73ZkxLuPD8u2PCmoUWzKsULlWwBCxcoKujA kGr8Z7PF7jOHM/bFVR92n1GarIe7HHcabgl5Yf0nY9qy9G+HeSjrSyITx2R5Z243 pjUMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=tCGTCYij53Y5eRWvqAR4daOqpsfyW4OV2+tWac0W1 G8=; b=yo2ir058chFYdlqtw0lUXOad3CJ/PL8atK138wHdxnOfpwCXbNmDhozHs LY5qhJFdg8ikcssEI4YoUFrTk7zbzJ8Lwg4EU8YBs9lB4AxxtZVSjPoRNjA0ejqX 4qWx+9/giz+xHNdbv7vP1TMGWvYQUGui63gtINm+qTU9HDwN7/8OWLCtd+hbjjxX Q4vKKEZ55d+QdVMP62BEd8P4D2XvcW3bjhhagCCdVuDFGuw0Hes/RfLUJ6DPV4J/ XO2rPXG5srw+k6V6qFH0AFMxvxhzFesNrg4RwrH6n6nzP/824VVWlTtUHhfriMfl /vZFsGSAqfxuLqT2bHwDB+HDgRc9g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgedvgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucfkph epjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuihiivgepudenucfrrghr rghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: from [192.168.50.169] (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 08ECF3280065; Sun, 19 Apr 2020 20:07:44 -0400 (EDT) Subject: Re: [PATCH v4 2/2] firmware: google: Expose coreboot tables over sysfs To: patrick.rudolph@9elements.com, linux-kernel@vger.kernel.org Cc: coreboot@coreboot.org, Greg Kroah-Hartman , Thomas Gleixner , Allison Randal , Alexios Zavras , Julius Werner , Stephen Boyd References: <20200407082923.2001556-1-patrick.rudolph@9elements.com> <20200407082923.2001556-3-patrick.rudolph@9elements.com> From: Samuel Holland Message-ID: <0ad55572-c889-cb0d-7f76-4097b381d4a0@sholland.org> Date: Sun, 19 Apr 2020 19:07:43 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200407082923.2001556-3-patrick.rudolph@9elements.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/7/20 3:29 AM, patrick.rudolph@9elements.com wrote: > From: Patrick Rudolph > > Make all coreboot table entries available to userland. This is useful for > tools that are currently using /dev/mem. > > Besides the tag and size also expose the raw table data itself. > > Update the ABI documentation to explain the new sysfs interface. > > Tools can easily scan for the right coreboot table by reading > /sys/bus/coreboot/devices/coreboot*/attributes/id > The binary table data can then be read from > /sys/bus/coreboot/devices/coreboot*/attributes/data > > Signed-off-by: Patrick Rudolph Reviewed-by: Samuel Holland Tested-by: Samuel Holland Cheers, Samuel