* [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support @ 2016-11-23 12:14 Chris Paterson 2016-11-23 13:18 ` Marc Kleine-Budde 2016-11-24 16:11 ` [PATCH v2 0/2] can: Add r8a7796 support to CAN/CAN FD Chris Paterson 0 siblings, 2 replies; 14+ messages in thread From: Chris Paterson @ 2016-11-23 12:14 UTC (permalink / raw) To: Simon Horman Cc: Wolfgang Grandegger, Marc Kleine-Budde, Magnus Damm, Rob Herring, Mark Rutland, Ramesh Shanmugasundaram, linux-renesas-soc, devicetree, linux-arm-kernel, linux-can, Chris Paterson This patch series adds CAN and CAN FD support to the r8a7796. Based on renesas-devel-20161122-v4.9-rc6. Chris Paterson (3): arm64: dts: r8a7796: Add CAN external clock support arm64: dts: r8a7796: Add CAN support arm64: dts: r8a7796: Add CAN FD support .../devicetree/bindings/net/can/rcar_can.txt | 12 +++-- .../devicetree/bindings/net/can/rcar_canfd.txt | 12 +++-- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 61 ++++++++++++++++++++++ 3 files changed, 75 insertions(+), 10 deletions(-) -- 1.9.1 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support 2016-11-23 12:14 [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support Chris Paterson @ 2016-11-23 13:18 ` Marc Kleine-Budde 2016-11-23 14:29 ` Simon Horman 2016-11-24 16:11 ` [PATCH v2 0/2] can: Add r8a7796 support to CAN/CAN FD Chris Paterson 1 sibling, 1 reply; 14+ messages in thread From: Marc Kleine-Budde @ 2016-11-23 13:18 UTC (permalink / raw) To: Chris Paterson, Simon Horman Cc: Wolfgang Grandegger, Magnus Damm, Rob Herring, Mark Rutland, Ramesh Shanmugasundaram, linux-renesas-soc, devicetree, linux-arm-kernel, linux-can [-- Attachment #1.1: Type: text/plain, Size: 987 bytes --] On 11/23/2016 01:14 PM, Chris Paterson wrote: > This patch series adds CAN and CAN FD support to the r8a7796. > > Based on renesas-devel-20161122-v4.9-rc6. > > Chris Paterson (3): > arm64: dts: r8a7796: Add CAN external clock support > arm64: dts: r8a7796: Add CAN support > arm64: dts: r8a7796: Add CAN FD support > > .../devicetree/bindings/net/can/rcar_can.txt | 12 +++-- > .../devicetree/bindings/net/can/rcar_canfd.txt | 12 +++-- > arch/arm64/boot/dts/renesas/r8a7796.dtsi | 61 ++++++++++++++++++++++ > 3 files changed, 75 insertions(+), 10 deletions(-) For all three: Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Who takes this series? Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support 2016-11-23 13:18 ` Marc Kleine-Budde @ 2016-11-23 14:29 ` Simon Horman 2016-11-23 14:31 ` Marc Kleine-Budde 2016-11-24 10:05 ` Chris Paterson 0 siblings, 2 replies; 14+ messages in thread From: Simon Horman @ 2016-11-23 14:29 UTC (permalink / raw) To: Marc Kleine-Budde Cc: Mark Rutland, devicetree, Chris Paterson, Magnus Damm, linux-can, linux-renesas-soc, Rob Herring, linux-arm-kernel, Ramesh Shanmugasundaram, Wolfgang Grandegger On Wed, Nov 23, 2016 at 02:18:13PM +0100, Marc Kleine-Budde wrote: > On 11/23/2016 01:14 PM, Chris Paterson wrote: > > This patch series adds CAN and CAN FD support to the r8a7796. > > > > Based on renesas-devel-20161122-v4.9-rc6. > > > > Chris Paterson (3): > > arm64: dts: r8a7796: Add CAN external clock support > > arm64: dts: r8a7796: Add CAN support > > arm64: dts: r8a7796: Add CAN FD support > > > > .../devicetree/bindings/net/can/rcar_can.txt | 12 +++-- > > .../devicetree/bindings/net/can/rcar_canfd.txt | 12 +++-- > > arch/arm64/boot/dts/renesas/r8a7796.dtsi | 61 ++++++++++++++++++++++ > > 3 files changed, 75 insertions(+), 10 deletions(-) > > For all three: > > Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> > > Who takes this series? I would like to see these patches split up so that the .../devicetree/bindings/ portions can go through you whole the arch/arm64/boot/dts/renesas/ portions go thorugh my renesas tree. Regarding the arch/arm64/boot/dts/renesas/ portion, I would like some consideration given to what effect enabling memory above 4Gb (64bit addressing) would have. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support 2016-11-23 14:29 ` Simon Horman @ 2016-11-23 14:31 ` Marc Kleine-Budde 2016-11-24 10:05 ` Chris Paterson 1 sibling, 0 replies; 14+ messages in thread From: Marc Kleine-Budde @ 2016-11-23 14:31 UTC (permalink / raw) To: Simon Horman Cc: Mark Rutland, devicetree, Chris Paterson, Magnus Damm, linux-can, linux-renesas-soc, Rob Herring, linux-arm-kernel, Ramesh Shanmugasundaram, Wolfgang Grandegger [-- Attachment #1.1.1: Type: text/plain, Size: 1519 bytes --] On 11/23/2016 03:29 PM, Simon Horman wrote: > On Wed, Nov 23, 2016 at 02:18:13PM +0100, Marc Kleine-Budde wrote: >> On 11/23/2016 01:14 PM, Chris Paterson wrote: >>> This patch series adds CAN and CAN FD support to the r8a7796. >>> >>> Based on renesas-devel-20161122-v4.9-rc6. >>> >>> Chris Paterson (3): >>> arm64: dts: r8a7796: Add CAN external clock support >>> arm64: dts: r8a7796: Add CAN support >>> arm64: dts: r8a7796: Add CAN FD support >>> >>> .../devicetree/bindings/net/can/rcar_can.txt | 12 +++-- >>> .../devicetree/bindings/net/can/rcar_canfd.txt | 12 +++-- >>> arch/arm64/boot/dts/renesas/r8a7796.dtsi | 61 ++++++++++++++++++++++ >>> 3 files changed, 75 insertions(+), 10 deletions(-) >> >> For all three: >> >> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> >> >> Who takes this series? > > I would like to see these patches split up so that the > .../devicetree/bindings/ portions can go through you whole > the arch/arm64/boot/dts/renesas/ portions go thorugh my renesas tree. Ok > Regarding the arch/arm64/boot/dts/renesas/ portion, I would like > some consideration given to what effect enabling memory above 4Gb > (64bit addressing) would have. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | [-- Attachment #1.2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] [-- Attachment #2: Type: text/plain, Size: 176 bytes --] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support 2016-11-23 14:29 ` Simon Horman 2016-11-23 14:31 ` Marc Kleine-Budde @ 2016-11-24 10:05 ` Chris Paterson 2016-11-24 10:17 ` Simon Horman 1 sibling, 1 reply; 14+ messages in thread From: Chris Paterson @ 2016-11-24 10:05 UTC (permalink / raw) To: Simon Horman, Marc Kleine-Budde Cc: Wolfgang Grandegger, Magnus Damm, Rob Herring, Mark Rutland, Ramesh Shanmugasundaram, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-can@vger.kernel.org Hello Simon, From: Simon Horman [mailto:horms@verge.net.au] Sent: 23 November 2016 14:30 > On Wed, Nov 23, 2016 at 02:18:13PM +0100, Marc Kleine-Budde wrote: > > On 11/23/2016 01:14 PM, Chris Paterson wrote: > > > This patch series adds CAN and CAN FD support to the r8a7796. > > > > > > Based on renesas-devel-20161122-v4.9-rc6. > > > > > > Chris Paterson (3): > > > arm64: dts: r8a7796: Add CAN external clock support > > > arm64: dts: r8a7796: Add CAN support > > > arm64: dts: r8a7796: Add CAN FD support > > > > > > .../devicetree/bindings/net/can/rcar_can.txt | 12 +++-- > > > .../devicetree/bindings/net/can/rcar_canfd.txt | 12 +++-- > > > arch/arm64/boot/dts/renesas/r8a7796.dtsi | 61 > ++++++++++++++++++++++ > > > 3 files changed, 75 insertions(+), 10 deletions(-) > > > > For all three: > > > > Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> > > > > Who takes this series? > > I would like to see these patches split up so that the .../devicetree/bindings/ > portions can go through you whole the arch/arm64/boot/dts/renesas/ > portions go thorugh my renesas tree. Okay, will do. > > Regarding the arch/arm64/boot/dts/renesas/ portion, I would like some > consideration given to what effect enabling memory above 4Gb (64bit > addressing) would have. Can you give me some guidance here? I'm not sure what you're referring to. As far as I know the DT reg definition here is 64-bit, or are you referring to DMA usage? If the later, neither CAN driver uses DMA. Kind regards, Chris ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support 2016-11-24 10:05 ` Chris Paterson @ 2016-11-24 10:17 ` Simon Horman 2016-11-24 14:25 ` Chris Paterson 0 siblings, 1 reply; 14+ messages in thread From: Simon Horman @ 2016-11-24 10:17 UTC (permalink / raw) To: Chris Paterson Cc: Mark Rutland, devicetree@vger.kernel.org, Magnus Damm, linux-can@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Rob Herring, Marc Kleine-Budde, linux-arm-kernel@lists.infradead.org, Ramesh Shanmugasundaram, Wolfgang Grandegger Hi Chris, On Thu, Nov 24, 2016 at 10:05:08AM +0000, Chris Paterson wrote: > Hello Simon, > > From: Simon Horman [mailto:horms@verge.net.au] > Sent: 23 November 2016 14:30 > > On Wed, Nov 23, 2016 at 02:18:13PM +0100, Marc Kleine-Budde wrote: > > > On 11/23/2016 01:14 PM, Chris Paterson wrote: > > > > This patch series adds CAN and CAN FD support to the r8a7796. > > > > > > > > Based on renesas-devel-20161122-v4.9-rc6. > > > > > > > > Chris Paterson (3): > > > > arm64: dts: r8a7796: Add CAN external clock support > > > > arm64: dts: r8a7796: Add CAN support > > > > arm64: dts: r8a7796: Add CAN FD support > > > > > > > > .../devicetree/bindings/net/can/rcar_can.txt | 12 +++-- > > > > .../devicetree/bindings/net/can/rcar_canfd.txt | 12 +++-- > > > > arch/arm64/boot/dts/renesas/r8a7796.dtsi | 61 > > ++++++++++++++++++++++ > > > > 3 files changed, 75 insertions(+), 10 deletions(-) > > > > > > For all three: > > > > > > Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> > > > > > > Who takes this series? > > > > I would like to see these patches split up so that the .../devicetree/bindings/ > > portions can go through you whole the arch/arm64/boot/dts/renesas/ > > portions go thorugh my renesas tree. > > Okay, will do. Thanks. > > Regarding the arch/arm64/boot/dts/renesas/ portion, I would like some > > consideration given to what effect enabling memory above 4Gb (64bit > > addressing) would have. > > Can you give me some guidance here? I'm not sure what you're referring > to. As far as I know the DT reg definition here is 64-bit, or are you > referring to DMA usage? If the later, neither CAN driver uses DMA. Sorry for not being clearer. What I would like to know is if there are any problems in the CAN driver or hardware that would prevent it from functioning with memory that requires 64bit addressing present. If the CAN hardware cannot use DMA then DMA doesn't need to be taken into account. But if it DMA could be enabled in future for CAN, for example after some driver enhancements, then it would be good to know if 64bit memory can be supported - if not it would imply DMA cannot be enabled. As for non-DMA mode, will this function if memory above 4G is present? If not then in theory such memory couldn't be enabled if the CAN driver is enabled. This is my main concern. Does the above help? ^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support 2016-11-24 10:17 ` Simon Horman @ 2016-11-24 14:25 ` Chris Paterson [not found] ` <HK2PR0601MB1329C747CA5C6B5222C02C3FB7B60-5BHi1SMfQIfsvBovKiDY8NK/flDYrvD0nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Chris Paterson @ 2016-11-24 14:25 UTC (permalink / raw) To: Simon Horman Cc: Marc Kleine-Budde, Wolfgang Grandegger, Magnus Damm, Rob Herring, Mark Rutland, Ramesh Shanmugasundaram, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-can@vger.kernel.org Hello Simon, From: Simon Horman [mailto:horms@verge.net.au] Sent: 24 November 2016 10:18 > Hi Chris, > > On Thu, Nov 24, 2016 at 10:05:08AM +0000, Chris Paterson wrote: > > Hello Simon, > > > > From: Simon Horman [mailto:horms@verge.net.au] > > Sent: 23 November 2016 14:30 > > > On Wed, Nov 23, 2016 at 02:18:13PM +0100, Marc Kleine-Budde wrote: > > > > On 11/23/2016 01:14 PM, Chris Paterson wrote: > > > > > This patch series adds CAN and CAN FD support to the r8a7796. > > > > > > > > > > Based on renesas-devel-20161122-v4.9-rc6. > > > > > > > > > > Chris Paterson (3): > > > > > arm64: dts: r8a7796: Add CAN external clock support > > > > > arm64: dts: r8a7796: Add CAN support > > > > > arm64: dts: r8a7796: Add CAN FD support > > > > > > > > > > .../devicetree/bindings/net/can/rcar_can.txt | 12 +++-- > > > > > .../devicetree/bindings/net/can/rcar_canfd.txt | 12 +++-- > > > > > arch/arm64/boot/dts/renesas/r8a7796.dtsi | 61 > > > ++++++++++++++++++++++ > > > > > 3 files changed, 75 insertions(+), 10 deletions(-) > > > > > > > > For all three: > > > > > > > > Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> > > > > > > > > Who takes this series? > > > > > > I would like to see these patches split up so that the > > > .../devicetree/bindings/ portions can go through you whole the > > > arch/arm64/boot/dts/renesas/ portions go thorugh my renesas tree. > > > > Okay, will do. > > Thanks. > > > > Regarding the arch/arm64/boot/dts/renesas/ portion, I would like > > > some consideration given to what effect enabling memory above 4Gb > > > (64bit > > > addressing) would have. > > > > Can you give me some guidance here? I'm not sure what you're referring > > to. As far as I know the DT reg definition here is 64-bit, or are you > > referring to DMA usage? If the later, neither CAN driver uses DMA. > > Sorry for not being clearer. > > What I would like to know is if there are any problems in the CAN driver or > hardware that would prevent it from functioning with memory that requires > 64bit addressing present. > > If the CAN hardware cannot use DMA then DMA doesn't need to be taken > into account. But if it DMA could be enabled in future for CAN, for example > after some driver enhancements, then it would be good to know if 64bit > memory can be supported - if not it would imply DMA cannot be enabled. Thank you for the clarification. The CAN interface for r8a7795/6 does not support DMA. With CAN FD there is currently a H/W issue that means DMA is unusable. Potentially this issue could be fixed in the future and DMA support could be added to the driver. If this happens I can see no reason why the CAN FD IP wouldn't be able to handle DMA transfers when using 64bit addressing. > > As for non-DMA mode, will this function if memory above 4G is present? > If not then in theory such memory couldn't be enabled if the CAN driver is > enabled. This is my main concern. Yes, it functions fine. We have already tested this with the Renesas v3.3.2 BSP with >4Gb memory. If this is explanation okay for you, I'll proceed with a v2 splitting off the DT bindings documentation. Kind regards, Chris > > Does the above help? ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <HK2PR0601MB1329C747CA5C6B5222C02C3FB7B60-5BHi1SMfQIfsvBovKiDY8NK/flDYrvD0nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>]
* Re: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support [not found] ` <HK2PR0601MB1329C747CA5C6B5222C02C3FB7B60-5BHi1SMfQIfsvBovKiDY8NK/flDYrvD0nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org> @ 2016-11-24 14:32 ` Simon Horman 2016-11-24 16:41 ` Geert Uytterhoeven 1 sibling, 0 replies; 14+ messages in thread From: Simon Horman @ 2016-11-24 14:32 UTC (permalink / raw) To: Chris Paterson Cc: Marc Kleine-Budde, Wolfgang Grandegger, Magnus Damm, Rob Herring, Mark Rutland, Ramesh Shanmugasundaram, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-can-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi Chris, On Thu, Nov 24, 2016 at 02:25:06PM +0000, Chris Paterson wrote: > Hello Simon, > > From: Simon Horman [mailto:horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org] > Sent: 24 November 2016 10:18 > > Hi Chris, > > > > On Thu, Nov 24, 2016 at 10:05:08AM +0000, Chris Paterson wrote: > > > Hello Simon, > > > > > > From: Simon Horman [mailto:horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org] > > > Sent: 23 November 2016 14:30 > > > > On Wed, Nov 23, 2016 at 02:18:13PM +0100, Marc Kleine-Budde wrote: > > > > > On 11/23/2016 01:14 PM, Chris Paterson wrote: ... > > > > Regarding the arch/arm64/boot/dts/renesas/ portion, I would like > > > > some consideration given to what effect enabling memory above 4Gb > > > > (64bit > > > > addressing) would have. > > > > > > Can you give me some guidance here? I'm not sure what you're referring > > > to. As far as I know the DT reg definition here is 64-bit, or are you > > > referring to DMA usage? If the later, neither CAN driver uses DMA. > > > > Sorry for not being clearer. > > > > What I would like to know is if there are any problems in the CAN driver or > > hardware that would prevent it from functioning with memory that requires > > 64bit addressing present. > > > > If the CAN hardware cannot use DMA then DMA doesn't need to be taken > > into account. But if it DMA could be enabled in future for CAN, for example > > after some driver enhancements, then it would be good to know if 64bit > > memory can be supported - if not it would imply DMA cannot be enabled. > > Thank you for the clarification. > > The CAN interface for r8a7795/6 does not support DMA. > > With CAN FD there is currently a H/W issue that means DMA is unusable. > Potentially this issue could be fixed in the future and DMA support could > be added to the driver. If this happens I can see no reason why the CAN > FD IP wouldn't be able to handle DMA transfers when using 64bit > addressing. > > > > > As for non-DMA mode, will this function if memory above 4G is present? > > If not then in theory such memory couldn't be enabled if the CAN driver > > is enabled. This is my main concern. > > Yes, it functions fine. We have already tested this with the Renesas > v3.3.2 BSP with >4Gb memory. > > If this is explanation okay for you, I'll proceed with a v2 splitting off > the DT bindings documentation. Thanks for the explanation. I think it would be good to proceed with a v2. -- 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] 14+ messages in thread
* Re: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support [not found] ` <HK2PR0601MB1329C747CA5C6B5222C02C3FB7B60-5BHi1SMfQIfsvBovKiDY8NK/flDYrvD0nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org> 2016-11-24 14:32 ` Simon Horman @ 2016-11-24 16:41 ` Geert Uytterhoeven 2016-11-24 17:12 ` Chris Paterson 1 sibling, 1 reply; 14+ messages in thread From: Geert Uytterhoeven @ 2016-11-24 16:41 UTC (permalink / raw) To: Chris Paterson Cc: Simon Horman, Marc Kleine-Budde, Wolfgang Grandegger, Magnus Damm, Rob Herring, Mark Rutland, Ramesh Shanmugasundaram, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-can-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi Chris, On Thu, Nov 24, 2016 at 3:25 PM, Chris Paterson <Chris.Paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> wrote: > From: Simon Horman [mailto:horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org] > Sent: 24 November 2016 10:18 >> On Thu, Nov 24, 2016 at 10:05:08AM +0000, Chris Paterson wrote: >> > From: Simon Horman [mailto:horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org] >> > > Regarding the arch/arm64/boot/dts/renesas/ portion, I would like >> > > some consideration given to what effect enabling memory above 4Gb >> > > (64bit >> > > addressing) would have. >> > >> > Can you give me some guidance here? I'm not sure what you're referring >> > to. As far as I know the DT reg definition here is 64-bit, or are you >> > referring to DMA usage? If the later, neither CAN driver uses DMA. >> >> Sorry for not being clearer. >> >> What I would like to know is if there are any problems in the CAN driver or >> hardware that would prevent it from functioning with memory that requires >> 64bit addressing present. >> >> If the CAN hardware cannot use DMA then DMA doesn't need to be taken >> into account. But if it DMA could be enabled in future for CAN, for example >> after some driver enhancements, then it would be good to know if 64bit >> memory can be supported - if not it would imply DMA cannot be enabled. > > Thank you for the clarification. > > The CAN interface for r8a7795/6 does not support DMA. > > With CAN FD there is currently a H/W issue that means DMA is unusable. Is that issue present on R-Car M3-W, or only on R-Car H3 ES1.x? > Potentially this issue could be fixed in the future and DMA support could > be added to the driver. If this happens I can see no reason why the CAN FD > IP wouldn't be able to handle DMA transfers when using 64bit addressing. Yep, AFAIK it uses SYS-DMAC, which supports 64-bit addressing. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- 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] 14+ messages in thread
* RE: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support 2016-11-24 16:41 ` Geert Uytterhoeven @ 2016-11-24 17:12 ` Chris Paterson 0 siblings, 0 replies; 14+ messages in thread From: Chris Paterson @ 2016-11-24 17:12 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Simon Horman, Marc Kleine-Budde, Wolfgang Grandegger, Magnus Damm, Rob Herring, Mark Rutland, Ramesh Shanmugasundaram, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-can@vger.kernel.org Hello Geert, From: geert.uytterhoeven@gmail.com Sent: 24 November 2016 16:42 > Hi Chris, > > On Thu, Nov 24, 2016 at 3:25 PM, Chris Paterson > <Chris.Paterson2@renesas.com> wrote: > > From: Simon Horman [mailto:horms@verge.net.au] > > Sent: 24 November 2016 10:18 > >> On Thu, Nov 24, 2016 at 10:05:08AM +0000, Chris Paterson wrote: > >> > From: Simon Horman [mailto:horms@verge.net.au] > >> > > Regarding the arch/arm64/boot/dts/renesas/ portion, I would like > >> > > some consideration given to what effect enabling memory above 4Gb > >> > > (64bit > >> > > addressing) would have. > >> > > >> > Can you give me some guidance here? I'm not sure what you're > >> > referring to. As far as I know the DT reg definition here is > >> > 64-bit, or are you referring to DMA usage? If the later, neither CAN > driver uses DMA. > >> > >> Sorry for not being clearer. > >> > >> What I would like to know is if there are any problems in the CAN > >> driver or hardware that would prevent it from functioning with memory > >> that requires 64bit addressing present. > >> > >> If the CAN hardware cannot use DMA then DMA doesn't need to be > taken > >> into account. But if it DMA could be enabled in future for CAN, for > >> example after some driver enhancements, then it would be good to know > >> if 64bit memory can be supported - if not it would imply DMA cannot be > enabled. > > > > Thank you for the clarification. > > > > The CAN interface for r8a7795/6 does not support DMA. > > > > With CAN FD there is currently a H/W issue that means DMA is unusable. > > Is that issue present on R-Car M3-W, or only on R-Car H3 ES1.x? Both > > > Potentially this issue could be fixed in the future and DMA support > > could be added to the driver. If this happens I can see no reason why > > the CAN FD IP wouldn't be able to handle DMA transfers when using 64bit > addressing. > > Yep, AFAIK it uses SYS-DMAC, which supports 64-bit addressing. Yep > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux- > m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds ^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v2 0/2] can: Add r8a7796 support to CAN/CAN FD 2016-11-23 12:14 [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support Chris Paterson 2016-11-23 13:18 ` Marc Kleine-Budde @ 2016-11-24 16:11 ` Chris Paterson [not found] ` <1480003917-3953-1-git-send-email-chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> ` (2 more replies) 1 sibling, 3 replies; 14+ messages in thread From: Chris Paterson @ 2016-11-24 16:11 UTC (permalink / raw) To: Marc Kleine-Budde Cc: Wolfgang Grandegger, Rob Herring, Mark Rutland, Geert Uytterhoeven, Simon Horman, Ramesh Shanmugasundaram, linux-can, netdev, devicetree, linux-renesas-soc, Chris Paterson This series adds support for r8a7796 to rcar_can and rcar_canfd. Original series: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support. Changes since v1: - Split bindings documentation changes from device tree changes. - Rebased on renesas-devel-20161123v2-v4.9-rc6. Chris Paterson (2): can: rcar_can: Add r8a7796 support can: rcar_canfd: Add r8a7796 support Documentation/devicetree/bindings/net/can/rcar_can.txt | 12 +++++++----- Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) -- 1.9.1 ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <1480003917-3953-1-git-send-email-chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>]
* [PATCH v2 1/2] can: rcar_can: Add r8a7796 support [not found] ` <1480003917-3953-1-git-send-email-chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> @ 2016-11-24 16:11 ` Chris Paterson 0 siblings, 0 replies; 14+ messages in thread From: Chris Paterson @ 2016-11-24 16:11 UTC (permalink / raw) To: Marc Kleine-Budde Cc: Wolfgang Grandegger, Rob Herring, Mark Rutland, Geert Uytterhoeven, Simon Horman, Ramesh Shanmugasundaram, linux-can-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Chris Paterson Signed-off-by: Chris Paterson <chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> Reviewed-by: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org> Acked-by: Marc Kleine-Budde <mkl-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> --- Documentation/devicetree/bindings/net/can/rcar_can.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/rcar_can.txt b/Documentation/devicetree/bindings/net/can/rcar_can.txt index 8d40ab2..06bb7cc 100644 --- a/Documentation/devicetree/bindings/net/can/rcar_can.txt +++ b/Documentation/devicetree/bindings/net/can/rcar_can.txt @@ -10,6 +10,7 @@ Required properties: "renesas,can-r8a7793" if CAN controller is a part of R8A7793 SoC. "renesas,can-r8a7794" if CAN controller is a part of R8A7794 SoC. "renesas,can-r8a7795" if CAN controller is a part of R8A7795 SoC. + "renesas,can-r8a7796" if CAN controller is a part of R8A7796 SoC. "renesas,rcar-gen1-can" for a generic R-Car Gen1 compatible device. "renesas,rcar-gen2-can" for a generic R-Car Gen2 compatible device. "renesas,rcar-gen3-can" for a generic R-Car Gen3 compatible device. @@ -24,11 +25,12 @@ Required properties: - pinctrl-0: pin control group to be used for this controller. - pinctrl-names: must be "default". -Required properties for "renesas,can-r8a7795" compatible: -In R8A7795 SoC, "clkp2" can be CANFD clock. This is a div6 clock and can be -used by both CAN and CAN FD controller at the same time. It needs to be scaled -to maximum frequency if any of these controllers use it. This is done using -the below properties. +Required properties for "renesas,can-r8a7795" and "renesas,can-r8a7796" +compatible: +In R8A7795 and R8A7796 SoCs, "clkp2" can be CANFD clock. This is a div6 clock +and can be used by both CAN and CAN FD controller at the same time. It needs to +be scaled to maximum frequency if any of these controllers use it. This is done +using the below properties: - assigned-clocks: phandle of clkp2(CANFD) clock. - assigned-clock-rates: maximum frequency of this clock. -- 1.9.1 -- 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] 14+ messages in thread
* [PATCH v2 2/2] can: rcar_canfd: Add r8a7796 support 2016-11-24 16:11 ` [PATCH v2 0/2] can: Add r8a7796 support to CAN/CAN FD Chris Paterson [not found] ` <1480003917-3953-1-git-send-email-chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> @ 2016-11-24 16:11 ` Chris Paterson 2016-11-25 7:19 ` [PATCH v2 0/2] can: Add r8a7796 support to CAN/CAN FD Marc Kleine-Budde 2 siblings, 0 replies; 14+ messages in thread From: Chris Paterson @ 2016-11-24 16:11 UTC (permalink / raw) To: Marc Kleine-Budde Cc: Wolfgang Grandegger, Rob Herring, Mark Rutland, Geert Uytterhoeven, Simon Horman, Ramesh Shanmugasundaram, linux-can, netdev, devicetree, linux-renesas-soc, Chris Paterson Signed-off-by: Chris Paterson <chris.paterson2@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> --- Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/rcar_canfd.txt b/Documentation/devicetree/bindings/net/can/rcar_canfd.txt index 22a6f10..788f273 100644 --- a/Documentation/devicetree/bindings/net/can/rcar_canfd.txt +++ b/Documentation/devicetree/bindings/net/can/rcar_canfd.txt @@ -5,6 +5,7 @@ Required properties: - compatible: Must contain one or more of the following: - "renesas,rcar-gen3-canfd" for R-Car Gen3 compatible controller. - "renesas,r8a7795-canfd" for R8A7795 (R-Car H3) compatible controller. + - "renesas,r8a7796-canfd" for R8A7796 (R-Car M3) compatible controller. When compatible with the generic version, nodes must list the SoC-specific version corresponding to the platform first, followed by the @@ -23,11 +24,12 @@ The name of the child nodes are "channel0" and "channel1" respectively. Each child node supports the "status" property only, which is used to enable/disable the respective channel. -Required properties for "renesas,r8a7795-canfd" compatible: -In R8A7795 SoC, canfd clock is a div6 clock and can be used by both CAN -and CAN FD controller at the same time. It needs to be scaled to maximum -frequency if any of these controllers use it. This is done using the -below properties. +Required properties for "renesas,r8a7795-canfd" and "renesas,r8a7796-canfd" +compatible: +In R8A7795 and R8A7796 SoCs, canfd clock is a div6 clock and can be used by both +CAN and CAN FD controller at the same time. It needs to be scaled to maximum +frequency if any of these controllers use it. This is done using the below +properties: - assigned-clocks: phandle of canfd clock. - assigned-clock-rates: maximum frequency of this clock. -- 1.9.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v2 0/2] can: Add r8a7796 support to CAN/CAN FD 2016-11-24 16:11 ` [PATCH v2 0/2] can: Add r8a7796 support to CAN/CAN FD Chris Paterson [not found] ` <1480003917-3953-1-git-send-email-chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> 2016-11-24 16:11 ` [PATCH v2 2/2] can: rcar_canfd: " Chris Paterson @ 2016-11-25 7:19 ` Marc Kleine-Budde 2 siblings, 0 replies; 14+ messages in thread From: Marc Kleine-Budde @ 2016-11-25 7:19 UTC (permalink / raw) To: Chris Paterson Cc: Wolfgang Grandegger, Rob Herring, Mark Rutland, Geert Uytterhoeven, Simon Horman, Ramesh Shanmugasundaram, linux-can, netdev, devicetree, linux-renesas-soc [-- Attachment #1.1: Type: text/plain, Size: 774 bytes --] On 11/24/2016 05:11 PM, Chris Paterson wrote: > This series adds support for r8a7796 to rcar_can and rcar_canfd. > > Original series: [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support. > > Changes since v1: > - Split bindings documentation changes from device tree changes. > - Rebased on renesas-devel-20161123v2-v4.9-rc6. > > > Chris Paterson (2): > can: rcar_can: Add r8a7796 support > can: rcar_canfd: Add r8a7796 support Both added to can-next. Thanks, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2016-11-25 7:19 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 12:14 [PATCH 0/3] arm64: dts: r8a7796: Add CAN/CAN FD support Chris Paterson
2016-11-23 13:18 ` Marc Kleine-Budde
2016-11-23 14:29 ` Simon Horman
2016-11-23 14:31 ` Marc Kleine-Budde
2016-11-24 10:05 ` Chris Paterson
2016-11-24 10:17 ` Simon Horman
2016-11-24 14:25 ` Chris Paterson
[not found] ` <HK2PR0601MB1329C747CA5C6B5222C02C3FB7B60-5BHi1SMfQIfsvBovKiDY8NK/flDYrvD0nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2016-11-24 14:32 ` Simon Horman
2016-11-24 16:41 ` Geert Uytterhoeven
2016-11-24 17:12 ` Chris Paterson
2016-11-24 16:11 ` [PATCH v2 0/2] can: Add r8a7796 support to CAN/CAN FD Chris Paterson
[not found] ` <1480003917-3953-1-git-send-email-chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2016-11-24 16:11 ` [PATCH v2 1/2] can: rcar_can: Add r8a7796 support Chris Paterson
2016-11-24 16:11 ` [PATCH v2 2/2] can: rcar_canfd: " Chris Paterson
2016-11-25 7:19 ` [PATCH v2 0/2] can: Add r8a7796 support to CAN/CAN FD Marc Kleine-Budde
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox