#
✕ nick:kettenis_
#asahi · 2021-05-23 11:50
kettenis_nvme0: APPLE SSD AP0256Q, firmware 2.101.1, serial 0ba010fae425241b
#asahi · 2021-05-23 11:50
kettenis_nvme0 at aplns0:, NVMe 1.1
#asahi · 2021-05-23 11:50
kettenis_aplns0 at simplebus0
#asahi · 2021-04-12 11:56
kettenis_I wonder if Apple has it somehow hooked up to the SMC via a side-channel to do some sort of active standby
#asahi · 2021-04-12 11:55
kettenis_yeah, the way the wifi/buetooth is integrated is strange
#asahi · 2021-04-12 11:46
kettenis_but an alias will make life easier for m1n1 as well
#asahi · 2021-04-12 11:46
kettenis_that's for u-boot
#asahi · 2021-04-12 11:42
kettenis_and indeed, local-mac-address is the right property
#asahi · 2021-04-12 11:40
kettenis_yes
#asahi · 2021-04-12 11:12
kettenis_so that should take care of fetching the mac address from the device tree
#asahi · 2021-04-12 11:12
kettenis_ah, the linux tg3 driver calls eth_platform_get_mac_address()
#asahi · 2021-04-12 09:56
kettenis_bge(4) already has that though since Sun did something similar with theur onboard broadcom ethernet
#asahi · 2021-04-12 09:56
kettenis_but OpenBSD does indeed need driver modifications
#asahi · 2021-04-12 09:55
kettenis_not sure how this works for drivers in linux
#asahi · 2021-04-12 09:55
kettenis_something that's normally not needed for pcie
#asahi · 2021-04-12 09:54
kettenis_it is a bit awkward for pci devices though sine you need to (partly) describe the pci hierarchy
#asahi · 2021-04-12 09:54
kettenis_standard binding
#asahi · 2021-04-12 09:49
kettenis_if it isn't powered on, it simply doesn't show up as a PCIe device
#asahi · 2021-04-12 09:41
kettenis_related to the wifi; it seems power to the wifi device is controlled by the SMC
#asahi · 2021-04-12 09:34
kettenis_00:10:18 is the OUI for Broadcom
#asahi · 2021-04-12 09:33
kettenis_not sure what the "default" address is for the wifi
#asahi · 2021-04-12 09:32
kettenis_well 00:10:18:00:00:00 for ethernet
#asahi · 2021-04-12 09:30
kettenis_both
#asahi · 2021-04-12 09:30
kettenis_the "real" mac address is stored in the ADT
#asahi · 2021-04-12 09:28
kettenis_all mini's will end up with 00:10:18:00:00:00 as their mac address for the wired interface
#asahi · 2021-04-12 09:28
kettenis_apple doesn't store the mac address in nvram/eeprom/otp
#asahi · 2021-04-12 09:24
kettenis_the (wired) ethernet device needs that too
#asahi · 2021-04-12 09:22
kettenis_the standard way to do it would be to have a mac-address ptoperty on the device tree node for the pci device
#asahi · 2021-04-12 09:21
kettenis_passing the mac address in the device tree should probably be done a bit differently
#asahi · 2021-04-11 19:06
kettenis_hence the suggestion to use a regmap
#asahi · 2021-04-11 19:06
kettenis_the way corellium implements this you end up mapping a full page for each 32-bit register
#asahi · 2021-04-11 19:05
kettenis_not sure what you mean by this, but the 32-bit clock gate registers are part of a few (two?) larger blocks of mmio space
#asahi · 2021-04-11 18:58
kettenis_you communicate with the "SMC" through a mailbox interface
#asahi · 2021-04-11 18:54
kettenis_so we think it is reasonable to assume this is likelyto stay the same in future SoCs
#asahi · 2021-04-11 18:53
kettenis_the only thing that seems to vary is the number of registers (i.e. the number of clocks) and the hierarchy
#asahi · 2021-04-11 18:53
kettenis_i can't type, but you get the point
#asahi · 2021-04-11 18:52
kettenis_generatons even
#asahi · 2021-04-11 18:52
kettenis_as far as we can tell apple has been using the same 32-bit register layout for several enerations of iphones now
#asahi · 2021-04-11 18:51
kettenis_this is how Corellium did things in their "proof-of-concept"
#asahi · 2021-04-11 18:51
kettenis_the nodes that have that
#asahi · 2021-04-11 18:51
kettenis_compatible = "apple,pmgr-clk-gate";
#asahi · 2021-04-11 18:49
kettenis_you still need a small driver to actually set the right bits in the 32-bit clock register
#asahi · 2021-04-11 18:48
kettenis_https://github.com/kettenis/u-boot/blob/apple-m1-m1n1/arch/arm/dts/t8103.dtsi
#asahi · 2021-04-11 18:46
kettenis_register layout I mean
#asahi · 2021-04-11 18:45
kettenis_the only thing that's needed is a compatible for the apple-specific clock layout
#asahi · 2021-04-11 18:45
kettenis_the generic clock bindings already provide a way to express the hierarchy
#asahi · 2021-04-11 18:39
kettenis_but that doesn't apply here
#asahi · 2021-04-11 18:39
kettenis_I suppose the reasoning is that since the device tree is bundled with the kernel it doens't matter whether you add the data in the device tree or in the driver
#asahi · 2021-04-11 18:18
kettenis_I don't see the logic there though ;)
#asahi · 2021-04-11 15:09
kettenis_my understanding omap is done that way since there actually is a bus that can be powered on and off

plus ›