mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: AngeloGioacchino Del Regno  <angelogioacchino.delregno@collabora.com>
To: "Mengqi Zhang (张梦琦)" <Mengqi.Zhang@mediatek.com>,
	"ulf.hansson@linaro.org" <ulf.hansson@linaro.org>,
	"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
	"Wenbin Mei (梅文彬)" <Wenbin.Mei@mediatek.com>,
	"robh+dt@kernel.org" <robh+dt@kernel.org>,
	"Chaotian Jing (井朝天)" <Chaotian.Jing@mediatek.com>,
	"krzysztof.kozlowski+dt@linaro.org"
	<krzysztof.kozlowski+dt@linaro.org>
Cc: "linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	"linux-mediatek@lists.infradead.org" 
	<linux-mediatek@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH 1/2] mmc: mtk-sd: add Inline Crypto Engine support
Date: Mon, 31 Oct 2022 14:04:12 +0100	[thread overview]
Message-ID: <01f6923c-87ce-b7eb-7f6c-649a84baf556@collabora.com> (raw)
In-Reply-To: <b557604932edfcd9847f0f033f410b7a68c704dc.camel@mediatek.com>

Il 31/10/22 10:50, Mengqi Zhang (张梦琦) ha scritto:
> On Tue, 2022-10-18 at 11:50 +0200, AngeloGioacchino Del Regno wrote:
>> Il 17/10/22 16:20, Mengqi Zhang ha scritto:
>>> add crypto clock control and ungate it before CQHCI init.
>>>
>>> Signed-off-by: Mengqi Zhang <mengqi.zhang@mediatek.com>
>>
>> Hello Mengqi,
>> I'm a bit surprised that enabling ICE only requires enabling a clock
>> as
>> on downstream code I see some SMC calls to
>> MTK_SIP_KERNEL_HW_FDE_MSDC_CTL.
>>
>> Can you please explain why SMC calls are not needed here?
>>
>> Thanks,
>> Angelo
>>
> 
> Hi Angelo,
> 
> There are many wrong quotes in previous reply, let me fix it here.
> 
> In some MTK SoC, we need set a encrypto enable bit
> MTK_SIP_KERNEL_HW_FDE_MSDC_CTL in secure world, so we use SMC call to
> finish it.
> But not every MTK SoC need to set this bit in secure world. This patch
> is for these SoCs.
> As for SMC call, we haven't found a proper way to deal with it, we'll
> do it later.
> 

Thanks for clarifying.
In that case, I'm a little worried about people trying to enable ICE on SoCs
that do require calling into TZ and getting a crash... but it's anyway out of
scope for this series, so:

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



  reply	other threads:[~2022-10-31 13:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-17 14:20 [PATCH 0/2] MediaTek eMMC inline encryption support Mengqi Zhang
2022-10-17 14:20 ` [PATCH 1/2] mmc: mtk-sd: add Inline Crypto Engine support Mengqi Zhang
2022-10-18  9:50   ` AngeloGioacchino Del Regno
2022-10-31  6:58     ` Mengqi Zhang (张梦琦)
2022-10-31  9:50     ` Mengqi Zhang (张梦琦)
2022-10-31 13:04       ` AngeloGioacchino Del Regno [this message]
2022-10-17 14:20 ` [PATCH 2/2] dt-bingdings: mmc: Mediatek: add ICE clock Mengqi Zhang
2022-10-18  9:50   ` AngeloGioacchino Del Regno
2022-11-06  9:53     ` Mengqi Zhang (张梦琦)
2022-10-18 18:29   ` Krzysztof Kozlowski
2022-10-18 18:30     ` Krzysztof Kozlowski
2022-11-02 15:13   ` Ulf Hansson
2022-11-06 10:10     ` Mengqi Zhang (张梦琦)

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=01f6923c-87ce-b7eb-7f6c-649a84baf556@collabora.com \
    --to=angelogioacchino.delregno@collabora.com \
    --cc=Chaotian.Jing@mediatek.com \
    --cc=Mengqi.Zhang@mediatek.com \
    --cc=Wenbin.Mei@mediatek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=ulf.hansson@linaro.org \
    /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

all inboxes | Powered by JetHome®