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: explicitly enable RAS #104760

Merged
merged 1 commit into from Nov 27, 2020
Merged

linux: explicitly enable RAS #104760

merged 1 commit into from Nov 27, 2020

Conversation

gravndal
Copy link
Contributor

@gravndal gravndal commented Nov 24, 2020

Motivation for this change

This is needed for EDAC support.

I'm not familiar with how common-config.nix is structured, so placed the entry near MCE as it is somewhat related.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@gravndal
Copy link
Contributor Author

ping @lheckemann

@lheckemann
Copy link
Member

@ofborg build linux linux_latest

@@ -775,6 +775,8 @@ let
X86_CHECK_BIOS_CORRUPTION = yes;
X86_MCE = yes;

RAS = yes;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add an explicit comment here stating why this is needed?

Copy link
Contributor Author

@gravndal gravndal Nov 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I suppose I can do that, though it might be more natural to explicitly enable EDAC as well (as building that really is the intent here, even though the current change is sufficient).

@gravndal gravndal changed the title linux: explicitly enable RAS linux: explicitly enable RAS and EDAC Nov 25, 2020
@gravndal
Copy link
Contributor Author

gravndal commented Nov 25, 2020

As a sidenote, this should probably be backported to 20.09 if EDAC's missing there as well. Not supporting reporting of low level hardware errors is a bit unfortunate.

Edit: Hmm, this doesn't build, thought I checked it yesterday...
Edit2: EDAC_GHES is missing some dependencies, advice in the Kconfig is In doubt, say 'Y', so shall I add these?

@lheckemann
Copy link
Member

I don't think we want EDAC to be built-in to the kernel though — I'd say either go back to enabling only RAS (which can't be modularised), or set EDAC to build as a module explicitly. I think I prefer enabling only RAS.

@gravndal
Copy link
Contributor Author

gravndal commented Nov 25, 2020

Seems it can't be modularised if EDAC_GHES is enabled.

Looking at some other distros:

  • Debian explicitly enables EDAC, but leaves EDAC_GHES unset.
  • Arch, Fedora, and OpenSUSE enable both.

Edit: That's for x86_64, it changes a bit with other architectures: E.g. For Fedora on armv7hl ACPI_APEI_GHES is no longer set, and on OpenSUSE *_GHES is left out entirely.

This is needed for EDAC support.
@gravndal
Copy link
Contributor Author

@lheckemann I'm leaving EDAC et al. out of this so at least RAS = yes; can be merged. EDAC and whatnot can always be done separately if it turns out to be needed.

@gravndal gravndal changed the title linux: explicitly enable RAS and EDAC linux: explicitly enable RAS Nov 26, 2020
@lheckemann lheckemann merged commit 9174f79 into NixOS:master Nov 27, 2020
@gravndal gravndal deleted the edac branch November 27, 2020 18:22
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