]> git.baikalelectronics.ru Git - kernel.git/commit
staging: tidspbridge: configure full L1 MMU range
authorGuzman Lugo, Fernando <fernando.lugo@ti.com>
Fri, 14 Jan 2011 05:34:52 +0000 (23:34 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 Jan 2011 20:01:24 +0000 (12:01 -0800)
commit681fd7fe873bd4d80463f7ebbb6211880030bd61
tree20898e8faf85fb80b846119b5ed3d8b86a7bf3d5
parent64e54276a56f45113babb18165bc7e4209b85746
staging: tidspbridge: configure full L1 MMU range

IVA MMU can manage up to 4GB of address space through its page tables,
given that it's L1 is divided into 1MB sections it requires at least
16KB for its table which represents 4096 entries of 32 bits each.

Previously, only 1GB was being handled by setting the page table size
to 4KB, any virtual address beyond of the L1 size used, would fall
into memory that does not belong to L1 translation tables, leading to
unpredictable results.

So, set the L1 table size to cover the entire MMU range (4GB) whether
is meant to be used or not.

Reported-by: Felipe Contreras <felipe.contreras@nokia.com>
Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/tidspbridge/core/tiomap3430.c