mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Subhasish Ghosh" <subhasish@mistralsolutions.com>
To: "Nori, Sekhar" <nsekhar@ti.com>,
	<davinci-linux-open-source@linux.davincidsp.com>
Cc: <linux-arm-kernel@lists.infradead.org>,
	"Watkins, Melissa" <m-watkins@ti.com>,
	<sachi@mistralsolutions.com>,
	"Kevin Hilman" <khilman@deeprootsystems.com>,
	"Russell King" <linux@arm.linux.org.uk>,
	"Michael Williamson" <michael.williamson@criticallink.com>,
	"Chemparathy, Cyril" <cyril@ti.com>,
	"Sergei Shtylyov" <sshtylyov@ru.mvista.com>,
	"open list" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/1] davinci: changed SRAM allocator to shared ram.
Date: Sat, 26 Feb 2011 17:42:39 +0530	[thread overview]
Message-ID: <25DBF349769A4CF7B883D6D7FF01AD70@subhasishg> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB593024BE49711@dbde02.ent.ti.com>

Hi Sekhar,

I tried this using MMC and Kelvin's suggestions, but it never came back. 
Here is a log:

root@arago:~# rtcwake -d /dev/rtc0 -s 20 -m mem
wakeup from "mem" at Tue Apr 21 14:31:13 2009
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Suspending console(s) (use no_console_suspend to debug)

>From the Kconfig I had enabled RTC_DRV_OMAP, CONFIG_PM, CONFIG_SUSPEND.

--------------------------------------------------
From: "Nori, Sekhar" <nsekhar@ti.com>
Sent: Thursday, February 24, 2011 4:57 PM
To: "Subhasish Ghosh" <subhasish@mistralsolutions.com>; 
<davinci-linux-open-source@linux.davincidsp.com>
Cc: <linux-arm-kernel@lists.infradead.org>; "Watkins, Melissa" 
<m-watkins@ti.com>; <sachi@mistralsolutions.com>; "Kevin Hilman" 
<khilman@deeprootsystems.com>; "Russell King" <linux@arm.linux.org.uk>; 
"Michael Williamson" <michael.williamson@criticallink.com>; "Chemparathy, 
Cyril" <cyril@ti.com>; "Sergei Shtylyov" <sshtylyov@ru.mvista.com>; "open 
list" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH 1/1] davinci: changed SRAM allocator to shared ram.

