Subject: Missing '#size-cells' in /ht@0,f2000000/pci@8/mac-io@7/i2s@0 on G5/G4 (kernel 6.13-rc3)

From: Erhard Furtner <[email-masked]>
Date: Thu, 19 Dec 2024 00:07:49 +0100

Greetings!

I am aware there is commit cf89c9434af122f28a3552e6f9cc5158c33ce50a (already merged in v6.13-rc3) which fixes some of the "Missing '#size-cells' errors" but there is more:

------------[ cut here ]------------
hub 3-0:1.0: USB hub found
Missing '#size-cells' in /ht@0,f2000000/pci@8/mac-io@7/i2s@0
hub 3-0:1.0: 2 ports detected
WARNING: CPU: 1 PID: 184 at drivers/of/base.c:133 of_bus_n_size_cells+0xa8/0x120
Modules linked in: snd_aoa_i2sbus(+) i2c_algo_bit snd_hwdep drm_ttm_helper firewire_core crc_itu_t snd_hda_core snd_aoa_soundbus ttm drm_client_lib drm_exec drm_display_helper snd_pcm rack_meter backlight snd_timer drm_kms_helper snd soundcore ohci_pci tg3 hwmon cfg80211 zram loop fuse dm_mod configfs
firewire_ohci 0001:03:0e.0: enabling device (0000 -> 0002)
CPU: 1 UID: 0 PID: 184 Comm: (udev-worker) Not tainted 6.13.0-rc3-PMacG5 #1
Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac
NIP:  c000000000a767f8 LR: c000000000a767f4 CTR: 0000000000000000
REGS: c00000002d193110 TRAP: 0700   Not tainted  (6.13.0-rc3-PMacG5)
MSR:  900000000202b032 <SF,HV,VEC,EE,FP,ME,IR,DR,RI>  CR: 24248242  XER: 20000000
IRQMASK: 0 
GPR00: c000000000a767f4 c00000002d1933b0 c000000000fe1c00 000000000000003c 
GPR04: c00000047fd89788 c00000047fd8e668 0000000000000004 000000047ecd0000 
GPR08: 0000000000000027 c0000000010bdfc8 000000047ecd0000 0000000000008800 
GPR12: c000000000a57d30 c00000000ffffc00 0000000000000000 0000000000000044 
GPR16: c00000000701b380 000000006932732d ffffffffffffffff c00000002fa56cd8 
GPR20: c0003d000078a348 c00000002fa56cb8 c00000002fa56d3c fefefefefefefefe 
GPR24: c00000047fde56a8 ffffffffffffffff c00000002d193514 c00000002d193518 
GPR28: c000000000dc0530 c000000000e7e908 c0000000012eea8a c00000047fde51c8 
NIP [c000000000a767f8] of_bus_n_size_cells+0xa8/0x120
LR [c000000000a767f4] of_bus_n_size_cells+0xa4/0x120
Call Trace:
[c00000002d1933b0] [c000000000a767f4] of_bus_n_size_cells+0xa4/0x120 (unreliable)
[c00000002d193440] [c000000000a8541c] of_bus_default_count_cells+0x4c/0x70
[c00000002d193480] [c000000000a8472c] __of_get_address+0xdc/0x260
[c00000002d1934f0] [c000000000a858b0] __of_address_to_resource+0x60/0x210
[c00000002d193550] [c0003d0000989ce0] i2sbus_probe+0x828/0xa20 [snd_aoa_i2sbus]
[c00000002d193680] [c00000000093a5a8] macio_device_probe+0x78/0x154
[c00000002d1936c0] [c0000000008ff17c] really_probe+0xfc/0x3e0
[c00000002d193750] [c0000000008ff508] __driver_probe_device+0xa8/0x1c0
[c00000002d1937d0] [c0000000008ff76c] driver_probe_device+0x4c/0x120
[c00000002d193810] [c0000000008ffa78] __driver_attach+0xd8/0x200
[c00000002d193850] [c0000000008fbcbc] bus_for_each_dev+0xac/0x110
[c00000002d1938a0] [c0000000008fe77c] driver_attach+0x2c/0x40
[c00000002d1938c0] [c0000000008fdbc8] bus_add_driver+0x208/0x340
[c00000002d193950] [c000000000900c00] driver_register+0xa0/0x1b0
[c00000002d1939c0] [c000000000939de8] macio_register_driver+0x28/0x40
[c00000002d1939e0] [c0003d000098d064] soundbus_i2sbus_init+0x5c/0x7c [snd_aoa_i2sbus]
[c00000002d193a10] [c00000000000d420] do_one_initcall+0x80/0x300
[c00000002d193ae0] [c0000000001435ec] do_init_module+0xac/0x300
[c00000002d193b70] [c0000000001462e0] init_module_from_file+0xa0/0xd0
[c00000002d193c40] [c0000000001464f4] sys_finit_module+0x194/0x450
[c00000002d193d00] [c00000000002084c] system_call_exception+0x10c/0x200
[c00000002d193e50] [c00000000000b4d4] system_call_common+0xf4/0x258
--- interrupt: c00 at 0x3fff9e0278fc
NIP:  00003fff9e0278fc LR: 00003fff9cacde9c CTR: 0000000000000000
REGS: c00000002d193e80 TRAP: 0c00   Not tainted  (6.13.0-rc3-PMacG5)
MSR:  900000000200f032 <SF,HV,VEC,EE,PR,FP,ME,IR,DR,RI>  CR: 28222244  XER: 00000000
IRQMASK: 0 
GPR00: 0000000000000161 00003ffff4432a20 00003fff9e127100 0000000000000018 
GPR04: 00003fff9cad9410 0000000000000000 000000000000001f 0000000000000045 
GPR08: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR12: 0000000000000000 00003fff9e6a77e0 0000000022000000 0000000000020000 
GPR16: 0000000000000000 0000000000000000 000000012bc5fdb1 000000012bc604f8 
GPR20: 00000001357bd9f0 0000000000000000 0000000000000000 00000001357b8070 
GPR24: 0000000000000007 00000001357bd9f0 0000000000000000 00003fff9cad9410 
GPR28: 00000001357b8170 0000000000020000 00000001357bd9f0 0000000000000000 
NIP [00003fff9e0278fc] 0x3fff9e0278fc
LR [00003fff9cacde9c] 0x3fff9cacde9c
--- interrupt: c00
Code: 2c030000 40800074 893e0001 2c090000 4082ffc8 3c62fff4 39200001 7fe4fb78 38636090 993e0001 4b61b6f9 60000000 <0fe00000> ebff0068 2c3f0000 4082ffa8 
---[ end trace 0000000000000000 ]---

