Skip to content

DT: CPU h/w id parsing clean-ups and cacheinfo id support

Rob Herring linux-arm-kernel linux-csky linux-devicetree linux-riscv linux-sh linuxppc-dev lkml openrisc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12of: Add of_get_cpu_hwid() to read hardware ID from CPU nodesdrivers/of/base.c include/linux/of.h+23 -01 reply
2/12ARM: Use of_get_cpu_hwid()arch/arm/kernel/devtree.c+2 -200 replies
3/12ARM: broadcom: Use of_get_cpu_hwid()arch/arm/mach-bcm/bcm63xx_pmb.c+3 -31 reply
4/12arm64: Use of_get_cpu_hwid()arch/arm64/kernel/smp.c+2 -292 replies
5/12csky: Use of_get_cpu_hwid()arch/csky/kernel/smp.c+2 -40 replies
6/12openrisc: Use of_get_cpu_hwid()arch/openrisc/kernel/smp.c+1 -56 replies
7/12powerpc: Use of_get_cpu_hwid()arch/powerpc/kernel/smp.c+1 -61 reply
8/12riscv: Use of_get_cpu_hwid()arch/riscv/kernel/cpu.c+2 -10 replies
9/12sh: Use of_get_cpu_hwid()arch/sh/boards/of-generic.c+2 -31 reply
10/12x86: dt: Use of_get_cpu_hwid()arch/x86/kernel/devicetree.c+2 -30 replies
11/12cacheinfo: Allow for >32-bit cache 'id'drivers/base/cacheinfo.c include/linux/cacheinfo.h+8 -21 reply
12/12cacheinfo: Set cache 'id' based on DT datadrivers/base/cacheinfo.c+26 -01 reply

Reviews trailers per patch

8 of 12 patches have a Reviewed-by or Acked-by.

PatchStafford HorneFlorian FainelliWill DeaconMichael EllermanSudeep HollaRich Felker
SeriesT-b
1/12R-b
2/12
3/12A-b
4/12A-b R-b
5/12
6/12A-b
7/12A-b
8/12
9/12A-b
10/12
11/12R-b
12/12A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH 00/12] DT: CPU h/w id parsing clean-ups and cacheinfo id support

The first 10 patches add a new function, of_get_cpu_hwid(), which parses CPU DT node 'reg' property, and then use it to replace all the open coded versions of parsing CPU node 'reg' properties.

The last 2 patches add support for populating the cacheinfo 'id' on DT platforms. The minimum associated CPU hwid is used for the id. The id is optional, but necessary for resctrl which is being adapted for Arm MPAM.

Tested on arm64. Compile tested on arm, x86 and powerpc.

Rob

Rob Herring (12):
of: Add of_get_cpu_hwid() to read hardware ID from CPU nodes
ARM: Use of_get_cpu_hwid()
ARM: broadcom: Use of_get_cpu_hwid()
arm64: Use of_get_cpu_hwid()
csky: Use of_get_cpu_hwid()
openrisc: Use of_get_cpu_hwid()
powerpc: Use of_get_cpu_hwid()
riscv: Use of_get_cpu_hwid()
sh: Use of_get_cpu_hwid()
x86: dt: Use of_get_cpu_hwid()
cacheinfo: Allow for >32-bit cache 'id'
cacheinfo: Set cache 'id' based on DT data

 arch/arm/kernel/devtree.c       | 22 ++-------------------
 arch/arm/mach-bcm/bcm63xx_pmb.c |  6 +++---
 arch/arm64/kernel/smp.c         | 31 ++----------------------------
 arch/csky/kernel/smp.c          |  6 ++----
 arch/openrisc/kernel/smp.c      |  6 +-----
 arch/powerpc/kernel/smp.c       |  7 +------
 arch/riscv/kernel/cpu.c         |  3 ++-
 arch/sh/boards/of-generic.c     |  5 ++---
 arch/x86/kernel/devicetree.c    |  5 ++---
 drivers/base/cacheinfo.c        | 34 ++++++++++++++++++++++++++++++++-
 drivers/of/base.c               | 22 +++++++++++++++++++++
 include/linux/cacheinfo.h       |  2 +-
 include/linux/of.h              |  1 +
 13 files changed, 74 insertions(+), 76 deletions(-)
Signature · 1 line
2.30.2