Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5048442imu; Wed, 19 Dec 2018 04:53:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/WO9dfplAyUyCEHFCip9rH8xJ+qFmEt/+3EOAJeWopBRlFPSjvTi4FMKGsp5jKHno5KfwLI X-Received: by 2002:a17:902:14e:: with SMTP id 72mr20348247plb.287.1545223996939; Wed, 19 Dec 2018 04:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545223996; cv=none; d=google.com; s=arc-20160816; b=lIRVl2F7Q4XpkYh0Dn4Ge2XAByv9cOgwwX/nEDCCaye2DTy2++5OvMkzJQkEWnMhNR 2wo3fEbBGokIjZ4iBvZNvahn7IW+aJSckqv4g5bNDFIavepSRQty1gcJMpYylFErA96g ib0SF8wLYKfkDmOCudz5AACa7HxVYIMZGjyA+7sQMjgtbuPcYdozK1Io4qB9pTuan5nw xwIgBDgFnO5ZtME7eSc4rSiK1qY+bQJovjfBD7d8jLmshurVgVELPs9hoEhlr+4BgY1B ExshHQEZNWcBaW8sWfkQCaJoqnJdpg+Wlc/zFb3ddfVahDYr7Jk8OJW0O46P4H7fsUsL FoYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=GeCS9luNpyuLuMuFNun+MpAQ6jLGJ19M4VTu6NMD63A=; b=lg4JeksWzDkKNQj7rNHjm0xmZx1/clHrOzmOPSPW9OEZJoSIpuyaizpvOVF2QbwALU IzuXLCBM9FYeIHYgnqzKh+PXFSsJDoKHS95+4tmmbJia1tSiouzFyEkUUCzTedxZ87Px LgwGJzDcpooiL3fDPqAi43u+HKzgDPuBX6o8iJiDbtpO6NGCNNCw0vPU/yS0M3myfbqN Jg6z32cytw5ELPXsIhRaQ/shQ0sHcahtA7D1kGsDRzWnsvgokbcvOzPuOmQsCKqz+fON h74N9myTKvPPKDP26gxXW2n4qiBOlAi0yLjk3t+lrRi4L32oCxOWWoqaqKBDh6XS4RdS muhA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si15511616plp.130.2018.12.19.04.53.01; Wed, 19 Dec 2018 04:53:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729547AbeLSLw0 (ORCPT + 99 others); Wed, 19 Dec 2018 06:52:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47830 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727542AbeLSLvc (ORCPT ); Wed, 19 Dec 2018 06:51:32 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A4DB19B324; Wed, 19 Dec 2018 11:51:32 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-117-174.ams2.redhat.com [10.36.117.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id 357A418236; Wed, 19 Dec 2018 11:51:29 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 791867708; Wed, 19 Dec 2018 12:51:28 +0100 (CET) From: Gerd Hoffmann To: dri-devel@lists.freedesktop.org, David Airlie Cc: Gerd Hoffmann , David Airlie , virtualization@lists.linux-foundation.org (open list:DRM DRIVER FOR BOCHS VIRTUAL GPU), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 04/14] drm/bochs: atomic: add mode_set_nofb callback. Date: Wed, 19 Dec 2018 12:51:17 +0100 Message-Id: <20181219115127.31359-5-kraxel@redhat.com> In-Reply-To: <20181219115127.31359-1-kraxel@redhat.com> References: <20181219115127.31359-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 19 Dec 2018 11:51:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Conversion to atomic modesetting, step two. Add mode_set_nofb crtc helper callback. Signed-off-by: Gerd Hoffmann --- 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, -- 2.9.3