From patchwork Thu Jul 11 18:46:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeykumar Sankaran X-Patchwork-Id: 11040695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 83CAB14F6 for ; Thu, 11 Jul 2019 18:46:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77E6828906 for ; Thu, 11 Jul 2019 18:46:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AF1D2892A; Thu, 11 Jul 2019 18:46:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2C34C28906 for ; Thu, 11 Jul 2019 18:46:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B74DB6E27C; Thu, 11 Jul 2019 18:46:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by gabe.freedesktop.org (Postfix) with ESMTPS id E714D6E279; Thu, 11 Jul 2019 18:46:52 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CA34860E7A; Thu, 11 Jul 2019 18:46:52 +0000 (UTC) Received: from jeykumar-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jsanka@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2CA4560E41; Thu, 11 Jul 2019 18:46:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2CA4560E41 From: Jeykumar Sankaran To: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, seanpaul@chromium.org, robdclark@gmail.com Subject: [RFC PATCH] drm: add mode flags in uapi for seamless mode switch Date: Thu, 11 Jul 2019 11:46:45 -0700 Message-Id: <1562870805-32314-2-git-send-email-jsanka@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1562870805-32314-1-git-send-email-jsanka@codeaurora.org> References: <1562870805-32314-1-git-send-email-jsanka@codeaurora.org> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1562870812; bh=xHTm+r3iev8HeqpPDWURSLUS+X6fMCYc5WJrMfReLEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H02usFybvTCz+6qvCK9z2ba/Jf4DpBwwWfFjWNW6XXe2IpIJc4CTv+JpeUcQxMAck ZM6a4/3Q0QhEZWEH86VS98/9MQ3jMU2DIr+H0EWR+83dm20pzMllDo0SF9zHYNLXty EQ6AsQOLmyZHUbtfY814QxkzTHeroxikQRK4iFmA= X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1562870812; bh=xHTm+r3iev8HeqpPDWURSLUS+X6fMCYc5WJrMfReLEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H02usFybvTCz+6qvCK9z2ba/Jf4DpBwwWfFjWNW6XXe2IpIJc4CTv+JpeUcQxMAck ZM6a4/3Q0QhEZWEH86VS98/9MQ3jMU2DIr+H0EWR+83dm20pzMllDo0SF9zHYNLXty EQ6AsQOLmyZHUbtfY814QxkzTHeroxikQRK4iFmA= X-Mailman-Original-Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org X-Mailman-Original-Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jsanka@codeaurora.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pdhaval@codeaurora.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add drm mode flag values to expose mode capabilities to perform dynamic seamless mode switch. This change also exposes the backing panel type associated with a mode for panels which can dynamically switch between video and command display modes. Signed-off-by: Jeykumar Sankaran --- include/uapi/drm/drm_mode.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index 5ab331e..b76f1bf 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h @@ -124,6 +124,11 @@ #define DRM_MODE_FLAG_PIC_AR_256_135 \ (DRM_MODE_PICTURE_ASPECT_256_135<<19) +#define DRM_MODE_FLAG_SEAMLESS_SWITCH (1<<23) + +#define DRM_MODE_FLAG_VIDEO_MODE (1<<24) +#define DRM_MODE_FLAG_COMMAND_MODE (1<<25) + #define DRM_MODE_FLAG_ALL (DRM_MODE_FLAG_PHSYNC | \ DRM_MODE_FLAG_NHSYNC | \ DRM_MODE_FLAG_PVSYNC | \