Re: 2.6.19-rc5-mm1: HPC nx6325 breakage, VESA fb problem, md-raidproblem

From: Franck Bui-Huu
Date: Fri Nov 10 2006 - 05:43:48 EST


Andrew Morton wrote:
> On Thu, 9 Nov 2006 16:42:00 +0100
> "Rafael J. Wysocki" <rjw@xxxxxxx> wrote:
>
>> This indeed is caused by fbcon-rere-fix-little-endian-bogosity-in-slow_imageblit.patch
>> which affects two out of three boxes on which I tested it (both have Radeon cards).
>
> Thanks, dropped.
>

Well I'm probably missing something but I really don't see what !

For example, let say that the four first bytes of an image are 0x06,
0xe0, 0x38, 0x00.

If
bpp = 1
start_index = 0
on a little endian platform
this patch is _not_ applied

slow_imageblit() will write into the frame buffer the following
bytes: 0x60, 0x07, 0x1c, 0x00 instead of the original ones. The bits
of each bytes have been inversed (bit7->bit0, bit6->bit1, bit5->bit2,
bit4->bit3, bit3->bit4, ...) and that's the reason why _I_ get all
fonts inverted.

With this patch applied, the bytes written into the frame buffer will
be exactly the same as the original ones. Therefore it fixes my
inverted view but broke Rafael's one.

Now, I'm very not familiar with all frame buffer stuff so I must be
missing somthing obvious. If anyone could give me some hints there
that would be nice.

Thanks
Franck
-
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/