Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp622796rdf; Tue, 21 Nov 2023 11:25:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4epWJI38j263EWAXCVmIDP7Qmh91mWAU2p6U2ivryYrDgIVtaO4pDtt8jbrcqiqGRzs3/ X-Received: by 2002:a17:902:700b:b0:1cf:7683:93e with SMTP id y11-20020a170902700b00b001cf7683093emr141517plk.24.1700594752196; Tue, 21 Nov 2023 11:25:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700594752; cv=pass; d=google.com; s=arc-20160816; b=huUr/s3zbPNg0/88CSvYbwrIhFdKJygz+ocdFN+ZNW/c93Bxe97oVrKShZ2fes8hpW 2yaUzcH7iZJ6e/OE7JlgEbxlUNmMv1ChVeFsVHS11uXu6ClgByGB9GhgpwUkUyfAoohu QkBL85HPUGrgdJvM6M0W5pK9UjdGNLe6vv2xXyjRcaTFk4yHSP/+quuK080hwfAS6WlR oM8YFb3zY1KkCx/x6lxYBSPOVlPbf4Y+n3oXkQ+IGD2AV1IG1gHeepBK0wHL93bKVuJj Sru9E4YHUOjh4WumzD85BmPoCY6Heul654uqmq25ByKWPbifx94ZeL2TwCwOzPAopHDa OaZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=9e4OV8vET8pL9QsaX1Uk5dAJCWcAgTeKF08zFu/UPPs=; fh=huC1SrQfYZUNqo/BHAaKZCcR7eh2gfx5mJo0ScdYLIs=; b=OErdCMGYkBAWm8IXeScUgVrL2pws7T5SNFaHDTB78DNaeBS4KMij6SXxIuLirFDGJb W65ozYYTy3BH+QuezppIjiws3mCc28IHxKUdsRWI6oO0UM7lhSrt3QToJEsCiJXoj5C4 6KYTHoqj7+Krftj/0T+fQjvHTC6sGyerIYDL9VIwDo8z9+GWcbXczeOD0r4gWtXL3DuE 29RnyVFt1C/x1zn//HAc/ypUObL4NeKKfZWTbZbAElsRcry4Y6LzZCHCAx9+v+S5lKpI BQPhUSp39Udn60KzPgN2TrKPb/HQNEW/fLkQoc5iPwDw6ddpxa4JB59jcSQTwvBxbRRj /WHw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=Bquf3SmP; dkim=neutral (no key) header.i=@xenosoft.de header.s=strato-dkim-0003 header.b="EkaLml/k"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id c1-20020a170902aa4100b001c58401354dsi10324580plr.565.2023.11.21.11.25.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 11:25:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=Bquf3SmP; dkim=neutral (no key) header.i=@xenosoft.de header.s=strato-dkim-0003 header.b="EkaLml/k"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6E93B805D5C4; Sun, 19 Nov 2023 08:31:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231404AbjKSQa7 (ORCPT + 99 others); Sun, 19 Nov 2023 11:30:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjKSQa6 (ORCPT ); Sun, 19 Nov 2023 11:30:58 -0500 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10C3CC4 for ; Sun, 19 Nov 2023 08:30:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700411270; cv=none; d=strato.com; s=strato-dkim-0002; b=g62MVC0Jh8G1BA0V1hTxRJIfCqe6NF2qwyQNpL8i4i+tooxcNWk8mUGkJOh/c3PjZy 4Km5tQtCf4AIo424lfXMOs1tIA4K/qtrFEyBClfxITI+LUCPMFAWhHGiIOzEvPDLFwGV QDK5H3HlbgVETp0uQA2ltVkOMtiRXRm7+10bWCQY+Xd5CU2XYkUsSnJbZZe5mFtzIh65 SCy7HVPS0AQTwxKY86OR7y5rDeJDv4L7UevvWBkhutabZmZm2tktEWr0P3ZjgXuVsnv0 MImGQE5IfxIOLeDL+T1TGNbtUwlXo5AxVzVRjoENfEVP2hWXBfUluIvHmCwkwhRcXp5m pXug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1700411270; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:Cc:To:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=9e4OV8vET8pL9QsaX1Uk5dAJCWcAgTeKF08zFu/UPPs=; b=SmssSD3qyt+U8SqvsBxCiOERW3xIYN3rmhcBJtRs+pJChutfgxFiLPnKt965GANSM/ makhgdzERRZT/65rnAenMOOA6K1Rqyf28wUrXdHN7C63+VNJxuegreG2WjCBow1kW/6A Hnps7KFtey0xOZpqHbDpI7da3uskzNXM3sthNTXO2V/9RmF/xXBNB29Bsu9fi+8pMYzK 6eKVq6HEKnepfsfToSUXEjwl8O3Ehta+UT4hsWMaILTxhUGaoolK5SwLXqMwYJyJ+jcl wsw20wUrL5VzGdHJa4VX6arc/Ml3OnVhqbzFgWE+o0apQhACwOiHaPHfeDvgtM4UMcQq UZOg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1700411270; s=strato-dkim-0002; d=xenosoft.de; h=In-Reply-To:From:References:Cc:To:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=9e4OV8vET8pL9QsaX1Uk5dAJCWcAgTeKF08zFu/UPPs=; b=Bquf3SmPxr/ttZ0ohplg27BU4Z7CbGGun/gKLUFpwknb56kYWrMexjRojrdkU/dFKR /uq+exvwYOkWNiLEmvZ/Yc/rtjLRA4nO1A5w1VeUX8pz89BxAMf7XgYZsljzYbj+uccc ey0drsHqJxjFS9qDRl7IwNJPUdsG+g2t/GCbgfQvAUCtkTsbQevdSc3Cfqt7MzreonyR xMdK4OFBj+S5DpAaNaSH0ChdmjWzTbNuTrloZPjSmY0tOph1c9WaXaam0dTy9K0LV7ZC EGOezxd3LJtCeivvwD3m0B1SAoR1ajr3qV4sWy/G3HFBy4CI4dRrMEWyQ7dmiBe0rERp PuUA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1700411270; s=strato-dkim-0003; d=xenosoft.de; h=In-Reply-To:From:References:Cc:To:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=9e4OV8vET8pL9QsaX1Uk5dAJCWcAgTeKF08zFu/UPPs=; b=EkaLml/k47CnYEjiCbwowCEzN/4nbm59WGkAhlmcIeQIJ+WBkurIyGfEQorvxTeK2V 5TONuypzksKAoLGB7mBg== X-RZG-AUTH: ":L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySfLxnHfJ+Dkjp5DdBfi4XXBswJY0gmAktx3ttlYVUFI0ea++ZcGg82g==" Received: from [IPV6:2a02:8109:8984:5d00:c1eb:ec37:8228:567a] by smtp.strato.de (RZmta 49.9.1 AUTH) with ESMTPSA id U060a4zAJGRnJIM (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 19 Nov 2023 17:27:49 +0100 (CET) Message-ID: Date: Sun, 19 Nov 2023 17:27:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] drm/virtio: Add suppport for non-native buffer formats To: Gerd Hoffmann , Geert Uytterhoeven Cc: David Airlie , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Thomas Zimmermann , Laurent Vivier , Javier Martinez Canillas , Hamza Mahfooz , linux-m68k@lists.linux-m68k.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, "R.T.Dickinson" , mad skateman , Darren Stevens , Christian Zigotzky References: <47a81d2e0e47b1715718779b6978a8b595cc7c5d.1700140609.git.geert@linux-m68k.org> <77c6gkquzq4sdtmrlko3lkxvcnipm2zfjem3kvhgslcellkefh@man7pbbzud47> Content-Language: de-DE From: Christian Zigotzky In-Reply-To: <77c6gkquzq4sdtmrlko3lkxvcnipm2zfjem3kvhgslcellkefh@man7pbbzud47> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 19 Nov 2023 08:31:24 -0800 (PST) On 16 November 2023 at 03:44 pm, Gerd Hoffmann wrote: > On Thu, Nov 16, 2023 at 02:16:54PM +0100, Geert Uytterhoeven wrote: >> When using virtgpu on a big-endian machine, e.g. powerpc QEMU: >> >> virtio-pci 0000:00:02.0: [drm] *ERROR* fbdev: Failed to setup generic emulation (ret=-2) >> >> or m68k/virt: >> >> virtio-mmio virtio-mmio.125: [drm] *ERROR* fbdev: Failed to setup generic emulation (ret=-2) >> >> and the graphical display fails to come up. >> >> Before, the call to drm_mode_addfb() caused a translation from a fourcc >> format (XR24) to a bpp/depth pair (32/24) to a potentially different fourcc >> format (BX24 on big-endian), due to the quirk processing in >> drm_driver_legacy_fb_format(). After, the original fourcc format (XR24) >> is passed unmodified. >> >> However, the virtgpu DRM driver supports only a single format for its >> main plane: DRM_FORMAT_HOST_XRGB8888, which is XR24 on little-endian, >> and BX24 on big-endian. I.e. on big-endian, virtgpu does not support >> XR24, which is the default DRM format, and must be supported by all >> drivers. Before, this was reported, but didn't lead to a failure: >> >> virtio-mmio virtio-mmio.125: [drm] bpp/depth value of 32/24 not supported >> virtio-mmio virtio-mmio.125: [drm] No compatible format found >> >> As the core virtgpu driver and device support both XR24 and BX24 on both >> little-endian and big-endian just fine, fix this extending the list of >> supported formats for main plane and cursor plane to XR24/BX24 resp. >> AR24/BA24. >> >> Fixes: 6ae2ff23aa43a0c4 ("drm/client: Convert drm_client_buffer_addfb() to drm_mode_addfb2()") >> Reported-by: Christian Zigotzky >> Closes: https://lore.kernel.org/r/c47fba21-3ae9-4021-9f4a-09c2670ebdbc@xenosoft.de >> Suggested-by: Gerd Hoffmann >> Signed-off-by: Geert Uytterhoeven > Reviewed-by: Gerd Hoffmann > Hi All, The new patch works but I don't see the virtio-mouse-pci pointer anymore. I see the pointer with -device usb-tablet. Please check the second patch. I will use the first patch for the RC2 of kernel 6.7. Thanks, Christian