Skip to content
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

linux: CONFIG_HIDRAW=y #86598

Merged
merged 1 commit into from May 3, 2020
Merged

linux: CONFIG_HIDRAW=y #86598

merged 1 commit into from May 3, 2020

Conversation

Valodim
Copy link
Contributor

@Valodim Valodim commented May 2, 2020

Motivation for this change

The linux kernel arm64 default config doesn't include HIDRAW. The kernel docs list this option as "If unsure, say Y". It's been enabled in x86_64 since 12 years ago. It's also been in OpenWRT for 5 years. I'm not sure why it's not on by default for arm64.

Motivation for this change is feature parity between platforms. I was able to do hidraw input on my desktop and on rpi4 (with rpi kernel), but not an rpi3 with linuxPackages built for aarch64.

That said, I'm not very knowledgeable about kernel modules, and the warning on top of common-config.nix sounds scary :) so I'd appreciate someone with more experience weighing in if this is as harmless as it looks, or if we should be more careful with the change.

I tested this by enabling HIDRAW via kernelPatches, works as expected.

Things done

@lheckemann
Copy link
Member

@ofborg build linux_4_4 linux_latest

@Valodim
Copy link
Contributor Author

Valodim commented May 2, 2020

Ah, unsurprisingly this causes a bunch of rebuilds. Should I rebase this against staging instead?

@lheckemann
Copy link
Member

I think the kernel is still fine for master as far as the number of rebuilds is concerned, would defer to someone more knowledgeable though :)

@Valodim
Copy link
Contributor Author

Valodim commented May 2, 2020

looks like the build failed for linux_4_4. bummer :(

...
  LD      drivers/built-in.o
make[1]: *** [Makefile:152: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2
...
builder for '/nix/store/6bb5vxp5q689r46x7dgd9pk1gd13w7l1-linux-4.4.220.drv' failed with exit code 2

only happened for the arm64 build, the x86 went ok. hum.

@lheckemann
Copy link
Member

This may not be a regression, I'm just building the unmodified arm64 4.4 kernel to compare (and the fact that it wasn't in the cache is a strong suggestion that it's broken anyway). In that case I'd be all for merging this.

@lheckemann lheckemann merged commit 88e07d3 into NixOS:master May 3, 2020
@lheckemann
Copy link
Member

Indeed, the build was failing without this change too.

@Valodim Valodim deleted the aarch64-hidraw branch May 3, 2020 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants