Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp743032imu; Fri, 11 Jan 2019 08:18:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN47JbaY3QG2Hxc0HxHf+hTa/S6aD13UZk4zjpiai7P9LxHFGfu7L1Kvs4n8Px2rqMZi+vnt X-Received: by 2002:a17:902:3181:: with SMTP id x1mr15155890plb.58.1547223501601; Fri, 11 Jan 2019 08:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547223501; cv=none; d=google.com; s=arc-20160816; b=ONBMK3py/Kz3HF5I8aEvNu4uIjVG1aYsOJ/xstD/Ijytq/9yjHt1GG0Zk+sdAb6whO 7wIMHmrFaIsR4qyhJ+djG4Mvon+qe9dZInHMWkIPXB9K/+MgzfHOqZPHN5Eeyv7z+BvF QEwNto1fbUuCDTs1eaHlogtraNJgszDvclIlFnZMafoABofYKD/ALzaroGIKAnzewGTa E15NPQ3pTqfajOPZFUe5NJVTBdblleIgQMKvwTdUkJhxx/9QmTD3E+rHkbLShkupOJqm wCXmsmSmL3ZsBc4/WKWFCT97d6ugRbzwgjMkd/5p1+89eLs45UVS2qm5elrWvlwS7jpW vhVw== 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=YZQqVTBW83xm/pkYcwpS7HpU5GCp9v1hmBP35xE8vJ8=; b=k9/l+aCpeVhqtoi8gK0TQ/Yk+cnW1dwMHmSPVxHe69TGge4ly0vORUE0R6sZazUYKf dG5rMVHlQ4ORPi8cXq1+cfc3atpGj1iJLKugL2Z103123xbdMdISa9H8cPzuzVW4qU/w tyuNNm6BV0f++7JUyWTb4m48KVJmB070+gq44t+hqRhll4OlLZ6lKorJCOu+VkB0iJ2a lZFSSor4HGUfydq3e2m8E2j5yB3QsOYdl0KcH+rnGPUoKNNV56uxfOA2TD0XvtwaWtXK Zm1/xx8NbBCJDa/e6EusTjByjEUjGNA4RQ2mH7zbu7FqQP08IAU7e2K/dNtcag/lOkAT YUyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=toQHpeF+; 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 d4si12572834pls.348.2019.01.11.08.18.06; Fri, 11 Jan 2019 08:18:21 -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=toQHpeF+; 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 S1731121AbfAKLII (ORCPT + 99 others); Fri, 11 Jan 2019 06:08:08 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37293 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729216AbfAKLIH (ORCPT ); Fri, 11 Jan 2019 06:08:07 -0500 Received: by mail-lj1-f196.google.com with SMTP id t18-v6so12582676ljd.4 for ; Fri, 11 Jan 2019 03:08:05 -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=YZQqVTBW83xm/pkYcwpS7HpU5GCp9v1hmBP35xE8vJ8=; b=toQHpeF+czgXEeCu+k5ayIsxyFfxtYlyvpwd+jydQou7IZ+WLse0AmFkb/w3wF7xST 1c5417SkiqFTTZzeckxF910VxsmA3PHPHoap4XxTYa+JmT3Y0WGxhS1JygVD8LZ4onEi XFkyrpou33+8bBtYQkete2ZppMBm0TXlgUYnQwMwBvtmqUd+GetHoQWm/1YS5GM/6jo+ Q4nqW5qgCuTU+9uy5nOVQbFRkPGSWmtZWKrseQXD4zmTGGFTNwypo4QBgeFf2gOO5ZIm CVvWKBBjNhrQLemmnjAJLRgZb4ZQoR/gAUAPdgp91lRlmPgSyc8seCOQ4yufSoiC4HyB BBng== 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=YZQqVTBW83xm/pkYcwpS7HpU5GCp9v1hmBP35xE8vJ8=; b=EzB7drneD6maDaT+g0RWKuxyodzNVfh+tE6iySJJrm83/6BdjlDnNDEo90TJrKLeUm P8/huZF7CaeOLtBQ9FkGNkQhzO3SzyAnH0xHQ2d1amvh2pYrOUY0joYzmRAnKE6kb6fq +1hzF/wjMniB/ERKVgGGKongEHfExrr20A3CIaAIcQPpZTdfap9Ls9J+kCig2WUylgnK iIZ1kliyY0traG1n258fpJCheJBQrp+tzkVb9oO5rzk0bZfRLsJB3jCKrnV6jQYvQ/Ri pMck8uF0iqSmLV/+j/PGWRp4giPhQfqWAmbHS+eZyIFnaACjMcPE/oaqWbJ/5srKxj+R iCLA== X-Gm-Message-State: AJcUukdGSkT/w52Y8zQY83iDwRLMzMezNF0ivEjLg2CO7kHRJ/4U+wvf H02+wcEsZzAqXfjXPx4gQ82bVWd+ X-Received: by 2002:a2e:145a:: with SMTP id 26-v6mr8162287lju.116.1547204884377; Fri, 11 Jan 2019 03:08:04 -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 p89-v6sm13341602ljp.60.2019.01.11.03.08.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 03:08:03 -0800 (PST) Subject: Re: [PATCH v4 08/16] drm/bochs: atomic: use suspend/resume helpers To: Gerd Hoffmann , dri-devel@lists.freedesktop.org, David Airlie Cc: noralf@tronnes.org, David Airlie , "open list:DRM DRIVER FOR BOCHS VIRTUAL GPU" , open list References: <20190111053752.4004-1-kraxel@redhat.com> <20190111053752.4004-9-kraxel@redhat.com> From: Oleksandr Andrushchenko Message-ID: <71b9afc8-c984-a837-c12d-a55c5468575f@gmail.com> Date: Fri, 11 Jan 2019 13:08:01 +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: <20190111053752.4004-9-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 1/11/19 7:37 AM, Gerd Hoffmann wrote: > Switch to atomic helpers: drm_mode_config_helper_suspend/resume(). > > Signed-off-by: Gerd Hoffmann Reviewed-by: Oleksandr Andrushchenko > --- > drivers/gpu/drm/bochs/bochs_drv.c | 11 ++--------- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/bochs/bochs_drv.c b/drivers/gpu/drm/bochs/bochs_drv.c > index f3dd66ae99..08ba6029d2 100644 > --- a/drivers/gpu/drm/bochs/bochs_drv.c > +++ b/drivers/gpu/drm/bochs/bochs_drv.c > @@ -103,11 +103,8 @@ static int bochs_pm_suspend(struct device *dev) > struct drm_device *drm_dev = pci_get_drvdata(pdev); > struct bochs_device *bochs = drm_dev->dev_private; > > - drm_kms_helper_poll_disable(drm_dev); > - > drm_fb_helper_set_suspend_unlocked(&bochs->fb.helper, 1); > - > - return 0; > + return drm_mode_config_helper_suspend(drm_dev); > } > > static int bochs_pm_resume(struct device *dev) > @@ -116,12 +113,8 @@ static int bochs_pm_resume(struct device *dev) > struct drm_device *drm_dev = pci_get_drvdata(pdev); > struct bochs_device *bochs = drm_dev->dev_private; > > - drm_helper_resume_force_mode(drm_dev); > - > drm_fb_helper_set_suspend_unlocked(&bochs->fb.helper, 0); > - > - drm_kms_helper_poll_enable(drm_dev); > - return 0; > + return drm_mode_config_helper_resume(drm_dev); > } > #endif >