Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1835777imw; Tue, 5 Jul 2022 16:43:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tn3RsL+BNEOpNGRXpx0AjzEOW7HeKHalIwMv3bUC+4Igwi1KGFwzDQGQLt9gQibUfdgIKa X-Received: by 2002:a63:e44b:0:b0:40d:9516:a8de with SMTP id i11-20020a63e44b000000b0040d9516a8demr32354270pgk.538.1657064619214; Tue, 05 Jul 2022 16:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657064619; cv=none; d=google.com; s=arc-20160816; b=P2qpeOM+myLEYAVuuxrFuBsBOTY34VDKwDEkN0IxmK9OITWgx0jzfYoMAGymZXFeft vm5WBXxJWGUOXaZFfNESwecpUissZIzwyq4u8de5swhA13HUVdk96cm567+4Efy2t5kQ HEt3XcZN1EElfm3mE4jI7M43DJW96HfVomXCnQ5O/owPNomfk6IMO/KX0pJomUw5c+AZ PXWYdCnE1AGy3117rpHpPv+cUI1Oe7tWIVjF7t6wZ1LQSuoPNnk/FhVfjL4g5bykQE9P xNfdC2l1gsTMcaPWaZvcY7J2eaPbDquxJJn1wn3skUy3BjJc4JJEJL07DU9TxUrD/uYi lb/w== 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=I+42+S+RkxAntPRv3EuBqqDv6cz3JEhT5wrxmfvX0lk=; b=0v9aO4kwDCxlXJGUrP3coqmVnGDto4+Z2XlEkD9npbAfgKZ8mbOxHYKTemNMfpHO3n MLgRaNF+b1q4ZnWTU2qEnlI25cK40jCnHTGncff2ynUSlyERSqSH226WhfIYYQKDjyO2 SCP59pKX2AlPii5OdGCDMkEPVFBIcYPq3TnJwGovKHzXFnNQVH7okbgZ/qBX5oiDqzZl BctifqzeDgyn+26qPAwwD/V7xWt3YF77fpdeAXnWN96AYkR0pO3IM75yahk/sV+lqMUM K85L9/m1pPxE0P5rdEJR0iessEe1Fz/PGeFSfYecgJVh3xAbKFRq1RW0sQpDe79H55Q2 xopw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=N7LGrGeS; 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 v186-20020a6389c3000000b004088e9a1b81si4626202pgd.541.2022.07.05.16.43.26; Tue, 05 Jul 2022 16:43:39 -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=N7LGrGeS; 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 S229605AbiGEXI6 (ORCPT + 99 others); Tue, 5 Jul 2022 19:08:58 -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 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 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