-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel: enable PHY_ROCKCHIP_PCIE and PCIE_ROCKCHIP_HOST #126615
Conversation
Fixes failure to detect NVMe SSD in Rockchip devices like NanoPC-T4. More details can be seen in: NixOS/nixos-hardware#259 NixOS#111034 Signed-off-by: Jakub Sokołowski <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabling it outright to yes for all users is not a solution. Especially if there are issues that this is working around; maybe that will cause more issues elsewhere on probe. (Though unlikely)
I was made aware of this recently: Try applying this patch and still use the modules. It's unclear to me whether it would help the specific issue you are facing or not. |
Wow, I have not seen that. That's VERY fresh. It would fit with the timeout errors I was getting when I tried putting them
It targets the same module, but it's not exactly the same part of the code that causes the timeout: I will try to use the patch with modules added to the |
Yes, apparently it was a "known issue" for RK3399 and PCIe. I lament the fact there is no centralized location for listing known issues. |
(Converted to draft to ensure no accidental merges happen... Let's see where this goes!) |
Nope, I tired the following configuration: {
boot.kernelPackages = pkgs.linuxPackages_5_11;
boot.kernelPatches = [{
name = "v2-PCI-rockchip-Avoid-accessing-PCIe-registers-with-clocks-gated.diff";
patch = pkgs.fetchurl {
url = "https://patchwork.kernel.org/project/linux-rockchip/patch/[email protected]/raw/";
sha256 = "0057gmjj5glbkabyi5jgnd8r9dhnsb7mkc6nbyxnv6a0rh69yx4n";
};
}];
boot.initrd.kernelModules = [ "pcie-rockchip-host" "phy-rockchip-pcie" ];
} And it fails to boot, and I see the same error in kernel logs:
So no, it doesn't seem like that patch fixes it. |
I've also tried the following patch: {
boot.kernelPackages = pkgs.linuxPackages_5_11;
boot.kernelPatches = [{
name = "PCI-rockchip-Fix-timeout-in-rockchip_pcie_host_init_port.diff";
patch = pkgs.fetchurl {
url = "https://patchwork.ozlabs.org/project/linux-pci/patch/[email protected]/raw/";
sha256 = "0qhggf4ikdcx36lrnlri46gmhj7rvx6j88c7jzii1pb2daxg77cy";
};
}];
boot.initrd.kernelModules = [ "pcie-rockchip-host" "phy-rockchip-pcie" ];
} Which actually touches the exact timeout for which kernel log message I've seen, but it doesn't help, which is quite confusing. |
I marked this as stale due to inactivity. → More info |
Yeah, I don't think enabling that globally makes sense. If I ever find a patch that fixes this I'll open a new PR. |
Motivation for this change
Fixes failure to detect NVMe SSD in Rockchip devices like NanoPC-T4.
More details can be seen in:
NixOS/nixos-hardware#259
#111034
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)