On Thu, Dec 15, 2011 at 23:10, Timur Tabi <timur@xxxxxxxxxxxxx> wrote: > Konrad Rzeszutek Wilk wrote: >>> > #define FBINFO_PARTIAL_PAN_OK 0x0040 /* otw use pan only for double-buffering */ >>> > #define FBINFO_READS_FAST 0x0080 /* soft-copy faster than rendering */ > >> Not really. They have a different function, but you are better of looking in the code >> to see how they are used. > I can't parse this, and I can't figure out if my driver is better off with or without FBINFO_PARTIAL_PAN_OK. This depends on which of these two is fastest for scrolling the console: - panning the virtual screen and redrawing the missing part: set FBINFO_PARTIAL_PAN_OK - copying or redrawing the screen: don't set FBINFO_PARTIAL_PAN_OK > I have the same problem with FBINFO_READS_FAST. You should set this flag if reading from frame buffer memory is a fast operation. On many graphics devices, reading from frame buffer memory is much slower than writing. As you use system RAM, you probably want to set it. If this flag is set, scrolling is implemented by copying memory around. If not set, scrolling is implemented by redrawing the whole screen. A simple way to find the optimal settings of both flags (all 4 combinations) is running "clear; time cat big_text_file" and comparing the timing results Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx 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 -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html