Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752554AbdLDRxB (ORCPT ); Mon, 4 Dec 2017 12:53:01 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:39964 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbdLDRw7 (ORCPT ); Mon, 4 Dec 2017 12:52:59 -0500 X-Google-Smtp-Source: AGs4zMZFrHvIxEfMJgl1N0ND72j5ivnf6+JoIR3utzO/kqizT2PwHupNwhdSFi5VhwMRvqzlybneCH0I0Bi52PsxMAU= MIME-Version: 1.0 In-Reply-To: References: <1512387175.4977.24.camel@synopsys.com> <86238def-82be-2ad1-63d0-b9a8dbf83db6@synopsys.com> <1512393408.4977.44.camel@synopsys.com> From: Emil Velikov Date: Mon, 4 Dec 2017 17:52:58 +0000 Message-ID: Subject: Re: xf86-video-armada via UDL [was: Re: UDL's fbdev doesn't work for user-space apps] To: Jose Abreu Cc: Alexey Brodkin , "l.stach@pengutronix.de" , "daniel.vetter@ffwll.ch" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "airlied@redhat.com" , "linux-snps-arc@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 554 Lines: 13 On 4 December 2017 at 14:02, Jose Abreu wrote: > On 04-12-2017 13:16, Alexey Brodkin wrote: >> Option "kmsdev" "/dev/dri/card1" > > Which drm driver uses /dev/dri/card0? I'm seing drmOpen code and > if you don't specify the busID it will fallback for the first > card that matches "armada-drm" or "imx-drm" or "udl". > As you've noticed, drmOpen can give you some 'nice' side-effects. I'd recommend getting a list of devices with drmGetDevice{,s}2 and applying $heuristics to filter the device you want. -Emil