Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753174Ab2FLQil (ORCPT ); Tue, 12 Jun 2012 12:38:41 -0400 Received: from nm1-vm2.bullet.mail.ne1.yahoo.com ([98.138.91.17]:34156 "HELO nm1-vm2.bullet.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751306Ab2FLQik convert rfc822-to-8bit (ORCPT ); Tue, 12 Jun 2012 12:38:40 -0400 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 855540.15029.bm@omp1053.mail.ne1.yahoo.com DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=hgNvPlTNWxcnbexTfO4lUtRwZkjY0i9EcXrIpN0WAn/o5D5QmSwDq05xtOJ7ZZWvq6pTEtjT/GP1Oz68v10Ukc0YCpK99oe9z6HM3fwiyP/DZ+NbgYeb5pIrza0eQ6u6bmyvQcVB8sGq/etKp3XdceWuG5yY+ryVSrn9z7LjeDA=; X-YMail-OSG: HV9OjIYVM1kpCVSTvhtboouZ80_IpQYqRq3SBIskgH1_c_4 UKbzu86iVqkeTA.LPdcxpWAHWI4SS16pPQL9TzIzJDqKkgUkxe6e3DPFDz6z ._hhKkjKMqj12NGg0gXK_LVNNLCwWX2Rn6brZ5voWvVfH52AbIL6ES1.I5Z7 VvklFFtCVujkgv03Nz51RTnmarrtPOV92UfBvbCJwwTzrjxPM_I46Aji32ZH q4RVWkPyVzniNri.zbfclZcDcDwLqzNZ6UC9XtV3wm9.37NixWxFkHeKWbmz eRVhOc.oXIGvy7wxgbnpshs8eeJmooyUCSWzV3jEcf2qWGuEwNbhI3J3P1UA leVy2z7pL5IeuNJQg9WFGi7ghfrIGQGddSxx_tKQH38DGcox8mxQF3M8MSEI P6cBWbzf4WrrUn_PVwoeRoLiTxd_4oylBV2CYBkgrwcWJjXttRlm_F2.pudO JZhdJpSvNNjJ1oHGyPMJoIj6qsOhus4nUN1TlcZY1W1aonErmAVVNqLnL5_8 mxdQ- X-Mailer: YahooMailWebService/0.8.118.349524 References: <1339493860.10145.YahooMailNeo@web111708.mail.gq1.yahoo.com> <20120612103954.GB10124@x1.osrc.amd.com> <1339508890.39685.YahooMailNeo@web111705.mail.gq1.yahoo.com> <4FD75C84.7020105@canonical.com> <1339514128.5023.YahooMailNeo@web111708.mail.gq1.yahoo.com> <4FD760BC.7030409@canonical.com> Message-ID: <1339519116.75645.YahooMailNeo@web111719.mail.gq1.yahoo.com> Date: Tue, 12 Jun 2012 09:38:36 -0700 (PDT) From: Mahmood Naderan Reply-To: Mahmood Naderan Subject: Re: CPU MTRRs and linux kernel To: Stefan Bader Cc: Borislav Petkov , "\"linux-kernel@vger.kernel.org\"" , Andreas Herrmann In-Reply-To: <4FD760BC.7030409@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5035 Lines: 126 >From the kernel version you gave in the >initial post I take you are using a Ubuntu 10.04 server installation. And the >latest kernel for that release is 2.6.32-41.89 (which should replace any older >kernel if you do updates). ? ok I got it. thanks ~MN ----- Original Message ----- From: Stefan Bader To: Mahmood Naderan Cc: Borislav Petkov ; "linux-kernel@vger.kernel.org" ; Andreas Herrmann Sent: Tuesday, June 12, 2012 8:01 PM Subject: Re: CPU MTRRs and linux kernel On 12.06.2012 17:15, Mahmood Naderan wrote: >> And the latest kernel is 2.6.32-41.89 by now... > > Sorry 3.4.2 ??? Not sure what this is intended to mean. From the kernel version you gave in the initial post I take you are using a Ubuntu 10.04 server installation. And the latest kernel for that release is 2.6.32-41.89 (which should replace any older kernel if you do updates). -Stefan >? > > // Naderan *Mahmood; > > > ----- Original Message ----- > From: Stefan Bader > To: Mahmood Naderan > Cc: Borislav Petkov ; "linux-kernel@vger.kernel.org" ; Andreas Herrmann > Sent: Tuesday, June 12, 2012 7:43 PM > Subject: Re: CPU MTRRs and linux kernel > > On 12.06.2012 15:48, Mahmood Naderan wrote: >> Thanks Borislav, >> I want to know, should I upgrade to the latest kernel or it is possible to download the source of 2.6.32-24 from repository and modify cleanup.c and then recompile? >> > Just update to the latest kernel. 2.6.32-24.39 is way old. The fix Boris > mentioned was in 2.6.32-27.49. And the latest kernel is 2.6.32-41.89 by now... > > -Stefan > >> ~MN >> >> ----- Original Message ----- >> From: Borislav Petkov >> To: Mahmood Naderan >> Cc: "linux-kernel@vger.kernel.org" ; Andreas Herrmann >> Sent: Tuesday, June 12, 2012 3:09 PM >> Subject: Re: CPU MTRRs and linux kernel >> >> On Tue, Jun 12, 2012 at 02:37:40AM -0700, Mahmood Naderan wrote: >>> Hi everybody, >>> Abour rhis warnning in boot log: >>> >>> WARNING: BIOS bug: CPU MTRRs don't cover all of memory, losing 61952MB of RAM >>> >>>? >>> I >>>? ? searched a lot however didn't find a clear solution. Does AMD new >>> processors (62XX) have problems with new kernels or old kernels?? >>> Mine is: >>> >>> Linux n1 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux >>> >>> Should I upgrade? >> >> Yes, fix is below and it got backported to -stable AFAICT but obviously >> the ubuntus don't have it in the kernel you cite above. >> >> >> commit 3fdbf004c1706480a7c7fac3c9d836fa6df20d7d >> Author: Andreas Herrmann >> Date:? Thu Sep 30 14:32:35 2010 +0200 >> >>? ? ? x86, mtrr: Assume SYS_CFG[Tom2ForceMemTypeWB] exists on all future AMD CPUs >>? ? >>? ? ? Instead of adapting the CPU family check in amd_special_default_mtrr() >>? ? ? for each new CPU family assume that all new AMD CPUs support the >>? ? ? necessary bits in SYS_CFG MSR. >>? ? >>? ? ? Tom2Enabled is architectural (defined in APM Vol.2). >>? ? ? Tom2ForceMemTypeWB is defined in all BKDGs starting with K8 NPT. >>? ? ? In pre K8-NPT BKDG this bit is reserved (read as zero). >>? ? >>? ? ? W/o this adaption Linux would unnecessarily complain about bad MTRR >>? ? ? settings on every new AMD CPU family, e.g. >>? ? >>? ? ? [? ? 0.000000] WARNING: BIOS bug: CPU MTRRs don't cover all of memory, losing 4863MB of RAM. >>? ? >>? ? ? Cc: stable@kernel.org # .32.x, .35.x >>? ? ? Signed-off-by: Andreas Herrmann >>? ? ? LKML-Reference: <20100930123235.GB20545@loge.amd.com> >>? ? ? Signed-off-by: H. Peter Anvin >> >> diff --git a/arch/x86/kernel/cpu/mtrr/cleanup.c b/arch/x86/kernel/cpu/mtrr/cleanup.c >> index c5f59d071425..ac140c7be396 100644 >> --- a/arch/x86/kernel/cpu/mtrr/cleanup.c >> +++ b/arch/x86/kernel/cpu/mtrr/cleanup.c >> @@ -827,7 +827,7 @@ int __init amd_special_default_mtrr(void) >> >>? ? ? ? ? if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) >>? ? ? ? ? ? ? ? ? return 0; >> -? ? ? if (boot_cpu_data.x86 < 0xf || boot_cpu_data.x86 > 0x11) >> +? ? ? if (boot_cpu_data.x86 < 0xf) >>? ? ? ? ? ? ? ? ? return 0; >>? ? ? ? ? /* In case some hypervisor doesn't pass SYSCFG through: */ >>? ? ? ? ? if (rdmsr_safe(MSR_K8_SYSCFG, &l, &h) < 0) >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at? http://vger.kernel.org/majordomo-info.html > Please read the FAQ at? http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/