Received: by 10.192.165.148 with SMTP id m20csp566106imm; Fri, 4 May 2018 02:40:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZow5bllGrIU27nCBAbmMWkrPl0hg7uRuglD9x8QoWgtRD9kusbFNPbxs0XJ/eOkca+sB+xV X-Received: by 2002:a65:5c4d:: with SMTP id v13-v6mr21722529pgr.428.1525426808566; Fri, 04 May 2018 02:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525426808; cv=none; d=google.com; s=arc-20160816; b=FbJ0xrZ5Lqgf/CC/I3GZ0mpQFndc74WorZowlGsrWKE4We1Ir8U3/7gs7yoRT2BDEX MrZuvWzb1q3SQUpmLUFePhUrBdo5Rkk14uV+c8Y8TQZD0AyswgjcvZK2w4v+q80K5uP4 Dqzq1gnpRYnLzF8cWXr9RW7KdOhKQusVPhWuj/P70Gyg5TLR7MvMFY8qHs+S7FGliuTs NvCsWumhGZB8Gt0umUX0Z3/aA3FOoxfNE2szCKB0DNQ4ITlzVNG8GNCX9OhHbfpByuyV qqBnDDQOEnIMHstsxUt/hVxgCP6czZ+yNRqFh5/zSRlE1fD6iy8H+wEMzOVfsMSYI+7C h0eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=XCDsG2ojhdv0YdHZqzJ57RS3ckDIxrefsOhQ9OSInpI=; b=BNR7RcG0T7e4YoNAP6aT48Y8siLrl2GdmWIIMu9BLSrXMcA0f6q2mG4qkTXhMbFO+p hAwbkZM0tatJSNn738N1ALawQR2jv/MPPxXZqVdX8Qt7PX4e7j35JqU3d9fkrjO+TGkm 2ObA/EuDNWeNJmMhJwD6wyT9SL9hE9Ca+CMTtGpNsJQkEBWD5gBfcuzQjn04WeS8ZzC8 i/+3Wl24raJFe0QTA4b+3EzD/Om/0RVmi5LcGgTXcM3smBe5xFzQO5NEHD3vIUjDxW0A 4Ao8iHajfQvFKOdOShEzyjdpmjlooRne0F+qXJYobFuuY7QbI8V++gOetQY/YT11+zmj bPrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f14-v6si13082191pgu.612.2018.05.04.02.39.52; Fri, 04 May 2018 02:40:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbeEDJi5 (ORCPT + 99 others); Fri, 4 May 2018 05:38:57 -0400 Received: from foss.arm.com ([217.140.101.70]:51576 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbeEDJi4 (ORCPT ); Fri, 4 May 2018 05:38:56 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 23D3980D; Fri, 4 May 2018 02:38:56 -0700 (PDT) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BB1703F25D; Fri, 4 May 2018 02:38:55 -0700 (PDT) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id 25C856803CD; Fri, 4 May 2018 10:38:54 +0100 (BST) Date: Fri, 4 May 2018 10:38:54 +0100 From: Liviu Dudau To: Satendra Singh Thakur Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] drm/kms/mode: added a new helper for calculating videomode from crtc's display mode Message-ID: <20180504093854.GJ1027@e110455-lin.cambridge.arm.com> References: <1525419600-1774-1-git-send-email-satendra.t@samsung.com> <1525424523-3367-1-git-send-email-satendra.t@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1525424523-3367-1-git-send-email-satendra.t@samsung.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 04, 2018 at 02:32:03PM +0530, Satendra Singh Thakur wrote: > On Thu, May 03, 2018 at 11:36:39 +0100, Liviu Dudau wrote: > > On Thu, May 03, 2018 at 11:28:37AM +0530, Satendra Singh Thakur wrote: > > > 1. > > > -Added a new helper drm_display_mode_crtc_to_videomode > > > -This helper calculates mode parameters like > > > horizontal front_porch, back_porch, sync length > > > vertical front_porch, back_porch, sync length > > > using crtc_* fields of struct drm_display_mode > > > -It uses following fields of crtc mode > > > horizontal sync start/end, active and total length > > > vertical sync start/end, active and total length > > > 2. > > > -Most of the driver use user-supplied mode for calculating videomode > > > -However, few drivers use HW (crtc) mode for calculating videomode > > > -This helper will be useful for such drivers > > > 3. > > > -Currently following drivers will be using this new helper > > > -arm hdlcd > > > -atmel hlcdc > > > -exynos 5433 decon > > > -exynos7 decon > > > -exynos fimd > > > 4. > > > -This patch removes related duplicate code from above mentioned drivers > > > > > > Signed-off-by: Satendra Singh Thakur > > > Cc: Madhur Verma > > > Cc: Hemanshu Srivastava > > > --- > > > drivers/gpu/drm/arm/hdlcd_crtc.c | 8 +------- > > > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 7 +------ > > > drivers/gpu/drm/drm_modes.c | 20 ++++++++++++++++++++ > > > drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 22 ++++++++++------------ > > > drivers/gpu/drm/exynos/exynos7_drm_decon.c | 23 ++++++++++------------- > > > drivers/gpu/drm/exynos/exynos_drm_fimd.c | 22 +++++++++------------- > > > include/drm/drm_modes.h | 2 ++ > > > 7 files changed, 53 insertions(+), 51 deletions(-) > > > > > > diff --git a/drivers/gpu/drm/arm/hdlcd_crtc.c b/drivers/gpu/drm/arm/hdlcd_crtc.c > > > index cf5cbd6..d20e471 100644 > > > --- a/drivers/gpu/drm/arm/hdlcd_crtc.c > > > +++ b/drivers/gpu/drm/arm/hdlcd_crtc.c > > > @@ -130,13 +130,7 @@ static void hdlcd_crtc_mode_set_nofb(struct drm_crtc *crtc) > > > struct videomode vm; > > > unsigned int polarities, err; > > > > > > - vm.vfront_porch = m->crtc_vsync_start - m->crtc_vdisplay; > > > - vm.vback_porch = m->crtc_vtotal - m->crtc_vsync_end; > > > - vm.vsync_len = m->crtc_vsync_end - m->crtc_vsync_start; > > > - vm.hfront_porch = m->crtc_hsync_start - m->crtc_hdisplay; > > > - vm.hback_porch = m->crtc_htotal - m->crtc_hsync_end; > > > - vm.hsync_len = m->crtc_hsync_end - m->crtc_hsync_start; > > > - > > > + drm_display_mode_crtc_to_videomode(m, &vm); > > > polarities = HDLCD_POLARITY_DATAEN | HDLCD_POLARITY_DATA; > > > > > > if (m->flags & DRM_MODE_FLAG_PHSYNC) > > > > For the HDLCD part: > > > > Acked-by: Liviu Dudau > > > > If you're not sending the final version through drm-misc then let me > > know and I can pick up the HDLCD part separately. > > > > Best regards, > > Liviu > > > > > > Hi Mr Liviu, > Thanks for accepting the patch. > I don't know how to send patch through drm-misc. > You may please go ahead and pick HDLCD part separately. Lets wait for the maintainers of other drivers to give their ACKs and then we'll sort out the submission. Usually it is just a matter of asking for the patch to be pulled from the relevant people. For drm-misc there are quite a few people and with enough patches accepted others can join too. I'll just put here some names, in no particular order, that you can ask for the patch to be pulled. Gustavo Padovan Daniel Stone Eric Anholt Jani Nikula Maarten Lankhorst Sean Paul Daniel Vetter Best regards, Liviu > > Thanks > -Satendra -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