Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp309577rdb; Thu, 30 Nov 2023 05:35:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdcvtqzOmZVCE2QUNGUayzgSYlmKx62HyQnrhaK1U2P8sycsbtGAZ+m/55UTwnUk1qpfuu X-Received: by 2002:a05:6e02:ec2:b0:35d:2419:8741 with SMTP id i2-20020a056e020ec200b0035d24198741mr7414580ilk.25.1701351325751; Thu, 30 Nov 2023 05:35:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701351325; cv=pass; d=google.com; s=arc-20160816; b=w80tLgQ5mcwW37kgOVBPgyR98UTgxqBUXV20Hua9MedjZXDFnqt7klL37E4G07KvFa VG4Cm94I8XpZdRaHLHp4i1KHXtLRdz6a8UIXUKuHdUb1gMAPQ7nh17XeoWfQEUO0ruwi NHswBslU1Ag6ZfRM+VyvDjoOLDybSDmgbF9KT2iy4pIHze9/kSlH4yRtCKuGq+X7IJ04 a8F1o0tdESGT/4fwd6lH8OwAPz1vn/39YgAmn4rMAbUSG3GF1ot8WUjjZfbd36d3Rr8y 9slizJ7zM/+PyY5wATzSf6HVKUQsJF3rPzUeF59vwU9AX8RlAtLTW+3/tGEHXtMQo7iF zn2Q== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature; bh=p56uFgR+2L+joFqVsz4BnJljMfmRwlsgQch0B8qQcmg=; fh=TEGm+S4fc1le33RPpbxdzEUecGh5iJ+3geunn+9y/xk=; b=HdpZA4E5uLMlVbJK5gi2BFWOKECBLAa+Hb4WInAMXNjhQxYuPj0rrtBRY7xEGMuDDS WV9AodZLl6vqZZc4NhOoKnrAEXArcOo5UL8uW/RhRrOODdNATyn8BhoiS3mIKR8hVtXD CYN9IDcDFvJW6KnJgMQJDWZLfIi/1CsfPlZ+M/wtgHXEA8BhLTQ5SpHPbBDG6+vmGLSz B9iJ/amTINFjSysln2ndptGVTUN4xEbCUR2d04bSi8xsHJobIsCMg4N6ilPurvgxTpTx Wi2fQU1S6O4t05BlEv+diXpgObbinJjy1q5jABKebLRdTQwJkG0TFxSbZHskNx9Rhrlc yQsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=dLAAAh8H; dkim=neutral (no key) header.i=@xenosoft.de header.b="k/xUVoLQ"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id h63-20020a636c42000000b005c624c6c8c0si1261788pgc.536.2023.11.30.05.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 05:35:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=dLAAAh8H; dkim=neutral (no key) header.i=@xenosoft.de header.b="k/xUVoLQ"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id C769B804A739; Sat, 25 Nov 2023 04:39:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231960AbjKYMiw (ORCPT + 99 others); Sat, 25 Nov 2023 07:38:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKYMiv (ORCPT ); Sat, 25 Nov 2023 07:38:51 -0500 X-Greylist: delayed 172 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 25 Nov 2023 04:38:57 PST Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [81.169.146.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C27BE8E for ; Sat, 25 Nov 2023 04:38:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700915755; cv=none; d=strato.com; s=strato-dkim-0002; b=SFKxXYcw0DY3Pria634pawBeRWKRRXxfi3Y+vZy3WNv45FpWK/MWewg+Q9uDwBgqzI /enXQtyu8P0uCilVQzhbepudj37ZOQqPVn4cO1RFUpLOCKBnO1zvmQejji715ys188zj AjVvUpMyLetKI4UTsvbfe/i5IhLivgg44eJ674X2trdM8yjSHYYeoaBbZ4JxltAyqwKN r+erA/DaoJU1phKMA7mPq5RTonRAsnyHYtbte+vU+bpUqgfEPye1b7oMqioGbMC8ywii SRId6NU0uC0/5ZcBHzZ7eC0ZvWya/G8vErIwBg5aFCLZ3WUiMkvDkHdAVq7nN//76cet +IEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1700915755; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Cc:To:From:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=p56uFgR+2L+joFqVsz4BnJljMfmRwlsgQch0B8qQcmg=; b=eFC0fcFKW3P+unvRT3QqxSRGvpZ9SH9UOuwCV+Rc6Va4K9TWHT20eVhsawLbSlIpbg hBl06jmhofsu3QD+zymhTfFk5BCj2v5yoN8COAmOMHILpObKwO6wpJX6Oi84LBxFiv4E 91PHUaCKTdb69jrcuNI5M1DWfdQlDMqMezqT3NAfDH6iObt2ucLfwxDDlhvNwC5SUPOI ZaO79AQoYxorZMyW4umhQXXlGKDlrMRcL4p9gm0oRo3j0zI1rHX7V+eev/HEASrWF/2T 0RqNQmiFPoxEG4xIKHiNMUCpwz1sK84/6Kie651p5gNJr5yzvypj8icmhQcQ4u0l++hr AUHg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1700915755; s=strato-dkim-0002; d=xenosoft.de; h=In-Reply-To:References:Cc:To:From:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=p56uFgR+2L+joFqVsz4BnJljMfmRwlsgQch0B8qQcmg=; b=dLAAAh8H4MwhFrYhPbikzmad1Zr2xapLpe8gQGIyVsZ2Arj6oelgy6usS7zAe05GZN q3HQNoQz4rkHUlz4EmW6Fi7VfzTLxqpdQ4LFXgnZ7CqaTVhNv2d6Ph22UaAYyy6PHxkQ A4AN9TrM5CmVA/Gk0xG2zPqmTKCJJDm9C2oAkUNJuL/KzARBwAiCpwRNbZzY+YT36TbQ IDqJj95yYaFVoz1nImVmbBZR0hFt5qY3N1BDtxjrZZweP+HU6NSO/KakLn0WRJ/I1Dd3 FrtMN2b4VQ8x7cvU7SjvPh4cI3J1wAEZxPVps2bA3pk1hFJt+becOQHIytMRrxyDdIi3 JTNQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1700915755; s=strato-dkim-0003; d=xenosoft.de; h=In-Reply-To:References:Cc:To:From:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=p56uFgR+2L+joFqVsz4BnJljMfmRwlsgQch0B8qQcmg=; b=k/xUVoLQGPkzgFFsbDRKOt43eEzMiKXYPTVTsswpE0W9NOsGK5/u1O1OaIFSJBcsdH iNvaDZ/6UeVxT6krLgCg== X-RZG-AUTH: ":L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySfLxnHfJ+Dkjp5DdBfi4XXBswJY0hynIKqjaeYiGT1rE/QhtjOKJAIg==" Received: from [IPV6:2a02:8109:8984:5d00:bc44:680c:952a:1673] by smtp.strato.de (RZmta 49.9.1 AUTH) with ESMTPSA id U060a4zAPCZsnsU (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sat, 25 Nov 2023 13:35:54 +0100 (CET) Message-ID: <1bd6d2c8-007b-46f7-85b4-9793ec650f94@xenosoft.de> Date: Sat, 25 Nov 2023 13:35:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] drm/virtio: Add suppport for non-native buffer formats Content-Language: de-DE From: Christian Zigotzky To: John Paul Adrian Glaubitz , Geert Uytterhoeven Cc: Gerd Hoffmann , 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 , Christian Zigotzky References: <47a81d2e0e47b1715718779b6978a8b595cc7c5d.1700140609.git.geert@linux-m68k.org> <77c6gkquzq4sdtmrlko3lkxvcnipm2zfjem3kvhgslcellkefh@man7pbbzud47> <37b9e5ab-e170-4071-a912-f3fec0d59d5c@xenosoft.de> <9e8d2abd-94a1-4fb6-b30a-c6e4c52af011@xenosoft.de> In-Reply-To: <9e8d2abd-94a1-4fb6-b30a-c6e4c52af011@xenosoft.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 agentk.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 (agentk.vger.email [0.0.0.0]); Sat, 25 Nov 2023 04:39:07 -0800 (PST) On 25 November 2023 at 01:22 pm, Christian Zigotzky wrote: > On 25 November 2023 at 12:09 pm, John Paul Adrian Glaubitz wrote: >> On Sat, 2023-11-25 at 11:06 +0100, Christian Zigotzky wrote: >>> Could you please revert the v2 patch because of the issue with the >>> virtio-mouse-pci cursor? I will try to use the v1 patch for the RC3 of >>> kernel 6.7. >> I don't understand why the v2 patch should yield any different >> results as >> the only change compared to v1 is the fixed patch subject. There are no >> functional differences, I just diffed the patches against each other: >> >> --- geert-patch-v1.patch        2023-11-25 12:09:19.122936658 +0100 >> +++ geert-patch-v2.patch        2023-11-25 12:09:36.313039085 +0100 >> @@ -34,6 +34,9 @@ >>   Suggested-by: Gerd Hoffmann >>   Signed-off-by: Geert Uytterhoeven >>   --- >> +v2: >> +  - Fix truncated one-line summary. >> +--- >>    drivers/gpu/drm/virtio/virtgpu_display.c | 11 +++++++++-- >>    drivers/gpu/drm/virtio/virtgpu_plane.c   |  6 ++++-- >>    2 files changed, 13 insertions(+), 4 deletions(-) >> >> Adrian >> > Hi Adrian, > > Thank you for the hint. I think you are right. I use the following patch. > > --- a/drivers/gpu/drm/drm_client.c    2023-11-13 01:19:07.000000000 +0100 > +++ b/drivers/gpu/drm/drm_client.c    2023-11-14 09:45:44.964199272 +0100 > @@ -400,6 +400,16 @@ static int drm_client_buffer_addfb(struc > >      fb_req.width = width; >      fb_req.height = height; > +           if > (client->dev->mode_config.quirk_addfb_prefer_host_byte_order) { > +               if (format == DRM_FORMAT_XRGB8888) > +                       format = DRM_FORMAT_HOST_XRGB8888; > +               if (format == DRM_FORMAT_ARGB8888) > +                       format = DRM_FORMAT_HOST_ARGB8888; > +               if (format == DRM_FORMAT_RGB565) > +                       format = DRM_FORMAT_HOST_RGB565; > +               if (format == DRM_FORMAT_XRGB1555) > +                       format = DRM_FORMAT_HOST_XRGB1555; > +        } >      fb_req.pixel_format = format; >      fb_req.handles[0] = handle; >      fb_req.pitches[0] = buffer->pitch; > > This patch solved the issue. > > Christian This was the first solution and it works without any problems. Christian