Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1576857pxb; Thu, 4 Feb 2021 17:23:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyS2a5L6jpeneqPEkr1gROBa1xdY4YalMMz+ojARJbMw14fvN1CDO/X7cOS9xgQua2w3IXS X-Received: by 2002:aa7:d1da:: with SMTP id g26mr1256316edp.154.1612488216362; Thu, 04 Feb 2021 17:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612488216; cv=none; d=google.com; s=arc-20160816; b=UGHuZQ/j5nBAP4vMiUwgItLvBujBAxXn6LtFfKasZy7r9nZVvwxSltnO2wMJ96d3F2 5UffDIlTbhDz/1OvcFylOfV5GKSR2A1F0zCZmBWK3hK49kRE0vTW0RYKqgKMGKXCt6yP ZzdWRNo8xWM0WmAEjnfNojnctvwtMXXNj5DlIve14CqLhCBx4ejUtMniUMGIwBVOSp22 eueJzAHECKgbU31RmYjLJpJ7ca3DqRf88KjgsqDzurcDqfJjwEUWanlEHLazjmCL69Sw ehzAscFMFkTpu2NwIriSrnWfTwcFOdsJxTGV/uRVEiaZ5iUba0+cdSRSBi7bbjGDHY+R hMTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vjzyk9D/+KbOQ+TCvYeR5j3dH1HDxq+tOL6zjICBICs=; b=ZO0VH3ReXRbQjoTZzx6bNjd3IDI9GRyNvmhzQYqKPreLIKk7+ly+accc8DPvjoVYPS F4gM2E4JLx5nVbaEvudGfxSwMPPMaZ3P4srg4lngMDHfbZkpYZWYJL1KyFW9D6zLUI05 /qrqna2SQMK7XwGSgRgFyO8EvmWyUw6Vf2mXuVhQiMyMIoa5/avR7yCUgi8YIT50wBXZ mDUhtgyQGQdcMt06S7ROQs2VlusmaC0XuODCx3IZwUZcNxevrFaKytIDztKJF4GZtsVj OLyWNrd7a/GeJ1Ax0kcAclBnrFMeAWH7d4pAbi574XXT09yAMS+HvuKsgVLQTcjKZsgJ 4RVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i25si5058920edb.99.2021.02.04.17.23.11; Thu, 04 Feb 2021 17:23:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238949AbhBDSXR (ORCPT + 99 others); Thu, 4 Feb 2021 13:23:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:34228 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239050AbhBDSXH (ORCPT ); Thu, 4 Feb 2021 13:23:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id DEA59AE95; Thu, 4 Feb 2021 18:22:25 +0000 (UTC) Subject: Re: [PATCH v6 10/10] drm/qxl: allocate dumb buffers in ram To: Gerd Hoffmann , dri-devel@lists.freedesktop.org Cc: David Airlie , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , Dave Airlie References: <20210204145712.1531203-1-kraxel@redhat.com> <20210204145712.1531203-11-kraxel@redhat.com> From: Thomas Zimmermann Message-ID: <494099f2-01d7-fa62-9101-eb09765d7b98@suse.de> Date: Thu, 4 Feb 2021 19:22:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210204145712.1531203-11-kraxel@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pyZR8drgja7WQpmkmetYozYATek7dMo4p" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --pyZR8drgja7WQpmkmetYozYATek7dMo4p Content-Type: multipart/mixed; boundary="9hodCVcSmlM4NSTMnLoweg2r3f8cZ8USb"; protected-headers="v1" From: Thomas Zimmermann To: Gerd Hoffmann , dri-devel@lists.freedesktop.org Cc: David Airlie , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , Dave Airlie Message-ID: <494099f2-01d7-fa62-9101-eb09765d7b98@suse.de> Subject: Re: [PATCH v6 10/10] drm/qxl: allocate dumb buffers in ram References: <20210204145712.1531203-1-kraxel@redhat.com> <20210204145712.1531203-11-kraxel@redhat.com> In-Reply-To: <20210204145712.1531203-11-kraxel@redhat.com> --9hodCVcSmlM4NSTMnLoweg2r3f8cZ8USb Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 04.02.21 um 15:57 schrieb Gerd Hoffmann: > dumb buffers are shadowed anyway, so there is no need to store them > in device memory. Use QXL_GEM_DOMAIN_CPU (TTM_PL_SYSTEM) instead. Makes sense. I had similar issues in other drivers about the placement=20 of buffers. For them, all new buffers now go into system ram by default, = and only move into device memory when they have to. >=20 > Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann > --- > drivers/gpu/drm/qxl/qxl_dumb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/qxl/qxl_dumb.c b/drivers/gpu/drm/qxl/qxl_d= umb.c > index c04cd5a2553c..48a58ba1db96 100644 > --- a/drivers/gpu/drm/qxl/qxl_dumb.c > +++ b/drivers/gpu/drm/qxl/qxl_dumb.c > @@ -59,7 +59,7 @@ int qxl_mode_dumb_create(struct drm_file *file_priv, > surf.stride =3D pitch; > surf.format =3D format; > r =3D qxl_gem_object_create_with_handle(qdev, file_priv, > - QXL_GEM_DOMAIN_SURFACE, > + QXL_GEM_DOMAIN_CPU, > args->size, &surf, &qobj, > &handle); > if (r) >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --9hodCVcSmlM4NSTMnLoweg2r3f8cZ8USb-- --pyZR8drgja7WQpmkmetYozYATek7dMo4p Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAmAcO2AFAwAAAAAACgkQlh/E3EQov+Dq Tw//Ss7qrE339QgFvgUo6KSyLaTR9reuXmew3gm2M+w7BM02VQBDcHJ6uEWDOHTQpxcki4wApp40 /UQ5tZ6lRKqSPdYcz9CVNAwj0gYIqREeNIubHQd08Lzzx/kGv4Y/8xQ1Q1GrjIVejJvXOYe9KJhR dtAklxDPn1pRe8reSY5NRHuijsxX3RPIgUYgwPn1AwxS3faEIM1801ylnXdfdcgk7l4NvoXgt3D4 dZSltupfezt3qIsQHmZX3f1BmYj8mvJDi9cGYhl4ij8LVcTlePQCV52wkW5aQiajpGJPxbVOIbMv G8jOx66aV2A92ZdO010Rfhz8kWL/StnjqvOhzYmmhoXeHrqUQNd28LGqgEbA8KMRVf9cYv5co9PW ouaNVKV1wzeuGSqYzWcDQ/7zirLjqh2Al+OvweNkG+5MGazdcjH/LMSH00PCJRIsUXZFt/obw6P6 SPFmMpQARcaR/s2X5i9Aq8/mm9RPLzDLF35fs/pB+t4ZuJU5DM8o0+70GUpw4jF3f5ExLLhbQ13g 7yrkjQkaavTeUAuk7TXmyDc0rKPrTr9KghpS0qxPT5OKHLsOIXiH5Er3RLo2JLGs76itxag0Scyo qh2icQZMUuPJP3MAXP5YL6oxB65ZoJbTB3VYBR9/1Y1AYrCX2qQJlBDKr0Xi/0zjnFrr1KE/3HVk dno= =OQ9o -----END PGP SIGNATURE----- --pyZR8drgja7WQpmkmetYozYATek7dMo4p--