> Hi Subhasish,
>
> On Thu, Feb 24, 2011 at 15:54:56, Subhasish Ghosh wrote:
>> --------------------------------------------------
>> From: "Nori, Sekhar" <nsekhar@ti.com>
>> Sent: Wednesday, February 23, 2011 9:00 PM
>> To: "Subhasish Ghosh" <subhasish@mistralsolutions.com>;
>> <davinci-linux-open-source@linux.davincidsp.com>
>> Cc: <linux-arm-kernel@lists.infradead.org>; "Watkins, Melissa"
>> <m-watkins@ti.com>; <sachi@mistralsolutions.com>; "Kevin Hilman"
>> <khilman@deeprootsystems.com>; "Russell King" <linux@arm.linux.org.uk>;
>> "Michael Williamson" <michael.williamson@criticallink.com>; "Chemparathy,
>> Cyril" <cyril@ti.com>; "Sergei Shtylyov" <sshtylyov@ru.mvista.com>; "open
>> list" <linux-kernel@vger.kernel.org>
>> Subject: RE: [PATCH 1/1] davinci: changed SRAM allocator to shared ram.
>>
>> > Hi Subhasish,
>> >
>> > On Fri, Feb 11, 2011 at 19:51:28, Subhasish Ghosh wrote:
>> >> This patch modifies the sram allocator to allocate memory
>> >> from the DA8XX shared RAM.
>> >
>> > It will be nice to know if you tried suspend-to-RAM
>> > after this change and found it to be working.
>> >
>>
>> SG -- My file system is currently mounted from MMC.
>>           Suspend to RAM seems to have bug with MMC.
>> 
>> (http://processors.wiki.ti.com/index.php/OMAP-L1_Linux_Drivers_Usage#Suspend-to-RAM)
>
> You can try Kevin's suggestion here:
>
> http://linux.davincidsp.com/pipermail/davinci-linux-open-source/2011-January/021807.html
>
>>           I had tried NFS earlier, but I think there is some problem with
>> NFS boot and udev with this kernel.
>
> Anyway there are some problems reported with Ethernet
> driver and suspend on the latest kernel. Folks inside
> TI are working on it.
>
>>            So, currently I will not be able to do it, but will try if I 
>> get
>> a chance.
>
> How about using ramdisk?
>
> Thanks,
> Sekhar
>
>> > Thanks,
>> > Sekhar
>> >
>> >>
>> >> Signed-off-by: Subhasish Ghosh <subhasish@mistralsolutions.com>
>> >> ---
>> >>  arch/arm/mach-davinci/da850.c              |    6 +++---
>> >>  arch/arm/mach-davinci/include/mach/da8xx.h |    1 +
>> >>  2 files changed, 4 insertions(+), 3 deletions(-)
>> >>
>> >> diff --git a/arch/arm/mach-davinci/da850.c
>> >> b/arch/arm/mach-davinci/da850.c
>> >> index 3443d97..8a4de97 100644
>> >> --- a/arch/arm/mach-davinci/da850.c
>> >> +++ b/arch/arm/mach-davinci/da850.c
>> >> @@ -711,7 +711,7 @@ static struct map_desc da850_io_desc[] = {
>> >>  },
>> >>  {
>> >>  .virtual = SRAM_VIRT,
>> >> - .pfn = __phys_to_pfn(DA8XX_ARM_RAM_BASE),
>> >> + .pfn = __phys_to_pfn(DA8XX_SHARED_RAM_BASE),
>> >>  .length = SZ_8K,
>> >>  .type = MT_DEVICE
>> >>  },
>> >> @@ -1083,8 +1083,8 @@ static struct davinci_soc_info
>> >> davinci_soc_info_da850 = {
>> >>  .gpio_irq = IRQ_DA8XX_GPIO0,
>> >>  .serial_dev = &da8xx_serial_device,
>> >>  .emac_pdata = &da8xx_emac_pdata,
>> >> - .sram_dma = DA8XX_ARM_RAM_BASE,
>> >> - .sram_len = SZ_8K,
>> >> + .sram_dma = DA8XX_SHARED_RAM_BASE,
>> >> + .sram_len = SZ_128K,
>> >>  .reset_device = &da8xx_wdt_device,
>> >>  };
>> >>
>> >> diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h
>> >> b/arch/arm/mach-davinci/include/mach/da8xx.h
>> >> index cfcb223..c3c3339 100644
>> >> --- a/arch/arm/mach-davinci/include/mach/da8xx.h
>> >> +++ b/arch/arm/mach-davinci/include/mach/da8xx.h
>> >> @@ -70,6 +70,7 @@ extern unsigned int da850_max_speed;
>> >>  #define DA8XX_AEMIF_CTL_BASE 0x68000000
>> >>  #define DA8XX_DDR2_CTL_BASE 0xb0000000
>> >>  #define DA8XX_ARM_RAM_BASE 0xffff0000
>> >> +#define DA8XX_SHARED_RAM_BASE 0x80000000
>> >>
>> >>  void __init da830_init(void);
>> >>  void __init da850_init(void);
>> >> -- 
>> >> 1.7.2.3
>> >>
>> >>
>> >
>>
> 

  reply	other threads:[~2011-02-26 12:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-11 14:21 Subhasish Ghosh
2011-02-23 15:30 ` Nori, Sekhar
2011-02-24 10:24   ` Subhasish Ghosh
2011-02-24 11:27     ` Nori, Sekhar
2011-02-26 12:12       ` Subhasish Ghosh [this message]
2011-03-02 17:12         ` Nori, Sekhar
2011-05-16 19:08           ` Ben Gardiner
2011-05-17 18:25             ` Nori, Sekhar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25DBF349769A4CF7B883D6D7FF01AD70@subhasishg \
    --to=subhasish@mistralsolutions.com \
    --cc=cyril@ti.com \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=m-watkins@ti.com \
    --cc=michael.williamson@criticallink.com \
    --cc=nsekhar@ti.com \
    --cc=sachi@mistralsolutions.com \
    --cc=sshtylyov@ru.mvista.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®