public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Borislav Petkov <borislav.petkov@amd.com>
To: wan wei <onewayforever@gmail.com>
Cc: dougthompson@xmission.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] amd64_edac: Rewrite unganged mode code of f10_early_channel_count
Date: Fri, 7 Aug 2009 17:11:02 +0200	[thread overview]
Message-ID: <20090807151102.GE29900@aftab> (raw)
In-Reply-To: <86bb1aef0908070739q6b7fdd60wae9550bb99f658cd@mail.gmail.com>

On Fri, Aug 07, 2009 at 10:39:39PM +0800, wan wei wrote:
> simplify the procedure by checking if there is any dimm  in each channel.
> this patch will fix the bugs such as when there is no dimms  under
> certain node,  two dimms in the same channel, and only one dimm in
> each channel of the node.
> 
> Signed-off-by: Wan Wei<wanwei@mail.dawning.com.cn>
> ---
>  drivers/edac/amd64_edac.c |   43 ++++++++++---------------------------------
>  1 files changed, 10 insertions(+), 33 deletions(-)
> 
> diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
> index e2a10bc..acf9cfe 100644
> --- a/drivers/edac/amd64_edac.c
> +++ b/drivers/edac/amd64_edac.c
> @@ -1200,6 +1200,8 @@ static int f10_early_channel_count(struct amd64_pvt *pvt)
>  {
>  	int err = 0, channels = 0;
>  	u32 dbam;
> +	int i, j;
> +	int dbams[] = { DBAM0, DBAM1 };
> 
>  	err = pci_read_config_dword(pvt->dram_f2_ctl, F10_DCLR_0, &pvt->dclr0);
>  	if (err)
> @@ -1232,45 +1234,20 @@ static int f10_early_channel_count(struct
> amd64_pvt *pvt)

Thanks.

patching file drivers/edac/amd64_edac.c
patch: **** malformed patch at line 28: amd64_pvt *pvt)

Your patch is still garbled, I've applied it by hand this time. For the
future, please send a patch privately to yourself first and try applying
it to check whether your mail client mangles it.

-- 
Regards/Gruss,
Boris.

Operating | Advanced Micro Devices GmbH
  System  | Karl-Hammerschmidt-Str. 34, 85609 Dornach b. München, Germany
 Research | Geschäftsführer: Thomas M. McCoy, Giuliano Meroni
  Center  | Sitz: Dornach, Gemeinde Aschheim, Landkreis München
  (OSRC)  | Registergericht München, HRB Nr. 43632


      reply	other threads:[~2009-08-07 15:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07  5:36 [PATCH] amd64_edac: Rewrite unganged mode code of f10_early_channel_count wan wei
2009-08-07 12:29 ` Borislav Petkov
2009-08-07 14:39   ` wan wei
2009-08-07 15:11     ` Borislav Petkov [this message]

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=20090807151102.GE29900@aftab \
    --to=borislav.petkov@amd.com \
    --cc=dougthompson@xmission.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=onewayforever@gmail.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