mbox series

[GIT,PULL] cacheinfo/arch_topology: Updates for v6.4

Message ID 20230417181540.1926349-1-sudeep.holla@arm.com
State New
Headers show
Series [GIT,PULL] cacheinfo/arch_topology: Updates for v6.4 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/cacheinfo-updates-6.4

Message

Sudeep Holla April 17, 2023, 6:15 p.m. UTC
Hi Greg,

Couple of the patches are fixes but I wanted them to be in the next for some
time to get better testing. Few others are addressing issues in RT kernel.

Please pull !

Regards,
Sudeep

-->8

The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6:

  Linux 6.3-rc1 (2023-03-05 14:52:03 -0800)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/cacheinfo-updates-6.4

for you to fetch changes up to ef9f643a9f8b62bcbcc51f0e0af8599adc2e17ed:

  cacheinfo: Add use_arch[|_cache]_info field/function (2023-04-14 10:13:39 +0100)

----------------------------------------------------------------
cacheinfo and arch_topology updates for v6.4

The cache information can be extracted from either a Device Tree(DT),
the PPTT ACPI table, or arch registers (clidr_el1 for arm64).

When the DT is used but no cache properties are advertised, the current
code doesn't correctly fallback to using arch information. The changes
fixes the same and also assuse the that L1 data/instruction caches
are private and L2/higher caches are shared when the cache information
is missing in DT/ACPI and is derived form clidr_el1/arch registers.

Currently the cacheinfo is built from the primary CPU prior to secondary
CPUs boot, if the DT/ACPI description contains cache information.
However, if not present, it still reverts to the old behavior, which
allocates the cacheinfo memory on each secondary CPUs which causes
RT kernels to triggers a "BUG: sleeping function called from invalid
context".

The changes here attempts to enable automatic detection for RT kernels
when no DT/ACPI cache information is available, by pre-allocating
cacheinfo memory on the primary CPU.

----------------------------------------------------------------
Pierre Gondois (4):
      cacheinfo: Check sib_leaf in cache_leaves_are_shared()
      cacheinfo: Check cache properties are present in DT
      arch_topology: Remove early cacheinfo error message if -ENOENT
      cacheinfo: Add use_arch[|_cache]_info field/function

Radu Rendec (3):
      cacheinfo: Add arch specific early level initializer
      cacheinfo: Add arm64 early level initializer implementation
      cacheinfo: Allow early level detection when DT/ACPI info is missing/broken

 arch/arm64/kernel/cacheinfo.c |  25 ++++++++-
 drivers/base/arch_topology.c  |  11 ++--
 drivers/base/cacheinfo.c      | 124 +++++++++++++++++++++++++++++++++---------
 include/linux/cacheinfo.h     |   8 +++
 4 files changed, 133 insertions(+), 35 deletions(-)

Comments

Greg KH April 19, 2023, 1:10 p.m. UTC | #1
On Mon, Apr 17, 2023 at 07:15:40PM +0100, Sudeep Holla wrote:
> Hi Greg,
> 
> Couple of the patches are fixes but I wanted them to be in the next for some
> time to get better testing. Few others are addressing issues in RT kernel.
> 
> Please pull !
> 
> Regards,
> Sudeep
> 
> -->8
> 
> The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6:
> 
>   Linux 6.3-rc1 (2023-03-05 14:52:03 -0800)
> 
> are available in the Git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/cacheinfo-updates-6.4

Pulled and pushed out, thanks.

greg k-h