[Mesa-dev] [PATCH 1/2] pl111: Rename the pl111 driver to "kmsro".

Emil Velikov emil.l.velikov at gmail.com
Thu Jan 24 15:10:16 UTC 2019


Hi all,

Fwiw I'm ok with the idea, as pointed out in 2/2 as-is this is a
partial solution.
Never the less is some solution for the problem we have.

With that said the series is:
Acked-by: Emil Velikov <emil.velikov at collabora.com>

On Wed, 23 Jan 2019 at 23:42, Alyssa Rosenzweig <alyssa at rosenzweig.io> wrote:
>
> > I've started looking at the lima and panfrost drivers. The many
> > combinations of Mali GPUs and DC isn't going to scale. The lima and
> > panfrost trees can't even co-exist as both define a rockchip winsys
> > which load different GPU drivers. The same will be true for meson,
> > hisilicon, allwinner, etc. i.MX is about to be in the same boat
> > needing to support both etnaviv and freedreno.
>
> As Rob stated, Mali being used by basically everyone at one point or
> another has led to a nightmare in the winsys. I agree that dealing with
> the loader can happen later, but honestly, just having the centralised
> kmsro winsys (that all of pl111/rockchip/meson/sunxi/etc point to) that
> tries all of vc4/v3d/panfrost/lima/etc would be a marked improvement on
> the present situation.
>
> There are a lot of DRM drivers out there, sure, and it _is_ better to
> handle something generically in the loader. But for the much more
> immediate goal of letting both Lima and Panfrost coexist on
> Rockchip/Meson, this is a good start.

AFAICT for a comprehensive solution, that handles the above usescases,
we would need:

 - a form or drm driver name to kms_ro mapping
Personally I'm leaning towards a drirc style file. Thus no patching or
rebuilding of mesa is needed and no more symlinks.

 - a form of KMSRO to GPU device mapping
Thus we can use that instead of the hardcoded vc4 in the proposed KMSRO.
Ideally they would live alongside the previous mappings, to avoid
patching/rebuilding.

An extra bonus here is that the integrator can toggle a simple file if
their hx8357d is connected to a vc4 or another device.
Or an IMX DC with freedreno/etnaviv/other GPU.

HTH
-Emil


More information about the mesa-dev mailing list