* [PATCH v1] drivers: meson: secure-pwrc: always enable DMA domain
@ 2023-06-10 9:04 Alexey Romanov
2023-06-19 9:00 ` neil.armstrong
2023-06-19 9:04 ` Neil Armstrong
0 siblings, 2 replies; 3+ messages in thread
From: Alexey Romanov @ 2023-06-10 9:04 UTC (permalink / raw)
To: narmstrong, neil.armstrong, khilman, jbrunet, martin.blumenstingl
Cc: linux-arm-kernel, kernel, linux-amlogic, linux-kernel, Alexey Romanov
Starting from commit e45f243409db ("firmware: meson_sm:
populate platform devices from sm device tree data") pwrc
is probed successfully and disables unused pwr domains.
By A1 SoC family design, any TEE requires DMA pwr domain
always enabled.
Signed-off-by: Alexey Romanov <avromanov@sberdevices.ru>
---
I'm not entirely sure if this domain should always be enabled on or it
should be separately enabled in dts file. Comments are welcome.
---
drivers/soc/amlogic/meson-secure-pwrc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/amlogic/meson-secure-pwrc.c b/drivers/soc/amlogic/meson-secure-pwrc.c
index e93518763526..25b4b71df9b8 100644
--- a/drivers/soc/amlogic/meson-secure-pwrc.c
+++ b/drivers/soc/amlogic/meson-secure-pwrc.c
@@ -105,7 +105,7 @@ static struct meson_secure_pwrc_domain_desc a1_pwrc_domains[] = {
SEC_PD(ACODEC, 0),
SEC_PD(AUDIO, 0),
SEC_PD(OTP, 0),
- SEC_PD(DMA, 0),
+ SEC_PD(DMA, GENPD_FLAG_ALWAYS_ON | GENPD_FLAG_IRQ_SAFE),
SEC_PD(SD_EMMC, 0),
SEC_PD(RAMA, 0),
/* SRAMB is used as ATF runtime memory, and should be always on */
--
2.30.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v1] drivers: meson: secure-pwrc: always enable DMA domain
2023-06-10 9:04 [PATCH v1] drivers: meson: secure-pwrc: always enable DMA domain Alexey Romanov
@ 2023-06-19 9:00 ` neil.armstrong
2023-06-19 9:04 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: neil.armstrong @ 2023-06-19 9:00 UTC (permalink / raw)
To: Alexey Romanov, narmstrong, khilman, jbrunet, martin.blumenstingl
Cc: linux-arm-kernel, kernel, linux-amlogic, linux-kernel
On 10/06/2023 11:04, Alexey Romanov wrote:
> Starting from commit e45f243409db ("firmware: meson_sm:
> populate platform devices from sm device tree data") pwrc
> is probed successfully and disables unused pwr domains.
> By A1 SoC family design, any TEE requires DMA pwr domain
> always enabled.
>
> Signed-off-by: Alexey Romanov <avromanov@sberdevices.ru>
> ---
> I'm not entirely sure if this domain should always be enabled on or it
> should be separately enabled in dts file. Comments are welcome.
> ---
> drivers/soc/amlogic/meson-secure-pwrc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/soc/amlogic/meson-secure-pwrc.c b/drivers/soc/amlogic/meson-secure-pwrc.c
> index e93518763526..25b4b71df9b8 100644
> --- a/drivers/soc/amlogic/meson-secure-pwrc.c
> +++ b/drivers/soc/amlogic/meson-secure-pwrc.c
> @@ -105,7 +105,7 @@ static struct meson_secure_pwrc_domain_desc a1_pwrc_domains[] = {
> SEC_PD(ACODEC, 0),
> SEC_PD(AUDIO, 0),
> SEC_PD(OTP, 0),
> - SEC_PD(DMA, 0),
> + SEC_PD(DMA, GENPD_FLAG_ALWAYS_ON | GENPD_FLAG_IRQ_SAFE),
> SEC_PD(SD_EMMC, 0),
> SEC_PD(RAMA, 0),
> /* SRAMB is used as ATF runtime memory, and should be always on */
It's fine to keep it enabled.
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Neil
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v1] drivers: meson: secure-pwrc: always enable DMA domain
2023-06-10 9:04 [PATCH v1] drivers: meson: secure-pwrc: always enable DMA domain Alexey Romanov
2023-06-19 9:00 ` neil.armstrong
@ 2023-06-19 9:04 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2023-06-19 9:04 UTC (permalink / raw)
To: khilman, jbrunet, martin.blumenstingl, Neil Armstrong, Alexey Romanov
Cc: linux-arm-kernel, kernel, linux-amlogic, linux-kernel
Hi,
On Sat, 10 Jun 2023 12:04:14 +0300, Alexey Romanov wrote:
> Starting from commit e45f243409db ("firmware: meson_sm:
> populate platform devices from sm device tree data") pwrc
> is probed successfully and disables unused pwr domains.
> By A1 SoC family design, any TEE requires DMA pwr domain
> always enabled.
>
>
> [...]
Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.5/drivers)
[1/1] drivers: meson: secure-pwrc: always enable DMA domain
https://git.kernel.org/amlogic/c/0bb4644d583789c97e74d3e3047189f0c59c4742
These changes has been applied on the intermediate git tree [1].
The v6.5/drivers branch will then be sent via a formal Pull Request to the Linux SoC maintainers
for inclusion in their intermediate git branches in order to be sent to Linus during
the next merge window, or sooner if it's a set of fixes.
In the cases of fixes, those will be merged in the current release candidate
kernel and as soon they appear on the Linux master branch they will be
backported to the previous Stable and Long-Stable kernels [2].
The intermediate git branches are merged daily in the linux-next tree [3],
people are encouraged testing these pre-release kernels and report issues on the
relevant mailing-lists.
If problems are discovered on those changes, please submit a signed-off-by revert
patch followed by a corrective changeset.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
--
Neil
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-19 9:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-10 9:04 [PATCH v1] drivers: meson: secure-pwrc: always enable DMA domain Alexey Romanov
2023-06-19 9:00 ` neil.armstrong
2023-06-19 9:04 ` Neil Armstrong
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®