Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2151578imw; Wed, 6 Jul 2022 00:34:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1unvVzLdyc9traBSV2cQD7NnjHQY6USLreAvZAPG1rSRyNY7j4pxRVInuuC7L0F1ZGw9rdE X-Received: by 2002:a17:902:f111:b0:16b:f440:5ce0 with SMTP id e17-20020a170902f11100b0016bf4405ce0mr6639501plb.163.1657092897603; Wed, 06 Jul 2022 00:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657092897; cv=none; d=google.com; s=arc-20160816; b=C6CqXqvw3Ck2LAycHrdaaVqsU/1XgZnGbHwU7tZnjGC1uxxnaST+GsQGkFh8phUzh1 TijDMCqtvIoCRKiquoz3rAcGgnKaviMcAqPwsd+TCbuin+Jb5/UYz1tBC3OZcDV+08+5 QpN4gCvCF3BamLX3CabG6pgJbQRZg/LD5tP70ztFwvT08EQUACI3rCLxkDYBSClN5Q+U SiyAeIhdagdIAqPa+CmDciVhYjuJKhla6DU8ZLv6iRO6kL4gwUT57o2U5zbHkDOSF16C SCq6SxtAtLcVxHq/dv6HCaNtQAVk8Z7NynYOHaHEHZbz7vEmKHLfJL/gbr7sMkss6mHp XJOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5f1NTXxx8Ap9RmwI+lFB32CvuwodeMFzaWS2RuZe4X0=; b=hO1p83b2WvyFInojG3u7VYpwU97YUqeiPpNIRWdYMydKacviZxG/nj1DDbu3vB7vBq EIr5Kz/Ce/lztOH+KfIzxXa7+OE7i2KwoZXABxL8Gg8a+3MKp/E1BZdRJSwU0Uuoc8ix TNoOMH9Vry9JcGShzwmdoYj6wJlw1Lb/KSTxMZwsBKjhVrrduxfb3gp2ys2WeS90N+GG SavghwK6sLuJSpq6N3jlQJlUH3VGGHeIMmLSLL8xjXIMgTxC0jRdNcGILdNLspepxrUH 9f3BgMIYqnhe14rz7WNG/ZMfEPSuCEYpwnhVR51d3apMW+/jPE4/L/ABnn63f0OrZVaN bBnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=T62jIb1V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a170902b28100b0016bdc4f42c1si12257010plr.508.2022.07.06.00.34.45; Wed, 06 Jul 2022 00:34:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=T62jIb1V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231415AbiGFHW6 (ORCPT + 99 others); Wed, 6 Jul 2022 03:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230428AbiGFHW5 (ORCPT ); Wed, 6 Jul 2022 03:22:57 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC7F51EC50 for ; Wed, 6 Jul 2022 00:22:56 -0700 (PDT) Received: from [192.168.2.145] (109-252-119-232.nat.spd-mgts.ru [109.252.119.232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id B3DC26601824; Wed, 6 Jul 2022 08:22:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657092175; bh=ayN1i8IAMAQxYhOykmkICXFFTfeATWtbkUitRs8K+ZQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=T62jIb1V2C8sQbpYcJA+qF7T854vJT7oRV2Vz63JL0a13ArqlOhHTHkwYqzLzRJC2 zGniTbmsVxdBzsH1bSd8X4Au/+68TMl5QM0yRiuplU7JadVQq6WxJ/AvXPJP9Apk4t M0jpZePSuh2FY/G9zdwGGEqMZ3nuFqNW7KMMQn1jWjqMVpYstjdpElKZv2XdJcvt6S 9Dyrva39LRwbPIEnQ6Bye3Ck9tuXXJTiRKJlTzV6vmI/Kwl317fyoVF/lQ6tSczn0c VXY+aKF38ukzJDH1HQDGpqjc1Q/oyZo0QMtQAQzFlje8M+jVRSMBKuXMXhkTC0F2cS X68yLxb3VG11g== Message-ID: <05a5608b-899d-71de-a7d7-406334c5604b@collabora.com> Date: Wed, 6 Jul 2022 10:22:52 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v7 7/9] drm/virtio: Improve DMA API usage for shmem BOs Content-Language: en-US To: Gerd Hoffmann Cc: kernel@collabora.com, David Airlie , =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= , Emil Velikov , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Gurchetan Singh , Thomas Zimmermann , Dmitry Osipenko , virtualization@lists.linux-foundation.org, Robin Murphy References: <20220630200726.1884320-1-dmitry.osipenko@collabora.com> <20220630200726.1884320-8-dmitry.osipenko@collabora.com> <20220705135323.emr4gdbcxoisdcxe@sirius.home.kraxel.org> <20220705154507.67ovlun4m26xzppn@sirius.home.kraxel.org> <1380526d-17fb-6eb2-0fd5-5cddbdf0a92e@collabora.com> <20220706071301.43fvbioka4iksqup@sirius.home.kraxel.org> From: Dmitry Osipenko In-Reply-To: <20220706071301.43fvbioka4iksqup@sirius.home.kraxel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/6/22 10:13, Gerd Hoffmann wrote: > Hi, > >> Gerd, thank you very much! It's was indeed unclear to me how to test the >> MMIO GPU, but yours variant with microvm works! I was looking for trying >> aarch64 in the past, but it also was unclear how to do it since there is >> no DT support for the VirtIO-GPU, AFAICS. > > aarch64 uses acpi by default (can be disabled via 'qemu -no-acpi'). > Not fully sure about arm(v7). > > Even with DT it should work because DT only describes the virtio-mmio > 'slots', not the actual virtio devices. > >> There is no virgl support because it's a virtio-gpu-device and not >> virtio-gpu-device-gl that is PCI-only in Qemu. Hence everything seems good. > > It's named 'virtio-gpu-gl-device' Ah, thanks again! Just quickly tested virtio-gpu-gl-device and everything works too for MMIO GPU on microvm, including virgl and Xorg (glamor). [drm] features: +virgl +edid -resource_blob -host_visible [drm] features: -context_init [drm] number of scanouts: 1 [drm] number of cap sets: 2 [drm] cap set 0: id 1, max-version 1, max-size 308 [drm] cap set 1: id 2, max-version 2, max-size 696 [drm] Initialized virtio_gpu 0.1.0 0 for LNRO0005:01 on minor 0 virtio-mmio LNRO0005:01: [drm] drm_plane_enable_fb_damage_clips() not called -- Best regards, Dmitry