[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aErVS4XVZHknlC2L@e129823.arm.com>
Date: Thu, 12 Jun 2025 14:25:31 +0100
From: Yeoreum Yun <yeoreum.yun@....com>
To: Jarkko Sakkinen <jarkko@...nel.org>
Cc: sudeep.holla@....com, peterhuewe@....de, jgg@...pe.ca,
stuart.yoder@....com, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-integrity@...r.kernel.org
Subject: Re: [PATCH v2 0/2] fix failure of integration IMA with tpm_crb_ffa
Hi Jarkko,
[...]
> Yep, and you sort it out by not compiling it as a module.
>
> + ret = ffa_register(&tpm_crb_ffa_driver);
> + BUG_ON(!ret && !tpm_crb_ffa);
>
> These lines struck me in your patch. The commit message has nothing
> about ffa_register().
Sorry. I think I miss the description for this detail.
This is core of this patch.
So, in patch #1, by chaning the ffa_init() to rootfs_initcall,
it ensures the generation of "tpm_crb_ffa device" is created before
crb_acpi_driver_init() but "tpm_crb_ffa device" isn't probe yet since
the "tpm_crb_ffa driver" isn't yet registered which is registered by
"tpm_crb_ffa_init()".
Therefore, this patch does that when crb_acpi_driver_init() is called first,
tpm_crb_init() registers "tpm_crb_ffa driver" via "ffa_register()"
to trigger probing of "tpm_crb_ffa device" to initalize
the TPM device using CRB over FF-A.
>
> Also, please remove BUG_ON(). That said, I don't think 2/2 is needed.
Okay. I'll replace it with error message.
Thanks.
--
Sincerely,
Yeoreum Yun
Powered by blists - more mailing lists