Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1697363imw; Tue, 5 Jul 2022 13:58:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUksDJiyTzxmuYon08uV0vcYcUW4OwYPLYgi4xLjgy5T6cr/CuIjftSTf86n/GsZ1nv2aL X-Received: by 2002:a17:902:8344:b0:16a:6e99:de2c with SMTP id z4-20020a170902834400b0016a6e99de2cmr43310524pln.130.1657054700562; Tue, 05 Jul 2022 13:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657054700; cv=none; d=google.com; s=arc-20160816; b=daEuSWqDkS8Gv/ynHXAnye2lUMa84h1n523sbgwF8EA4cdot+bZVdmzKOlmMXMBLxf lWnA65T88pBWl0tCKbSV+LeEjyuq6BFAxfd6OEzGqfys8yE2yd3//mVdR4DptVwm9aeY 0e/qv36Pr0jU3Bdx8kZ+S819XMdnSHfvwkQBo8/tDSL6KmuGUDNkgRE6QJmBH2m6tsK5 ETw/vsdPIhUEhDsoBVH5XkxvXl6+97YsDBO1j94SSr9XfVJovfqld2uJAvOW4zt37aLt 9oRQk6Qob5mF6fDZx4AGDC6Im1ccWVJRymGIqJAUbQvs/C56PSjmnRjAB5f/SYI/Cd9c i4dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QTu817Z7TA8/Kp+7XaZrfy/d2EsCSpkUKcRd+2ZeYAY=; b=VCATmQgtZ/YjOphCwgJ28rXyiUmJ56DngJ51P9LmiA+fGCEBRUQYhkbXrZWj8YnfAA EDK73sjFuDNnxxmg94LKPnsjhlqjlihjoRoUqF1XLI9V2BiKQJb3YTUUc1IOdapxJ54O lF0m6r6rXVpQN2/JLhYihw+7RwtDUiawi33951JwW4XZltINDPYsvBEdW06AKetxvoC4 t7S2UWZi1QpBpHqwmQRZlroR22bmtLtjcoQ2xtQz/8UjIC+Y3aYmMep8G6WdgNRXgnbg 1gJ15tvnNBk7/rvAzI69/Md3hQIloD7g52cEoVTvH9w7jcbXmbyKtd4ZZwhdl+7YOcjV s3Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FlxkgauV; 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 l8-20020a056a0016c800b0051b8c526443si21317957pfc.171.2022.07.05.13.58.08; Tue, 05 Jul 2022 13:58:20 -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=FlxkgauV; 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 S231688AbiGEU4n (ORCPT + 99 others); Tue, 5 Jul 2022 16:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbiGEU42 (ORCPT ); Tue, 5 Jul 2022 16:56:28 -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 5EBC720BC0 for ; Tue, 5 Jul 2022 13:56:24 -0700 (PDT) Received: from arch-x1c3 (cpc92308-cmbg19-2-0-cust99.5-4.cable.virginm.net [82.24.248.100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: evelikov) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1FA2D66015B5; Tue, 5 Jul 2022 21:56:21 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657054581; bh=NGQDvaVmdIquGOuzDM5Sp6an5+EZmtRa+tIGw27pvH8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FlxkgauVNjOvx3H0gXYe5RcSLYYK08u4UK8GIHX6opp4EGTFQhd1cRxFaikKDLlbU gB7o2mAKtL77VBpQhqLWACR85JPO8Ch3dk6c3NbZUabwZLkChHPj+PAJRyFXnScVSH LhRovuODfN6tCCVhpU4NPGbcGyRXzzD5+DRP6nAUNcgKI4saVyx1RDo0Aj8ltNcq2X OnJ9cvokOxjcZ3cXoELUz4f4H1Jhm3JlVa4gtcBB/vgTIlQXjwG6YuZOXTTAB/GI/I dWCcfc4FYlE5RGRgvPgVP7Pk8B1d6tB0csAYitFGSOnkn5ZJCURKBgxnJD+74vGmxO Hi8I1/cwo8aLg== Date: Tue, 5 Jul 2022 21:56:17 +0100 From: Emil Velikov To: Dmitry Osipenko , Laszlo Ersek Cc: Gerd Hoffmann , kernel@collabora.com, David Airlie , Thomas =?iso-8859-1?Q?Hellstr=F6m?= , 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 Subject: Re: [PATCH v7 7/9] drm/virtio: Improve DMA API usage for shmem BOs Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1380526d-17fb-6eb2-0fd5-5cddbdf0a92e@collabora.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 2022/07/05, 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. > > I booted kernel with this patchset applied and everything is okay, Xorg > works. > > [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 > virtio-mmio LNRO0005:01: [drm] fb0: virtio_gpudrmfb frame buffer device > > 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. > > I'd appreciate if you could give s390x a test.. I never touched s390x > and it will probably take some extra effort to get into it. > Adding Laszlo Ersek, who debugged and tested this the last time. Laszlo Ersek do ypu have some tips for Dmitry? Xorg seems to be working on his end with the drm_drv_set_unique(... "pci:...") call removed. Original patch can be found at: https://lore.kernel.org/dri-devel/1380526d-17fb-6eb2-0fd5-5cddbdf0a92e@collabora.com/T/#mbc1a1bedc91d1855007188a725c5c75bbc771cf0 HTH Emil