* [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support
@ 2017-02-01 23:16 Chris Packham
[not found] ` <20170201231624.28843-1-chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Chris Packham @ 2017-02-01 23:16 UTC (permalink / raw)
To: linux-edac-u79uwXL29TY76Z2rM5mHXA,
morbidrsa-Re5JQEeQqe8AvxtiuMwx3w
Cc: Chris Packham, Rob Herring, Mark Rutland, Benjamin Herrenschmidt,
Paul Mackerras, Michael Ellerman, Borislav Petkov,
Mauro Carvalho Chehab, devicetree-u79uwXL29TY76Z2rM5mHXA,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
The l2-cache controller on the T2080 SoC has similar capabilities to the
others already supported by the mpc85xx_edac driver. Add it to the list
of compatible devices.
Signed-off-by: Chris Packham <chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
Acked-by: Johannes Thumshirn <jth-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
This is a resend of a patch that got an ack[1] but didn't seem to get
picked up.
[1] http://marc.info/?l=linux-edac&m=148042072225488&w=2
Changes since v1:
- Collect ack from Johannes.
arch/powerpc/boot/dts/fsl/t2081si-post.dtsi | 1 +
drivers/edac/mpc85xx_edac.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
index c744569a20e1..a97296c64eb2 100644
--- a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
@@ -678,5 +678,6 @@
compatible = "fsl,t2080-l2-cache-controller";
reg = <0xc20000 0x40000>;
next-level-cache = <&cpc>;
+ interrupts = <16 2 1 9>;
};
};
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
index 8f66cbed70b7..67f7bc3fe5b3 100644
--- a/drivers/edac/mpc85xx_edac.c
+++ b/drivers/edac/mpc85xx_edac.c
@@ -629,6 +629,7 @@ static const struct of_device_id mpc85xx_l2_err_of_match[] = {
{ .compatible = "fsl,p1020-l2-cache-controller", },
{ .compatible = "fsl,p1021-l2-cache-controller", },
{ .compatible = "fsl,p2020-l2-cache-controller", },
+ { .compatible = "fsl,t2080-l2-cache-controller", },
{},
};
MODULE_DEVICE_TABLE(of, mpc85xx_l2_err_of_match);
--
2.11.0.24.ge6920cf
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support
[not found] ` <20170201231624.28843-1-chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
@ 2017-02-01 23:27 ` Borislav Petkov
2017-02-01 23:46 ` Chris Packham
0 siblings, 1 reply; 8+ messages in thread
From: Borislav Petkov @ 2017-02-01 23:27 UTC (permalink / raw)
To: Chris Packham
Cc: linux-edac-u79uwXL29TY76Z2rM5mHXA,
morbidrsa-Re5JQEeQqe8AvxtiuMwx3w, Rob Herring, Mark Rutland,
Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
Mauro Carvalho Chehab, devicetree-u79uwXL29TY76Z2rM5mHXA,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
On Thu, Feb 02, 2017 at 12:16:24PM +1300, Chris Packham wrote:
> The l2-cache controller on the T2080 SoC has similar capabilities to the
> others already supported by the mpc85xx_edac driver. Add it to the list
> of compatible devices.
>
> Signed-off-by: Chris Packham <chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
> Acked-by: Johannes Thumshirn <jth-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
> This is a resend of a patch that got an ack[1] but didn't seem to get
> picked up.
>
> [1] http://marc.info/?l=linux-edac&m=148042072225488&w=2
>
> Changes since v1:
> - Collect ack from Johannes.
Whoops, my bad. Sorry about that.
> arch/powerpc/boot/dts/fsl/t2081si-post.dtsi | 1 +
> drivers/edac/mpc85xx_edac.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
> index c744569a20e1..a97296c64eb2 100644
> --- a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
> +++ b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
> @@ -678,5 +678,6 @@
> compatible = "fsl,t2080-l2-cache-controller";
> reg = <0xc20000 0x40000>;
> next-level-cache = <&cpc>;
> + interrupts = <16 2 1 9>;
> };
> };
> diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
> index 8f66cbed70b7..67f7bc3fe5b3 100644
> --- a/drivers/edac/mpc85xx_edac.c
> +++ b/drivers/edac/mpc85xx_edac.c
> @@ -629,6 +629,7 @@ static const struct of_device_id mpc85xx_l2_err_of_match[] = {
> { .compatible = "fsl,p1020-l2-cache-controller", },
> { .compatible = "fsl,p1021-l2-cache-controller", },
> { .compatible = "fsl,p2020-l2-cache-controller", },
> + { .compatible = "fsl,t2080-l2-cache-controller", },
WARNING: DT compatible string "fsl,t2080-l2-cache-controller" appears un-documented -- check ./Documentation/devicetree/bindings/
#58: FILE: drivers/edac/mpc85xx_edac.c:632:
+ { .compatible = "fsl,t2080-l2-cache-controller", },
What is checkpatch.pl trying to tell me here?
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support
2017-02-01 23:27 ` Borislav Petkov
@ 2017-02-01 23:46 ` Chris Packham
2017-02-02 17:30 ` Borislav Petkov
0 siblings, 1 reply; 8+ messages in thread
From: Chris Packham @ 2017-02-01 23:46 UTC (permalink / raw)
To: Borislav Petkov
Cc: linux-edac-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
morbidrsa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, Rob Herring,
Mark Rutland, Benjamin Herrenschmidt, Paul Mackerras,
Michael Ellerman, Mauro Carvalho Chehab,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On 02/02/17 12:28, Borislav Petkov wrote:
> On Thu, Feb 02, 2017 at 12:16:24PM +1300, Chris Packham wrote:
>> The l2-cache controller on the T2080 SoC has similar capabilities to the
>> others already supported by the mpc85xx_edac driver. Add it to the list
>> of compatible devices.
>>
>> Signed-off-by: Chris Packham <chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
>> Acked-by: Johannes Thumshirn <jth-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
>> ---
>> This is a resend of a patch that got an ack[1] but didn't seem to get
>> picked up.
>>
>> [1] http://marc.info/?l=linux-edac&m=148042072225488&w=2
>>
>> Changes since v1:
>> - Collect ack from Johannes.
>
> Whoops, my bad. Sorry about that.
>
>> arch/powerpc/boot/dts/fsl/t2081si-post.dtsi | 1 +
>> drivers/edac/mpc85xx_edac.c | 1 +
>> 2 files changed, 2 insertions(+)
>>
>> diff --git a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
>> index c744569a20e1..a97296c64eb2 100644
>> --- a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
>> +++ b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
>> @@ -678,5 +678,6 @@
>> compatible = "fsl,t2080-l2-cache-controller";
>> reg = <0xc20000 0x40000>;
>> next-level-cache = <&cpc>;
>> + interrupts = <16 2 1 9>;
>> };
>> };
>> diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
>> index 8f66cbed70b7..67f7bc3fe5b3 100644
>> --- a/drivers/edac/mpc85xx_edac.c
>> +++ b/drivers/edac/mpc85xx_edac.c
>> @@ -629,6 +629,7 @@ static const struct of_device_id mpc85xx_l2_err_of_match[] = {
>> { .compatible = "fsl,p1020-l2-cache-controller", },
>> { .compatible = "fsl,p1021-l2-cache-controller", },
>> { .compatible = "fsl,p2020-l2-cache-controller", },
>> + { .compatible = "fsl,t2080-l2-cache-controller", },
>
> WARNING: DT compatible string "fsl,t2080-l2-cache-controller" appears un-documented -- check ./Documentation/devicetree/bindings/
> #58: FILE: drivers/edac/mpc85xx_edac.c:632:
> + { .compatible = "fsl,t2080-l2-cache-controller", },
>
> What is checkpatch.pl trying to tell me here?
>
checpkatch.pl is confused by
Documentation/devicetree/bindings/powerpc/fsl/l2cache.txt which says
- compatible : Should include "fsl,chip-l2-cache-controller" and "cache"
where chip is the processor (bsc9132, npc8572 etc.)
So none of the fsl cache controllers pass the checkpatch.pl test.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support
2017-02-01 23:46 ` Chris Packham
@ 2017-02-02 17:30 ` Borislav Petkov
[not found] ` <20170202173005.gqesvy5owtsbrviu-fF5Pk5pvG8Y@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Borislav Petkov @ 2017-02-02 17:30 UTC (permalink / raw)
To: Chris Packham
Cc: Mark Rutland, devicetree@vger.kernel.org, morbidrsa@gmail.com,
linux-kernel@vger.kernel.org, Rob Herring, Paul Mackerras,
Mauro Carvalho Chehab, linuxppc-dev@lists.ozlabs.org,
linux-edac@vger.kernel.org
On Wed, Feb 01, 2017 at 11:46:23PM +0000, Chris Packham wrote:
> >> diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
> >> index 8f66cbed70b7..67f7bc3fe5b3 100644
> >> --- a/drivers/edac/mpc85xx_edac.c
> >> +++ b/drivers/edac/mpc85xx_edac.c
> >> @@ -629,6 +629,7 @@ static const struct of_device_id mpc85xx_l2_err_of_match[] = {
> >> { .compatible = "fsl,p1020-l2-cache-controller", },
> >> { .compatible = "fsl,p1021-l2-cache-controller", },
> >> { .compatible = "fsl,p2020-l2-cache-controller", },
> >> + { .compatible = "fsl,t2080-l2-cache-controller", },
> >
> > WARNING: DT compatible string "fsl,t2080-l2-cache-controller" appears un-documented -- check ./Documentation/devicetree/bindings/
> > #58: FILE: drivers/edac/mpc85xx_edac.c:632:
> > + { .compatible = "fsl,t2080-l2-cache-controller", },
> >
> > What is checkpatch.pl trying to tell me here?
> >
>
> checpkatch.pl is confused by
> Documentation/devicetree/bindings/powerpc/fsl/l2cache.txt which says
>
> - compatible : Should include "fsl,chip-l2-cache-controller" and "cache"
> where chip is the processor (bsc9132, npc8572 etc.)
>
> So none of the fsl cache controllers pass the checkpatch.pl test.
Hmm, so others do list those names explicitly. For example:
Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt
And the patch that added that check to cp:
bff5da433525 ("checkpatch: add DT compatible string documentation checks")
is basically to enforce explicit compatible names.
So I'd like to have an ACK from a PPC maintainer here first before I
apply this.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support
[not found] ` <20170202173005.gqesvy5owtsbrviu-fF5Pk5pvG8Y@public.gmane.org>
@ 2017-02-02 23:55 ` Michael Ellerman
2017-02-03 0:18 ` Chris Packham
2017-02-03 9:46 ` Borislav Petkov
0 siblings, 2 replies; 8+ messages in thread
From: Michael Ellerman @ 2017-02-02 23:55 UTC (permalink / raw)
To: Borislav Petkov, Chris Packham
Cc: linux-edac@vger.kernel.org, morbidrsa@gmail.com, Rob Herring,
Mark Rutland, Benjamin Herrenschmidt, Paul Mackerras,
Mauro Carvalho Chehab, devicetree@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Borislav Petkov <bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org> writes:
> On Wed, Feb 01, 2017 at 11:46:23PM +0000, Chris Packham wrote:
>> >> diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
>> >> index 8f66cbed70b7..67f7bc3fe5b3 100644
>> >> --- a/drivers/edac/mpc85xx_edac.c
>> >> +++ b/drivers/edac/mpc85xx_edac.c
>> >> @@ -629,6 +629,7 @@ static const struct of_device_id mpc85xx_l2_err_of_match[] = {
>> >> { .compatible = "fsl,p1020-l2-cache-controller", },
>> >> { .compatible = "fsl,p1021-l2-cache-controller", },
>> >> { .compatible = "fsl,p2020-l2-cache-controller", },
>> >> + { .compatible = "fsl,t2080-l2-cache-controller", },
>> >
>> > WARNING: DT compatible string "fsl,t2080-l2-cache-controller" appears un-documented -- check ./Documentation/devicetree/bindings/
>> > #58: FILE: drivers/edac/mpc85xx_edac.c:632:
>> > + { .compatible = "fsl,t2080-l2-cache-controller", },
>> >
>> > What is checkpatch.pl trying to tell me here?
>> >
>>
>> checpkatch.pl is confused by
>> Documentation/devicetree/bindings/powerpc/fsl/l2cache.txt which says
>>
>> - compatible : Should include "fsl,chip-l2-cache-controller" and "cache"
>> where chip is the processor (bsc9132, npc8572 etc.)
>>
>> So none of the fsl cache controllers pass the checkpatch.pl test.
>
> Hmm, so others do list those names explicitly. For example:
>
> Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt
>
> And the patch that added that check to cp:
>
> bff5da433525 ("checkpatch: add DT compatible string documentation checks")
>
> is basically to enforce explicit compatible names.
>
> So I'd like to have an ACK from a PPC maintainer here first before I
> apply this.
It's fine with me:
Acked-by: Michael Ellerman <mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
Chris if you want to send a patch to add the compatible string to the
l2cache.txt I would merge that, but honestly it doesn't achieve much
other than possibly catching a typo in the compatible name.
cheers
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support
2017-02-02 23:55 ` Michael Ellerman
@ 2017-02-03 0:18 ` Chris Packham
[not found] ` <de8ec9087f214f2fae67b8ea9be92cdc-5g7mGxlPNYb6GjIOKuZY+ItlCAj8ZROq@public.gmane.org>
2017-02-03 9:46 ` Borislav Petkov
1 sibling, 1 reply; 8+ messages in thread
From: Chris Packham @ 2017-02-03 0:18 UTC (permalink / raw)
To: Michael Ellerman, Borislav Petkov
Cc: linux-edac-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
morbidrsa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, Rob Herring,
Mark Rutland, Benjamin Herrenschmidt, Paul Mackerras,
Mauro Carvalho Chehab,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On 03/02/17 12:55, Michael Ellerman wrote:
> Chris if you want to send a patch to add the compatible string to the
> l2cache.txt I would merge that, but honestly it doesn't achieve much
> other than possibly catching a typo in the compatible name.
I think catching a typo might be worthwhile. It's 5 minutes work for me
to grep/sed through the code to find existing compatible strings and
update the document. Which might save someone else a lot of time
debugging only to find out they've transposed some digits in the dts.
I'll whip something up and send it out shortly.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support
[not found] ` <de8ec9087f214f2fae67b8ea9be92cdc-5g7mGxlPNYb6GjIOKuZY+ItlCAj8ZROq@public.gmane.org>
@ 2017-02-03 5:12 ` Michael Ellerman
0 siblings, 0 replies; 8+ messages in thread
From: Michael Ellerman @ 2017-02-03 5:12 UTC (permalink / raw)
To: Chris Packham, Borislav Petkov
Cc: linux-edac@vger.kernel.org, morbidrsa@gmail.com, Rob Herring,
Mark Rutland, Benjamin Herrenschmidt, Paul Mackerras,
Mauro Carvalho Chehab, devicetree@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Chris Packham <Chris.Packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org> writes:
> On 03/02/17 12:55, Michael Ellerman wrote:
>> Chris if you want to send a patch to add the compatible string to the
>> l2cache.txt I would merge that, but honestly it doesn't achieve much
>> other than possibly catching a typo in the compatible name.
>
> I think catching a typo might be worthwhile. It's 5 minutes work for me
> to grep/sed through the code to find existing compatible strings and
> update the document. Which might save someone else a lot of time
> debugging only to find out they've transposed some digits in the dts.
>
> I'll whip something up and send it out shortly.
Thanks.
cheers
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support
2017-02-02 23:55 ` Michael Ellerman
2017-02-03 0:18 ` Chris Packham
@ 2017-02-03 9:46 ` Borislav Petkov
1 sibling, 0 replies; 8+ messages in thread
From: Borislav Petkov @ 2017-02-03 9:46 UTC (permalink / raw)
To: Michael Ellerman, Chris Packham
Cc: linux-edac@vger.kernel.org, morbidrsa@gmail.com, Rob Herring,
Mark Rutland, Benjamin Herrenschmidt, Paul Mackerras,
Mauro Carvalho Chehab, devicetree@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
On Fri, Feb 03, 2017 at 10:55:33AM +1100, Michael Ellerman wrote:
> > So I'd like to have an ACK from a PPC maintainer here first before I
> > apply this.
>
> It's fine with me:
>
> Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Applied,
thanks guys.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-02-03 9:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-01 23:16 [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support Chris Packham
[not found] ` <20170201231624.28843-1-chris.packham-6g8wRflRTwXFdCa3tKVlE6U/zSkkHjvu@public.gmane.org>
2017-02-01 23:27 ` Borislav Petkov
2017-02-01 23:46 ` Chris Packham
2017-02-02 17:30 ` Borislav Petkov
[not found] ` <20170202173005.gqesvy5owtsbrviu-fF5Pk5pvG8Y@public.gmane.org>
2017-02-02 23:55 ` Michael Ellerman
2017-02-03 0:18 ` Chris Packham
[not found] ` <de8ec9087f214f2fae67b8ea9be92cdc-5g7mGxlPNYb6GjIOKuZY+ItlCAj8ZROq@public.gmane.org>
2017-02-03 5:12 ` Michael Ellerman
2017-02-03 9:46 ` Borislav Petkov
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).