All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yeoreum Yun <yeoreum.yun@arm.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>,
	Yeoreum Yun <yeoreum.yun@arm.com>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Lorenzo Pieralisi <lpieralisi@kernel.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Suzuki Poulose <suzuki.poulose@arm.com>,
	Steven Price <steven.price@arm.com>,
	Sami Mujawar <sami.mujawar@arm.com>,
	"Aneesh Kumar K.V" <aneesh.kumar@kernel.org>,
	Jiri Pirko <jiri@resnulli.us>, GONG Ruiqi <gongruiqi1@huawei.com>,
	Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH RFC v2 2/6] firmware: arm_firme: introduce arm_firme
Date: Thu, 3 Dec 2026 15:52:00 +0000	[thread overview]
Message-ID: <axGQIDyR8A_PFm8c@e129823.arm.com> (raw)
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

  reply	other threads:[~2026-12-03 15:52 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 15:28 [PATCH RFC v2 0/6] firmware: arm_firme: introduce FIRME support for host attestation Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 1/6] firmware: arm-smccc: introduce match function Yeoreum Yun
2026-12-02 22:17   ` Jonathan Cameron
2026-12-03 11:36     ` Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 2/6] firmware: arm_firme: introduce arm_firme Yeoreum Yun
2026-12-03  0:49   ` Jonathan Cameron
2026-12-03 13:06     ` Yeoreum Yun
2026-12-03 15:44     ` Jason Gunthorpe
2026-12-03 15:52       ` Yeoreum Yun [this message]
2026-11-27 15:28 ` [PATCH RFC v2 3/6] Documentation/ctlv: introduce ctlv-attestation-firme family Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 4/6] ctlv: add auto-generated files for ctlv-attestation-firme Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 5/6] attestation: providers: introduce FIRME attestation provider Yeoreum Yun
2026-12-01 19:57   ` Jonathan Cameron
2026-12-03 11:31     ` Yeoreum Yun
2026-11-27 15:28 ` [PATCH RFC v2 6/6] selftest: attestation: add firme_attestation_test selftest Yeoreum Yun
2026-12-02 22:16 ` [PATCH RFC v2 0/6] firmware: arm_firme: introduce FIRME support for host attestation Jonathan Cameron
2026-12-03 15:41   ` Jason Gunthorpe
2026-12-03 16:52     ` Yeoreum Yun
2026-12-03 18:03       ` Jason Gunthorpe
2026-12-03 18:48         ` Jonathan Cameron
2026-12-03 19:44           ` Yeoreum Yun
2026-12-03 16:50   ` Yeoreum Yun
2026-12-04 17:14     ` Jiri Pirko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axGQIDyR8A_PFm8c@e129823.arm.com \
    --to=yeoreum.yun@arm.com \
    --cc=aneesh.kumar@kernel.org \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=gongruiqi1@huawei.com \
    --cc=jgg@ziepe.ca \
    --cc=jiri@resnulli.us \
    --cc=jonathan.cameron@oss.qualcomm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=sami.mujawar@arm.com \
    --cc=steven.price@arm.com \
    --cc=suzuki.poulose@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.