From: Andrew Morton <akpm@linux-foundation.org>
To: Shaohui Xie <Shaohui.Xie@freescale.com>
Cc: kumar.gala@freescale.com, "Kai.Jiang" <Kai.Jiang@freescale.com>,
djiang@mvista.com, ptyser@xes-inc.com, dougthompson@xmission.com,
scottwood@freescale.com, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] Correct offset_in_page mask bits in function edac_mc_handle_ce.
Date: Thu, 14 Jul 2011 14:50:42 -0700 [thread overview]
Message-ID: <20110714145042.9d2e88de.akpm@linux-foundation.org> (raw)
In-Reply-To: <1310608902-14221-1-git-send-email-Shaohui.Xie@freescale.com>
On Thu, 14 Jul 2011 10:01:42 +0800
Shaohui Xie <Shaohui.Xie@freescale.com> wrote:
> From: Kai.Jiang <Kai.Jiang@freescale.com>
>
> Parameter offset_in_page in function edac_mc_handle_ce should be masked
> the higher bits above the page size, not the lower bits. The original input
> sometimes causes crash.
>
> Signed-off-by: Kai.Jiang <Kai.Jiang@freescale.com>
> ---
> drivers/edac/mpc85xx_edac.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
> index 38ab8e2..b048a5f 100644
> --- a/drivers/edac/mpc85xx_edac.c
> +++ b/drivers/edac/mpc85xx_edac.c
> @@ -854,11 +854,11 @@ static void mpc85xx_mc_check(struct mem_ctl_info *mci)
> mpc85xx_mc_printk(mci, KERN_ERR, "PFN out of range!\n");
>
> if (err_detect & DDR_EDE_SBE)
> - edac_mc_handle_ce(mci, pfn, err_addr & PAGE_MASK,
> + edac_mc_handle_ce(mci, pfn, err_addr & ~PAGE_MASK,
> syndrome, row_index, 0, mci->ctl_name);
>
> if (err_detect & DDR_EDE_MBE)
> - edac_mc_handle_ue(mci, pfn, err_addr & PAGE_MASK,
> + edac_mc_handle_ue(mci, pfn, err_addr & ~PAGE_MASK,
> row_index, mci->ctl_name);
>
> out_be32(pdata->mc_vbase + MPC85XX_MC_ERR_DETECT, err_detect);
The patch should have had your Signed-off-by:, as described in
Documentation/SubmittingPatches. I added your s-o-b to my copy -
please ack this.
>From the description it appears to me that this fix should be
backported into 2.6.39.x and earlier. Do you agree?
The way to indicate this intention is to add "Cc: <stable@kernel.org>"
to the changelog. I added that tag to my copy of this patch.
next prev parent reply other threads:[~2011-07-14 21:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-14 2:01 [PATCH] Correct offset_in_page mask bits in function edac_mc_handle_ce Shaohui Xie
2011-07-14 21:50 ` Andrew Morton [this message]
2011-07-15 6:21 ` Xie Shaohui-B21989
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=20110714145042.9d2e88de.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=Kai.Jiang@freescale.com \
--cc=Shaohui.Xie@freescale.com \
--cc=djiang@mvista.com \
--cc=dougthompson@xmission.com \
--cc=kumar.gala@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=ptyser@xes-inc.com \
--cc=scottwood@freescale.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;
as well as URLs for NNTP newsgroup(s).