Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp572537rdb; Thu, 1 Feb 2024 18:22:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYXnXlqVrVPK5UaahvN4wp2yi/3sdB5DycvKiwru+GWU5vay/ExaHPdxgSgB6a1vT3Zbgf X-Received: by 2002:a05:6358:6a49:b0:178:62d5:dafc with SMTP id c9-20020a0563586a4900b0017862d5dafcmr865986rwh.18.1706840529245; Thu, 01 Feb 2024 18:22:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706840529; cv=pass; d=google.com; s=arc-20160816; b=HZFLQZpJiEZge/Yebn2Q1G+9WU1yTuFoofjZ5j3wjx5xmU/nPZjkaCCiyecJ8iIVdj NpCDoA0Le/MjIPCOp/Q+XHxp6EBEAJuk96e26QpLgRcIlBsPfGm38MDQFaNjmFTuU2+r Q8sjo59b6HkUY9DPL8OSBkTVp16fBa1UZL2HTutzqLWgpq4+AFuUVg/s+IyghGdRuw2t hJs1H7VoIbudf1Xytcd9frgT58qvRiHHvXDvr93e9YYLFXbw/BI7nf3mSrlSmCoGEC5Z yw5f+HTavFYVXnrLac609jWGR+Mzuvn5eW0+Pj8lsT8oJRIxJHeYo8or+58kGLduKkUB fFNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZIb7LdmuZOjBSBuIpV7Z4YkXYHjesLKZ+9Ao+uJ0SN0=; fh=dvUdk+pZahh7fIntBsqZ9z07zPjCBEHWfI25+neqJWs=; b=lH3zJZR9k9E+va6H1p4axNxmbu2odz1U8WiKUzPJeEVwVF573Ha8ul92YLawIDI9Fd JAPF3Yn77h7PzMj4quqGNcz83tZ9mbMd0ppQ2UopuCW1+ksDAhtaklMNWTlU9YDyyPHX DKnCIZRH131SY5jvk23HKjfsTt8j7pNnwcyRsiVbJvBru7mp2s6ZJuA+JbhUWLN+Ss+b yE4b1z95UwZr3kNmbtFdgtBTRyLJWDF2HYoCt5QVkAq93WFZsxT0oEBZVFCPAfCyCWJj hf4thOaU4IilG0h/vZxwOsSEaRvJ+p2DzOJpIHC/zr/wq2YZGf/EIueRgwAdrU1W6shD df4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oasoUsml; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-49085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=1; AJvYcCVqUtwWSxZhOiyImYpqy0xJ5t7elO5PepLyifH1rmfRdzIAyzNdneU1n042tU9RuMmENgjWtdya8N1hz6QHP8OjiRB86dTnJ2BQyuN1Zg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z7-20020a656107000000b005d8c25c7b66si749672pgu.89.2024.02.01.18.22.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 18:22:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oasoUsml; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-49085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 63BCFB236E0 for ; Fri, 2 Feb 2024 02:21:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A29FB643; Fri, 2 Feb 2024 02:21:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oasoUsml" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8086BBA4C; Fri, 2 Feb 2024 02:21:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706840464; cv=none; b=gM52u69wq8cvDAwlCbmSHuGxENNL9KRsmNxpJA0aF7CDvZOt32RNAIn31faTXJcF6Q+sOge4+V6E0+1f29RQUBG8ju3zCN682LhhfDW9+duDjNd0oE8jhp27hLnxpzItR67JVn+tGo1mB8JZuKx407DZeWqEJwY4dV2CdGH6dXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706840464; c=relaxed/simple; bh=caSt1K8X7wTfsDubxjLdVYfUEcr45wgSDgC/mtyZAUE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cAyobS7BugA/kn/n6kX8sSErbTo5Orr1xghiplxyZZTV3ME4e52FbEZD+vpPtFX7QbE/NJT9+UUW2LTGDCzfKKGdcBJtkbEGVUVijPKIwZa6umbyYC1WTZcG/E9fl+eNjrzL5/Q0lzisJCbaOVTKS72hOvF7pCn0mym+lN88wlY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oasoUsml; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BDFEC433F1; Fri, 2 Feb 2024 02:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706840464; bh=caSt1K8X7wTfsDubxjLdVYfUEcr45wgSDgC/mtyZAUE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oasoUsml1+uLAFVUGaQaKVrDvLeAA4/u3sJZm5Xz/4sTaHALvPZdO7EBtOrR7EXLG hEYO1rPOjmVEpMfSXOpWQKsKKw8AZNbkKTu/2eVeKy8CJCt5vlZSKWrh/4XbZuSnEX iMnsZNOgmlr2vZV5PPxlHgO1PInXuK3tTQvc5/Vw= Date: Thu, 1 Feb 2024 18:21:03 -0800 From: Greg Kroah-Hartman To: =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Cc: Brian Norris , Andy Shevchenko , Tzung-Bi Shih , kernel@collabora.com, AngeloGioacchino Del Regno , chrome-platform@lists.linux.dev, Abhijit Gangurde , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Nipun Gupta , Pieter Jansen van Vuuren , Umang Jain , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/7] firmware: coreboot: Generate aliases for coreboot modules Message-ID: <2024020105-dash-antiquity-a56b@gregkh> References: <20240112131857.900734-1-nfraprado@collabora.com> <20240112131857.900734-3-nfraprado@collabora.com> <2024013059-poison-equation-81d1@gregkh> <2024013012-gully-goofy-2a55@gregkh> <679fa364-28d0-4faa-b46e-805faf56ae53@notapiano> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <679fa364-28d0-4faa-b46e-805faf56ae53@notapiano> On Thu, Feb 01, 2024 at 05:45:19PM -0500, Nícolas F. R. A. Prado wrote: > On Tue, Jan 30, 2024 at 04:23:02PM -0800, Greg Kroah-Hartman wrote: > > On Tue, Jan 30, 2024 at 04:01:57PM -0800, Brian Norris wrote: > > > On Tue, Jan 30, 2024 at 3:51 PM Greg Kroah-Hartman > > > wrote: > > > > On Tue, Jan 23, 2024 at 02:06:14PM -0800, Brian Norris wrote: > > > > > "Don't you want to have a driver data or so associated with this?" > > > ... > > > > But why limit yourself to 32bits now? Why not make it 64? It is going > > > > to be sent to userspace, so you have to be very careful about it. > > > > > > Is that question related to the question I pasted/replied to, about > > > driver data? Or a new topic? Sorry if I'm misunderstanding. > > > > Same question, driver data, you make it 32 bits. > > > > > Anyway, for the size of the tag field: I don't have a strong opinion. > > > But FWIW, they're coming from this project: > > > > > > https://review.coreboot.org/plugins/gitiles/coreboot/+/269b23280f928510bcadd23182294e5b9dad11ec/payloads/libpayload/include/coreboot_tables.h#36 > > > > > > As you can see there, we're extremely far from exhausting 16 bits, let alone 32. > > > > We've run into running out of bits in other subsystems before, it's > > "free" now, just be safe and make it 64 like I think Andy is suggesting. > > Either you and Andy are suggesting different things, or I still don't quite get > what you mean. > > Andy was suggesting we added a driver_data field, that is: > > struct coreboot_device_id { > __u32 tag; > kernel_ulong_t driver_data; > }; > > You're suggesting we make the tag 64 bits long: > > struct coreboot_device_id { > __u64 tag; > }; Yeah, I'm confused, sorry. Yes, add some driver_data, and if you are SURE your tag will NEVER be larger than 32 bits, stick with that, but really, you are using the space in empty padding anyway, so just make it 64bits please. thanks, greg k-h