From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c0b::22b; helo=mail-it0-x22b.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A89722218E93E for ; Tue, 5 Dec 2017 13:23:14 -0800 (PST) Received: by mail-it0-x22b.google.com with SMTP id r6so4658396itr.3 for ; Tue, 05 Dec 2017 13:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jrecIELFVs60EWgNPRshX4Tf781/mCtYlQSAwUSUSy4=; b=CxucGnaynaU8bdJScny5rlkpF/mfNSNCUvHGBW4jo/UM0tINC0SIJvqffkTdeCEoAB QdS/nImVIRNmewVRjUVbMqIGGJ86eA0+ADL+dyqCN31I0EVGDw+gQbGss+kAGEyhP0e4 Fzxz6jA5mgDAgnIwbLN9WXquFJU3aybcrtSd8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jrecIELFVs60EWgNPRshX4Tf781/mCtYlQSAwUSUSy4=; b=PP7rVk+NOqPW/qB9iDzeLyPBIwszBIBUrvIcI/q0lHOoXZHq7JuZmsfPPpEBpwT9xj EPFYiLj099l5yFhZR2DxIvSKufSDo3om9qObcEdcCNatgTZ2aeMLYh9m/c8YpwLIR9AI yW0CHAKM/srVsS1Mp9AhT7sbto4Ihnn9KXZApDJZhyVOK00jGrPLCBPbHVyKvHJCHvq9 ZKuQKR+UJ9kdXPD93+O48zTSUmDr/nVvbMrEzgbw5diZGyGp0bC4Mec5YvbKXLUmiLEu S4LhmZmQ5VXqDOcT6BDyf4ThFelWQ2mPlWfPSbxcb0A7IskDFx/9x8aDL3ZGKzY+99Xx SdCQ== X-Gm-Message-State: AKGB3mKa8K4djsphE2SpccBfelQirNjS4M/Q8WrYK2d7POhEEnUBkA3q 2S+47t6sk57gh9KkR9k3CgXj0pbnBByDQVD7KovPLg== X-Google-Smtp-Source: AGs4zMaF3p8vS7IlW1+tXYeDDPcq1RQZIFE9TLbSPg8+tp7x6hw0k34lSKpziLDv3XcB/LNUDVWRfXs+tD49Qu9I3k0= X-Received: by 10.36.145.203 with SMTP id i194mr11027378ite.73.1512509264731; Tue, 05 Dec 2017 13:27:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.104.16 with HTTP; Tue, 5 Dec 2017 13:27:44 -0800 (PST) In-Reply-To: References: <20170926201529.11644-1-evan.lloyd@arm.com> <20170926201529.11644-20-evan.lloyd@arm.com> From: Ard Biesheuvel Date: Tue, 5 Dec 2017 21:27:44 +0000 Message-ID: To: Evan Lloyd Cc: "edk2-devel@lists.01.org" , Matteo Carlini , Leif Lindholm , Girish Pathak Subject: Re: [PATCH 19/19] ArmPlatformPkg: New DP500/DP550/DP650 GOP driver. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2017 21:23:14 -0000 Content-Type: text/plain; charset="UTF-8" On 5 December 2017 at 20:03, Evan Lloyd wrote: > > >> -----Original Message----- >> From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org] >> Sent: 01 December 2017 17:19 >> To: Evan Lloyd >> Cc: edk2-devel@lists.01.org; Matteo Carlini ; >> Leif Lindholm ; Girish Pathak >> >> Subject: Re: [PATCH 19/19] ArmPlatformPkg: New DP500/DP550/DP650 >> GOP driver. >> >> On 1 December 2017 at 13:12, Evan Lloyd wrote: >> > >> > >> >> -----Original Message----- >> >> From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org] >> >> Sent: 28 November 2017 18:18 >> >> To: Evan Lloyd >> >> Cc: edk2-devel@lists.01.org; Matteo Carlini ; >> >> Leif Lindholm ; Girish Pathak >> >> >> >> Subject: Re: [PATCH 19/19] ArmPlatformPkg: New DP500/DP550/DP650 >> GOP >> >> driver. >> >> >> >> On 26 September 2017 at 21:15, wrote: >> >> > From: Girish Pathak >> >> > >> >> > This change adds support for the ARM Mali DP500/DP500/DP650 >> display >> >> > processors using the GOP protocol. It has been tested on FVP base >> >> > models + DP550 support. >> >> > >> >> > This change does not modify functionality provided by PL111 or >> >> > HDLCD. The driver should be suitable for those platforms that >> >> > implement ARM Mali DP500/DP550/DP650 replacing PL111/HDLCD. >> >> > >> >> > Only "Layer Graphics" of the ARM Mali DP is configured for >> >> > rendering the RGB/BGR format frame buffer to satisfy the UEFI GOP >> >> > requirements Other layers e.g. video layers are not configured. >> >> > >> >> > NOTE: This change implements the Mali DP on models. Versions for >> >> > actual hardware are liable to require extra handling for clock >> >> > input changes, etc. >> >> > >> >> > Contributed-under: TianoCore Contribution Agreement 1.1 >> >> > Signed-off-by: Girish Pathak >> >> > Signed-off-by: Evan Lloyd >> >> >> >> Hello Girish, Evan, >> >> >> >> (replying to 19/19 because I cannot find the cover letter in my >> >> edk2-devel archive but this really applies to the whole series) >> >> >> >> I have been looking at these patches again now that I am trying to >> >> clean up ArmPlatformPkg, which is currently a dumping ground for all >> >> things vaguely ARM related, and is also structured quite differently >> >> from other packages. >> >> >> >> Ideally, ArmPlatformPkg should only contain the following: >> >> - library class interfaces under Include/Library; header files kept >> >> here should only contain elements that define API >> >> - driver specific include files Include/IndustryStandard but *only* >> >> if they cannot be kept locally with the driver in question >> >> - libraries under Library/ >> >> - drivers under Drivers/ >> >> >> >> This aligns with the common arrangement adopted by most EDK2 >> packages. >> >> >> >> This series does many different things, and does not distinguish at >> >> all between common code and code living under ArmVExpressPkg. Given >> > >> > [[Evan Lloyd]] All of the commits in the series are in ArmPlatformPkg. >> > You may be in the process of disentangling the VE specific bits, but >> > hitherto that has not been a consideration. (Note: I'm not arguing against >> the disentangling, only pointing out that it was not a factor at the point we >> submitted the patches) The reason there are so many commits is only that >> we have been asked to break things up into "bite sized" chunks for the >> convenience of maintainers. >> > The aim was to make each a coherent item with a simple justification. >> > >> >> that I am trying to move ArmVExpressPkg out of EDK2 into >> >> edk2-platforms (where it arguably belongs) having this series in >> >> limbo for two months is basically blocking my work, and so I would >> >> like to explore ways to proceed with this without interfering with >> >> each other's work too much. At the same time, the way the code is >> >> structured is a continuation of the pattern I am trying to get rid >> >> of, so they will need some rework anyway in order to be upstreamable >> IMHO. >> > >> > [[Evan Lloyd]] Not being psychic, we had not made allowance for your >> plans. >> > However, if you take the trouble to look at the changes, they achieve >> exactly the split you aim for. >> > The display type code (PL011 and HDLCD) is unravelled from the VE code. >> > All that remains would be to move the VE specific part into edk2- >> platforms. >> > >> >> >> >> So could we split it up please? Assuming the intention is the ability >> >> to reuse the Mali code on non-VExpress platforms, I would like to see >> >> that code proposed separately, without any mention of VExpressPkg.dec >> > >> > [[Evan Lloyd]] Given that the original code was unfortunate, I'm not sure >> that it makes much difference what order the changes get made. >> > Going West then North gets you to the same place as North then West >> (except near a pole). >> > If you accept that there was a logical progression in the changes made, >> then it might be better to not rejig things pointlessly. >> > >> >> whatsoever. If you introduce any library classes that abstract away >> >> the differences between platforms, you can include a Null version of >> >> such a library that simply does ASSERT (FALSE) in every function: >> >> this >> > >> > [[Evan Lloyd]] One could, indeed, do that. We, however, would be very >> reluctant to incur the overhead of rework in response to spurious cavils >> from a maintainer when it is of no direct relevance to us. >> > >> >> I don't think the suggestion that we evil maintainers are nothing but an >> impediment to the likes of you and your team members doing the actual >> work is justified. >> >> We are all on the same team here, and the goal is to make UEFI code >> reusable for the customers of /your/ employer. Throwing stuff over the >> fence != upstreaming, and it is my job as a maintainer to ensure that code is >> still maintainable long after the original authors have moved on to >> something else. >> >> ArmPlatformPkg is a perfect example where code reuse is much more >> difficult than it needs to be, and we as maintainers need to deal with >> contributors from other companies that have used it as 'guidance' for how >> to architect their UEFI firmware, which is usually filled with vexpress-isms >> that date back to before anyone currently involved with UEFI can remember. >> >> This is why I have taken the time to sit down, go through all the crap code, >> clean it up, refactor it and propose it on the list as improvements. I even >> went so far as taking the preparatory Mali work of your team and rebase it >> so that we can keep the bits that we may share, and move the bits out that >> should not be kept in main EDK2 because they are being taken as gospel by >> engineers that are new to >> ARM+UEFI. >> >> If this is too much to deal with for you, then fine, don't upstream your code. >> But if you do, you are going to have to play nice with the others, including >> the maintainers. >> > [[Evan Lloyd]] Hi Ard. Firstly, I apologize, I assumed from your name that you were Dutch and would therefore probably have a lively sense of humour. Of course, if I have touched a nerve, that is unfortunate and I'm sorry. No, the apparently blatantly obvious tongue-in-cheek nature of your response was completely lost on me. But I know a person who does have a lively sense of humour, so next time I will ask him for help. > I agree that cleaning up the code is important, worthwhile, and an objective for us all. What can be a difficulty is our very different conceptions of what clean means. > Fair enough. But as maintainers, we take ownership of your code, with the implied promise to keep it in a working state. I don't think it is unreasonable that we get to dictate some of the terms under which that occurs. > You should be aware though that a certain amount of whingeing is to be expected when dealing with Brits. (Ask Leif - he knows! Or any Australian.) > I do not disagree with your intent - but I do sometimes feel that the criteria applied do not take into account the cost/benefit aspects, and seek to air that point. I shall endeavour to make such points in a less bantering way in future. > Thanks. I think one of the misconceptions may be that upstreaming is something one does once the code is completely finished. Instead, please involve us much sooner if you intend to upstream your code (or just Leif for confidential stuff). That way, any effort invested in the code benefits your product as well as the open source, rather than shipping one version, and having to go back and change stuff for the version that ends up upstream.