From: Geert U. <ge...@li...> - 2000-11-27 07:30:24
|
On Sun, 26 Nov 2000 fh...@at... wrote: > Is there any info on how to align memory in the Linux PPC > kernel. Actually info on how get_free_pages aligns memory. > I'm guessing that this is the major problem with getting the > PuP SCSI working. > > It looks like what most of the drivers I looked at do is add > a little extra to the size of the chunk and then move the > pointer so it's on a 32 bit boundary. Seems simple enough. > What if the chip that wants to do DMA only needs 16 bit > (or 8 bit) alignment? It seems that then there is a further problem > where the memory needs to be "synced" so the > 16bit or 8 bit parts line up with the 32bit parts. Doesn't get_free_pages() simply return page-aligned data? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li... 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 |