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.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,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 C924AC433DB for ; Thu, 4 Mar 2021 08:41: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 82C7264EF4 for ; Thu, 4 Mar 2021 08:41:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 82C7264EF4 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=matrixcomsec.com 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 07F0D6EA07; Thu, 4 Mar 2021 08:41:53 +0000 (UTC) Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by gabe.freedesktop.org (Postfix) with ESMTPS id 439166E47B for ; Thu, 4 Mar 2021 04:14:20 +0000 (UTC) Received: by mail-yb1-xb30.google.com with SMTP id c131so27035874ybf.7 for ; Wed, 03 Mar 2021 20:14:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=matrixcomsec.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=D/nnFXScPC5zGFLLIQblBA+/a0krXF60vxkADct1ql4=; b=bmQvbxg4762RlD2gySX5hldC/Q5ZXzxAbgdFYmyQw43PZW8rgy+B0nw5G+2h3e+uKI N00PEImwF4yv+rk/vsEJkMHl7IyWau9FPair1yjzQDx6ppXc3GQ0GRBeZ5xSLZwhbdWe Ba/8Yeljy6YEiU/cgffsRvKdQ9PVkDrHVjiQM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=D/nnFXScPC5zGFLLIQblBA+/a0krXF60vxkADct1ql4=; b=FLVLYiCn7o7VTJHHnLRA5bIW5gUM0PWn7KLCM9DSzj7oCsky0wrSwM7ghV/P/cIpXj XcWJOVXPMgYmOn3vkMi2chKiapC+tsC3ijkI6OoejdWDWAa3749Hpcv8INQ1Xj+9aNgn +Mr3brL+tGyLJmX7Bm2MRZdepiQQu2hFeC+I1qoNJeEV400U87g8cfchIiuFC7epuxHE 5UcFGlF+WGlTGffuBHgtvYs4rp0JxhuTol3C7I2yDcjDt9rTzZQZaM60rbtH1dTHNR12 8aoslme3zYGUWLWGXXjkOAPpKZUzfD4jG2qoKlNz4YG2LQ4Lw5HmlE8q2ih2GlGyNFnk QW8g== X-Gm-Message-State: AOAM533SWlsUBMqXGu5q5D9/pW1L5coMd/FXGoG7ZAsmomW2ZWyUc01E l0n8Gq0AfUh45ayL8/BsJozYN7YlZ7CAvOK0xAdEPG7Nxi54Q8If X-Google-Smtp-Source: ABdhPJzzeEvXaH3pR4BcT4f+3vD8xiudimM9OeBrauIaS8/FnkiSFUhczOUhj1E64xSQpMtolbNECbCyDqAXBJuTCOE= X-Received: by 2002:a25:76c3:: with SMTP id r186mr3759496ybc.269.1614831258748; Wed, 03 Mar 2021 20:14:18 -0800 (PST) MIME-Version: 1.0 From: Hardik Panchal Date: Thu, 4 Mar 2021 09:43:22 +0530 Message-ID: Subject: Query regarding DRM mastership sharing between multiple process To: dri-devel@lists.freedesktop.org X-Mailman-Approved-At: Thu, 04 Mar 2021 08:41:51 +0000 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: , Content-Type: multipart/mixed; boundary="===============0821099228==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============0821099228== Content-Type: multipart/alternative; boundary="0000000000008ce9a405bcae3366" --0000000000008ce9a405bcae3366 Content-Type: text/plain; charset="UTF-8" Hello Sir/Madam, I am trying to render some stuff using DRM with Qt GUI application and decoded stream from Intel H/w decoder. I have two applications one is for GUI content and another one is for decoded video streams. While doing this I am facing an issue that only singal process acquires DRM mastership while the other one is getting error. While wondering how to get the privilege to render stuff I came across GET_MAGIC and AUTH_MAGIC. Please refer to this text from the MAN page of DRM. All DRM devices provide authentication mechanisms. Only a DRM-Master is > allowed to perform mode-setting or modify core state and only one user can > be DRM-Master at a time. See drmSetMaster > (3) for > information on how to become DRM-Master and what the limitations are. Other > DRM users can be authenticated to the DRM-Master via drmAuthMagic > (3) so > they can perform buffer allocations and rendering. > As per this the client which is authenticated using magic code should be able to allocate buffer and rendering. But while doing this I am not able to use drmModeSetPlane() for rendering stuff on display from an authenticated client application. It is giving me Permission Denied. As per my understanding if the client is authenticated by using GET/AUTH_MAGIC it should be able to set a plane and render stuff on the display. Is my understanding correct? Can we use this method to simultaneously render from two applications? Thank you in advance. Having Addiction of Self-Dependence *Hardik Panchal* SDT - Satatya Devices Contact No. : 9924472937 Email : hardik23398@gmail.com --0000000000008ce9a405bcae3366 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello=C2=A0Sir/Madam,

I am trying to re= nder some stuff using DRM with Qt GUI application and decoded stream from I= ntel H/w decoder.

I have two applications one is f= or GUI content and another one is for decoded video streams. While doing th= is I am facing an issue that only singal process acquires DRM mastership wh= ile the other one is getting error.=C2=A0

While wo= ndering how to get the privilege=C2=A0to render stuff I came across=C2=A0GE= T_MAGIC and AUTH_MAGIC.
Please refer to this text from the MAN pa= ge of DRM.

All DRM devices provide aut= hentication mechanisms. Only a DRM-Master is allowed to perform mode-settin= g or modify core state and only one user can be DRM-Master at a time. See= =C2=A0drmSet= Master(3) for informat= ion on how to become DRM-Master and what the limitations are. Other DRM use= rs can be authenticated to the DRM-Master via=C2=A0drmAuthMagic(3) so they can perform buffer allocations a= nd rendering.=C2=A0=C2=A0

As per this the client which is authenticated using m= agic code should be able to allocate buffer and rendering.
But wh= ile doing this I am not able to use drmModeSetPlane() for rendering stuff o= n display from an authenticated client application. It is giving me Permiss= ion Denied.

As per my understanding if the client = is authenticated by using GET/AUTH_MAGIC it should be able to set a plane a= nd render stuff on the display.

Is my understandin= g correct? Can we use this method to simultaneously render from two applica= tions?=C2=A0

Thank you in advance.
Having Addiction of Self-Dependence
<= /div>
Hardik Panchal
SDT - Satatya Devices
Contact No. : 99244= 72937
--0000000000008ce9a405bcae3366-- --===============0821099228== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0821099228==--