Similarly on my G4:

------------[ cut here ]------------
Missing '#size-cells' in /pci@f2000000/mac-io@17/i2s@10000
WARNING: CPU: 1 PID: 551 at drivers/of/base.c:133 of_bus_n_size_cells+0x88/0x94
Modules linked in: snd_aoa_i2sbus(+) snd_aoa_soundbus firewire_core crc_itu_t snd_pcm snd_timer snd soundcore ohci_pci(+)
CPU: 1 UID: 0 PID: 551 Comm: (udev-worker) Not tainted 6.13.0-rc3-PMacG4 #1
Hardware name: PowerMac3,6 7455 0x80010303 PowerMac
NIP:  c0618e90 LR: c0618e90 CTR: 00000000
REGS: c2d979c0 TRAP: 0700   Not tainted  (6.13.0-rc3-PMacG4)
MSR:  00029032 <EE,ME,IR,DR,RI>  CR: 24288228  XER: 00000000

GPR00: c0618e90 c2d97a80 c2af9720 0000003a 000001f2 c2d97924 c2d97918 00000000 
GPR08: eecbe454 c0d58074 c0d58074 c2d97a80 44288228 006cfaec f1060000 c30953ec 
GPR16: f1056324 f1059054 c30952d8 c0d561b8 c30952f0 00000000 c30952e4 f1056320 
GPR24: ffffffff efff7f0c c2d97b2c c2d97b38 00000000 c091efa4 c0db05ba efff7cd0 
firewire_ohci 0002:00:0e.0: enabling device (0000 -> 0002)
NIP [c0618e90] of_bus_n_size_cells+0x88/0x94
LR [c0618e90] of_bus_n_size_cells+0x88/0x94
Call Trace:
[c2d97a80] [c0618e90] of_bus_n_size_cells+0x88/0x94 (unreliable)
[c2d97ab0] [c0620e00] of_bus_default_count_cells+0x38/0x44
[c2d97ad0] [c0620c3c] __of_get_address+0xc4/0x170
[c2d97b10] [c06215f4] __of_address_to_resource+0x54/0x1c4
[c2d97b60] [be7ef84c] i2sbus_probe+0x32c/0x6e4 [snd_aoa_i2sbus]
[c2d97bd0] [c057ee94] macio_device_probe+0x58/0x7c
[c2d97bf0] [c055dc9c] really_probe+0x140/0x298
[c2d97c10] [c055df9c] __driver_probe_device+0x1a8/0x1b0
[c2d97c40] [c055e03c] driver_probe_device+0x34/0xa4
[c2d97c60] [c055e278] __driver_attach+0xfc/0x10c
[c2d97c80] [c055bae4] bus_for_each_dev+0x8c/0xb8
[c2d97cb0] [c055cb44] bus_add_driver+0xe8/0x1fc
[c2d97ce0] [c055eb10] driver_register+0xd4/0x110
[c2d97d00] [c00079b8] do_one_initcall+0x88/0x28c
[c2d97d80] [c00b7ae0] do_init_module+0x64/0x1f0
[c2d97db0] [c00b9740] init_module_from_file+0x94/0x98
[c2d97e20] [c00b99dc] sys_finit_module+0x158/0x268
[c2d97e90] [c00103d8] system_call_exception+0xec/0x124
[c2d97f30] [c00151ac] ret_from_syscall+0x0/0x2c
--- interrupt: c00 at 0x208124
NIP:  00208124 LR: 0041be38 CTR: 00192a88
REGS: c2d97f40 TRAP: 0c00   Not tainted  (6.13.0-rc3-PMacG4)
MSR:  0000d032 <EE,PR,ME,IR,DR,RI>  CR: 2822242c  XER: 00000000

GPR00: 00000161 afbdcd20 a796a760 00000010 00427928 00000000 afbdccf5 5084b67c 
GPR08: 00000000 00000000 01127af8 00192a88 24228420 006cfaec 2822442c 00000000 
GPR16: 00000000 00000008 afbdcf14 afbdcf18 011077b0 00000000 01125f90 00000000 
GPR24: 011077b0 00000000 00427928 01107500 00020000 00000000 00447ad0 011077b0 
NIP [00208124] 0x208124
LR [0041be38] 0x41be38
--- interrupt: c00
Code: 8061001c 39610030 4ba1546c 893e0001 2c090000 40a20020 3c60c09a 39200001 7fe4fb78 386331e0 993e0001 4ba324f1 <0fe00000> 83ff0034 4bffffa0 9421fff0 
---[ end trace 0000000000000000 ]---

Kernel .config and full dmesg attached.

Regards,
Erhard