Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

phh
Wednesday, February 17th, 2010 at 2:28:55am MST 

  1. diff --git a/arch/arm/mach-msm/pm.c b/arch/arm/mach-msm/pm.c
  2. index fca692c..2f2d78e 100644
  3. --- a/arch/arm/mach-msm/pm.c
  4. +++ b/arch/arm/mach-msm/pm.c
  5. @@ -263,14 +263,14 @@ static int msm_sleep(int sleep_mode, uint32_t sleep_delay, int from_idle)
  6.         if (sleep_mode < MSM_PM_SLEEP_MODE_APPS_SLEEP) {
  7.                if (msm_pm_debug_mask & MSM_PM_DEBUG_SMSM_STATE)
  8.                       smsm_print_sleep_info();
  9. -              writel(0,MSM_AXIGS_BASE+0x800); // disable SMI memory protection
  10. +              //writel(0,MSM_AXIGS_BASE+0x800); // disable SMI memory protection
  11.                udelay(500);
  12.                saved_vector[0] = msm_pm_reset_vector[0];
  13.                saved_vector[1] = msm_pm_reset_vector[1];
  14.                msm_pm_reset_vector[0] = 0xE51FF004; /* ldr pc, 4 */
  15.                msm_pm_reset_vector[1] = virt_to_phys(msm_pm_collapse_exit);
  16.                udelay(500);
  17. -              writel(1,MSM_AXIGS_BASE+0x800); // enable SMI memory protection
  18. +              //writel(1,MSM_AXIGS_BASE+0x800); // enable SMI memory protection
  19.                if (msm_pm_debug_mask & MSM_PM_DEBUG_RESET_VECTOR)
  20.                       printk(KERN_INFO "msm_sleep(): vector %x %x -> "
  21.                              "%x %x\n", saved_vector[0], saved_vector[1],
  22. @@ -291,10 +291,10 @@ static int msm_sleep(int sleep_mode, uint32_t sleep_delay, int from_idle)
  23.  //          local_irq_enable();
  24.                writel(0,MSM_SHARED_RAM_BASE+0xfc100);
  25.                writel(0,MSM_SHARED_RAM_BASE+0xfc128);
  26. -              writel(0,MSM_AXIGS_BASE+0x800); // disable SMI memory protection
  27. +              //writel(0,MSM_AXIGS_BASE+0x800); // disable SMI memory protection
  28.                msm_pm_reset_vector[0] = saved_vector[0];
  29.                msm_pm_reset_vector[1] = saved_vector[1];
  30. -              writel(1,MSM_AXIGS_BASE+0x800); // enable SMI memory protection
  31. +              //writel(1,MSM_AXIGS_BASE+0x800); // enable SMI memory protection
  32.  //          printk("Exit Power Collapse %d\n",collapsed);
  33.                if (msm_pm_debug_mask & MSM_PM_DEBUG_POWER_COLLAPSE)
  34.                       printk(KERN_INFO "msm_pm_collapse(): returned %d\n",
  35. diff --git a/arch/arm/mach-msm/pmem.c b/arch/arm/mach-msm/pmem.c
  36. index 943acf2..192cd76 100644
  37. --- a/arch/arm/mach-msm/pmem.c
  38. +++ b/arch/arm/mach-msm/pmem.c
  39. @@ -271,8 +271,8 @@ static int __init msm_pmem_init() {
  40.  
  41.         }
  42.         //GPU0 must be in SMI1
  43. -       pmem_setting.pmem_gpu0_start=MSM_SMI_BASE+0x100000;//1MB for wince SPL
  44. -       pmem_setting.pmem_gpu0_size=0x700000;
  45. +       pmem_setting.pmem_gpu0_start=MSM_SMI_BASE+0x0001000;//one page for resume vector
  46. +       pmem_setting.pmem_gpu0_size=0x800000;
  47.         resources_msm_fb[0].start=pmem_setting.fb_start;
  48.         resources_msm_fb[0].end=pmem_setting.fb_start+pmem_setting.fb_size;
  49.         resources_msm_fb[0].flags=IORESOURCE_MEM;

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
fantasy-obligation