All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Arvind R <arvino55@gmail.com>
Cc: linux-edac@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	linux-next@vger.kernel.org
Subject: Re: [PATCH 3.7.0 2/9] i82975x_edac.c: fix layers initialisation
Date: Mon, 17 Dec 2012 09:39:13 -0200	[thread overview]
Message-ID: <20121217093913.7c66fa5e@redhat.com> (raw)
In-Reply-To: <CAA_L+UPsAGmRB_gEittUOag0Hu1565jbvfNGsROj9n0x41W21Q@mail.gmail.com>

Hi Arvin,

Em Sun, 16 Dec 2012 02:09:46 +0530
Arvind R <arvino55@gmail.com> escreveu:

> Subject: [PATCH 3.7.0 2/9] i82975x_edac.c: fix layers initialisation
> 
> correct the absolutely wrong initialisation of memory layout.
> Signed-off-by: Arvind R. <arvino55@gmail.com>

This patch looks ok for me.

I didn't have time yet to test this patch series. My plan is to test it
after the merge window, likely in the beginning of January.

If you prefer, I can then merge this changeset (after being fixed with
the relevant comments that developers may point to you) on my linux-edac
tree, with my tested-by.

Regards,
Mauro


> ---
>  i82975x_edac.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> --- a/drivers/edac/i82975x_edac.c	2012-12-15 16:17:28 +0530
> +++ b/drivers/edac/i82975x_edac.c	2012-12-15 16:16:51 +0530
> @@ -544,10 +544,10 @@ static int i82975x_probe1(struct pci_dev
> 
>  	/* assuming only one controller, index thus is 0 */
>  	layers[0].type = EDAC_MC_LAYER_CHIP_SELECT;
> -	layers[0].size = I82975X_NR_DIMMS;
> +	layers[0].size = I82975X_NR_CSROWS(chans);
>  	layers[0].is_virt_csrow = true;
>  	layers[1].type = EDAC_MC_LAYER_CHANNEL;
> -	layers[1].size = I82975X_NR_CSROWS(chans);
> +	layers[1].size = chans;
>  	layers[1].is_virt_csrow = false;
>  	mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt));
>  	if (!mci) {
> --
> To unsubscribe from this list: send the line "unsubscribe linux-edac" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 

Cheers,
Mauro

      reply	other threads:[~2012-12-17 11:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-15 20:39 [PATCH 3.7.0 2/9] i82975x_edac.c: fix layers initialisation Arvind R
2012-12-17 11:39 ` Mauro Carvalho Chehab [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=20121217093913.7c66fa5e@redhat.com \
    --to=mchehab@redhat.com \
    --cc=arvino55@gmail.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.