Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp934872pxa; Wed, 19 Aug 2020 20:30:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLK1jiIVBhcb4tvcUi+ZXYAGWivyfq8+kuB3UmqxF3nELFjr9Eqt5Rmdg9rprYWm7qK3ek X-Received: by 2002:aa7:d3d8:: with SMTP id o24mr173517edr.350.1597894215700; Wed, 19 Aug 2020 20:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597894215; cv=none; d=google.com; s=arc-20160816; b=AQhetdnMleM4dCYBxCJf0/KE8TKlMrORvHSRd/04UMFnHsHynLx3YdZLha1IJJrwZZ EDw7dY+Lo6R38r/3OdkQvVIahOeGHY9NCUY6T4VEYsgCDHy65OUO0fn1+qxkCySf1Se6 ZF95chXHkPsdFB7fEiB6sp9tGfzll78FFk9w8PqrKgpPe3gbBS7oD0Od4wiQmTRhMzWq vCJmcRjdfH6NHQ7ZPOYXPtlPMkgAo5pwFnpIyrebwpUAJ3AWoWm4UWq0n6DlOB5SkGK3 rqu8QPFeKUAx9KmOb2wm1YuI22PUIvdX+a4p1rykxh3kUHUBlVthsKr4BRNONASzu2jR XXZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fF+dRt58CyDJkqe2eFqFPurhOlRy+MhyKYgh/jsdn+Q=; b=nn0C2x6b9ygy/jQCTnLIOSyaoL0gzTE+HI+17lhwDfxt59VjBD5lxfDAanWAQw7Jmi N+t2tvefUaOOOVUA/zcFzORdBxA+dBZYqqWmbpmRo+GOvtLz6s/09FRgZl3AvhmvLozj yk0ePmcX9/jlVDnAApde+6wxhN4OLX0bcU+PEjt5rmJ3NVj3xokK807VPrjEwbO8pkL9 GQzfW5/BDYoHlhV8hBwA8kf0PnUJYl0aKlOoeSHDXzs/H/miJgRExZfTdMrhGGQhaKF/ 1gwK9WQV2QSLrmWbiCp0yRM+mCT5j6oUTec6wVjHaNXYJ9nDuNh/Ak7gwgtLAoEDJG1h Pe/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sba2bQKZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si391043ejo.565.2020.08.19.20.29.50; Wed, 19 Aug 2020 20:30:15 -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=@linaro.org header.s=google header.b=sba2bQKZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726923AbgHTD3A (ORCPT + 99 others); Wed, 19 Aug 2020 23:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726884AbgHTD27 (ORCPT ); Wed, 19 Aug 2020 23:28:59 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76791C061386 for ; Wed, 19 Aug 2020 20:28:57 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id h16so380413oti.7 for ; Wed, 19 Aug 2020 20:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fF+dRt58CyDJkqe2eFqFPurhOlRy+MhyKYgh/jsdn+Q=; b=sba2bQKZNNe3zs7DYGbWWnjDeDgJKgdgFl32qpVY2IcZo+5it6qr30pLargiHNS1VF 9N2ljSuI1xb3X3jUO3hdYU4FwW/zbxBKCLHKGFFsylv7KVY9AwKKe/OCHH7ah7bgWAFP 0V/R+fYE35vhDbNT1QyHmR93yxMFHFfQuxa+rksura1/kna69BSVHKM97tFjQwmJg6Xu 1e73cN9AHHnV7VLtkVZmiIYzq2UYw7luIiq9vXs3LcbNgGTzGCdWCnbhSJyxl00LgsnJ hcclkwsEGFVhEzVEODFZJQ+fBkc8rglEjeeUhLVeARy2aLUwp5EkeZXVFgo5EOUBJLA9 mH3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fF+dRt58CyDJkqe2eFqFPurhOlRy+MhyKYgh/jsdn+Q=; b=pNrHkYICAHLZASK0TneTAR9NT6Vpm/m90gtEbnJ1FZ/Xq0yFvdXBiq3PQrVxwn/Lco LQe/ZMPRSiskCmCe1pkfUlYOGiYQPZC+sjrKIOpL852m1odDSd8hNdnq/wFAHiPipB5e nbiGarDUArSxU4FINTjmfPkjCVw9H/qMgwVho7yDncpqqsye629tORwkph+kqp1zgOgx Waf5T3h2RjQRgqkBPA7C9aCD0lSkLmHP3/S6Ok3IqzIuVmxwIX5Az3X8mFMEIN5L2cTG rc2drwim842Ot+NbIs5lZxDZN0QZnU4Gjos3l4tGkWYRCpMTjcXxYDOQIpM/4B3Moo84 VNZA== X-Gm-Message-State: AOAM531O+XhhDPLEpYM/JjVwq7YCnic632IoHcyGNeNDjUr4t8SW9IrO FO2aUClcqgZpHSszuKDAk4ZN94ZOsWJsEorQ+g6CvA== X-Received: by 2002:a05:6830:237b:: with SMTP id r27mr722568oth.352.1597894136679; Wed, 19 Aug 2020 20:28:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Stultz Date: Wed, 19 Aug 2020 20:28:44 -0700 Message-ID: Subject: Re: [PATCH 00/49] DRM driver for Hikey 970 To: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman , linuxarm@huawei.com, mauro.chehab@huawei.com, Manivannan Sadhasivam , Daniel Vetter , dri-devel , Bogdan Togorean , Liwei Cai , linux-arm-kernel , Daniel Borkmann , Rob Herring , "David S. Miller" , Xinliang Liu , Neil Armstrong , Wanchun Zheng , driverdevel , BPF Mailing List , linux-media , Tomi Valkeinen , Jesper Dangaard Brouer , Laurent Pinchart , Xinwei Kong , Alexei Starovoitov , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rob Clark , Laurentiu Palcu , Andrzej Hajda , John Fastabend , Liuyao An , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Wei Xu , Rongrong Zou , Philipp Zabel , Sam Ravnborg , Network Development , Sumit Semwal , lkml , Jakub Kicinski , David Airlie , Chen Feng Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 7:01 PM John Stultz wrote: > > On Wed, Aug 19, 2020 at 2:36 PM John Stultz wrote: > > > > On Wed, Aug 19, 2020 at 4:46 AM Mauro Carvalho Chehab > > wrote: > > > So, IMO, the best is to keep it on staging for a while, until those > > > remaining bugs gets solved. > > > > > > I added this series, together with the regulator driver and > > > a few other patches (including a hack to fix a Kernel 5.8 > > > regression at WiFi ) at: > > > > > > https://gitlab.freedesktop.org/mchehab_kernel/hikey-970/-/commits/master > > > > Sorry, one more small request: Could you create a branch that only has > > the DRM driver changes in it? > > > > The reason I ask, is that since the HiKey960 isn't affected by the > > majority of the problems you listed as motivation for going through > > staging. So if we can validate that your tree works fine on HiKey960, > > the series can be cleaned up and submitted properly upstream to enable > > that SoC, and the outstanding 970 issues can be worked out afterwards > > against mainline. > > Just as a heads up, I tried testing your tree with my HiKey960, and > after fixing the compat string inconsistency, the drivers seem to load > properly. However the drm_hwcomposer seems to have some trouble with > the driver: > 01-01 00:12:41.456 345 345 E hwc-drm-display-compositor: Commit > test failed for display 0, FIXME > 01-01 00:12:41.456 345 345 E hwc-drm-two: Failed to apply the > frame composition ret=-22 > 01-01 00:12:41.456 351 351 E HWComposer: > presentAndGetReleaseFences: present failed for display 0: BadParameter > (4) > > I'll dig in a bit further as to why, but wanted to give you a heads up. Ok, I've mostly gotten it sorted out: - You're missing a few color formats. - And I re-discovered a crash that was already fixed in my tree. I'll send those patches in a few here. That said even with the patches I've got on top of your series, I still see a few issues: 1) I'm seeing red-blue swap with your driver. I need to dig a bit to see what the difference is, I know gralloc has a config option for this, and maybe the version of the driver I'm carrying has it wrong? 2) Performance is noticeably worse. Whereas with my tree, I see close to 60fps (that clk issue we mentioned earlier is why it's not exactly 60) in most tests, but with yours it mostly hovers around 30some fps, occasionally speeding up to 40 and then back down. Obviously with some work I suspect we'll be able to sort these out, but I also do feel that the set you're starting with for upstreaming is pretty old. The driver I'm carrying was heavily refactored around 5.0 to share code with the existing kirin driver, in the hopes of making usptreaming easier, and it seems a shame to throw that out and focus your efforts on the older tree. But to be fair, I've not had time to upstream the driver myself, and it's obviously your choice on how you spend your time. I am really excited to see your efforts here, regardless of which driver you end up pushing. thanks -john