-
-
Notifications
You must be signed in to change notification settings - Fork 185
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 x230 cleanup #1116
base: master
Are you sure you want to change the base?
Linux x230 cleanup #1116
Conversation
e9425bd
to
048bae8
Compare
@MrChromebox not quite yet. I see a lot of discrepencies between x230-flash and x230. Will remove draft when done. |
048bae8
to
ebb6040
Compare
ebb6040
to
309709c
Compare
I think its time that linux config are stored in their full oldconfig output instead of make savedefconfig output format. By storing into oldconfig format (output of make nconfig/menuconfig) the config files stored in github would be bigger, but could be used as a base for the next version bump directly, where comparing output of old kernel config version vs new kernel version should mostly directly show what are the new default to keep/deactivate. |
Reading all the comments in the thread, I do not understand the motivation for your comment. Can you please elaborate? |
@paulmenzel Thanks for following up! This was a note for me to take into account when i'm going to rebase this PR on master later on. As stated above, if ones takes a look into That When it comes to version bumps, the same logic applies, requiring maintainer to expend that config by copying Someone just taking The short version of this is that if the idea of not storing full configurations under github was to optimize for size of what is contained under tree, the maintenance cost to do version bumps is not justifying it. As seen here, by hiding the defaults and saving only deviations from the default config, we are hiding a lot of things that should be removed, including, as pointed in OP here, uneeded CPU governors, AMD support on Intel and a lot of other device drivers which are becoming activating on newer kernel version and for which a defconfig being used as a base for kernel version bumpwould just use those features by default and consume precious SPI storage because not removed. I think its more logical to have full linux configs in tree, while conserving coreboot in savedefconfig format (and here, this is not my opinion for coreboot, but the agreed direction amongst Heads maintainers). In the goal of tackling #590, I think this is the logical first step. @paulmenzel : any guidance on that level? |
Addtion:
Removal:
Tested on x230 i5:
BTW: https://www.kernelconfig.io/ is an awesome resource to understand from where certain config options are activated and to deactivate the root cause of it in make menuconfig.
Some gain stats: Will be edited to compare
So we have a net gain of 431704 - 101272 : 330432 just by removing unneeded stuff from the kernel. (431704 free bytes, 421kB)
For x230-hotp-maximized board as a comparative, we are now having 4669592 free bytes, 4.45MB left to add more important stuff).
Next steps:
-O2
(optimize for space instead of performance) in all modules, as a configuration option or as a build option override.@MrChromebox this is ready for review.