LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-04-2016, 07:43 AM   #1
vmhb
LQ Newbie
 
Registered: Apr 2016
Posts: 5

Rep: Reputation: Disabled
Dram self refresh


When DRAM is idle the system I have is putting the DRAM modules in a power down/self refresh mode and no clock is sent to the DRAM. This is causing issues with a debugging tool I have attached to the memory.

I would like to know if/how this feature can be disabled from within Linux or the Kernel as it does not seem to happen if the machine is paused at boot stage.
 
Old 05-04-2016, 08:08 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Not sure but I think there is a kernel option for RAM power management that can be turned off in kernel config.
 
Old 05-04-2016, 08:19 AM   #3
vmhb
LQ Newbie
 
Registered: Apr 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
I am running kernel 3.16.6 and cannot find anything that makes a difference with make xconfig. There is an Intel specific option CONFIG_I7300_IDLE which makes no difference on the Supermicro Opteron based board I have.

There are some files in /sys/devices/system/memory/, is this where the self refresh mode can be disabled?
 
Old 05-04-2016, 08:35 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

Welcome to LQ!

Quote:
Originally Posted by vmhb View Post
When DRAM is idle the system I have is putting the DRAM modules in a power down/self refresh mode and no clock is sent to the DRAM. This is causing issues with a debugging tool I have attached to the memory.

I would like to know if/how this feature can be disabled from within Linux or the Kernel as it does not seem to happen if the machine is paused at boot stage.
I suggest that you look at; https://en.wikipedia.org/wiki/Memory_controller so that you can understand the memory management process.

Look at; https://en.wikipedia.org/wiki/Dynami...-access_memory to get an understanding how DRAM functions with a system.

Hope this helps.
Have fun & enjoy!
 
Old 05-04-2016, 09:11 AM   #5
vmhb
LQ Newbie
 
Registered: Apr 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
My understanding is that there is a defined sequence for powering down a DRAM module called a POWER DOWN ENTRY. This consists of removing clock enable, CKE, while the chip is still selected CS#. After that the clock is removed. This can be actioned by setting the EnterSelfRef bit in the DRAM configuration low register, for an AMD Opteron.

Something somewhere must be doing this, or something similar, or is the result of some other function. Whatever the source is, it would seem Linux has a role to play as it does not seem to happen if Linux is not booted.
 
Old 05-26-2016, 11:56 AM   #6
vmhb
LQ Newbie
 
Registered: Apr 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
For anyone that is interested I did find a solution to my problem.

By adding idle=poll to the kernel boot options you can stop this power saving mode. I am not suggesting it would be something of any value to anyone else but it did what I wanted.
 
Old 05-27-2016, 01:08 PM   #7
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
Smile

vmhb,
Quote:
Dram self refresh
I don't mind if I do, mine's a double old chap!

Last edited by beachboy2; 05-27-2016 at 01:14 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rowhammer DRAM-based privilege escalation exploit metaschima Linux - Security 3 03-11-2015 05:15 PM
how to check total DRAM & type of DRAM in my linux machine? casualzone Linux - Hardware 3 07-15-2011 05:33 AM
Installing Cisco Router 3620 to DRAM geckopunk Linux - General 4 12-19-2010 05:37 PM
Power states of DRAM soltanloo Linux - Hardware 0 07-24-2010 09:44 AM
Why does changing DRAM frequency cause Kernel panic? godsucker Linux - Hardware 5 07-23-2008 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration