Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1240254 > unrolled thread
| Started by | Tony Lindgren <tony@atomide.com> |
|---|---|
| First post | 2015-10-06 10:40 +0200 |
| Last post | 2015-10-16 23:30 +0200 |
| Articles | 8 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms Tony Lindgren <tony@atomide.com> - 2015-10-06 10:40 +0200
Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms Roger Quadros <rogerq@ti.com> - 2015-10-06 12:00 +0200
Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms Tony Lindgren <tony@atomide.com> - 2015-10-06 12:10 +0200
Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms Roger Quadros <rogerq@ti.com> - 2015-10-06 12:10 +0200
Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms Roger Quadros <rogerq@ti.com> - 2015-10-06 12:30 +0200
Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms Tony Lindgren <tony@atomide.com> - 2015-10-06 13:10 +0200
Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms Roger Quadros <rogerq@ti.com> - 2015-10-06 13:20 +0200
Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms Tony Lindgren <tony@atomide.com> - 2015-10-16 23:30 +0200
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2015-10-06 10:40 +0200 |
| Subject | Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms |
| Message-ID | <qgvWX-S5-37@gated-at.bofh.it> |
* Roger Quadros <rogerq@ti.com> [150930 04:04]: > Tony, > > On 18/09/15 17:53, Roger Quadros wrote: > > Hi, > > > > We do a couple of things in this series which result in > > cleaner device tree implementation, faster perfomance and > > multi-platform support. As an added bonus we get new GPI/Interrupt pins > > for use in the system. > > > > - Establish a custom interface between NAND and GPMC driver. This is > > needed because all of the NAND registers sit in the GPMC register space. > > Some bits like NAND IRQ are even shared with GPMC. > > > > - Remove NAND IRQ handling from omap-gpmc driver, share the GPMC IRQ > > with the omap2-nand driver and handle NAND IRQ events in the NAND driver. > > This causes performance increase when using prefetch-irq mode. > > 30% increase in read, 17% increase in write in prefetch-irq mode. > > > > - Clean up device tree support so that omap-gpmc IP and the omap2 NAND > > driver can be used on non-OMAP platforms. e.g. Keystone. > > > > - Implement GPIOCHIP + IRQCHIP for the GPMC WAITPINS. SoCs can contain > > 2 to 4 of these and most of them would be unused otherwise. It also > > allows a cleaner implementation of NAND Ready pin status for the NAND driver. > > > > - Implement GPIOlib based NAND ready pin checking for OMAP NAND driver. > > > > This series is available at > > git@github.com:rogerq/linux.git > > in branch > > for-v4.4/gpmc-v3 In general, very nice work :) > I've verified this series with the following boards > -dra7-evm > -am437x-gp-evm > -am335x-evm > -beagleboard-c4 > > For legacy boot I've checked only on beagleboard-c4. Great. Does build and boot and use NAND work throughtout the series? Otherwise we'll have hard time bisecting anything.. > Test procedure was to read an existing ubifs partition, > create a new one and read it back. > > Need you to Ack if it looks good. > Do you mind taking it via omap-soc once MTD maintainers ack their relevant parts? Sure. I'll try to do some testing on the series first too. Can the dts changes be merged separtely? Otherwise we'll have a dependency between dts branch and the GPMC/NAND changes. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Roger Quadros <rogerq@ti.com> |
|---|---|
| Date | 2015-10-06 12:00 +0200 |
| Message-ID | <qgxcm-2zE-7@gated-at.bofh.it> |
| In reply to | #1240254 |
On 06/10/15 11:33, Tony Lindgren wrote: > * Roger Quadros <rogerq@ti.com> [150930 04:04]: >> Tony, >> >> On 18/09/15 17:53, Roger Quadros wrote: >>> Hi, >>> >>> We do a couple of things in this series which result in >>> cleaner device tree implementation, faster perfomance and >>> multi-platform support. As an added bonus we get new GPI/Interrupt pins >>> for use in the system. >>> >>> - Establish a custom interface between NAND and GPMC driver. This is >>> needed because all of the NAND registers sit in the GPMC register space. >>> Some bits like NAND IRQ are even shared with GPMC. >>> >>> - Remove NAND IRQ handling from omap-gpmc driver, share the GPMC IRQ >>> with the omap2-nand driver and handle NAND IRQ events in the NAND driver. >>> This causes performance increase when using prefetch-irq mode. >>> 30% increase in read, 17% increase in write in prefetch-irq mode. >>> >>> - Clean up device tree support so that omap-gpmc IP and the omap2 NAND >>> driver can be used on non-OMAP platforms. e.g. Keystone. >>> >>> - Implement GPIOCHIP + IRQCHIP for the GPMC WAITPINS. SoCs can contain >>> 2 to 4 of these and most of them would be unused otherwise. It also >>> allows a cleaner implementation of NAND Ready pin status for the NAND driver. >>> >>> - Implement GPIOlib based NAND ready pin checking for OMAP NAND driver. >>> >>> This series is available at >>> git@github.com:rogerq/linux.git >>> in branch >>> for-v4.4/gpmc-v3 > > In general, very nice work :) Thanks :) > >> I've verified this series with the following boards >> -dra7-evm >> -am437x-gp-evm >> -am335x-evm >> -beagleboard-c4 >> >> For legacy boot I've checked only on beagleboard-c4. > > Great. > > Does build and boot and use NAND work throughtout the series? > Otherwise we'll have hard time bisecting anything.. Yes it does with the following exceptions. - Patch 7 "memory: omap-gpmc: Remove NAND IRQ code" breaks prefetch-irq mode but none of the boards seem to be using it so it shouldn't break NAND on existing boards. At patch 9 "mtd: nand: omap2: manage NAND interrupts" prefetch-irq mode is working again. Do you want me to squash patches 7,8,9 so that pre-fetch irq is not broken at any point? - Then at patch 11 "mtd: nand: omap: Clean up device tree support" we break NAND on all DT boards as we expect NAND to be a real child node with compatible id. Simply applying the DT patch at this point makes it work again. > >> Test procedure was to read an existing ubifs partition, >> create a new one and read it back. >> >> Need you to Ack if it looks good. >> Do you mind taking it via omap-soc once MTD maintainers ack their relevant parts? > > Sure. I'll try to do some testing on the series first too. > Thanks. > Can the dts changes be merged separtely? Otherwise we'll have > a dependency between dts branch and the GPMC/NAND changes. I'm afraid no. Patch 11 makes us incompatible with the old DT. cheers, -roger -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2015-10-06 12:10 +0200 |
| Message-ID | <qgxm3-30l-27@gated-at.bofh.it> |
| In reply to | #1240330 |
* Roger Quadros <rogerq@ti.com> [151006 02:59]: > On 06/10/15 11:33, Tony Lindgren wrote: > > Does build and boot and use NAND work throughtout the series? > > Otherwise we'll have hard time bisecting anything.. > > Yes it does with the following exceptions. > > - Patch 7 "memory: omap-gpmc: Remove NAND IRQ code" breaks prefetch-irq mode > but none of the boards seem to be using it so it shouldn't break NAND on existing boards. > At patch 9 "mtd: nand: omap2: manage NAND interrupts" prefetch-irq mode is working again. > Do you want me to squash patches 7,8,9 so that pre-fetch irq is not broken at any point? OK, no that's fine, no need to squash them together then. > - Then at patch 11 "mtd: nand: omap: Clean up device tree support" we break NAND on all DT > boards as we expect NAND to be a real child node with compatible id. Simply applying the > DT patch at this point makes it work again. Hmm can we at least warn about incompatible DT entry when somebody boots with an older dtb? > >> Test procedure was to read an existing ubifs partition, > >> create a new one and read it back. > >> > >> Need you to Ack if it looks good. > >> Do you mind taking it via omap-soc once MTD maintainers ack their relevant parts? > > > > Sure. I'll try to do some testing on the series first too. > > > Thanks. > > > Can the dts changes be merged separtely? Otherwise we'll have > > a dependency between dts branch and the GPMC/NAND changes. > > I'm afraid no. Patch 11 makes us incompatible with the old DT. OK. If we can warn about that, then the out of tree users will have easier time to update their dts file. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Roger Quadros <rogerq@ti.com> |
|---|---|
| Date | 2015-10-06 12:10 +0200 |
| Message-ID | <qgxm3-30l-25@gated-at.bofh.it> |
| In reply to | #1240337 |
On 06/10/15 13:00, Tony Lindgren wrote: > * Roger Quadros <rogerq@ti.com> [151006 02:59]: >> On 06/10/15 11:33, Tony Lindgren wrote: >>> Does build and boot and use NAND work throughtout the series? >>> Otherwise we'll have hard time bisecting anything.. >> >> Yes it does with the following exceptions. >> >> - Patch 7 "memory: omap-gpmc: Remove NAND IRQ code" breaks prefetch-irq mode >> but none of the boards seem to be using it so it shouldn't break NAND on existing boards. >> At patch 9 "mtd: nand: omap2: manage NAND interrupts" prefetch-irq mode is working again. >> Do you want me to squash patches 7,8,9 so that pre-fetch irq is not broken at any point? > > OK, no that's fine, no need to squash them together then. > >> - Then at patch 11 "mtd: nand: omap: Clean up device tree support" we break NAND on all DT >> boards as we expect NAND to be a real child node with compatible id. Simply applying the >> DT patch at this point makes it work again. > > Hmm can we at least warn about incompatible DT entry when somebody boots > with an older dtb? Yes that could be done. It looks like we can use the missing compatible property to identify that it is and old DT entry. I'll send a v4 of patch 11. cheers, -roger > >>>> Test procedure was to read an existing ubifs partition, >>>> create a new one and read it back. >>>> >>>> Need you to Ack if it looks good. >>>> Do you mind taking it via omap-soc once MTD maintainers ack their relevant parts? >>> >>> Sure. I'll try to do some testing on the series first too. >>> >> Thanks. >> >>> Can the dts changes be merged separtely? Otherwise we'll have >>> a dependency between dts branch and the GPMC/NAND changes. >> >> I'm afraid no. Patch 11 makes us incompatible with the old DT. > > OK. If we can warn about that, then the out of tree users will > have easier time to update their dts file. > > Regards, > > Tony > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Roger Quadros <rogerq@ti.com> |
|---|---|
| Date | 2015-10-06 12:30 +0200 |
| Message-ID | <qgxFo-3nc-11@gated-at.bofh.it> |
| In reply to | #1240338 |
On 06/10/15 13:05, Roger Quadros wrote: > On 06/10/15 13:00, Tony Lindgren wrote: >> * Roger Quadros <rogerq@ti.com> [151006 02:59]: >>> On 06/10/15 11:33, Tony Lindgren wrote: >>>> Does build and boot and use NAND work throughtout the series? >>>> Otherwise we'll have hard time bisecting anything.. >>> >>> Yes it does with the following exceptions. >>> >>> - Patch 7 "memory: omap-gpmc: Remove NAND IRQ code" breaks prefetch-irq mode >>> but none of the boards seem to be using it so it shouldn't break NAND on existing boards. >>> At patch 9 "mtd: nand: omap2: manage NAND interrupts" prefetch-irq mode is working again. >>> Do you want me to squash patches 7,8,9 so that pre-fetch irq is not broken at any point? >> >> OK, no that's fine, no need to squash them together then. >> >>> - Then at patch 11 "mtd: nand: omap: Clean up device tree support" we break NAND on all DT >>> boards as we expect NAND to be a real child node with compatible id. Simply applying the >>> DT patch at this point makes it work again. >> >> Hmm can we at least warn about incompatible DT entry when somebody boots >> with an older dtb? > > Yes that could be done. It looks like we can use the missing compatible property to identify > that it is and old DT entry. > > I'll send a v4 of patch 11. There is another issue. Some of the old DT nodes set the NAND IO address to 0. As we prevent mapping into first 16MB we see the following message for those nodes. e.g. dra7-evm [ 1.727598] omap-gpmc 50000000.gpmc: cannot remap GPMC CS 0 to 0x00000000 [ 1.727605] omap-gpmc 50000000.gpmc: GPMC CS 0 start cannot be lesser than 0x1000000 [ 1.727611] omap-gpmc 50000000.gpmc: failed to probe DT children Hope this is good enough information that DT needs to be updated? cheers, -roger -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2015-10-06 13:10 +0200 |
| Message-ID | <qgyi5-4m5-11@gated-at.bofh.it> |
| In reply to | #1240346 |
* Roger Quadros <rogerq@ti.com> [151006 03:32]: > On 06/10/15 13:05, Roger Quadros wrote: > > On 06/10/15 13:00, Tony Lindgren wrote: > >> * Roger Quadros <rogerq@ti.com> [151006 02:59]: > >>> On 06/10/15 11:33, Tony Lindgren wrote: > >>>> Does build and boot and use NAND work throughtout the series? > >>>> Otherwise we'll have hard time bisecting anything.. > >>> > >>> Yes it does with the following exceptions. > >>> > >>> - Patch 7 "memory: omap-gpmc: Remove NAND IRQ code" breaks prefetch-irq mode > >>> but none of the boards seem to be using it so it shouldn't break NAND on existing boards. > >>> At patch 9 "mtd: nand: omap2: manage NAND interrupts" prefetch-irq mode is working again. > >>> Do you want me to squash patches 7,8,9 so that pre-fetch irq is not broken at any point? > >> > >> OK, no that's fine, no need to squash them together then. > >> > >>> - Then at patch 11 "mtd: nand: omap: Clean up device tree support" we break NAND on all DT > >>> boards as we expect NAND to be a real child node with compatible id. Simply applying the > >>> DT patch at this point makes it work again. > >> > >> Hmm can we at least warn about incompatible DT entry when somebody boots > >> with an older dtb? > > > > Yes that could be done. It looks like we can use the missing compatible property to identify > > that it is and old DT entry. > > > > I'll send a v4 of patch 11. > > There is another issue. Some of the old DT nodes set the NAND IO address to 0. > As we prevent mapping into first 16MB we see the following message for those nodes. e.g. dra7-evm > > [ 1.727598] omap-gpmc 50000000.gpmc: cannot remap GPMC CS 0 to 0x00000000 > [ 1.727605] omap-gpmc 50000000.gpmc: GPMC CS 0 start cannot be lesser than 0x1000000 > [ 1.727611] omap-gpmc 50000000.gpmc: failed to probe DT children > > Hope this is good enough information that DT needs to be updated? Yes I think that should allow users update the out of tree dts file easily. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Roger Quadros <rogerq@ti.com> |
|---|---|
| Date | 2015-10-06 13:20 +0200 |
| Message-ID | <qgyrL-4xj-3@gated-at.bofh.it> |
| In reply to | #1240367 |
On 06/10/15 14:01, Tony Lindgren wrote: > * Roger Quadros <rogerq@ti.com> [151006 03:32]: >> On 06/10/15 13:05, Roger Quadros wrote: >>> On 06/10/15 13:00, Tony Lindgren wrote: >>>> * Roger Quadros <rogerq@ti.com> [151006 02:59]: >>>>> On 06/10/15 11:33, Tony Lindgren wrote: >>>>>> Does build and boot and use NAND work throughtout the series? >>>>>> Otherwise we'll have hard time bisecting anything.. >>>>> >>>>> Yes it does with the following exceptions. >>>>> >>>>> - Patch 7 "memory: omap-gpmc: Remove NAND IRQ code" breaks prefetch-irq mode >>>>> but none of the boards seem to be using it so it shouldn't break NAND on existing boards. >>>>> At patch 9 "mtd: nand: omap2: manage NAND interrupts" prefetch-irq mode is working again. >>>>> Do you want me to squash patches 7,8,9 so that pre-fetch irq is not broken at any point? >>>> >>>> OK, no that's fine, no need to squash them together then. >>>> >>>>> - Then at patch 11 "mtd: nand: omap: Clean up device tree support" we break NAND on all DT >>>>> boards as we expect NAND to be a real child node with compatible id. Simply applying the >>>>> DT patch at this point makes it work again. >>>> >>>> Hmm can we at least warn about incompatible DT entry when somebody boots >>>> with an older dtb? >>> >>> Yes that could be done. It looks like we can use the missing compatible property to identify >>> that it is and old DT entry. >>> >>> I'll send a v4 of patch 11. >> >> There is another issue. Some of the old DT nodes set the NAND IO address to 0. >> As we prevent mapping into first 16MB we see the following message for those nodes. e.g. dra7-evm >> >> [ 1.727598] omap-gpmc 50000000.gpmc: cannot remap GPMC CS 0 to 0x00000000 >> [ 1.727605] omap-gpmc 50000000.gpmc: GPMC CS 0 start cannot be lesser than 0x1000000 >> [ 1.727611] omap-gpmc 50000000.gpmc: failed to probe DT children >> >> Hope this is good enough information that DT needs to be updated? > > Yes I think that should allow users update the out of tree dts file > easily. Fine. The updated series is now at git@github.com:rogerq/linux.git * [new branch] for-v4.4/gpmc-v4 cheers, -roger -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2015-10-16 23:30 +0200 |
| Message-ID | <qkkJA-1Ic-29@gated-at.bofh.it> |
| In reply to | #1240371 |
* Roger Quadros <rogerq@ti.com> [151006 04:13]: > > Fine. The updated series is now at > > git@github.com:rogerq/linux.git > * [new branch] for-v4.4/gpmc-v4 Looks like it produces some build errors, this with RMKs 3430 and 4430 only .configs: drivers/memory/omap-gpmc.c:2035:43: error: ‘struct gpio_chip’ has no member named ‘irqdomain’ drivers/memory/omap-gpmc.c:2116:8: error: implicit declaration of function ‘gpiochip_irqchip_add’ [-Werror=implicit-function-declaration] Maybe run randconfig builds on it for overnight? Other than that your series seems to behave for me now, so feel free to add: Acked-by: Tony Lindgren <tony@atomide.com> Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web