From: Michal Simek <michal.simek@xilinx.com>
To: Borislav Petkov <bp@alien8.de>, Michal Simek <michal.simek@xilinx.com>
Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu,
"Naga Sureshkumar Relli" <naga.sureshkumar.relli@xilinx.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Sören Brinkmann" <soren.brinkmann@xilinx.com>,
linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org
Subject: Re: [PATCH 2/5] edac: synopsys: Add EDAC ECC support for ZynqMP DDRC
Date: Mon, 7 Aug 2017 08:20:53 +0200 [thread overview]
Message-ID: <14045ee2-6da2-c0f2-55a2-b2dfd742c811@xilinx.com> (raw)
In-Reply-To: <20170807040300.GC7516@nazgul.tnic>
On 7.8.2017 06:03, Borislav Petkov wrote:
> On Fri, Aug 04, 2017 at 02:00:24PM +0200, Michal Simek wrote:
>> From: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
>>
>> This patch adds EDAC ECC support for ZynqMP DDRC IP
>>
>> Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>> ---
>>
>> drivers/edac/Kconfig | 2 +-
>> drivers/edac/synopsys_edac.c | 306 ++++++++++++++++++++++++++++++++++++++++++-
>> 2 files changed, 302 insertions(+), 6 deletions(-)
>
> ...
>
>> @@ -440,9 +706,12 @@ static int synps_edac_mc_init(struct mem_ctl_info *mci,
>> mci->dev_name = SYNPS_EDAC_MOD_STRING;
>> mci->mod_name = SYNPS_EDAC_MOD_VER;
>> mci->mod_ver = "1";
>> -
>> - edac_op_state = EDAC_OPSTATE_POLL;
>> - mci->edac_check = synps_edac_check;
>> + if (priv->p_data->quirks & DDR_ECC_INTR_SUPPORT) {
>> + edac_op_state = EDAC_OPSTATE_INT;
>> + } else {
>> + edac_op_state = EDAC_OPSTATE_POLL;
>> + mci->edac_check = synps_edac_check;
>> + }
>> mci->ctl_page_to_phys = NULL;
>>
>> status = synps_edac_init_csrows(mci);
>
> This hunk doesn't apply cleanly:
>
> $ test-apply.sh -q /tmp/02-edac-synopsys-add_edac_ecc_support_for_zynqmp_ddrc.patch
> checking file drivers/edac/Kconfig
> checking file drivers/edac/synopsys_edac.c
> Hunk #11 FAILED at 706.
> Hunk #12 succeeded at 723 (offset -1 lines).
> Hunk #13 succeeded at 754 (offset -1 lines).
> Hunk #14 succeeded at 803 (offset -1 lines).
> 1 out of 14 hunks FAILED
>
> Please redo your patches against this branch:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/log/?h=for-next
>
The patch "EDAC: Get rid of mci->mod_ver" is causing that collision.
Will fix.
> Thx.
>
>> @@ -458,8 +727,18 @@ static int synps_edac_mc_init(struct mem_ctl_info *mci,
>> .quirks = 0,
>> };
>>
>> +static const struct synps_platform_data zynqmp_enh_edac_def = {
>> + .synps_edac_geterror_info = synps_enh_edac_geterror_info,
>> + .synps_edac_get_mtype = synps_enh_edac_get_mtype,
>> + .synps_edac_get_dtype = synps_enh_edac_get_dtype,
>> + .synps_edac_get_eccstate = synps_enh_edac_get_eccstate,
>> + .quirks = DDR_ECC_INTR_SUPPORT,
>> +};
>> +
>> static const struct of_device_id synps_edac_match[] = {
>> { .compatible = "xlnx,zynq-ddrc-a05", .data = (void *)&zynq_edac_def },
>> + { .compatible = "xlnx,zynqmp-ddrc-2.40a",
>> + .data = (void *)&zynqmp_enh_edac_def},
>
> WARNING: DT compatible string "xlnx,zynqmp-ddrc-2.40a" appears un-documented -- check ./Documentation/devicetree/bindings/
> #414: FILE: drivers/edac/synopsys_edac.c:740:
> + { .compatible = "xlnx,zynqmp-ddrc-2.40a",
>
> Please integrate checkpatch.pl into your patch creation workflow.
>
Thanks,
Michal
next prev parent reply other threads:[~2017-08-07 6:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-04 12:00 [PATCH 1/5] edac: synopsys: Add platform specific structures ddrc controller Michal Simek
2017-08-04 12:00 ` [PATCH 2/5] edac: synopsys: Add EDAC ECC support for ZynqMP DDRC Michal Simek
2017-08-07 4:03 ` Borislav Petkov
2017-08-07 6:20 ` Michal Simek [this message]
2017-08-04 12:00 ` [PATCH 3/5] edac: synopsys: Add ecc error injection support Michal Simek
2017-08-04 12:00 ` [PATCH 4/5] edac: synopsys: Update ecc error message info Michal Simek
2017-08-04 12:00 ` [PATCH 5/5] edac: synopsys: Enable CE and UE interrupts for ZynqMP DDRC Michal Simek
2017-08-06 5:18 ` [PATCH 1/5] edac: synopsys: Add platform specific structures ddrc controller Borislav Petkov
2017-08-07 7:39 ` Michal Simek
2017-08-07 9:27 ` Borislav Petkov
2017-08-07 9:30 ` Michal Simek
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=14045ee2-6da2-c0f2-55a2-b2dfd742c811@xilinx.com \
--to=michal.simek@xilinx.com \
--cc=bp@alien8.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=monstr@monstr.eu \
--cc=naga.sureshkumar.relli@xilinx.com \
--cc=soren.brinkmann@xilinx.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
all inboxes | Powered by JetHome®