* [RESEND,4/4] EDAC: add support for reduced-width Armada-XP SDRAM
@ 2017-08-07 1:46 Chris Packham
0 siblings, 0 replies; 3+ messages in thread
From: Chris Packham @ 2017-08-07 1:46 UTC (permalink / raw)
To: robh+dt, gregory.clement, bp, jlu, linux-arm-kernel, linux-edac,
linux-kernel
Cc: Chris Packham, Mauro Carvalho Chehab
Some integrated Armada XP SoCs use a reduced pin count so the width of
the SDRAM interface is smaller than the traditional discrete SoCs. This
means that the definition of "full" and "half" width is further reduced.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
drivers/edac/armada_xp_edac.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/edac/armada_xp_edac.c b/drivers/edac/armada_xp_edac.c
index 68e88b180928..d8edcaac87c0 100644
--- a/drivers/edac/armada_xp_edac.c
+++ b/drivers/edac/armada_xp_edac.c
@@ -350,6 +350,9 @@ static int armada_xp_mc_edac_probe(struct platform_device *pdev)
if (armada_xp_mc_edac_read_config(mci))
return -EINVAL;
+ if (of_property_read_bool(pdev->dev.of_node, "marvell,reduced-width"))
+ drvdata->width /= 2;
+
/* configure SBE threshold */
/* it seems that SBEs are not captured otherwise */
writel(1 << SDRAM_ERR_CTRL_ERR_THR_OFFSET,
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [RESEND,4/4] EDAC: add support for reduced-width Armada-XP SDRAM
@ 2017-08-11 9:14 Borislav Petkov
0 siblings, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2017-08-11 9:14 UTC (permalink / raw)
To: Chris Packham
Cc: robh+dt, gregory.clement, jlu, linux-arm-kernel, linux-edac,
linux-kernel, Mauro Carvalho Chehab
On Mon, Aug 07, 2017 at 01:46:41PM +1200, Chris Packham wrote:
> Some integrated Armada XP SoCs use a reduced pin count so the width of
> the SDRAM interface is smaller than the traditional discrete SoCs. This
> means that the definition of "full" and "half" width is further reduced.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> ---
> drivers/edac/armada_xp_edac.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/edac/armada_xp_edac.c b/drivers/edac/armada_xp_edac.c
> index 68e88b180928..d8edcaac87c0 100644
> --- a/drivers/edac/armada_xp_edac.c
> +++ b/drivers/edac/armada_xp_edac.c
> @@ -350,6 +350,9 @@ static int armada_xp_mc_edac_probe(struct platform_device *pdev)
> if (armada_xp_mc_edac_read_config(mci))
> return -EINVAL;
>
> + if (of_property_read_bool(pdev->dev.of_node, "marvell,reduced-width"))
> + drvdata->width /= 2;
If the compiler doesn't already convert it to a shift on ARM, you
probably should do
>>= 1;
here, just in case.
With that you can add my
Acked-by: Borislav Petkov <bp@suse.de>
and route it through an ARM tree.
Thx.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [RESEND,4/4] EDAC: add support for reduced-width Armada-XP SDRAM
@ 2017-08-13 21:28 Chris Packham
0 siblings, 0 replies; 3+ messages in thread
From: Chris Packham @ 2017-08-13 21:28 UTC (permalink / raw)
To: Borislav Petkov
Cc: robh+dt@kernel.org, gregory.clement@free-electrons.com,
jlu@pengutronix.de, linux-arm-kernel@lists.infradead.org,
linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org,
Mauro Carvalho Chehab
On 11/08/17 21:14, Borislav Petkov wrote:
> On Mon, Aug 07, 2017 at 01:46:41PM +1200, Chris Packham wrote:
>> Some integrated Armada XP SoCs use a reduced pin count so the width of
>> the SDRAM interface is smaller than the traditional discrete SoCs. This
>> means that the definition of "full" and "half" width is further reduced.
>>
>> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>> ---
>> drivers/edac/armada_xp_edac.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/edac/armada_xp_edac.c b/drivers/edac/armada_xp_edac.c
>> index 68e88b180928..d8edcaac87c0 100644
>> --- a/drivers/edac/armada_xp_edac.c
>> +++ b/drivers/edac/armada_xp_edac.c
>> @@ -350,6 +350,9 @@ static int armada_xp_mc_edac_probe(struct platform_device *pdev)
>> if (armada_xp_mc_edac_read_config(mci))
>> return -EINVAL;
>>
>> + if (of_property_read_bool(pdev->dev.of_node, "marvell,reduced-width"))
>> + drvdata->width /= 2;
>
> If the compiler doesn't already convert it to a shift on ARM, you
> probably should do
>
> >>= 1;
>
> here, just in case.
Based on discussions around the first patch in this series the final
version will probably be something like
if (of_device_is_compatible(pdev->dev.of_node,
"marvell,98dx3236-sdram-controller")
drvdata->width >>= 1;
>
> With that you can add my
>
> Acked-by: Borislav Petkov <bp@suse.de>
>
> and route it through an ARM tree.
That may depend on where Jan's series lands. This is is the only patch
that is dependent on it. Regardless it should be inert so aside from
triggering checkpatch warnings about dt-bindings there would be no harm
in this patch taking the long way round.
>
> Thx.
>
---
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-13 21:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-11 9:14 [RESEND,4/4] EDAC: add support for reduced-width Armada-XP SDRAM Borislav Petkov
-- strict thread matches above, loose matches on Subject: below --
2017-08-13 21:28 Chris Packham
2017-08-07 1:46 Chris Packham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox