aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuzman Lugo, Fernando <fernando.lugo@ti.com>2011-01-14 00:34:52 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-20 15:01:24 -0500
commit8e290fd41a15e392af87a33c9c4db3daffcd558b (patch)
tree20898e8faf85fb80b846119b5ed3d8b86a7bf3d5
parent27c82819a5a42f08fc0f787ab1b0c129cbdda801 (diff)
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>
-rw-r--r--drivers/staging/tidspbridge/core/tiomap3430.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/tidspbridge/core/tiomap3430.c b/drivers/staging/tidspbridge/core/tiomap3430.c
index a3b0a183d570..c3126e2e23f0 100644
--- a/drivers/staging/tidspbridge/core/tiomap3430.c
+++ b/drivers/staging/tidspbridge/core/tiomap3430.c
@@ -786,10 +786,7 @@ static int bridge_dev_create(struct bridge_dev_context
786 786
787 pt_attrs = kzalloc(sizeof(struct pg_table_attrs), GFP_KERNEL); 787 pt_attrs = kzalloc(sizeof(struct pg_table_attrs), GFP_KERNEL);
788 if (pt_attrs != NULL) { 788 if (pt_attrs != NULL) {
789 /* Assuming that we use only DSP's memory map 789 pt_attrs->l1_size = SZ_16K; /* 4096 entries of 32 bits */
790 * until 0x4000:0000 , we would need only 1024
791 * L1 enties i.e L1 size = 4K */
792 pt_attrs->l1_size = 0x1000;
793 align_size = pt_attrs->l1_size; 790 align_size = pt_attrs->l1_size;
794 /* Align sizes are expected to be power of 2 */ 791 /* Align sizes are expected to be power of 2 */
795 /* we like to get aligned on L1 table size */ 792 /* we like to get aligned on L1 table size */