Re: vga and 64-bit memcpy's

From: Alan Cox
Date: Fri Sep 12 2014 - 06:26:35 EST


On Fri, 12 Sep 2014 13:57:20 +1000
Dave Airlie <airlied@xxxxxxxxx> wrote:

> Got an bug report from someone using a silicon motion video card in
> VGA mode about corruption that they tracked down to 64-bit memory
> operations not being supported by the video card, it appears that we
> probably shouldn't be using > 32-bit copies on VGA memory.

VGA memory is write combining usually so the answer in general would be
no. You may also find its a combination of bridge and card and one or the
other is somehow out of spec.

> The include/linux/vt_buffer.h defaults scr_memcpyw defaults to using
> memcpy, which on 64-bit x86 machines ends up as rep movsq. Is there
> any way to make this use a 32-bit memcpy instead?

Please don't - you'll reduce performance for everyone else with saner
video cards.

Alan
--
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/