From patchwork Thu Dec 6 14:24:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 10716093 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 C66941759 for ; Thu, 6 Dec 2018 14:24:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 979A02DA26 for ; Thu, 6 Dec 2018 14:24:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 891912E731; Thu, 6 Dec 2018 14:24:58 +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 506772DA26 for ; Thu, 6 Dec 2018 14:24:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 31F096E5EC; Thu, 6 Dec 2018 14:24:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by gabe.freedesktop.org (Postfix) with ESMTP id E3EB46E5EA for ; Thu, 6 Dec 2018 14:24:53 +0000 (UTC) Received: by mail.bootlin.com (Postfix, from userid 110) id AFBC820C4D; Thu, 6 Dec 2018 15:24:52 +0100 (CET) Received: from localhost.localdomain (aaubervilliers-681-1-79-44.w90-88.abo.wanadoo.fr [90.88.21.44]) by mail.bootlin.com (Postfix) with ESMTPSA id 7791A2037D; Thu, 6 Dec 2018 15:24:42 +0100 (CET) From: Boris Brezillon To: Eric Anholt Subject: [PATCH v4 0/5] vc4/hdmi: Support TV margin props Date: Thu, 6 Dec 2018 15:24:34 +0100 Message-Id: <20181206142439.10441-1-boris.brezillon@bootlin.com> X-Mailer: git-send-email 2.17.1 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: dri-devel@lists.freedesktop.org, Boris Brezillon MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hello, As suggested by Ville, this version uses the already available TV margin props to define left/right/top/bottom margins insted of adding new underscan props. This works pretty well for what we want to do in VC4: allow one to define the visible area on a TV. The first 2 patches are fixing the existing doc, patch 3 is allowing one to create and attach TV margins independently of the TV connector props. Finally, patch 4 and 5 add support for those props to the VC4 driver. Regards, Boris Boris Brezillon (5): drm/connector: Fix drm_mode_create_tv_properties() doc drm/connector: Clarify the unit of TV margins drm/connector: Allow creation of margin props alone drm/vc4: Take margin setup into account when updating planes drm/vc4: Attach margin props to the HDMI connector drivers/gpu/drm/drm_connector.c | 83 +++++++++++++++++++++++++-------- drivers/gpu/drm/vc4/vc4_crtc.c | 43 +++++++++++++++++ drivers/gpu/drm/vc4/vc4_drv.h | 3 ++ drivers/gpu/drm/vc4/vc4_hdmi.c | 16 +++++++ drivers/gpu/drm/vc4/vc4_plane.c | 50 ++++++++++++++++++++ include/drm/drm_connector.h | 4 +- include/drm/drm_mode_config.h | 8 ++-- 7 files changed, 183 insertions(+), 24 deletions(-) Reviewed-by: Eric Anholt