All pastes #1799707 Raw Edit

phh

public text v1 · immutable
#1799707 ·published 2010-02-17 09:28 UTC
rendered paste body
diff --git a/arch/arm/mach-msm/pm.c b/arch/arm/mach-msm/pm.cindex fca692c..2f2d78e 100644--- a/arch/arm/mach-msm/pm.c+++ b/arch/arm/mach-msm/pm.c@@ -263,14 +263,14 @@ static int msm_sleep(int sleep_mode, uint32_t sleep_delay, int from_idle) 	if (sleep_mode < MSM_PM_SLEEP_MODE_APPS_SLEEP) { 		if (msm_pm_debug_mask & MSM_PM_DEBUG_SMSM_STATE) 			smsm_print_sleep_info();-		writel(0,MSM_AXIGS_BASE+0x800); // disable SMI memory protection+		//writel(0,MSM_AXIGS_BASE+0x800); // disable SMI memory protection 		udelay(500); 		saved_vector[0] = msm_pm_reset_vector[0]; 		saved_vector[1] = msm_pm_reset_vector[1]; 		msm_pm_reset_vector[0] = 0xE51FF004; /* ldr pc, 4 */ 		msm_pm_reset_vector[1] = virt_to_phys(msm_pm_collapse_exit); 		udelay(500);-		writel(1,MSM_AXIGS_BASE+0x800); // enable SMI memory protection+		//writel(1,MSM_AXIGS_BASE+0x800); // enable SMI memory protection 		if (msm_pm_debug_mask & MSM_PM_DEBUG_RESET_VECTOR) 			printk(KERN_INFO "msm_sleep(): vector %x %x -> " 			       "%x %x\n", saved_vector[0], saved_vector[1],@@ -291,10 +291,10 @@ static int msm_sleep(int sleep_mode, uint32_t sleep_delay, int from_idle) //		local_irq_enable(); 		writel(0,MSM_SHARED_RAM_BASE+0xfc100); 		writel(0,MSM_SHARED_RAM_BASE+0xfc128);-		writel(0,MSM_AXIGS_BASE+0x800); // disable SMI memory protection+		//writel(0,MSM_AXIGS_BASE+0x800); // disable SMI memory protection 		msm_pm_reset_vector[0] = saved_vector[0]; 		msm_pm_reset_vector[1] = saved_vector[1];-		writel(1,MSM_AXIGS_BASE+0x800); // enable SMI memory protection+		//writel(1,MSM_AXIGS_BASE+0x800); // enable SMI memory protection //		printk("Exit Power Collapse %d\n",collapsed); 		if (msm_pm_debug_mask & MSM_PM_DEBUG_POWER_COLLAPSE) 			printk(KERN_INFO "msm_pm_collapse(): returned %d\n",diff --git a/arch/arm/mach-msm/pmem.c b/arch/arm/mach-msm/pmem.cindex 943acf2..192cd76 100644--- a/arch/arm/mach-msm/pmem.c+++ b/arch/arm/mach-msm/pmem.c@@ -271,8 +271,8 @@ static int __init msm_pmem_init() {  	} 	//GPU0 must be in SMI1-	pmem_setting.pmem_gpu0_start=MSM_SMI_BASE+0x100000;//1MB for wince SPL-	pmem_setting.pmem_gpu0_size=0x700000;+	pmem_setting.pmem_gpu0_start=MSM_SMI_BASE+0x0001000;//one page for resume vector+	pmem_setting.pmem_gpu0_size=0x800000; 	resources_msm_fb[0].start=pmem_setting.fb_start; 	resources_msm_fb[0].end=pmem_setting.fb_start+pmem_setting.fb_size; 	resources_msm_fb[0].flags=IORESOURCE_MEM;