Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp485563rdb; Thu, 1 Feb 2024 14:45:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IELsbB9UtSU6pfqYyA+t2+GCwgoIDuZX6+P/77rTdyh3xdY65ilPG7iLKvpjrZ5DtPyiZcd X-Received: by 2002:a05:620a:2442:b0:783:fedd:2cd with SMTP id h2-20020a05620a244200b00783fedd02cdmr810588qkn.26.1706827546429; Thu, 01 Feb 2024 14:45:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706827546; cv=pass; d=google.com; s=arc-20160816; b=TSlwN8HJxnc4lsNZVyUkDNOoyE+8qrsrmx2oYvMRYP/FZXugCQ09w2ZxGqRV2VrXia jSEGwa2+9e5rotMwq2CY0cqyn8c6QQin9nTEALCEpQD0Aj/G3fNPK6fvvJkn8BEktwt3 rzUcfuOWhaaF50WfFeLryecWVgESux19DNBzQFHx7Km69nPafII/a4sLhD4vPOG6tL7R onnPCBa228ylpfWWmN8cCFpDOs1S6ZIY0aNfOLKCQajZlQCjUSCb0twfcIY7SZibqi10 NUVACIeimsrH88vYCJT9GyQe0KJ3GWrG5HRPQCP1g3uWZchzm8emOqfIm7ioAsYjkMAu RGyw== 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=32UFP3sOrTpoxeovXIowzQIepH7VMVCcqAXYSxace2Y=; fh=umlzYQLzw+aqXX4Vc6hvkMZ9pGY4Tf0aS0VrYlwEsKo=; b=xvlYcY0CN1wgEAffLcOfF+/GsmESMVRXEh4fxvSmpv1xQZroCK9JodgLfCxEj9JRLk gqnECno1aX+O94iQTjroSjQktBNKIIAIG9cmOlwjYHd+Ayx3e8NePY775Zz3+RolM95Q NtiMe+mSFAHll7bS0jGMR1MzAqh99443//hVjffBQAJv/8t5JgbdrJWS3y0lNqTefrLK fjM8bWVQ35BX7e/IDV/ADISeIRMjj2Zys6KGZtiPLu+SpEO78EC+4qSSylbUNloxc29x nPFPnN+3950/+AjZZOC29J1KQ9R31hlaUtMJdK52eu8B6ds6WM2ButC96FCsRXWHXrxh lF3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FpYQADfV; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-48956-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48956-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=1; AJvYcCWbA9OhjOEIT0vjVRUlRZQqU9bo2+mRQ9kfu6jFkXYpBOiGI3qpAZX3eAP01XM6mnnzyAAIGOXWlCYHEmSiQ/XcZyX9TElGf+4Kn2JHoQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d2-20020a37c402000000b00783f6f7e4bdsi570868qki.377.2024.02.01.14.45.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:45:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48956-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FpYQADfV; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-48956-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48956-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 249531C22BB6 for ; Thu, 1 Feb 2024 22:45:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D806E4120F; Thu, 1 Feb 2024 22:45:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="FpYQADfV" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 7770846450; Thu, 1 Feb 2024 22:45:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706827528; cv=none; b=TjwKin9W+DtHkKIEtg+hAgnjpFqscB05X5W+5YbiX1pug5Xu9/nBsgR8BQaDn/QS8YJz2/fIlM6jfLqewiCtmjXLAiz3rex/FrAyy4+sQwShHO9S1mz+r0j+Zq7u30Xy6pefKOxXSXIpU2W77tSXs48WThMnBwuxJSlIP2vUhmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706827528; c=relaxed/simple; bh=8XBsL1A3aw113J/qN7bYoaY80G0MxKQO+WepQk2DEv8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=edpKxjlcJN9jfxXVhxWpXZKTMwXt5bKZYycDrrvKRG6HXEzBW/GuO2db5XIEgdgLi3ULTdfbBBTMhd7MHAWwOX4lporOhk0O4APH3lP9GS2ROQfR2QzhH19fMJ2YbEsuCyRMlSKLmHJxZWm0lANwx4kSRaeLTEDZVldUZ6jsPIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=FpYQADfV; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1706827524; bh=8XBsL1A3aw113J/qN7bYoaY80G0MxKQO+WepQk2DEv8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FpYQADfVXKnGEWMRmWDQtH4LIDnaEbuZNL3BoumMJBVO7Xn0UhBwe/HT5RI0eq1AX Lrjpj+4IK8ZLpn9UpbZtR7DX7S1owvOEsG6cAJJ553AL1lMgyFxm38XnLw3mroeS3y NisNe6PwIHC6S3vAMBsbd7C0HOe/c5M4h+wGwSkP21c/KMEB78WF0RupAJD1qYRe3o IT6hWJZZsW1HFyvrOUBSFWOIOh5AJJeuII3NgKhiHKYV94UNhecjbRdrDjFKm/iebs hRp4gsU2pT3Vy7prWQi21QDMg42Zywu3zXGzi9p225Jf3m25eXEluIf0fqjPKZx8vJ HQpckr/ElAycg== Received: from notapiano (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 78D45378208C; Thu, 1 Feb 2024 22:45:21 +0000 (UTC) Date: Thu, 1 Feb 2024 17:45:19 -0500 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Greg Kroah-Hartman 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: <679fa364-28d0-4faa-b46e-805faf56ae53@notapiano> References: <20240112131857.900734-1-nfraprado@collabora.com> <20240112131857.900734-3-nfraprado@collabora.com> <2024013059-poison-equation-81d1@gregkh> <2024013012-gully-goofy-2a55@gregkh> 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: <2024013012-gully-goofy-2a55@gregkh> 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; }; Like Brian, I'm not sure I see the benefit of either change. As he said, it's unlikely that having a driver_data would provide any benefit and won't ever be required anyway, and 32 bits is already a generous space to give to coreboot tags. That said, I'm also not against either change, and can apply both of them to the next version if that's indeed what your experience says will work best. I'll wait another week or so before following up though to make sure we're all on the same page. (To be honest I also still don't see how this struct makes it to userspace and is considered ABI, I only see the generated modalias being ABI and hence 32 vs 64 bit tag is ABI breakage but not adding driver_data, but I'll take your word for it for now) Thanks, Nícolas