Well I agree that after the reordering you did it should more likely
work. But it remains valid that viafb can work without it and so it
should (IMHO).
Yes there were actually problems, especially since the really old code
did not even catch the error:
https://bugzilla.kernel.org/show_bug.cgi?id=13976
That mostly works I just tried it once for fun. But that's probably
nothing we want to have in mainline as the hardware acceleration
functions do at least have the possibility to fail. Possible solutions
would include reducing the remapped memory on error (example: dividing
it each time by 2 and failing if not at least 4 MB could be reamapped)
or remapping it on demand: framebuffer only as big as needed (often
between 4 and 8MB) with the possibility to "grow" and the cursor. The
last would be my favourite as it does not needlessly eats memory space
but is hardest to implement. Probably it will be fixed the next time
I'll work around the memory management (which will be also tricky due to
the framebuffer interface)
Yeah at least for viafb that would be nice as it does not use any of
these until now.
Thanks,
Florian Tobias Schandinat
--