Re: [PATCH 2/2] Fix console handling during suspend/resume

Benjamin Herrenschmidt
2006-06-25T00:57:31Z

> I think requiring X to reinitialize the screen for us is perfectly fine.

When X can :) Wether we need X or some other userland based emulator,
the problem for the kernel is the same. We need to define something at
the fbdev level though to tell it to stay suspended until userland does
something to wake it up in that case. vgacon has less problems as it's
generally harmless to access the VGA memory hole even when the card
doesn't respond on the bus or isn't initialized. On machines using
fbdev, though, this is different, and depending on your platform can
cause machine checks or lockups (x86 tends to be fairly resilient to PCI
accesses into the wild turning into master or target aborts, though I've
heard some server-class x86 are not, ppc are generally not though).

> One of the reasons I wanted to get netconsole working is that on many
> modern laptops, networking really does end up being the "simplest" device.

Yes, true.

> Graphics is complex as hell (and on the Mac Mini, even doing a video BIOS
> init sequence doesn't even work - it has no video bios even with the
> firmware updated to look more like a PC, it's normally initialized by
> EFI).
>
> KeithP tells me that it's not even Mac Mini specific, and that some normal
> laptops will resume similarly video-bios-less.

Yes. What happens with a lot of these things nowadays is that there is
no video BIOS proper at the PCI ROM base but whatever is needed to
initialize the video chip is buried in the system BIOS and the vendor
provides a mini-BIOS like kind of thing to answer a few standard VBE
calls.

> And serial is obviously gone, and its replacement (USB) is one of the
> biggest problems to initialize fully, and nobody expects it to be up until
> fairly late.
>
> Which literally leaves networking as existing on just about everything
> these days. It is also usually well-documented (network chip manufacturers
> definitely want Linux to work on those things), and the drivers know how
> to initialize everything. So netconsole really _should_ be able to work
> fairly early on.
>
> I suspect most people prefer debugging over a network anyway (I know I
> do).

Out of curiosity, do you get the video back at all on the mini ? Or will
we have at some point to get code to do a full re-initialization of the
intel video chip ?

Ben.