From patchwork Tue May 11 01:49:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Tina" X-Patchwork-Id: 12249471 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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham 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 EF43BC433B4 for ; Tue, 11 May 2021 01:57:07 +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 ABFEF6147E for ; Tue, 11 May 2021 01:57:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABFEF6147E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.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 8B6646E992; Tue, 11 May 2021 01:57:06 +0000 (UTC) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2F55B6E992 for ; Tue, 11 May 2021 01:57:05 +0000 (UTC) IronPort-SDR: 1cozcttm7grrrU8uxr+X+MbAR4U9Bo4+2KYx/5YRWRevwLPRIC/uTDIKbmF+qOJ2ZeSmhyopPr vE5FtdbGXSmg== X-IronPort-AV: E=McAfee;i="6200,9189,9980"; a="196239146" X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="196239146" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 18:56:59 -0700 IronPort-SDR: xuJm9/Xp2bfa6nWQ3DJeYhIoAsJInpKGfKKlSetUCH4J5SxK/jfEuoBsTvYIciW9micvt8HTOS e1Pu4l78LBng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="434067376" Received: from test.bj.intel.com ([10.238.158.204]) by fmsmga008.fm.intel.com with ESMTP; 10 May 2021 18:56:56 -0700 From: Tina Zhang To: dri-devel@lists.freedesktop.org Subject: [PATCH RFC 0/3] Add virtio-gpu modifiers support Date: Mon, 10 May 2021 21:49:37 -0400 Message-Id: <20210511014940.2067715-1-tina.zhang@intel.com> X-Mailer: git-send-email 2.25.1 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: , Cc: Gurchetan Singh , Gerd Hoffmann , Vivek Kasireddy , Tina Zhang Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patchset introduces the modifiers support to virtio-gpu. This RFC version tries to add a new virtio-gpu command to let front-end driver query the modifiers' info from the backend. Besides, the front-end driver may also need a new drm helper function to add the supported modifiers to a plane as its properties and allow fbs to use modifiers on that plane. Tina Zhang (2): drm: Add drm_plane_add_modifiers() drm/virtio: Add modifier support Vivek Kasireddy (1): drm/virtio: Include modifier as part of set_scanout_blob drivers/gpu/drm/drm_plane.c | 41 +++++++++++++++++++++++ drivers/gpu/drm/virtio/virtgpu_drv.h | 3 ++ drivers/gpu/drm/virtio/virtgpu_kms.c | 3 ++ drivers/gpu/drm/virtio/virtgpu_plane.c | 16 +++++++++ drivers/gpu/drm/virtio/virtgpu_vq.c | 45 +++++++++++++++++++++++++- include/drm/drm_plane.h | 3 ++ include/uapi/linux/virtio_gpu.h | 9 ++++++ 7 files changed, 119 insertions(+), 1 deletion(-)