Re: [PATCH] drm: support gpu aliases defined in DT data

2019-04-26 Thread Tomi Valkeinen
On 17/04/2019 20:42, Emil Velikov wrote: > Have you looked at the libdrm drmDevice2 (yes use the second version) API? > It provides various information about the different devices, yet if > it's missing anything do send us a patch ;-) No, I didn't notice that. At least with a quick look, looks go

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-04-17 Thread Emil Velikov
Hi Tomi, On Fri, 18 Jan 2019 at 08:29, Tomi Valkeinen wrote: > > On 18/01/19 00:04, Rob Herring wrote: > > > Mesa/libdrm already has lots of code to open the correct devices and > > not care about minor numbers. What's the problem here? > > Well, maybe the problem is that I don't know how to do t

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-03-05 Thread Tomi Valkeinen
On 06/03/2019 03:41, Laurent Pinchart wrote: > Hi Tomi, > > On Fri, Jan 18, 2019 at 10:29:33AM +0200, Tomi Valkeinen wrote: >> On 18/01/19 00:04, Rob Herring wrote: >> >>> Mesa/libdrm already has lots of code to open the correct devices and >>> not care about minor numbers. What's the problem here

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-03-05 Thread Laurent Pinchart
Hi Tomi, On Fri, Jan 18, 2019 at 10:29:33AM +0200, Tomi Valkeinen wrote: > On 18/01/19 00:04, Rob Herring wrote: > > > Mesa/libdrm already has lots of code to open the correct devices and > > not care about minor numbers. What's the problem here? > > Well, maybe the problem is that I don't know

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-01-18 Thread Tomi Valkeinen
On 18/01/19 00:04, Rob Herring wrote: > Mesa/libdrm already has lots of code to open the correct devices and > not care about minor numbers. What's the problem here? Well, maybe the problem is that I don't know how to do this =). So, if we have multiple DRM devices, how does one manage those? It

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-01-17 Thread Rob Herring
On Thu, Jan 17, 2019 at 7:26 AM Daniel Vetter wrote: > > On Thu, Jan 17, 2019 at 2:04 PM Tomi Valkeinen wrote: > > > > On 17/01/19 14:33, Daniel Vetter wrote: > > > On Thu, Jan 17, 2019 at 01:19:18PM +0200, Tomi Valkeinen wrote: > > >> The DRM device minor numbers are allocated according to the r

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-01-17 Thread Eric Anholt
Tomi Valkeinen writes: > The DRM device minor numbers are allocated according to the registration > order. This causes confusion in cases where the registration order can > change, or when, say, a modesetting capable device is preferred to be > card0, and a rendering device is preferred to be car

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-01-17 Thread Maxime Ripard
On Thu, Jan 17, 2019 at 01:19:18PM +0200, Tomi Valkeinen wrote: > The DRM device minor numbers are allocated according to the registration > order. This causes confusion in cases where the registration order can > change, or when, say, a modesetting capable device is preferred to be > card0, and a

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-01-17 Thread Tomi Valkeinen
On 17/01/19 15:26, Daniel Vetter wrote: > On Thu, Jan 17, 2019 at 2:04 PM Tomi Valkeinen wrote: >> >> On 17/01/19 14:33, Daniel Vetter wrote: >>> On Thu, Jan 17, 2019 at 01:19:18PM +0200, Tomi Valkeinen wrote: The DRM device minor numbers are allocated according to the registration order

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-01-17 Thread Daniel Vetter
On Thu, Jan 17, 2019 at 2:04 PM Tomi Valkeinen wrote: > > On 17/01/19 14:33, Daniel Vetter wrote: > > On Thu, Jan 17, 2019 at 01:19:18PM +0200, Tomi Valkeinen wrote: > >> The DRM device minor numbers are allocated according to the registration > >> order. This causes confusion in cases where the r

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-01-17 Thread Tomi Valkeinen
On 17/01/19 14:33, Daniel Vetter wrote: > On Thu, Jan 17, 2019 at 01:19:18PM +0200, Tomi Valkeinen wrote: >> The DRM device minor numbers are allocated according to the registration >> order. This causes confusion in cases where the registration order can >> change, or when, say, a modesetting capa

Re: [PATCH] drm: support gpu aliases defined in DT data

2019-01-17 Thread Daniel Vetter
On Thu, Jan 17, 2019 at 01:19:18PM +0200, Tomi Valkeinen wrote: > The DRM device minor numbers are allocated according to the registration > order. This causes confusion in cases where the registration order can > change, or when, say, a modesetting capable device is preferred to be > card0, and a