From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 652B8C433DF for ; Sat, 23 May 2020 21:36:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F31DC207D4 for ; Sat, 23 May 2020 21:36:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=emersion.fr header.i=@emersion.fr header.b="lqzqn2kQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F31DC207D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 766356E222; Sat, 23 May 2020 21:36:52 +0000 (UTC) Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by gabe.freedesktop.org (Postfix) with ESMTPS id A076B6E222 for ; Sat, 23 May 2020 21:36:50 +0000 (UTC) Date: Sat, 23 May 2020 21:36:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1590269807; bh=PHfKuuHWPcmUbb2PmD0LDOWBT12D4OHwe+gCYSUhMas=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=lqzqn2kQUZ4MELG/rA+0R38wWEq8WfACOx3mn2R/MHkiSm2xtfOaJpbiWjj+81lgN 8AMVGPHsXJPogTQyru9AbqHnnLYJw6PIqS7FnsbaxKqsrFTVagG9vzkQWsK8bElKQF CXFh8e2dB4HShor5P8m+IlOYIaTaZlj8DM8dpxVE= To: Mauro Rossi From: Simon Ser Subject: Re: [PATCH] xf86drm: add drmOpenByFB Message-ID: In-Reply-To: <20200523154426.1088988-1-issor.oruam@gmail.com> References: <20200523154426.1088988-1-issor.oruam@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Simon Ser Cc: "robert.foss@collabora.com" , "cwhuang@linux.org.tw" , "emil.l.velikov@gmail.com" , "dri-devel@lists.freedesktop.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Saturday, May 23, 2020 5:44 PM, Mauro Rossi wrote: > OpenByFB is introduced to overcome GPU driver loading order issue > on a device with multiple GPUs, e.g. Intel iGPU and Nvidia dGPU > where the first drmfb kernel module loaded will become device file > /dev/dri/card0 and the second will become /dev/dri/card1 > > The use case is to prefer Intel iGPU over dGPU, or viceversa, > in a deterministic and reliable manner. > > OpenByFB function opens the DRM device with specified fb and node type, > thus enabling gralloc to open the correct device node of the primary fb, > regardless of the GPU driver loading order. "FB" is ambiguous here, because the other FB functions in this file refer to DRM frame-buffer objects (as opposed to fbdev I believe?). _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel