Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp276327rdb; Thu, 30 Nov 2023 04:45:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtDqKyfFN5T+6dQ+GFYG6Ycm/c+bRyqNjQPa9rgg2UpiVc2RybHZ/Yo1tjSx1k+qx/o2Gn X-Received: by 2002:a17:902:e5c8:b0:1cf:e012:9fc9 with SMTP id u8-20020a170902e5c800b001cfe0129fc9mr13396777plf.0.1701348341504; Thu, 30 Nov 2023 04:45:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701348341; cv=pass; d=google.com; s=arc-20160816; b=j44fZLAQGeuSjrHiK58qTpqE7869kMH4oQyGbJp/Ibsb1pGL579PeI0sd8h7lfz5Tg 8LQO8wdiHfpVNrJMFHn134ccW9rUAxuDZYn2IQMtfSMVgS+YpUhyCHMQIlW1Balztody fvswXRbHArf6LBnAGpNjLH0auc2L3hk4b3J4cMeptGbYAaGaCQXGmL/fbBkR2cC1VSaf V24jPqepwzmDTkkmWiu95NZHqILW9LaXZVKF8QnwY/dDmevg4852O3kfE6IXHocn2hTJ zwaWG0D8001WQCRZIB4NUdhcbxOmgw5VNizAqjWxF9NitJ2DVNPvLPgV6QUlEn0QVQ7n Cm4Q== 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=3fZtsTQSV8kT7cZkiE/joYbwN8JR/QKtTngzzR42yPo=; fh=TEGm+S4fc1le33RPpbxdzEUecGh5iJ+3geunn+9y/xk=; b=BcgZg4tdzmzMKGHHSQTtk56lS4MxfRi6+GWCZUphaDpa7EGBcBttsQhEltw1nc4nA/ rQGyqBdrr3p59T4b1sObw78mlmA21EQulN3NMPGZLTJEuqu8uwsK8gtrlob3ZD6SWokO yly7V2YBZZK5Ir73OzXDAs5jyAvvI+/kV5AmX5s69Wo7B+wIMF8cIzCfldddA7c8qw0w D6RsBofDQcNlufBrmzXR2dBJB7Ur5TszBiPWBWpIFzIJMevk9dLvwDUL3rlkX4oF7sX2 bRLkvUZ5Z4rUXY6+nTptdlJaEidHDHu8+kUmfJau2LYNQQcuuy2OB+Ge0r+R7emkHJaG /e0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=Muw2Qz4K; dkim=neutral (no key) header.i=@xenosoft.de header.b=DJFBJkKy; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j3-20020a170902da8300b001cfa8f0e365si1166875plx.305.2023.11.30.04.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 04:45:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=Muw2Qz4K; dkim=neutral (no key) header.i=@xenosoft.de header.b=DJFBJkKy; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id AB4C8805AC28; Sat, 25 Nov 2023 04:25:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231992AbjKYMZR (ORCPT + 99 others); Sat, 25 Nov 2023 07:25:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231838AbjKYMZQ (ORCPT ); Sat, 25 Nov 2023 07:25:16 -0500 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F1ECBF for ; Sat, 25 Nov 2023 04:25:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700914934; cv=none; d=strato.com; s=strato-dkim-0002; b=GQL7ywTel+nzsRDFW4JHygI05M178NNaqHk0W/JKtg5aViV7PwIsfwR9qp5YO9r+lv oJqEGnEJ85+ZfZ5OVB5dIR9GbAxr1LbmDTRFXNFFrAeZ6ivASOlqLE8aIEi4nIM7VRQx bnoOzQMsqtFaluOaQrRPrswJ0igQo7Suhbprs3imppstPdtIlJMdoDIpr2RYZYtQ8PE4 2C+vhAEgzXwcchjwtLIbvM89jYHikCrNZItDKsiMl0DKYyVonM9KE8DJ4+zqRgEL5Rp+ 2kwg3Rqk+zf1AOUWKyMAgU2m04NCd7i800+D5DJ7CzqZMoJEGcv2NU8GrkglCQYLfpbQ KR7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1700914934; 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=3fZtsTQSV8kT7cZkiE/joYbwN8JR/QKtTngzzR42yPo=; b=MHEBAZHKXrtkbGgi6MVBMJ8J8bERYJZ67qs5+LeWHPdoxEJjOUxVGWKf8YrRsDXvk/ 8T04yM++QDq99/4DklF8RrjvStkHxN8NCnuxbcNa6kbQbH+cvnjDoPvGjZtfjepgLIVl 56l5sztJEq22QfgnuOyhES5JuBtMWgVXro6fMm6mYbC+A1lZ+PAK4qdoSw9VKoZYaNLY tpJZhTdSYpaT7xLi4kweWSOgCOlg5XwldPN1AtwyWyRx+sVrC/FpMW26srlYTAKz8QUi 1750dCR8HbC8Y5XGx6+Sz7XmE/TQB4ToF2HmSZkiXajzWzHWdoYqRz+wt6YDtBsqJ7rM YASA== 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=1700914934; 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=3fZtsTQSV8kT7cZkiE/joYbwN8JR/QKtTngzzR42yPo=; b=Muw2Qz4KzH03Vmzw+LfQB0IxkjgCNpx1aIYqekfuu/ocix4a8OxAQIJLXL4ddCpv+X WXEIDCNBnCLYQINX+PsFbi07EgQdLZpG0F1VZzbytqgne7Zrq4TKnCRXmOYKlDQu2mti b/LE7j4VB4//dpnsTh58mH+AYVFq2LxRW8eog6HjorMMmfIEZcEONedLGgGmZDDfvjHE MNyPufhkm0o87ZcQ8jy2K9MsDdaUZyf6fwEY/pB9jJhR31Pv3kHiHizK4B3V02K0ddsk eIz43cyJL/0QPgmMYSxA9ua6+5W6pmZyLOTegobOXLxwbBlVtXI9EyBRAfJAG0hA0PUK 1Zsg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1700914934; 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=3fZtsTQSV8kT7cZkiE/joYbwN8JR/QKtTngzzR42yPo=; b=DJFBJkKy1eS1IXVkgAlbM8B2kyxFO7ebFGSWVjrxTaeASXFFWeWgxpbn6/DSyrvxlI ZYzZIbo9bwbrX/riJTAA== 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 U060a4zAPCMDnqZ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sat, 25 Nov 2023 13:22:13 +0100 (CET) Message-ID: <9e8d2abd-94a1-4fb6-b30a-c6e4c52af011@xenosoft.de> Date: Sat, 25 Nov 2023 13:22:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] drm/virtio: Add suppport for non-native buffer formats 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> Content-Language: de-DE From: Christian Zigotzky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, 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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sat, 25 Nov 2023 04:25:33 -0800 (PST) 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 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