Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp175274pxa; Wed, 26 Aug 2020 07:45:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxucw+J7WHbxp6H12xHvbUMUMWSyWVVokkw1gNlR6tLWk6pgiR0zhA+OCxXzKYsV17rhsZh X-Received: by 2002:aa7:d70a:: with SMTP id t10mr12238965edq.161.1598453158788; Wed, 26 Aug 2020 07:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598453158; cv=none; d=google.com; s=arc-20160816; b=blP+DElO84f2sBKKdDpd0Fh8GoTFu6c/Fuc5iNVYX9L2xDfh2dht/2RAX/Ab0I+mgZ ktDrHikyoyrTmNHRzyOtmxBVt99FzCmw0urBIWH2b5LtIFnalsDK9rH9pZuCjF6Meu6r zf4UxTLSmxCBFURVF8LA2HWo8LuLJR5frTzjRHdeqhcLPOIsFoJ4vNUyuca+qprAlYLF xEkEMEQJ7pHwD/fkhNAJegbQMkgErZjaTRVKIYDuhOmAxSUrMssFQDsFT7ICj4/zobpH wBNp7EidmsxuuEVrT6Wds+NQSTx+sCyrcU24pc3l8uZSbroCzS3VlLjDJUqDTB51VOnL DiCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=3fltz4Tid80yvbd7ycd5CEvXCm5Dl/pplKlQTmdAxKA=; b=hZ/nnkCuhCrBdTRlY9XQ8Wwizx/SFOHXNAg1nnVhW1ArcrbNEbvX70utBTM9AGx7jk yu4bSJ/D2q92L4My9ZI/sZA64pzHVgQ2nW24qS3PedxiockYDYEEzZ36kedMi5B4AYF1 gdDj+Lu7raWoPdTHBICBskEyHba7jvAgjIqmSVvPYHwj+onTRUmrRb7dhwToO0wkuiFk 71Uua2SfcD5/grU32ihKSJ5SlvBsdIgimHjM8MewCbwYEfgK1ws1ik1OcmyuCRvJvjaN TG6cBweXFwn8qggXUuA74TTb7Oj/dQiTgHvOEeRTiDdj3uFZUfOI51PKUV9xCH9u6Gh7 sfuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=k4m5mEJB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si191edw.497.2020.08.26.07.45.36; Wed, 26 Aug 2020 07:45:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=k4m5mEJB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726834AbgHZOoj (ORCPT + 99 others); Wed, 26 Aug 2020 10:44:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbgHZOod (ORCPT ); Wed, 26 Aug 2020 10:44:33 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00EDDC061786 for ; Wed, 26 Aug 2020 07:44:32 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id n18so1556966qtw.0 for ; Wed, 26 Aug 2020 07:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=3fltz4Tid80yvbd7ycd5CEvXCm5Dl/pplKlQTmdAxKA=; b=k4m5mEJBWpHKc8UCyiMSoWpLFbB9PLsFXQSse1GeHDwA4DKW/bxLFf2oq06iweP+iL M8bgXdl0A9155UGa8Nz8VJmE6L39gWW8oVIXtrtnNW2XbaFdQ7/KhobmLnk55ujnHV/2 tPPob3cH4BlQEISinoXdsc01CEIIJiQYM7T+gkUDqRjYhkY6CbBd83M1+SskyHHbWLvL rHtzPGZUMHG7eDyNL2Q4ZV/nAiZIzogvhqr+a2Knoik0r52ut2ISFzGOCWsps3sZCmxq fBsjIPcK+lwVA+ap0kK3kVNC6i6d4qEdXhZRr9MSKdg1iPVBdKJXwariY86XZf+E2JPH +9mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=3fltz4Tid80yvbd7ycd5CEvXCm5Dl/pplKlQTmdAxKA=; b=W7ReLCpHBPgNRug6C9yZ0Bx35ks/dM8Z4zw7JaOTBgIp5n4Fn8xz2tH/Yqw5oRP8Vb Epdl+ilQnyAYR4UEQ2AK97gtOOL+2gKjmdfn94FVdYQQYHL/v8Ud0YiivHsvQ5mv5koV CJUxjLyNdnDF8V7WNBxyJ68PIulKi+DaWn3y6NRigO8Q4DgFPV0k2qAOSbwqUF0aVu8l B7GLxwjW062kJRGazwEYcgOdmVmIrprsbWD/Pb+/W8KYej+N3rxFTZPw8fPUsrFd6kja 3Ubofs7INHrUaIKGNjJUt92lei21Q8iHYQOvUld3JKf4giYi+EfTY41K7FR+HkVEx904 /Kxg== X-Gm-Message-State: AOAM5326/JOZDHbYIWNg0CrCTtf36IHIF7B4faz+msfnLcAYWQQcSDLG r4QR/hVWtp7x3o32g6fOGb9ijg== X-Received: by 2002:ac8:33a1:: with SMTP id c30mr10693591qtb.156.1598453071797; Wed, 26 Aug 2020 07:44:31 -0700 (PDT) Received: from skullcanyon ([192.222.193.21]) by smtp.gmail.com with ESMTPSA id a203sm1862906qkg.30.2020.08.26.07.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:44:31 -0700 (PDT) Message-ID: Subject: Re: [PATCH 00/49] DRM driver for Hikey 970 From: Nicolas Dufresne To: Mauro Carvalho Chehab , Dave Airlie Cc: Laurent Pinchart , Neil Armstrong , David Airlie , Wanchun Zheng , linuxarm@huawei.com, dri-devel , Andrzej Hajda , Sam Ravnborg , driverdevel , Daniel Borkmann , John Fastabend , Xiubin Zhang , Wei Xu , Xinliang Liu , Xinwei Kong , Tomi Valkeinen , Bogdan Togorean , Jakub Kicinski , Laurentiu Palcu , linux-media , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Liwei Cai , Jesper Dangaard Brouer , Manivannan Sadhasivam , Chen Feng , Alexei Starovoitov , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Rob Herring , mauro.chehab@huawei.com, Rob Clark , linux-arm-kernel , Greg Kroah-Hartman , lkml , Liuyao An , Network Development , Rongrong Zou , BPF Mailing List , "David S. Miller" Date: Wed, 26 Aug 2020 10:44:28 -0400 In-Reply-To: <20200825133025.13f047f0@coco.lan> References: <20200819152120.GA106437@ravnborg.org> <20200819153045.GA18469@pendragon.ideasonboard.com> <20200820090326.3f400a15@coco.lan> <20200820100205.GA5962@pendragon.ideasonboard.com> <20200825133025.13f047f0@coco.lan> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mardi 25 août 2020 à 13:30 +0200, Mauro Carvalho Chehab a écrit : > Em Tue, 25 Aug 2020 05:29:29 +1000 > Dave Airlie escreveu: > > > On Thu, 20 Aug 2020 at 20:02, Laurent Pinchart > > wrote: > > > Hi Mauro, > > > > > > On Thu, Aug 20, 2020 at 09:03:26AM +0200, Mauro Carvalho Chehab wrote: > > > > Em Wed, 19 Aug 2020 12:52:06 -0700 John Stultz escreveu: > > > > > On Wed, Aug 19, 2020 at 8:31 AM Laurent Pinchart wrote: > > > > > > On Wed, Aug 19, 2020 at 05:21:20PM +0200, Sam Ravnborg wrote: > > > > > > > On Wed, Aug 19, 2020 at 01:45:28PM +0200, Mauro Carvalho Chehab wrote: > > > > > > > > This patch series port the out-of-tree driver for Hikey 970 (which > > > > > > > > should also support Hikey 960) from the official 96boards tree: > > > > > > > > > > > > > > > > https://github.com/96boards-hikey/linux/tree/hikey970-v4.9 > > > > > > > > > > > > > > > > Based on his history, this driver seems to be originally written > > > > > > > > for Kernel 4.4, and was later ported to Kernel 4.9. The original > > > > > > > > driver used to depend on ION (from Kernel 4.4) and had its own > > > > > > > > implementation for FB dev API. > > > > > > > > > > > > > > > > As I need to preserve the original history (with has patches from > > > > > > > > both HiSilicon and from Linaro), I'm starting from the original > > > > > > > > patch applied there. The remaining patches are incremental, > > > > > > > > and port this driver to work with upstream Kernel. > > > > > > > > > > > > > ... > > > > > > > > - Due to legal reasons, I need to preserve the authorship of > > > > > > > > each one responsbile for each patch. So, I need to start from > > > > > > > > the original patch from Kernel 4.4; > > > > > ... > > > > > > > I do acknowledge you need to preserve history and all - > > > > > > > but this patchset is not easy to review. > > > > > > > > > > > > Why do we need to preserve history ? Adding relevant Signed-off-by and > > > > > > Co-developed-by should be enough, shouldn't it ? Having a public branch > > > > > > that contains the history is useful if anyone is interested, but I don't > > > > > > think it's required in mainline. > > > > > > > > > > Yea. I concur with Laurent here. I'm not sure what legal reasoning you > > > > > have on this but preserving the "absolute" history here is actively > > > > > detrimental for review and understanding of the patch set. > > > > > > > > > > Preserving Authorship, Signed-off-by lines and adding Co-developed-by > > > > > lines should be sufficient to provide both atribution credit and DCO > > > > > history. > > > > > > > > I'm not convinced that, from legal standpoint, folding things would > > > > be enough. See, there are at least 3 legal systems involved here > > > > among the different patch authors: > > > > > > > > - civil law; > > > > - common law; > > > > - customary law + common law. > > > > > > > > Merging stuff altogether from different law systems can be problematic, > > > > and trying to discuss this with experienced IP property lawyers will > > > > for sure take a lot of time and efforts. I also bet that different > > > > lawyers will have different opinions, because laws are subject to > > > > interpretation. With that matter I'm not aware of any court rules > > > > with regards to folded patches. So, it sounds to me that folding > > > > patches is something that has yet to be proofed in courts around > > > > the globe. > > > > > > > > At least for US legal system, it sounds that the Country of > > > > origin of a patch is relevant, as they have a concept of > > > > "national technology" that can be subject to export regulations. > > > > > > > > From my side, I really prefer to play safe and stay out of any such > > > > legal discussions. > > > > > > Let's be serious for a moment. If you think there are legal issues in > > > taking GPL-v2.0-only patches and squashing them while retaining > > > authorship information through tags, the Linux kernel if *full* of that. > > > You also routinely modify patches that you commit to the media subsystem > > > to fix "small issues". > > > > > > The country of origin argument makes no sense either, the kernel code > > > base if full of code coming from pretty much all country on the planet. > > > > > > Keeping the patches separate make this hard to review. Please squash > > > them. > > > > I'm inclined to agree with Laurent here. > > > > Patches submitted as GPL-v2 with DCO lines and author names/companies > > should be fine to be squashed and rearranged, > > as long as the DCO and Authorship is kept somewhere in the new patch > > that is applied. > > > > Review is more important here. > > Sorry, but I can't agree that review is more important than to be able > to properly indicate copyrights in a valid way at the legal systems that > it would apply ;-) Regardless of the "review-ability", our users distribute the Linux Kernel as a whole, so who contributed which specific line of code is already lost in a way. All we see in the distribution if a list of copyright holder and licenses. In this context, the per patches ownership have no legal implication. My two, non lawyer cents. > > In any case, there's an easy way to make the code easy to review: > I can write the patches against staging (where it is OK to submit > preserving the history) and then add a final patch moving it out > of staging. > > You can then just review the last patch, as it will contain the > entire code on it. > > Another alternative, as I'm already doing with Sam, is for me to > submit the folded code as a reply to 00/xx. You can then just > review the final code, without concerning about how the code reached > there. > > From review point of the view, this will be the same as reviewing > a folded patch, but, from legal standpoint, the entire copyright > chain will be preserved. > > Thanks, > Mauro