mbox series

[0/3] ARM: enable cache via Trusted Foundations firmware

Message ID cover.1541882833.git.mirq-linux@rere.qmqm.pl
Headers show
Series ARM: enable cache via Trusted Foundations firmware | expand

Message

Michał Mirosław Nov. 10, 2018, 9:02 p.m. UTC
This set enables platforms using Trusted Foundations firmware to use
their L2 cache. L2 cache can be enabled only by calling the firmware.

Michał Mirosław (3):
  ARM: cache-l2x0: share l2x0_base with PMU code
  ARM: trusted_foundations: enable L2x0 cache via firmware_ops
  ARM: trusted_foundations: announce firmware version

 arch/arm/firmware/trusted_foundations.c    | 67 +++++++++++++++++++++-
 arch/arm/include/asm/hardware/cache-l2x0.h |  6 +-
 arch/arm/mm/cache-l2x0-pmu.c               |  9 +--
 arch/arm/mm/cache-l2x0.c                   | 14 ++++-
 4 files changed, 82 insertions(+), 14 deletions(-)

Comments

Michał Mirosław Nov. 10, 2018, 9:18 p.m. UTC | #1
This patchset enables starting up all cores on Tegra3 with Trusted
Foundations firmware. This is Tegra-specific part and depends on
"ARM: enable cache via Trusted Foundations firmware" patchset sent
earlier.

Michał Mirosław (2):
  ARM: tegra: enable cache via TF
  ARM: tegra: avoid touching Secure registers in reset handler

 arch/arm/firmware/trusted_foundations.c    |  6 +++--
 arch/arm/include/asm/trusted_foundations.h |  6 +++--
 arch/arm/mach-tegra/reset-handler.S        | 27 +++++++++++++++++++++-
 arch/arm/mach-tegra/reset.c                |  5 +++-
 arch/arm/mach-tegra/reset.h                |  5 ++--
 arch/arm/mach-tegra/tegra.c                |  6 +++--
 6 files changed, 45 insertions(+), 10 deletions(-)
Dmitry Osipenko Nov. 11, 2018, 12:42 p.m. UTC | #2
On 11.11.2018 0:02, Michał Mirosław wrote:
> This set enables platforms using Trusted Foundations firmware to use
> their L2 cache. L2 cache can be enabled only by calling the firmware.
> 
> Michał Mirosław (3):
>   ARM: cache-l2x0: share l2x0_base with PMU code
>   ARM: trusted_foundations: enable L2x0 cache via firmware_ops
>   ARM: trusted_foundations: announce firmware version
> 
>  arch/arm/firmware/trusted_foundations.c    | 67 +++++++++++++++++++++-
>  arch/arm/include/asm/hardware/cache-l2x0.h |  6 +-
>  arch/arm/mm/cache-l2x0-pmu.c               |  9 +--
>  arch/arm/mm/cache-l2x0.c                   | 14 ++++-
>  4 files changed, 82 insertions(+), 14 deletions(-)
> 

Hello Michał,

Very nice to see that you are keeping to work on it! Couple months ago I posted patches that add a full-featured Trusted Foundations support on Tegra30 [0] (including suspend-resume, thumb2 kernel, handling CONFIG_CACHE_L2X0=n), unfortunately they didn't get any attention yet. Could you please take a look and try out [0]? I've got everything working without touching arch/arm/mm/cache-l2x0* at all. Would be awesome if we could cooperate the efforts somehow, maybe that will also help to get more attention from the maintainers.

[0] https://patchwork.ozlabs.org/project/linux-tegra/list/?series=63339