sst-linux/arch/powerpc/kernel
Michael Ellerman 6d5f0453a2 powerpc/prom_init: Fixup missing powermac #size-cells
[ Upstream commit cf89c9434af122f28a3552e6f9cc5158c33ce50a ]

On some powermacs `escc` nodes are missing `#size-cells` properties,
which is deprecated and now triggers a warning at boot since commit
045b14ca5c36 ("of: WARN on deprecated #address-cells/#size-cells
handling").

For example:

  Missing '#size-cells' in /pci@f2000000/mac-io@c/escc@13000
  WARNING: CPU: 0 PID: 0 at drivers/of/base.c:133 of_bus_n_size_cells+0x98/0x108
  Hardware name: PowerMac3,1 7400 0xc0209 PowerMac
  ...
  Call Trace:
    of_bus_n_size_cells+0x98/0x108 (unreliable)
    of_bus_default_count_cells+0x40/0x60
    __of_get_address+0xc8/0x21c
    __of_address_to_resource+0x5c/0x228
    pmz_init_port+0x5c/0x2ec
    pmz_probe.isra.0+0x144/0x1e4
    pmz_console_init+0x10/0x48
    console_init+0xcc/0x138
    start_kernel+0x5c4/0x694

As powermacs boot via prom_init it's possible to add the missing
properties to the device tree during boot, avoiding the warning. Note
that `escc-legacy` nodes are also missing `#size-cells` properties, but
they are skipped by the macio driver, so leave them alone.

Depends-on: 045b14ca5c36 ("of: WARN on deprecated #address-cells/#size-cells handling")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241126025710.591683-1-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:54:49 +01:00
..
ptrace powerpc: Don't try to copy PPR for task with NULL pt_regs 2023-04-06 12:10:53 +02:00
syscalls syscalls: fix compat_sys_io_pgetevents_time64 usage 2024-07-05 09:31:59 +02:00
trace powerpc/64: Add support to build with prefixed instructions 2024-10-17 15:21:24 +02:00
vdso powerpc/vdso: Drop -mstack-protector-guard flags in 32-bit files with clang 2024-12-14 19:54:25 +01:00
.gitignore
85xx_entry_mapping.S
align.c
asm-offsets.c powerpc/vdso: Fix VDSO data access when running in a non-root time namespace 2024-10-17 15:21:49 +02:00
audit.c
btext.c
cacheinfo.c
cacheinfo.h
compat_audit.c
cpu_setup_6xx.S
cpu_setup_44x.S
cpu_setup_e500.S
cpu_setup_pa6t.S
cpu_setup_power.c
cpu_setup_ppc970.S
cpu_specs_8xx.h
cpu_specs_40x.h
cpu_specs_44x.h
cpu_specs_47x.h
cpu_specs_85xx.h
cpu_specs_book3s_32.h
cpu_specs_book3s_64.h
cpu_specs_e500mc.h powerpc/cputable: Add missing PPC_FEATURE_BOOKE on PPC64 Book-E 2024-02-23 09:12:43 +01:00
cpu_specs.h
cputable.c
crash_dump.c
dawr.c
dbell.c powerpc/64: Fix perf profiling asynchronous interrupt handlers 2023-02-22 12:59:43 +01:00
dma-iommu.c powerpc/iommu: Incorrect DDW Table is referenced for SR-IOV device 2023-05-24 17:32:52 +01:00
dma-mask.c
dma-swiotlb.c
dt_cpu_ftrs.c
early_32.c
eeh_cache.c
eeh_driver.c
eeh_event.c
eeh_pe.c powerpc/eeh: avoid possible crash when edev->pdev changes 2024-07-25 09:49:17 +02:00
eeh_sysfs.c
eeh.c
entry_32.S powerpc/47x: Fix 47x syscall return crash 2023-10-19 23:08:56 +02:00
entry_64.S
epapr_hcalls.S
epapr_paravirt.c
exceptions-64e.S
exceptions-64s.S
fadump.c powerpc/fadump: Move fadump_cma_init to setup_arch() after initmem_init() 2024-12-14 19:53:36 +01:00
firmware.c
fpu.S powerpc: Don't clobber f0/vs0 during fp|altivec register save 2023-12-08 08:51:15 +01:00
head_8xx.S powerpc/8xx: Fix kernel vs user address comparison 2024-10-17 15:20:53 +02:00
head_32.h
head_40x.S
head_44x.S
head_64.S
head_85xx.S powerpc/85xx: Fix math emulation exception 2023-11-08 14:10:58 +01:00
head_book3s_32.S
head_booke.h
hw_breakpoint_constraints.c powerpc/watchpoint: Disable pagefaults when getting user instruction 2023-10-06 14:56:57 +02:00
hw_breakpoint.c powerpc/watchpoints: Annotate atomic context in more places 2023-10-06 14:56:57 +02:00
idle_6xx.S
idle_64e.S
idle_85xx.S
idle_book3s.S
idle.c
ima_arch.c
interrupt_64.S powerpc/64: Set task pt_regs->link to the LR value on scv entry 2024-02-23 09:12:42 +01:00
interrupt.c powerpc/interrupt: Don't read MSR from interrupt_exit_kernel_prepare() 2023-07-19 16:21:37 +02:00
io-workarounds.c
io.c
iomap.c
iommu.c powerpc/iommu: Fix notifiers being shared by PCI and VIO buses 2023-09-13 09:42:48 +02:00
irq_64.c work around gcc bugs with 'asm goto' with outputs 2024-02-23 09:12:28 +01:00
irq.c powerpc/64: Fix perf profiling asynchronous interrupt handlers 2023-02-22 12:59:43 +01:00
isa-bridge.c
jump_label.c
kdebugfs.c
kgdb.c
kprobes-ftrace.c
kprobes.c
kvm_emul.S
kvm.c
l2cr_6xx.S
legacy_serial.c
Makefile
mce_power.c
mce.c
misc_32.S
misc_64.S
misc.S
module_32.c
module_64.c
module.c
msi.c
note.S
nvram_64.c
of_platform.c
optprobes_head.S
optprobes.c
paca.c
pci_32.c
pci_64.c
pci_dn.c
pci_of_scan.c
pci-common.c
pci-hotplug.c
pmc.c
ppc_save_regs.S powerpc: update ppc_save_regs to save current r1 in pt_regs 2023-07-19 16:21:39 +02:00
proc_powerpc.c
process.c KVM: PPC: Book3S HV: Fix KVM_RUN clobbering FP/VEC user registers 2023-12-08 08:51:15 +01:00
prom_init_check.sh
prom_init.c powerpc/prom_init: Fixup missing powermac #size-cells 2024-12-14 19:54:49 +01:00
prom_parse.c
prom.c powerpc/prom: Add CPU info to hardware description string later 2024-08-03 08:49:20 +02:00
reloc_32.S
reloc_64.S
rtas_entry.S
rtas_flash.c powerpc/rtas_flash: allow user copy to flash block cache objects 2023-08-23 17:52:30 +02:00
rtas_pci.c
rtas-proc.c
rtas-rtc.c
rtas.c powerpc/rtas: use memmove for potentially overlapping buffer copy 2023-05-11 23:03:31 +09:00
rtasd.c
secure_boot.c
security.c powerpc/security: Fix Speculation_Store_Bypass reporting on Power10 2023-07-23 13:49:32 +02:00
secvar-ops.c
secvar-sysfs.c
setup_32.c
setup_64.c powerpc/pseries: Fix KVM guest detection for disabling hardlockup detector 2024-12-14 19:53:58 +01:00
setup-common.c powerpc/fadump: Move fadump_cma_init to setup_arch() after initmem_init() 2024-12-14 19:53:36 +01:00
setup.h
signal_32.c powerpc/signal32: Force inlining of __unsafe_save_user_regs() and save_tm_user_regs_unsafe() 2023-07-19 16:21:37 +02:00
signal_64.c
signal.c
signal.h
smp-tbsync.c
smp.c
stacktrace.c
static_call.c
suspend.c
swsusp_32.S
swsusp_64.c
swsusp_85xx.S
swsusp_asm64.S
swsusp.c
sys_ppc32.c
syscall.c
syscalls.c
sysfs.c
systbl.c
tau_6xx.c
time.c powerpc/kcsan: Exclude udelay to prevent recursive instrumentation 2023-03-17 08:50:31 +01:00
tm.S
traps.c powerpc: Fix build error due to is_valid_bugaddr() 2024-02-05 20:12:46 +00:00
ucall.S
udbg_16550.c
udbg.c
uprobes.c
vdso32_wrapper.S
vdso64_wrapper.S
vdso.c
vecemu.c
vector.S powerpc: Don't clobber f0/vs0 during fp|altivec register save 2023-12-08 08:51:15 +01:00
vmlinux.lds.S powerpc/vmlinux.lds: Don't discard .rela* for relocatable builds 2023-02-25 11:25:42 +01:00
watchdog.c