Message ID | 20190809162956.488941-1-arnd@arndb.de (mailing list archive) |
---|---|
Headers | show |
Series | ARM: preparation for multiplatform iop32x | expand |
On Fri, Aug 09, 2019 at 06:29:41PM +0200, Arnd Bergmann wrote: > I'm looking into converting some of the remaining ARMv5 > platforms in arch/arm/ to work together in a single kernel > binary. > > IOP32x seems to be a fairly easy target for multiplatform > by itself, but the way the plat-iop code interacts with > three generations of the code, and how the dma-adma driver > is configured at compile-time for each version gets in the > way. > > I considered adding more indirection layers for those two, > but removing iop33x and iop13xx is much easier in comparison, > so this is the first approach I'm posting. > > If we conclude that iop33x and iop13xx are indeed not used > any more, the remaining patches in this series are > straightforward. The actual multiplatform conversion also > requires changes to the irqchip driver that are not completely > mechanic, and we can discuss those after deciding what to do > with the first set. > > Adding a few people to Cc that historically worked on IOP. I haven't worked with any of these platforms for many years now, and I can't really say much about their current use.
On Fri, Aug 09, 2019 at 06:33:15PM +0200, Arnd Bergmann wrote: > There are three families of IOP machines we support in Linux: iop32x > (which includes EP80219), iop33x and iop13xx (aka IOP34x aka WP8134x). > > All products we support in the kernel are based on the first of these, > iop32x, the other families only ever supported the Intel reference > boards but no actual machine anyone could ever buy. > > While one could clearly make them all three work in a single kernel > with some work, this takes the easy way out, removing the later two > platforms entirely, under the assumption that there are no remaining > users. > > Earlier versions of OpenWRT and Debian both had support for iop32x > but not the others, and they both dropped iop32x as well in their 2015 > releases. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Wolfram Sang <wsa@the-dreams.de> # for I2C parts
[ add Martin (if cyrius.com address is still valid) ] On Fri, Aug 9, 2019 at 9:35 AM Arnd Bergmann <arnd@arndb.de> wrote: > > There are three families of IOP machines we support in Linux: iop32x > (which includes EP80219), iop33x and iop13xx (aka IOP34x aka WP8134x). > > All products we support in the kernel are based on the first of these, > iop32x, the other families only ever supported the Intel reference > boards but no actual machine anyone could ever buy. > > While one could clearly make them all three work in a single kernel > with some work, this takes the easy way out, removing the later two > platforms entirely, under the assumption that there are no remaining > users. > > Earlier versions of OpenWRT and Debian both had support for iop32x > but not the others, and they both dropped iop32x as well in their 2015 > releases. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > I'm just guessing that iop32x is still needed, and the other two are > not. If anyone disagrees with that assessment, let me know so we > can come up with an alternative approach. I'm not sure who would scream if iop32x support went away as well, but I have not followed this space in years hence copying Martin. In any event: Acked-by: Dan Williams <dan.j.williams@intel.com>
On Fri, Aug 09, 2019 at 11:34:12AM -0700, Dan Williams wrote: > [ add Martin (if cyrius.com address is still valid) ] > > On Fri, Aug 9, 2019 at 9:35 AM Arnd Bergmann <arnd@arndb.de> wrote: > > > > There are three families of IOP machines we support in Linux: iop32x > > (which includes EP80219), iop33x and iop13xx (aka IOP34x aka WP8134x). > > > > All products we support in the kernel are based on the first of these, > > iop32x, the other families only ever supported the Intel reference > > boards but no actual machine anyone could ever buy. > > > > While one could clearly make them all three work in a single kernel > > with some work, this takes the easy way out, removing the later two > > platforms entirely, under the assumption that there are no remaining > > users. > > > > Earlier versions of OpenWRT and Debian both had support for iop32x > > but not the others, and they both dropped iop32x as well in their 2015 > > releases. > > > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > --- > > I'm just guessing that iop32x is still needed, and the other two are > > not. If anyone disagrees with that assessment, let me know so we > > can come up with an alternative approach. > > I'm not sure who would scream if iop32x support went away as well, but > I have not followed this space in years hence copying Martin. > > In any event: > > Acked-by: Dan Williams <dan.j.williams@intel.com> Those of us who have and still run Thecus N2100's, for example?
On Fri, Aug 9, 2019 at 11:37 AM Russell King - ARM Linux admin <linux@armlinux.org.uk> wrote: > > On Fri, Aug 09, 2019 at 11:34:12AM -0700, Dan Williams wrote: > > [ add Martin (if cyrius.com address is still valid) ] > > > > On Fri, Aug 9, 2019 at 9:35 AM Arnd Bergmann <arnd@arndb.de> wrote: > > > > > > There are three families of IOP machines we support in Linux: iop32x > > > (which includes EP80219), iop33x and iop13xx (aka IOP34x aka WP8134x). > > > > > > All products we support in the kernel are based on the first of these, > > > iop32x, the other families only ever supported the Intel reference > > > boards but no actual machine anyone could ever buy. > > > > > > While one could clearly make them all three work in a single kernel > > > with some work, this takes the easy way out, removing the later two > > > platforms entirely, under the assumption that there are no remaining > > > users. > > > > > > Earlier versions of OpenWRT and Debian both had support for iop32x > > > but not the others, and they both dropped iop32x as well in their 2015 > > > releases. > > > > > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > > --- > > > I'm just guessing that iop32x is still needed, and the other two are > > > not. If anyone disagrees with that assessment, let me know so we > > > can come up with an alternative approach. > > > > I'm not sure who would scream if iop32x support went away as well, but > > I have not followed this space in years hence copying Martin. > > > > In any event: > > > > Acked-by: Dan Williams <dan.j.williams@intel.com> > > Those of us who have and still run Thecus N2100's, for example? Nice! Good to hear.
* Dan Williams <dan.j.williams@intel.com> [2019-08-09 11:34]: > > Earlier versions of OpenWRT and Debian both had support for iop32x > > but not the others, and they both dropped iop32x as well in their 2015 > > releases. > > > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > --- > > I'm just guessing that iop32x is still needed, and the other two are > > not. If anyone disagrees with that assessment, let me know so we > > can come up with an alternative approach. > > I'm not sure who would scream if iop32x support went away as well, but > I have not followed this space in years hence copying Martin. I believe iop13xx were mostly Intel dev boards. I'm not aware of any major devices based on iop33x. As Arnd points out, Debian used to have support for various iop32x devices. While Debian hasn't supported iop32x in a number of years, these devices are still usable and in use (RMK being a prime example). So I think it's safe to drop iop33x/iop13xx while retaining support for iop32x. As I was looking at my email archives, I saw an email from Peter Teichmann who was working on an iop33x based platform (around 2009) so I've copied him as well. > In any event: > > Acked-by: Dan Williams <dan.j.williams@intel.com> Acked-by: Martin Michlmayr <tbm@cyrius.com>
On Mon, Aug 12, 2019 at 11:45 AM Martin Michlmayr <tbm@cyrius.com> wrote: > As Arnd points out, Debian used to have support for various iop32x > devices. While Debian hasn't supported iop32x in a number of years, > these devices are still usable and in use (RMK being a prime example). I suppose it could be a good idea to add support for iop32x to OpenWrt and/or OpenEmbedded, both of which support some pretty constrained systems. I am personally using these distributions to support elder ARM hardware these days. Just my €0.01 Linus Walleij
On Wed, Aug 14, 2019 at 10:36 AM Linus Walleij <linus.walleij@linaro.org> wrote: > > On Mon, Aug 12, 2019 at 11:45 AM Martin Michlmayr <tbm@cyrius.com> wrote: > > > As Arnd points out, Debian used to have support for various iop32x > > devices. While Debian hasn't supported iop32x in a number of years, > > these devices are still usable and in use (RMK being a prime example). > > I suppose it could be a good idea to add support for iop32x to > OpenWrt and/or OpenEmbedded, both of which support some > pretty constrained systems. I am personally using these > distributions to support elder ARM hardware these days. OpenWRT also had support in the past and dropped it around the same time as Debian. The way I understand it, a couple of platforms including iop32x were moved out of the main openwrt source tree into https://github.com/openwrt/targets/ because there was little interest in keeping them running. The idea was that any remaining users could add that feed to get minimal support, but I'm not sure if would still work. In particular, iop33x appears to be based on linux-3.3 plus three patches that are no longer needed in mainline. Building a mainline kernel without those patches may or may not work. Arnd
On Fri, Aug 9, 2019 at 6:30 PM Arnd Bergmann <arnd@arndb.de> wrote: > > I'm looking into converting some of the remaining ARMv5 > platforms in arch/arm/ to work together in a single kernel > binary. > > IOP32x seems to be a fairly easy target for multiplatform > by itself, but the way the plat-iop code interacts with > three generations of the code, and how the dma-adma driver > is configured at compile-time for each version gets in the > way. > > I considered adding more indirection layers for those two, > but removing iop33x and iop13xx is much easier in comparison, > so this is the first approach I'm posting. > > If we conclude that iop33x and iop13xx are indeed not used > any more, the remaining patches in this series are > straightforward. The actual multiplatform conversion also > requires changes to the irqchip driver that are not completely > mechanic, and we can discuss those after deciding what to do > with the first set. > > Adding a few people to Cc that historically worked on IOP. I applied the IOP series to to the arm/soc branch now, thanks for the reviews! Arnd
Hi, On Wed, Aug 14, 2019 at 10:36:01AM +0200, Linus Walleij wrote: > On Mon, Aug 12, 2019 at 11:45 AM Martin Michlmayr <tbm@cyrius.com> wrote: > > As Arnd points out, Debian used to have support for various iop32x > > devices. While Debian hasn't supported iop32x in a number of years, > > these devices are still usable and in use (RMK being a prime example). > > I suppose it could be a good idea to add support for iop32x to > OpenWrt and/or OpenEmbedded, both of which support some > pretty constrained systems. This platform is not really too constrained... E.g. on N2100 you have 512 MB RAM, SATA disks and gigabit ethernet. Not that different from mvebu that Debian currently (?) supports. Maybe with multiplatform they could support iop32x again. A.
On Fri, Aug 16, 2019 at 06:42:49PM +0300, Aaro Koskinen wrote: > Hi, > > On Wed, Aug 14, 2019 at 10:36:01AM +0200, Linus Walleij wrote: > > On Mon, Aug 12, 2019 at 11:45 AM Martin Michlmayr <tbm@cyrius.com> wrote: > > > As Arnd points out, Debian used to have support for various iop32x > > > devices. While Debian hasn't supported iop32x in a number of years, > > > these devices are still usable and in use (RMK being a prime example). > > > > I suppose it could be a good idea to add support for iop32x to > > OpenWrt and/or OpenEmbedded, both of which support some > > pretty constrained systems. > > This platform is not really too constrained... E.g. on N2100 you have > 512 MB RAM, SATA disks and gigabit ethernet. Not that different from > mvebu that Debian currently (?) supports. Maybe with multiplatform they > could support iop32x again. Probably not. The kernel has a dividing line between ARMv5 and ARMv6 where it's not possible to multiplatform across that boundary, so you're already needing separate kernel images there. Secondly, armhf distros won't be compatible with ARMv5, and to make them compatible will make performance on armhf suffer - you have to stop using barriers, exclusive load/store and a few other things. You have to rely on the kuser page exported by the kernel (which is now optional as it's deemed to be a security issue for ROP attacks) for some things that such a userspace requires - such as NPTL support. Effectively, ARMv5 is an entirely separate userspace distro from armhf.
Hi, On Fri, Aug 16, 2019 at 04:58:33PM +0100, Russell King - ARM Linux admin wrote: > On Fri, Aug 16, 2019 at 06:42:49PM +0300, Aaro Koskinen wrote: > > On Wed, Aug 14, 2019 at 10:36:01AM +0200, Linus Walleij wrote: > > > On Mon, Aug 12, 2019 at 11:45 AM Martin Michlmayr <tbm@cyrius.com> wrote: > > > > As Arnd points out, Debian used to have support for various iop32x > > > > devices. While Debian hasn't supported iop32x in a number of years, > > > > these devices are still usable and in use (RMK being a prime example). > > > > > > I suppose it could be a good idea to add support for iop32x to > > > OpenWrt and/or OpenEmbedded, both of which support some > > > pretty constrained systems. > > > > This platform is not really too constrained... E.g. on N2100 you have > > 512 MB RAM, SATA disks and gigabit ethernet. Not that different from > > mvebu that Debian currently (?) supports. Maybe with multiplatform they > > could support iop32x again. > > Probably not. The kernel has a dividing line between ARMv5 and ARMv6 > where it's not possible to multiplatform across that boundary, so > you're already needing separate kernel images there. > > Secondly, armhf distros won't be compatible with ARMv5, and to make > them compatible will make performance on armhf suffer - you have to > stop using barriers, exclusive load/store and a few other things. > You have to rely on the kuser page exported by the kernel (which is > now optional as it's deemed to be a security issue for ROP attacks) > for some things that such a userspace requires - such as NPTL support. > > Effectively, ARMv5 is an entirely separate userspace distro from armhf. I thought they still had armel for ARMv5 and mvebu (kirkwood). A.