On Wed, Aug 5, 2020 at 1:51 AM Mauro Carvalho Chehab <mchehab+hua...@kernel.org> wrote: > I've been working to get upstream support for the DRM driver on HiKey 970. > > While the patches are not ready yet for upstream merge, I'm placing > what I've sone so far on this repository: > > https://github.com/mchehab/linux/tree/hikey970/to_upstream-2.0-v1.1 > > The drivers there are a port from the Linaro's HiKey official Kernel: > > https://github.com/96boards-hikey/linux > > The patches there preserve the old history. The porting patches > are applied after the original patches imported from that tree. > > Besides the DRM driver, this repository contains: > > - a PMIC/regulator driver; > - an iommu driver (still requiring some changes at DT properties); > - A DMA driver; > - a small ugly hack reverting some PM changes at the WiFi driver, > causing a regression on this board for HiKey 970. > > My current plans are to start upstreaming those needed drivers. > > The KMS/DRM driver there still need some changes. I guess it is > not ready for being upstreamed yet. Also, it depends on the > other drivers to work.
Hey Mauro, I'm really excited to see this effort being picked up! Thanks for taking this on! The patch set you have looks like it maybe started with a 4.9 tree (I'm guessing the hikey960 4.9 tree which maybe was adapted as a starting point for the hikey970?). Its nice to have the full history but given the long lifetime, it may complicate reviewing a bit. A while back, after 4.9, some folks at HiSilicon reworked the display driver so that it could re-use and share logic with the already upstream kirin drm driver, in the hopes of upstreaming it. This helped avoid the smmu dependency, and some of the odd bits about how it was tied to the ion heap driver (looks like you've already pulled that out in your tree). Unfortunately the upstreaming effort fell apart, but I've been forward porting along the results of that work along. But I haven't had the cycles to clean the code up (it has *lots* of checkpatch issues for a start) to submit it. You can find my current mainline tracking tree here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?h=dev/hikey960-mainline-WIP And the drm display bits are here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?h=dev/hikey960-mainline-WIP&id=f5e888b02b683a9a6636174c6d2b74f697e87513 If you want to pick up these patches, refactor and submit them, I'd of course have *zero* complaints :) But even if you don't, hopefully this tree might be helpful for comparison sake as you shake out issues with the current tree. Do keep me in the loop, as I'd love to test and validate whatever patches you do end up planning to submit. thanks -john _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel