Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1472464imw; Tue, 5 Jul 2022 10:04:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1todsJqX+I1OHLKgmNywvywebKsgtwEIYE9xjvcdJsbDG1aK9M2Mbrh/uhgl7vsHHtOSYVi X-Received: by 2002:a05:6402:5191:b0:437:61ed:92c1 with SMTP id q17-20020a056402519100b0043761ed92c1mr46932073edd.177.1657040675329; Tue, 05 Jul 2022 10:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657040675; cv=none; d=google.com; s=arc-20160816; b=Zzh4F2cLnBy98/LlwfTJdJEIZGqtNr3oKrsfMEO93vxriJJmxC3tRqHtY1BcmZOm8z xMczUPGeiF2yqWz99nSVtjRNOpVsxtoMNJwC0rgm1N0So4TLMrLwJO98TxlJmvflsxnP sFfGPL4o/NtA2VaoOXcajHjgx9Tpz6XFOG93HzQnWECbcW+KEyF+9ssyCeunLvyE5nkn V77/5lTTaHfdfNr4ghqa1K0qcrmsdlj6SxKf0CUKt+0LLR9i7Vk9+65nYOClxziReGt2 YZhUVj0919sMSXgKIwDMY+0FOphDoZPzZruMYuHZfI3k9Qg5xZtl7aSNqR+LcxPK4Isa Nweg== 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=xZRqqNM9UDFpVccKcwxU64PvO/U7G1J+mt6svOrB3CQ=; b=bl2dM+0dELufF3tGRVN/Yd5VhqM6Gm5SO7xO4IVPTLGEttzoddnp8GyOvso7UFE2hi u0s/Z74GdA4XNxwHQZLhWHUZ4H9T+5cwShcznOgfwNf/CfTsaY4OHxfTPU+9NN14b9Rw JkXoaaKhUzcVawuIXM4PZQxE3B0hdy7dHqTJBNx22uXuEg2Y5cBg7GNSBm+8P+ORi0kT kLPcqE0bgPdDP9FQU52PEqJADfSnN2mikxZs1j4dLQDjHUuBr8wVl+GoP4+QRsHhSq0t J1p3hQ79e1nLwP3UUAk3tjUPHWhUtNHLgGocMcMW2cXpv3dDzQUhXBnDkjmpcRjVgI2g MYzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EEjgCRzI; 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 e18-20020a17090658d200b00726b8cf8defsi16825432ejs.949.2022.07.05.10.04.07; Tue, 05 Jul 2022 10:04:35 -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=EEjgCRzI; 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 S230313AbiGEQD3 (ORCPT + 99 others); Tue, 5 Jul 2022 12:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbiGEQDX (ORCPT ); Tue, 5 Jul 2022 12:03:23 -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 4803F100A for ; Tue, 5 Jul 2022 09:03:22 -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 EDBAE6601638; Tue, 5 Jul 2022 17:03:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657037000; bh=PuRJwgghVrWRSi/gz8l232C34f7rDIf/ZjkluxP+eIg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EEjgCRzIRvo/SASMqeO8WsKm+7F5oUsdSCkNRG4IVKyViQojd/IVCpa3j+mgQwjFy +nVxTkIJN0x5pF2HDziGELT5nZnQMTa0tn4Kw1tGzc3Q5RsdPO6W3Hdbuf6NmGM2Zs G4M8sky9c1kPnwfzELGHUss/BFz/cn4Jx99+y/SuK7z5m7a6SNAtK/o1t+n/7Z3+Ah 2Jt55TVfcCFZZ9Ixn9FkQ/9gco+pQl6g+oppgXtjsv9jcgX/cD4BhlsBxWwCeucd3u MJmGTWvrVXSKZTWfICAFNzNn0nd5TzSE2WAK6H9n7LGJdOtgDeI9IQTWl1BhBxtEmp H601x76Bo6RJQ== Date: Tue, 5 Jul 2022 17:03:16 +0100 From: Emil Velikov To: Gerd Hoffmann Cc: Dmitry Osipenko , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220705154507.67ovlun4m26xzppn@sirius.home.kraxel.org> 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, 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 ... > As the last person who was there - the problem is indeed when using virtio on top of mmio. If that's no longer supported by the kernel then the hacky code-path can be dropped. Even in that case, I would suggest keeping it a separate commit. HTH Emil