From mboxrd@z Thu Jan 1 00:00:00 1970 From: robert.jarzmik@free.fr (Robert Jarzmik) Date: Mon, 07 Jun 2010 21:41:37 +0200 Subject: [PATCH] pxa2xx/cpufreq: Fix DRI computation In-Reply-To: <1275698808-31166-1-git-send-email-marek.vasut@gmail.com> (Marek Vasut's message of "Sat\, 5 Jun 2010 02\:46\:48 +0200") References: <1275698808-31166-1-git-send-email-marek.vasut@gmail.com> Message-ID: <87bpbmocjy.fsf@free.fr> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Marek Vasut writes: > The DRI field was incorrectly computed, causing various hangs and weird > behaviour on PXA2xx machines. This patch introduces the DRI computation > according to the PXA255 (January 2004) and PXA270 (MV-S301039-00 Rev. A) > datasheets. Hi Marek, I'll help a bit in the review here, but I need a few days. Meanwhile, I began the review and I have a question : did you check MDCNFG_DRAC0() and MDCNFG_DRAC2() definitions ? As I check my TRM, it should be, according to my manual : + #define MDCNFG_DRAC2(mdcnfg) (((mdcnfg) >> 19) & 0x3) + #define MDCNFG_DRAC0(mdcnfg) (((mdcnfg) >> 3) & 0x3) - #define MDCNFG_DRAC2(mdcnfg) (((mdcnfg) >> 21) & 0x3) - #define MDCNFG_DRAC0(mdcnfg) (((mdcnfg) >> 5) & 0x3) While I was checking the calculation, that rows calculation doesn't fit. Hence I wonder if init_sdram_rows() will be correct. I'll send a full review soon, don't be too quick with V2 please. Cheers. -- Robert