[lkml]   [2005]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Console rotation problems
    Benjamin Herrenschmidt wrote:
    > Remove bogus usage of test/set_bit() from fbcon rotation code and just
    > manipulate the bits directly. This fixes an oops on powerpc among others
    > and should be faster. Seems to work fine on the G5 here.

    Thanks, I reached a point when my head became muddled with bit
    manipulations, so I used arch-specific bitops but complete forgot
    that they were atomic :-)

    > Signed-off-by: Benjamin Herrenschmidt <>
    Acked-by: Antonino Daplas <>

    > ---
    > And here is the fix. Tony, did I miss something ?

    Works in little-endian too, so thank you very much. cfbimageblit may
    also suffer from this same mistake (mine). So can you test with
    12x22 fonts at rotate 1 or 3 with acceleration off?

    This particular line in cfbimgblit.c:slow_imageblit() is definitely

    - color = (*s & 1 << (BIT_NR(l))) ? fgcolor : bgcolor;
    + color = (*s & (1 << l)) ? fgcolor : bgcolor;

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-11-24 07:35    [W:0.027 / U:30.860 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site