From: Tom Rini Date: Thu, 28 Nov 2019 11:51:56 -0500 Subject: [U-Boot] [U-Boot-Custodians] [U-Boot-Board-Maintainers] [RFC] Eliminate boards not using CONFIG_DM=y In-Reply-To: <0e9a704a-8c37-0924-cdc5-f5fe6acd2c10@denx.de> References: <717e50a5-9b61-37d9-a322-d9f758c517d3@denx.de> <20191126162618.GX15966@bill-the-cat> <20191126165259.GY15966@bill-the-cat> <644594d0-e32d-14ae-a0a4-e33ce1066d78@denx.de> <0e9a704a-8c37-0924-cdc5-f5fe6acd2c10@denx.de> Message-ID: <20191128165156.GH15966@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Thu, Nov 28, 2019 at 10:40:38AM +0100, Marek Vasut wrote: > On 11/28/19 7:22 AM, Heinrich Schuchardt wrote: > > On 11/26/19 6:07 PM, Marek Vasut wrote: > >> On 11/26/19 5:52 PM, Tom Rini wrote: > >>> On Tue, Nov 26, 2019 at 05:47:48PM +0100, Marek Vasut wrote: > >>>> On 11/26/19 5:26 PM, Tom Rini wrote: > >>>>> On Tue, Nov 26, 2019 at 09:11:51AM +0100, Marek Vasut wrote: > >>>>>> On 11/26/19 12:16 AM, Heinrich Schuchardt wrote: > >>>>>>> Dear maintainers, > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>>> we have been trying to move to the driver model for several years > >>>>>>> now. > >>>>>>> Starting in 2018 we have added warnings to the Makefile that > >>>>>>> boards not > >>>>>>> supporting the driver model will be eliminated. Still 24 % of the > >>>>>>> configuration files have not been converted and do not even use > >>>>>>> CONFIG_DM=3Dy. > >>>>>>> > >>>>>>> If we want to get rid of legacy drivers, at some point we have to > >>>>>>> remove > >>>>>>> the 347 configuration files in the list below not using the > >>>>>>> driver model. > >>>>>>> > >>>>>>> I suggest to do this directly after the release of v2020.01 > >>>>>>> scheduled > >>>>>>> January 6th. > >>>>>>> > >>>>>>> This should not stop the maintainers from reinserting the boards > >>>>>>> after > >>>>>>> conversion to the driver model. > >>>>>> > >>>>>> Some boards just cannot accommodate this DM stuff. For those board= s, > >>>>>> it's just bloat without any useful added value. Hence, these boards > >>>>>> would be removed because they cannot accommodate arbitrary bloat. > >>>>>> This > >>>>>> makes U-Boot not-so-universal bootloader anymore, but rather a > >>>>>> bloated one. > >>>>>> > >>>>>> I don't think we can force boards out or impose DM on everyone > >>>>>> unless we > >>>>>> can solve this bloat issue first. > >>>>> > >>>>> As someone who was involved in creating this DM stuff, do you have > >>>>> some > >>>>> ideas on addressing things?=C2=A0 Given that you're responsible for= a > >>>>> number > >>>>> of these platforms and can test out some ideas on them, what are you > >>>>> suggesting? > >>>> > >>>> How about directly calling driver functions for drivers which have > >>>> single instance only ? Then we could optimize out all the DM overhead > >>>> for that. > >>> > >>> And when are you hoping to post an RFC / example? > >> > >> Currently I have zero time available. Maybe someone else can look into > >> this option? > >=20 > > Dear Marex, > >=20 > > DM drivers make use of the DM infrastructure for instance for the > > allocation of the private data area. The uclass files often include > > common logic needed for accessing all drivers (see for example tpm_xfer= ()). > >=20 > > So which drivers do you think of that could be simplified? >=20 > UART for example ? You only usually have one. >=20 > > I would also be interested to learn which of the 347 boards not using > > CONFIG_DM=3Dy are still actively maintained. >=20 > Probably quite a few of those iMX, omap and PPC ones. > The qemu ones are probably used for CI ? I need to reply more directly to the opening post but yes, i.MX is still for various reasons needing help, and no, shouldn't be dropped, but we need to have a serious conversation about it. The OMAP platforms probably could be dropped or need a quick conversion. PowerPC is another place where we need a serious conversation. MIPS I think just needs some updating for conversion, along with the vexpress ones we also use in CI via QEMU. --=20 Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: