Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
To: Yeoreum Yun <yeoreum.yun@arm.com>
Cc: 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>,
	Jason Gunthorpe <jgg@ziepe.ca>, Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH RFC v2 1/6] firmware: arm-smccc: introduce match function
Date: Wed, 2 Dec 2026 14:17:04 -0800	[thread overview]
Message-ID: <20261202141704.00003432@oss.qualcomm.com> (raw)
In-Reply-To: <20261127-firme_interface-v2-1-ab88b2d0b4e0@arm.com>

On Fri, 27 Nov 2026 15:28:31 +0000
Yeoreum Yun <yeoreum.yun@arm.com> wrote:

> Somce of protocol based on the smc is not enough to match smccc-device
> and smccc-driver with func_id only.
> 
> For example, firme interface will create smccc-device per service
> and this requires to chech whether firme smccc-device is for each
> service.
> 
> To resolve this, add match function and match parameter for device
> which is set at the time of smccc-device creation so that smccc-driver
> could match proper smccc-device with match parameter and driver specific
> match function.
> 
> This match parameter is defined under smc func-id. IOW, devices which
> share the func-id should have the same type for module parameter so
> that each driver under the same func-id can check extra one with
> match parameter type.
That last sentence doesn't quite work.   Perhaps

each driver can filter first on func-id before evaluating the
match function.

> 
> Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Other than that this is a reasonably neat solution.  Whether
it ends up flexible enough in the long run for all the crazy stuff
that gets added to the spec remains to be seen, but for now
LGTM

Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>



  reply	other threads:[~2026-12-02 22:17 UTC|newest]

Thread overview: 10+ 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 [this message]
2026-11-27 15:28 ` [PATCH RFC v2 2/6] firmware: arm_firme: introduce arm_firme Yeoreum Yun
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-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

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=20261202141704.00003432@oss.qualcomm.com \
    --to=jonathan.cameron@oss.qualcomm.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=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 \
    --cc=yeoreum.yun@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox