From: Geert U. <ge...@li...> - 2001-06-15 09:55:43
|
On Fri, 15 Jun 2001, Romain Dolbeau wrote: > pm3fb use the 'request_mem_region' to be a good citizen in > the linux driver world. But I have a chicken-and-egg problem > I just found out: > > 1) if I detect memory *before* request_mem_region, I might > write and read in conflicting memory space. That's what is > done ATM. > > 2) if I detect memory *after* request_mem_region, I must > request the whole 64 MB of aperture space, just in case... > > What is the proper behavior ? Or should I request 64 MB, > detect memory, release 64 MB, request the real size ? So the PCI resource is 64 MB large, but some boards may not be fully populated with RAM? Then always request the full 64 MB. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li... In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds |