-
Notifications
You must be signed in to change notification settings - Fork 69
sys-kernel/coreos-modules: Reenable console support for DRM #3180
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
Conversation
I'm not sure why @jepio didn't do this to begin with. Maybe he thought |
Build action triggered: https://github.com/flatcar/scripts/actions/runs/16918629964 |
If it works then good but it doesn't look like |
8e5513a
to
527926a
Compare
I first tried it with DRM_BOCHS and that worked. But it has the side effect of giving a large screen in the qemu script (same as with the uefi script). I tried with simple DRM but that isn't enough to enable the helpers required for nvidia. I guess the bochs support is an ok workaround? It would mean that the qemu window size is always the same in the end, regardless of UEFI or BIOS. One can still get the old behavior with setting, e.g., |
With bochs the vmlinuz size increase was 200 KB |
527926a
to
995287d
Compare
I've added bochs now and if we don't like the new behavior we can also enable qxl instead of something less used. |
With |
I tend to think of Bochs as a legacy option. QXL may be better, but I normally only use that with Windows. I would say |
Ah, with QXL only TTM but not VRAM gets enabled. Yes, I don't know if there's a better way ( |
Jeremi only mentioned TTM, maybe that's enough then? |
I think any one of these work:
|
995287d
to
c157f24
Compare
Good, when qxl is enough it makes sense to set the drm support for it instead of bochs to leave the qemu script window size as is. |
I haven't tried it, but I think one way to force it is to patch the kernel like this: --- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -300,7 +300,7 @@ config DRM_VRAM_HELPER
Helpers for VRAM memory management
config DRM_TTM_HELPER
- tristate
+ tristate "I REALLY WANT THIS ON"
depends on DRM
select DRM_TTM
select DRM_KMS_HELPER if DRM_FBDEV_EMULATION I'd be up for that. This is a relatively low traffic part of the code. |
I haven't tried this either, but Copilot tells me that it should work if we do this after our call to
|
The kernel image is 267 KiB larger now compared to the last Alpha, which I find acceptable. Patching is a fun idea - I still think that a plain config based way is a bit nicer even if the patch could be easily rebased. Less differences compared to other distro's kernel configs also helps against hitting weird corner cases (like the one we are fixing here). |
Unfortunately, this doesn't work. The build process calls
I don't think we can afford that. We're down to our last 850KB per kernel image. It may not look like this in CI, but I've been tracking this over time across different releases. If you originally installed 3975.2 and upgrade 4368.0.0 then 4372.0.1, you would have about 1700KB left in /boot. Dealing this was my number 1 priority this year until very recently. Something else has jumped in front, but I intend to get back to it very soon. I would gladly enable most of the DRM drivers once this is fixed. |
6327ec4
to
a8d2780
Compare
281f223
to
0b56be3
Compare
When the virtio graphic mode instead of qemu's bochs was used, the interactive console did not show up because fbdev emulation recently got disabled. Reenable fbdev emulation and also add the "simple" and QXL FB DRM driver to make TTM_HELPER available for the out-of-tree nvidia driver (which is needed when fbdev emulation is enabled). Fixes flatcar/Flatcar#1834 Signed-off-by: Kai Lueke <[email protected]>
0b56be3
to
dfc931b
Compare
Together with flatcar/bootengine#108 we are 389 KB smaller than Alpha (one more thing to do as a follow-up is the tpm2 wrapper which became a binary again). |
This pulls in flatcar/bootengine#108 Signed-off-by: Kai Lueke <[email protected]>
dfc931b
to
3f5a93a
Compare
sys-kernel/coreos-modules: Reenable console support for DRM
sys-kernel/coreos-modules: Reenable console support for DRM
When the virtio graphic mode instead of qemu's bochs was used, the
interactive console did not show up because fbdev emulation recently
got disabled.
Reenable fbdev emulation and also add the "simple" and QXL FB DRM
driver to make TTM_HELPER available for the out-of-tree nvidia driver
(which is needed when fbdev emulation is enabled).
Fixes flatcar/Flatcar#1834
How to use
Testing done
./flatcar_production_qemu.sh -- -vga virtio
now gives an interactive login promptchangelog/
directory (user-facing change, bug fix, security fix, update)/boot
and/usr
size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.