Skip to contentSkip to conversation

_PAGE_PCD bit in DMAable memory

DISCUSSION Ingo Oeser 1 participant 1 message May 18, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ingo Oeser

author
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · you

Thanks much for the reply. I forgot to mention I am on Linux 2.4.20. I looked into 2.6 and could see what you described in your email. The comment on top of consistent_alloc() for arm (2.4.20) says it will give cache-coherent memory, but i am not able to see how this is made possible for Xscale when if it doesn't set the L_PTE_CACHEABLE to 0 (for 2.4.20, again).

There it is hidden in arch/arm/mm/ioremap.c

look at the L_ flags there and how L_PTE_CACHEABLE is missing there by default.

PS: This can be found easily with grep. Try this little Bash script to grep recursively
through the kernel and answer your questions more quickly:

#!/bin/bash
if [ $# -lt 2 ]; then
PROGNAME=basename $0
echo -e "$PROGNAME - find a string in a tree of *.c and *.h files" echo -e "Usage:\t$PROGNAME <start dir> <what>\n"
exit 1
fi

DIR=$1
shift
exec find "${DIR}" -type f -name '*.[ch]' -print0 |xargs -0 grep -A8 "$@"

Regards

Ingo Oeser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAqnIhU56oYWuOrkARAv6xAKCgcq/WebDhbLunZA9m/MnDhbKAVgCffZDE SPn4VpSWK57wFxjmdicyIok=
=KjNv
-----END PGP SIGNATURE-----