Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3522681ima; Tue, 23 Oct 2018 07:16:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV60dXrSpk7Zi8xdwybvwuOQzBBV96SUWKJWQWKb4+h33ATWboXzN1Dh/Uw3+Lk5AFP62mZcd X-Received: by 2002:a17:902:8309:: with SMTP id bd9-v6mr19816096plb.161.1540304192837; Tue, 23 Oct 2018 07:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540304192; cv=none; d=google.com; s=arc-20160816; b=ecZKl2e2L3G0YXCIwYQrYoy4HevFRiaC55H4B/HTMsX9uHmR8UjwHFT3dUjrSR4jzz 0lU/uKLfqNFgmNV7ftZRV7pc6rAaTUKFQDIuA692JPRMME4HT5GmsMUPHaYmckZNa7jm eA1wI9RhHFY2YXpuZzyDQ89RTi6md5WXcCDd3D3ctoaLwHdEmc2TQeTVLZQl2XSBjM1C aISgBMZlj6eQeYaCiU0gjmh98w03zXqlfYjsdVLlGG+OnhbT/CwtXMYkE3ro09rfxj52 grREntiGTs9kRKtMzcRbFu1xh+m7izJkXh5QjRmmOdkgTs6NdtfYgQwQbuInU7LZ/Tro ZTXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=/jWCDI3cT9kXB67Fumr6l580CNlAF6HxvlZqEXXppAU=; b=qUbNWhjYszPGA7fhg5ugz+alOcop4+23E8nN8zQkkJ0fhl7gzusQKcr9H+EK/NItvS B2TLzQyX5SeQnd+QMWzLyn0p4OgNfR/9W4deg0wbdeErpuk1YMvHTG6oVLK11fvC4hYG vEWv+GSSw9Uv0WoLK+B1m1ZsXVmsZrwSQfCzQmzdhCFey/Mlj7TCeNTbPO1oDeR9pscr czwh8YPQJmy98eWbYUcO2it3jJM0O0GdiNV0s0c6LXLOBfXLOoKqd0RaaFKGYMkxjGtw ILogiDYfDG28B/962xjqYEDQ7M6cqn7oJsR4+obKjfrrCbXfnvZB7MJ147wpWfMB1+4H xERw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=BTyjdP2b; 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 v9-v6si1362984pgb.27.2018.10.23.07.16.16; Tue, 23 Oct 2018 07:16:32 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=BTyjdP2b; 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 S1728257AbeJWWjG (ORCPT + 99 others); Tue, 23 Oct 2018 18:39:06 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:37084 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbeJWWjG (ORCPT ); Tue, 23 Oct 2018 18:39:06 -0400 Received: from avalon.localnet (unknown [IPv6:2a02:c7d:2fcf:3a00:2a36:be27:bdf2:394a]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5302D113E; Tue, 23 Oct 2018 16:15:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1540304125; bh=dRHFkmtbZvQfLvopc0gs2hYWY7+aJ1CJ/9VWstvNZIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BTyjdP2b8M2BKSXIfDHu8amscYqdVceFH308aDTQsa4LMvog+Xg3x5z7JZzPme8ok 1xGdcjHTQJAmqnv9LkwECxc6KCJX7EV9Ookn/iqlMQYG+k4TmVBCaJxJOMILFsjoRr 8TrS6MyNgmXDzR08K5qL/B9m1oS9KmBeQL0gB0sQ= From: Laurent Pinchart To: Daniel Vetter Cc: Souptick Joarder , noralf@tronnes.org, Gustavo Padovan , Maarten Lankhorst , sean@poorly.run, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH] drm/rcar-du: Convert drm_atomic_helper_suspend/resume() Date: Tue, 23 Oct 2018 17:15:27 +0300 Message-ID: <2275810.TWHE3rLQ5u@avalon> Organization: Ideas on Board Oy In-Reply-To: <20181023134041.GO324@phenom.ffwll.local> References: <20180918163903.GA11172@jordon-HP-15-Notebook-PC> <20181023134041.GO324@phenom.ffwll.local> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On Tuesday, 23 October 2018 16:40:41 EEST Daniel Vetter wrote: > On Mon, Oct 22, 2018 at 01:51:35PM +0530, Souptick Joarder wrote: > > On Thu, Oct 11, 2018 at 1:48 PM Daniel Vetter wrote: > >> On Mon, Oct 08, 2018 at 09:57:52PM +0530, Souptick Joarder wrote: > >>> On Mon, Oct 1, 2018 at 6:12 PM Noralf Tr=F8nnes wrote: > >>>> Den 01.10.2018 13.56, skrev Laurent Pinchart: > >>>>> On Monday, 1 October 2018 09:52:20 EEST Daniel Vetter wrote: > >>>>>> On Fri, Sep 28, 2018 at 06:30:35PM +0300, Laurent Pinchart wrote: > >>>>>>> On Friday, 28 September 2018 18:05:18 EEST Laurent Pinchart wrote: > >>>>>>>> On Thursday, 27 September 2018 09:34:18 EEST Souptick Joarder=20 wrote: > >>>>>>>>> On Tue, Sep 18, 2018 at 10:05 PM Souptick Joarder wrote: > >>>>>>>>>> convert drm_atomic_helper_suspend/resume() to use > >>>>>>>>>> drm_mode_config_helper_suspend/resume(). > >>>>>>>>>>=20 > >>>>>>>>>> remove suspend_state field from the rcar_du_device > >>>>>>>>>> structure as it is no more required. > >>>>>>>>>>=20 > >>>>>>>>>> With this conversion, also > >>>>>>>>>> drm_fbdev_cma_set_suspend_unlocked() > >>>>>>>>>> will left with no consumer. So this function can be removed. > >>>>>>>>>>=20 > >>>>>>>>>> Signed-off-by: Souptick Joarder > >>>>>>>>>=20 > >>>>>>>>> Laurent, any comment on this patch ?? > >>>>>>>>=20 > >>>>>>>> Sorry for the delay, and thanks for pinging me. > >>>>>>>>=20 > >>>>>>>> Reviewed-by: Laurent Pinchart > >>>>>>>> > >>>>>>>>=20 > >>>>>>>> Should I apply this to my tree or do you plan to merge it > >>>>>>>> through drm-misc as it touches drm_fb_cma_helper.c ? > >>>>>>>=20 > >>>>>>> I just realized that the same patch got supplied by Noralf > >>>>>>> Tr=F8nnes nearly a year ago, and was later superseded by > >>>>>>> https://patchwork.freedesktop.org/patch/247861/. I think we > >>>>>>> should thus apply Noralf's patches instead (once he sends v4 > >>>>>>> out). > >>>>>>=20 > >>>>>> I don't think Noralf is still actively working on this, he's busy > >>>>>> with the fbdev emulation stuff. Probably better if you pick up > >>>>>> one of the existing ones, than waiting another year or so :-) > >>>>>=20 > >>>>> Isn't https://patchwork.freedesktop.org/patch/247861/ part of the > >>>>> fbdev emulation stuff ? That patch series is from less than a > >>>>> month ago, so I thought it was actively developed. > >>>>>=20 > >>>>> Let's ask him. Noralf, any comment ? :-) > >>>>=20 > >>>> I see now that I've caused some confusion here. > >>>>=20 > >>>> I did some refactoring of the fbdev stuff in the CMA helper last > >>>> year. In the last series of that work there is this patch: > >>>>=20 > >>>> [v3,07/11] drm/rcar-du: Use drm_mode_config_helper_suspend/resume() > >>>> https://patchwork.freedesktop.org/patch/192414/ > >>>>=20 > >>>> During Christmas I got the idea that maybe it was possible to use a > >>>> dumb buffer to do generic fbdev emulation. That work took me 6 > >>>> months before a solution using a general internal DRM client was > >>>> hammered out. By the time I started to convert drivers I had > >>>> forgotten about that patch. > >>>>=20 > >>>> When I wrote the patch (#247861) to convert rcar to the generic > >>>> fbdev, I just bundled up the suspend/resume change with the fbdev > >>>> conversion. Laurent and Sam commented on that bundling, so I said > >>>> that I would split it up in the next version. > >>>>=20 > >>>> All that being said, I think that this patch should be applied and > >>>> I'll just rebase the rcar fbdev conversion patch on top of that. > >>>> It's the easiest for me at least :-) > >>>=20 > >>> Any conclusion on this patch ? :-) > >>=20 > >> Laurent should pick it up and apply to his rcar-du tree I think. We can > >> also stuff it into drm-misc as a fallback. > >=20 > > Can we get this patch in queue for 4.20 ? >=20 > 5.1, 4.20 is already done. >=20 > But yes, I pulled this into drm-misc-next. Thanks for your patch. I would have preferred applying this through my tree. I'm currently at ELCE= =20 and had to prepare for the conference, hence the delay. > >>>>>>>>>> drivers/gpu/drm/drm_fb_cma_helper.c | 18 ------------------ > >>>>>>>>>> drivers/gpu/drm/rcar-du/rcar_du_drv.c | 21 ++---------------= =2D- > >>>>>>>>>> drivers/gpu/drm/rcar-du/rcar_du_drv.h | 1 - > >>>>>>>>>> include/drm/drm_fb_cma_helper.h | 2 -- > >>>>>>>>>> 4 files changed, 2 insertions(+), 40 deletions(-) =2D-=20 Regards, Laurent Pinchart