From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796313127; b=QFfhBn73KBoFQ+IV6jVS8rQh8TqibbML7d3lOhBfPXxp6HS3i5NifABE8rvDmyt6lcX9 RXwP45FElR7F0dTlUs9OJsRrQgFLRBqnTsAJsIJy3tMwo970B2tZGVWdqcZT9rLo1QF4N J0A/2wsc6Y56vzoYhXWvLrbwWijWUrH0y9jxyZ8ll9UG6ktA9r0I12QLTESIrct2zEXEC DJgeuZ2GvKxNY8o0YQG5NtjX80WntaJGT4AMI84xuJQgtl2yah64kUsN/yMX7qX33HCdH 3bhYrDYcuqLsJw5FTyXOoO9XU2+KabUQOLCv/7bIjQeCLN5FmpGDS/Yk0fQtiY0AX6Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796313127; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=QKXwrMpxTmKi4UsETPAlmte3VVY63igVIDjs0nISI4U=; b=j6ZTtLDMT2rm+ORXGzJIFGnQZQCRK4GB45tstTX7YDsGN/doNjLo4Oq5K3KRqpbnkU54 nDq1Q80oYmNCMaVr/EpRxM8qtUyhbJ/kLaIXc/ywPQK9RKVLgBOYbnvRUjNOGiQuTM1sY RFYmNYyBAZt5dK1ecMz9CAFUkw16U0Oj4qOiQSQcEKplBYefrXfMlm2aj90cpFKKXe3aP QJVN58mjiEWQuC2+r3Y7O0AaxVV7FChfRH37TxJ4Hl31AdSqrzEU1wlaJ5es5yEXxKgFS cmRvHSl/F7S3mfGlUsa0VekvmdWW0WR2yqcUw+4fLG87xrkBbqthxYv0Fy1JSRrAsnw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=hEptfu52; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47A78606A322 for ; Thu, 3 Dec 2026 15:52:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 47A78606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=hEptfu52 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8D4D61477; Thu, 3 Dec 2026 07:52:03 -0800 (PST) Received: from e129823.arm.com (e129823.arm.com [10.2.213.3]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CCECA3F7D8; Thu, 3 Dec 2026 07:52:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796313126; bh=T+Osb4PJ8hMuSQmdhkI8Bu6ip3hQWRucRgsUb+Wukso=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hEptfu52mbvd50mBwiQYnW5JgdwupsacEp/2ZdLlTONHEm8lUEe0LG/XH2G4xWa6Y ILbi/gbjhaHWOVuq58ZHMJ1d7jwOpPS0+CtwQXg895/7xjhKOEFcR4chbnOF7bmZkT FTnRQTUIBhLuZ/XHMEYCCIcQA8Mmj5EFxHxY4f1k= Date: Thu, 3 Dec 2026 15:52:00 +0000 From: Yeoreum Yun To: Jason Gunthorpe Cc: Jonathan Cameron , Yeoreum Yun , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lorenzo Pieralisi , Catalin Marinas , Suzuki Poulose , Steven Price , Sami Mujawar , "Aneesh Kumar K.V" , Jiri Pirko , GONG Ruiqi , Mark Brown Subject: Re: [PATCH RFC v2 2/6] firmware: arm_firme: introduce arm_firme Message-ID: References: <20261127-firme_interface-v2-0-ab88b2d0b4e0@arm.com> <20261127-firme_interface-v2-2-ab88b2d0b4e0@arm.com> <20261202164941.0000329b@oss.qualcomm.com> <20261203154415.GD1074888@ziepe.ca> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261203154415.GD1074888@ziepe.ca> On Thu, Dec 03, 2026 at 11:44:15AM -0400, Jason Gunthorpe wrote: > On Wed, Dec 02, 2026 at 04:49:41PM -0800, Jonathan Cameron wrote: > > > +config ARM_FIRME > > > + bool "Arm Firmware Interfaces for Realm Management Extension (FIRME)" > > > + depends on ARM64 && HAVE_ARM_SMCCC_DISCOVERY > > > + default n > > > > Unless something else is forcing things, everything is default n so don't > > specify it. > > It is a helper "library" it should be a hidden kconfig selected by the > actual FIRME using subsystem drivers, like attestation and TSM. Yeap. I'll remove this. > > > Use the enum you have so we match them up directly > > [FIRME_ATTEST_SERVICE_ID] = { .dev_name = "arm-firme-attest" }, > > +1 Done. > > > > +/* > > > + * FIRME version encoding > > > + */ > > > +#define FIRME_MAJOR_VERSION_MASK GENMASK(30, 16) > > > +#define FIRME_MINOR_VERSION_MASK GENMASK(15, 0) > > > +#define FIRME_MAJOR_VERSION(x) ((u16)(FIELD_GET(FIRME_MAJOR_VERSION_MASK, (x)))) > > > +#define FIRME_MINOR_VERSION(x) ((u16)(FIELD_GET(FIRME_MINOR_VERSION_MASK, (x)))) > > > +#define FIRME_PACK_VERSION_INFO(major, minor) \ > > > + (FIELD_PREP(FIRME_MAJOR_VERSION_MASK, (major)) | \ > > > + FIELD_PREP(FIRME_MINOR_VERSION_MASK, (minor))) > > > > I'd just use FIELD_PREP / FIELD_GET inline. These sorts of macros > > often just obscure things. Only introduce them if they save a lot of code. > > +1 > > And if you do want further wrappers use a static inline function. Okay. might this FIRME_PACK_VERSION_INFO, wouldn't be used currently. So in this round, I'll remove it. Thanks! -- Sincerely, Yeoreum Yun