linux-surface / surface-pro-x

Tracking and meta repository for Surface Pro X support.
83 stars 6 forks source link

PCIe/NVME may not be described correctly #26

Open qzed opened 2 years ago

qzed commented 2 years ago

While the PCIe NVME drive seems to work well, it may not be described correctly. According to spec, it uses four PCIe lanes, stemming from controllers 1 and 2, each providing two lanes. This bonding together of controllers/lanes doesn't seem to be described properly in the DT yet. It apparently also requires some more driver work to do so.

At the moment, we may rely on UEFI configuring everything for us. This could lead to problems when suspending, where that config may be lost.

qzed commented 2 years ago

Quoting @andersson form aarch64-laptops IRC:

there's a register which defines if the phys work separately or in tandem...in tandem the initialization sequence needs to initialize both phys, in a slightly different way from when they are separate

I've decided to set num-lanes = <2> for now, which hopefully lets us avoid the second (unconfigured) phy. That way we can hopefully get a stable configuration for experimenting with suspend.