Re: my opinion about VGA devices
From: Tomas Carnecky
Date: Wed Oct 20 2004 - 07:47:56 EST
Oliver Neukum wrote:
Am Mittwoch, 20. Oktober 2004 00:10 schrieb Tomas Carnecky:
I think this would make the suspend/resume/access/switching etc problems
much easier to solve since the kernel module could tell the library to
stop drawing/accessing mmap'ed memory etc. (or if the OpenGL rendering
is done in the kernel module it could just discard the render commands).
Since the user has no direct access to mmap'ed memory and other critical
sections of the device, the driver can implement proper power managment
for suspend/resume etc.
Well... that's it.. any comments? I'm sure you have.. :)
You are making damn sure that there will be no useful bug reports
about problems with resuming from S3.
I guess that you are talking about the fact that displaying text
messages would be possible only after the first device driver has
initialized and registered with the kernel.
You could do the printing in two stages: at the begining the same way as
in the current kernel, but as soon as the first driver is registered,
the kernel switches to the function provided by the driver.
Something like this:
void print_message(...)
{
if (no_module_registered) {
use_print_function_provided_by_the_kernel();
} else {
if (!printing_disabled) {
use_print_function_provided_by_the_driver_module();
} else {
/* printing disabled by the userspace, we are not
* allowed to touch the hardware */
}
}
}
tom
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/