linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* copy_from_user in drivers/video/fbmem.c
@ 2000-06-16  9:31 Adrian Cox
  2000-06-16 11:14 ` Geert Uytterhoeven
  0 siblings, 1 reply; 13+ messages in thread
From: Adrian Cox @ 2000-06-16  9:31 UTC (permalink / raw)
  To: LinuxPPC-Dev


I've just ported the chips driver in 2.2 to the 69030 (now Asiliant, was
Intel, was C&T). I've found that writing to the frame buffer device
fails, because the underlying method in fbmem.c uses copy_from_user(),
and on PowerPC copy_from_user() cannot copy into uncached space.

Which do people think is wrong:
Is copy_from_user() on PPC wrong, because it can't write to uncached
space.
Is fbmem.c wrong, because it tries to use copy_from_user() to memory
mapped IO?

- Adrian Cox, AG Electronics

ps. On the 7400 this is fairly academic, as writing sequentially to a
cache line allocates it without the need for dcbz.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2000-06-20 23:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-16  9:31 copy_from_user in drivers/video/fbmem.c Adrian Cox
2000-06-16 11:14 ` Geert Uytterhoeven
2000-06-16 14:04   ` [linux-fbdev] " James Simmons
2000-06-19 10:15   ` CTFB 0.30 now availiable (CT65554...CT69000) Thomas H?henleitner
2000-06-19 11:11     ` Adrian Cox
2000-06-19 17:31       ` Thomas H?henleitner
2000-06-19 14:12     ` [linux-fbdev] " James Simmons
2000-06-19 14:28       ` Geert Uytterhoeven
2000-06-19 14:41         ` James Simmons
2000-06-19 17:27         ` Thomas H?henleitner
2000-06-19 19:11           ` James Simmons
2000-06-20  9:03             ` name space pollution Was " Thomas H?henleitner
2000-06-20 23:40               ` James Simmons

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).