[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <504FC2E9.4010708@akamai.com>
Date: Tue, 11 Sep 2012 18:02:01 -0500
From: Josh Hunt <johunt@...mai.com>
To: Josh Hunt <johunt@...mai.com>
CC: "borislav.petkov@....com" <borislav.petkov@....com>,
"linux-edac@...r.kernel.org" <linux-edac@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] amd64_edac: Memory size reported double on processor
family 0Fh
[fixing lkml address]
On 09/11/2012 05:52 PM, Josh Hunt wrote:
> With recent kernels we noticed that edac was reporting double the memory size on
> systems running with AMD family 0Fh processors. I'm not very familiar with the
> code, but this resolves it from what I can see on my systems. At least in
> amd64_debug_display_dimm_sizes() and k8_dbam_to_chip_select() there appeared
> to be redundant shifts to the left by 1 when WIDTH_128 is present.
>
> thanks
> Josh
>
> ---
>
> Since commit 41d8bfaba70311c2fa0666554ef160ea8ffc9daf the memory size reported
> by edac has been double. Adding to the shift if WIDTH_128 is set looks to be
> redundant, removing.
>
> Signed-off-by: Josh Hunt <johunt@...mai.com>
> ---
> drivers/edac/amd64_edac.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
> index 5a297a2..c796710 100644
> --- a/drivers/edac/amd64_edac.c
> +++ b/drivers/edac/amd64_edac.c
> @@ -1123,7 +1123,7 @@ static int k8_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct,
>
> if (pvt->ext_model >= K8_REV_F) {
> WARN_ON(cs_mode > 11);
> - return ddr2_cs_size(cs_mode, dclr & WIDTH_128);
> + return ddr2_cs_size(cs_mode, 0);
> }
> else if (pvt->ext_model >= K8_REV_D) {
> unsigned diff;
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists