Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2334287imw; Wed, 6 Jul 2022 04:20:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLNokyi9iZKaLEPaCiQB6O++813Q1u7sLYdhSuHvowmsV2QjbjLzFcIgCu7mDWsPYH0tyt X-Received: by 2002:a05:6402:430e:b0:435:9e41:6858 with SMTP id m14-20020a056402430e00b004359e416858mr54611554edc.69.1657106408983; Wed, 06 Jul 2022 04:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657106408; cv=none; d=google.com; s=arc-20160816; b=0YFVhya7iqnGh0N0BEqQCK+e0CguyaGKknhAxromcCcKiG+77RR59Y3U+OvcrtHSjW 21Rbx8Ny5hFTUcFC4GwK6xlDW2/UCSt1aCDADMSlsxPO3C4rhTFz3iTj3+BvCTWCHTZ0 6gotdqNcFzU0wXAGFDHij9Tzao8v710bSW2ztOg8F3lyiu50JuiAhY8bvc26+xFVu9wC qumLbxw4Y3ac5uYcUlUwg4pLGIFuOr9FD3TUToqWPKgzm4dFs4qesYJuJ/gLbEqT7IIX Cjuo4ADujtdeWjAKw/yJadJTgJNjVojHKBYiYA4vlym4z3Y8+bMmAlL+MQMlDUj/Qtku ptzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:date:message-id:from:references:cc:to :subject:dkim-signature; bh=ui9lVcAZsrGbvPVS6CAZzPnKKC1Klf1sd+F6uPmz44s=; b=Wewgw4gqDd+eYmwAmFWgXGyBns/U6Y44oxd+LYe/4hN2Z8n5ARypxHpF+BSrwHMIXh 45oPeM5h8ggmor+1IUQ07nkbgJwCHiQTDN8iHdrgGuriDnxyn2fzrPoVaAmXotnzi+Yf xjJf2mrE6bWDmkjNCxtW0H0INKenIZ4OoAeNijPv3j28bnVIFUTxVcEarh5xR0OXIfp0 jGrr2jT4r5aLhPMtkn+f/pMv+cwftawIQPrkRSItrAnxMI+Fnoe4FOUpjI28a3unvaRI di3jGrVeCHwrzuhfK4lkMeyNyzyb7fjuZKnzMjA3CRjJl4AUFaMKv5uIxBG2Vcrx7Jta Qsbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cZtZqWxO; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e19-20020a056402331300b0043a87e5f52fsi2227736eda.97.2022.07.06.04.19.42; Wed, 06 Jul 2022 04:20:08 -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=@redhat.com header.s=mimecast20190719 header.b=cZtZqWxO; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232363AbiGFKa5 (ORCPT + 99 others); Wed, 6 Jul 2022 06:30:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232180AbiGFKay (ORCPT ); Wed, 6 Jul 2022 06:30:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6AF426541 for ; Wed, 6 Jul 2022 03:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657103452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ui9lVcAZsrGbvPVS6CAZzPnKKC1Klf1sd+F6uPmz44s=; b=cZtZqWxOPHT3l3nkWLX4SViUmS5t+0iNwSooLuBiX0+eoCG48/vTTbw98J5HVJ8uKhdIvm gET5TngSMalcbKtl/GX77It8qyUSqGWjz6NyK7DNcsNtCsQklkvwkyL7DTzKZhk/oqFikM 0IZsG2LRdqkT2ZIPzQToim3PwHxY14M= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-377-wVju4HtROw-Fx_EFFXn8AQ-1; Wed, 06 Jul 2022 06:30:48 -0400 X-MC-Unique: wVju4HtROw-Fx_EFFXn8AQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C6B28101A54E; Wed, 6 Jul 2022 10:30:47 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (unknown [10.39.194.100]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 96FF6492C3B; Wed, 6 Jul 2022 10:30:44 +0000 (UTC) Subject: Re: [PATCH v7 7/9] drm/virtio: Improve DMA API usage for shmem BOs To: Emil Velikov , Dmitry Osipenko Cc: Gerd Hoffmann , 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> From: Laszlo Ersek Message-ID: Date: Wed, 6 Jul 2022 12:30:42 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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 Hi Emil, On 07/05/22 22:56, Emil Velikov wrote: > 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 thanks for recalling this, but... I've moved to different projects, and I'm already scraping the bottom of the barrel for every chunk of time I can find :( Laszlo