From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A062C433EF for ; Tue, 5 Jul 2022 23:09:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230170AbiGEXI7 (ORCPT ); Tue, 5 Jul 2022 19:08:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbiGEXIx (ORCPT ); Tue, 5 Jul 2022 19:08:53 -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 93255654D for ; Tue, 5 Jul 2022 16:08:52 -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) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id EEDD066015C8; Wed, 6 Jul 2022 00:08:49 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657062530; bh=WPOS98C1ww0h7wB7KgFVUb6rtlK2oW5qXdt8zEVQLug=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=N7LGrGeSOIko5kkF72sygNNFT39CyshZm8kTw0mZ2MqISS2fFDrzoNnac+9PrU5pf 4eegombBvVeNI/s7PuLSkI3bRvgO+qteC33drFOT/VyMMT4mz4RFpVyDx1NVba1jc/ hbwksP4piUZr58sEzyF87b00UNBUZOP5MxOSqtAo3bCc1cK8ONDNvXEDMrgKtPPe9H MpwjB2D6/wmWjuQ04HLpwt07Hg6vicwf7onlWmvE1nS5PNXG4ErSF2+fXpZMugI88P TaS7d5HJczeWywpx3fd2Zwwx6IPIDeEYSkI9enCN9HSrz3BWrqewBqD0TWTtMdI9IU 7ha4eh69MxKQg== Message-ID: <005b1bc3-084c-2ae4-e30a-71b0f239cc67@collabora.com> Date: Wed, 6 Jul 2022 02:08:47 +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: Rob Clark Cc: Gerd Hoffmann , David Airlie , Robin Murphy , =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= , Emil Velikov , Linux Kernel Mailing List , dri-devel , Gurchetan Singh , Thomas Zimmermann , Dmitry Osipenko , kernel@collabora.com, "open list:VIRTIO GPU DRIVER" 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> From: Dmitry Osipenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/6/22 00:39, Rob Clark wrote: > On Tue, Jul 5, 2022 at 10:02 AM Dmitry Osipenko > wrote: >> >> On 7/5/22 18:45, Gerd Hoffmann wrote: >>> Hi, >>> >>>>> Also note that pci is not the only virtio transport we have. >>>> >>>> The VirtIO indeed has other transports, but only PCI is really supported >>>> in case of the VirtIO-GPU in kernel and in Qemu/crosvm, AFAICT. Hence >>>> only the PCI transport was tested. >>> >>> qemu -M microvm \ >>> -global virtio-mmio.force-legacy=false \ >>> -device virtio-gpu-device >>> >>> Gives you a functional virtio-gpu device on virtio-mmio. >>> >>> aarch64 virt machines support both pci and mmio too. >>> s390x has virtio-gpu-ccw ... >> >> 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. > > just a drive-by note, IME on aarch64 kernels, at least with crosvm, > virtgpu is also a pci device.. the non-pci things in the guest kernel > use dt, but devices on discoverable busses like pci don't need dt > nodes (which is true also in the non-vm case) Sure, I was only looking how to test MMIO GPU on aarch64. Since I haven't a found a way to test MMIO back then, I concluded that the MMIO case wasn't really well supported. -- Best regards, Dmitry