Hi, It came to my attention that Nvidia provides some degree of mainline support for old Tegra SoCs, so I wanted to try it on my Acer CB5-311. I checked out v6.11.5, applied tegra_defconfig and booted this kernel with tegra124-nyan-big-fhd.dts from mainline, using CrOS bootloader. The kernel came up and userspace got to the login prompt, but then some issues appeared: 1. Most importantly, the EC keyboard doesn't work, I had to use USB to log in and see what's going on. Turns out, tegra_spi_set_hw_cs_timing() rejects timings expressed in units other than clock cycles, while slave drivers like cros_ec apparently prefer to specify us/ns. Searching around, I found I'm not the first one to run into this issue, not only on Nyan, not only on T124. I got around it by disabling this callback altogether, because SPI core apparently has a workaround. But maybe it's preferable to fix it properly? 2. I noticed that tegra_defconfig doesn't include LPAE. Tomorrow I will see if full 4GB works. Maybe LPAE could be a default on 32 bits? 3. Some more warnings about bypassed regulators and missing touchpad supply (but the touchpad is enabled and works, per evtest at least). 4. Doesn't come out of suspend. No idea what's wrong, how to debug it? 5. USB is power-cycled on boot, which is a bit annoying as I'm booting from a USB connected disk. IIRC CrOS kernel 3.10 wasn't doing it. Any suggestions where to look? WiFi and XHCI are OK, Nouveau loads but not tested yet. I'll attach dmesg from this machine (with broken SPI). Thanks, Michal
Attachment:
nyan-dmesg-6.11.5
Description: Binary data