Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1189720imu; Thu, 20 Dec 2018 11:43:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/UnEvVNsTc2xNkxhqlTqkc8dNU8tgj1lm0d54KnByHbqKmMGYh1dhisAlnwwVmwMyuAkYzX X-Received: by 2002:a62:3a04:: with SMTP id h4mr25299715pfa.119.1545335021418; Thu, 20 Dec 2018 11:43:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545335021; cv=none; d=google.com; s=arc-20160816; b=Oov7tmw600ywmNZ81j2vI1bxhyDGO27t//rq6+I3x8g4TQPA0v4D9h2AwBzAfGSJOP MqiEq7SZORXZIMY9qBgaAp0JpuRl9pS4slWM26jifD78e88+eF4iRbmP/t5bca//exJL RtUXrRkuoqR3dfmfohc8jvuLA2N2i7BXzAUDOHrPj8FIQVSV3w2yj7cBrQeCw71N4LDA MBQf5od3seHedX8IdvhCT7RjzEtYwjANH8AEpLELgyshXUdwXvBp6PvXjJLsMX2P6pfz ud1773bf4nyTFtjujs9KJDVzh7BoLRngPeQOL2dVpa4CFvFaIJDScqqBS9a8KAbSI5jH ZrwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=+Cie+hX9uyE579W7SVj+x5h9uxygHhXQglD7p+kfotc=; b=UVmQmrIWiyMrdz5ub3GE/MmSMSHGjeURWuQKp6YlGiV+/YxwurSwKiNXpjh9ceyZ9e FAsQqf/3RXOp9aKxmBI66z8IF7ZbHyPq3W7u3gR2m3jH5Al6+uHNnfpLsQiPKgEAicZO xpPgLTI5dcrbxiC91NW6wfn0/9ii1QP7FsB+R5c2hIZ6BNPKC6B3qN6m1vs5cTS5eQfA /5D9lrVlNx1I/QljEHmLk6O/vyJB3S/xFX3IadT8YKK+dwUlVhr7QM2ZaRoxSigoIQqz txk4JEw9C3pG2CV8MqBYhm+4xOHtV2tEPElsoTBJnF/4bQmhBfXpMH32UI5Cz1+Dmsa6 Hlcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IixhOncg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bd12si18788536plb.193.2018.12.20.11.43.25; Thu, 20 Dec 2018 11:43:41 -0800 (PST) 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 header.i=@gmail.com header.s=20161025 header.b=IixhOncg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731207AbeLTMIc (ORCPT + 99 others); Thu, 20 Dec 2018 07:08:32 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42465 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729246AbeLTMIc (ORCPT ); Thu, 20 Dec 2018 07:08:32 -0500 Received: by mail-lj1-f194.google.com with SMTP id l15-v6so1315529lja.9 for ; Thu, 20 Dec 2018 04:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=+Cie+hX9uyE579W7SVj+x5h9uxygHhXQglD7p+kfotc=; b=IixhOncgtjk7X0Jf7L7/Yk1TCTg8lXfzBrltQvzBeOB5YUKHwuNVDjVDnqYd1Iyf3Q ro69I62WaQ971hwMYrFIaYD+fKXq/0UA1tyHNd1QUNJjto85OJn10fuShq2T5bRLn/Tb fSTIhm3khynFBgNTOuomCj5on+vcrer/eX1p/cTtlk2Ut6Q4Zxa7NN9zy27nDi3svLmk qF0kMogiWhcvrt3mV7TSxOX9kqihTD/es3/nLx90V3ui5JJIHMUP4SJp/9kQQW899N1z Ar++LuleBYDHJGgFfQ9XxTqRzA3maxXZ17YL7f+zVJDbsZQsbF8RqNGLAqJjPgGq6R2c nagA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=+Cie+hX9uyE579W7SVj+x5h9uxygHhXQglD7p+kfotc=; b=MG87HEZRUlXaAe3i4Gu27BMFw2VnmHbIEZS3BayCU9IiUGD796/pzGD5mU8Dgcrk3r XJyYl2Mm5FS+onZQ08N1VWFcDSAQJDWkDZunEsZ3t5BwPdAz1lmYEsMGaaAvLxe0FY/r LEjcpm90kWknW58SiKhc4Xe7e8uIPNrQhGZ/GDR0cunInwlb11boXxdH/xGMwR9MWXfg Bgzkxsw8C95HTX6yjlAUMZNPhKKd7oJDHMvZ+Q4hgQgk7PA9ipO3Fj86X8VPO/ikftkE AvjNMYPn234tciPpTCKQMp7R1y2Jjuq7IXW5wTlJLo/l7ckQHBGrS9+/sOfiW/BJuVIC 0M5g== X-Gm-Message-State: AA+aEWb4emROIMF+wDZZcYl9gzArcwYO0f7jrP7SAygeBCx3zmXkAcWx +pyl9Zz5f0L0Tmi6GG1fal4= X-Received: by 2002:a2e:630a:: with SMTP id x10-v6mr14444075ljb.11.1545307710030; Thu, 20 Dec 2018 04:08:30 -0800 (PST) Received: from [10.17.182.20] (ll-22.209.223.85.sovam.net.ua. [85.223.209.22]) by smtp.gmail.com with ESMTPSA id p23sm4296656lfh.47.2018.12.20.04.08.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 04:08:29 -0800 (PST) Subject: Re: [PATCH 04/14] drm/bochs: atomic: add mode_set_nofb callback. To: Gerd Hoffmann , dri-devel@lists.freedesktop.org, David Airlie Cc: David Airlie , open list , "open list:DRM DRIVER FOR BOCHS VIRTUAL GPU" References: <20181219115127.31359-1-kraxel@redhat.com> <20181219115127.31359-5-kraxel@redhat.com> From: Oleksandr Andrushchenko Message-ID: Date: Thu, 20 Dec 2018 14:08:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181219115127.31359-5-kraxel@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/19/18 1:51 PM, Gerd Hoffmann wrote: > Conversion to atomic modesetting, step two. > Add mode_set_nofb crtc helper callback. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Oleksandr Andrushchenko > --- > drivers/gpu/drm/bochs/bochs_kms.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c > index 59d469f343..18b705fb0b 100644 > --- a/drivers/gpu/drm/bochs/bochs_kms.c > +++ b/drivers/gpu/drm/bochs/bochs_kms.c > @@ -86,6 +86,14 @@ static int bochs_crtc_mode_set(struct drm_crtc *crtc, > return 0; > } > > +static void bochs_crtc_mode_set_nofb(struct drm_crtc *crtc) > +{ > + struct bochs_device *bochs = > + container_of(crtc, struct bochs_device, crtc); > + > + bochs_hw_setmode(bochs, &crtc->mode); > +} > + > static void bochs_crtc_prepare(struct drm_crtc *crtc) > { > } > @@ -149,6 +157,7 @@ static const struct drm_crtc_helper_funcs bochs_helper_funcs = { > .dpms = bochs_crtc_dpms, > .mode_set = bochs_crtc_mode_set, > .mode_set_base = bochs_crtc_mode_set_base, > + .mode_set_nofb = bochs_crtc_mode_set_nofb, > .prepare = bochs_crtc_prepare, > .commit = bochs_crtc_commit, > .atomic_enable = bochs_crtc_atomic_enable,