DRM/KMS experimental drivers for HiKey 970

Mauro Carvalho Chehab mchehab+huawei at kernel.org
Wed Aug 5 10:13:43 UTC 2020


Em Wed, 5 Aug 2020 11:34:54 +0200
Daniel Vetter <daniel at ffwll.ch> escreveu:

> On Wed, Aug 5, 2020 at 10:51 AM Mauro Carvalho Chehab
> <mchehab+huawei at kernel.org> wrote:
> >
> > Hi,
> >
> > 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.
> >
> > In particular, its support for DPMS is broken: if the monitor is
> > suspended, it won't return back to the right frequency settings.  
> 
> Hm this is somewhat surprising, at least with atomic, since DPMS as a
> separate thing doesn't exist anymore - it's the same path as any other
> modeset. With the suspend/resume helpers even the same as after
> resume. But of course in reality there's always potential for some
> differences between boot-up state and what your atomic_disable leaves
> behind to creep in.

Yeah, I didn't notice anything that would explain a problem there,
but I didn't have much time so far to try to identify what is
the real issue there.

Btw, this problem is also present on the official Hikey Linaro's tree. 
There, it had an ugly hack at the modeset logic on adv7535 downstream
driver.

Ah, I forgot to mention, but this driver has a problem when talking
with EDID. So, I'm passing this parameter via grub:

	drm_kms_helper.edid_firmware=edid/1920x1080.bin

With the EDID info from the monitor I'm using at the tests.

Perhaps the DPMS is somehow related to it.

In any case, the modeset part of this driver needs to be revisited,
before merging it drivers/drm.

Btw, both issues are also present at the official Hikey driver,
which makes a little harder to fix, as I was unable to get any
documentation about this chipset so far - except for the public
ones at 96boards.org.

> 
> Just figured I drop this in quickly, always great to have more hw
> drivers showing up!

Yeah, it has been great for me to work on this DRM driver.

Btw, although I didn't test, this driver is meant to support
also Hikey 960.

I intend to test it there when I have some spare time.

Thanks,
Mauro


More information about the dri-devel mailing list