Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2251813rdb; Fri, 8 Dec 2023 02:53:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFD2VWCWs8GsYqid5drEODOr8Ec9MzOI5eNTpNe++cdvamsf9arQmmqeGa8TPzBPOfXreks X-Received: by 2002:a05:6870:1c9:b0:1fb:75a:c43d with SMTP id n9-20020a05687001c900b001fb075ac43dmr4222404oad.102.1702032803572; Fri, 08 Dec 2023 02:53:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702032803; cv=pass; d=google.com; s=arc-20160816; b=g1iQE1bPTu6SpXJKTkJKG2O/e0Lbm4omgYQpCTp4gpJo/gd4hcfIZYb4qjrhro2x92 Q8IXuTMSRIABuLZwma9LGY4h6O6vZr217E9tMDnEnHUw7wJy8ikwyYH3ng7o3GoMFi7Q mLH9K9wWwgJonhfPAxsECpKAGOZiu/X/fwenFyjm0ZeaVVwZCbzAe+ewulsIRIoTUrH1 4mz/QwrdgymBMJRFnOAnt7W1uORRiHjsbNs+x/8ztqw7zFZcxgCuD1oJSUnTNBdObnI7 ojZ+F8Vj8azKsDs9heEDjByIrBDsFkpSvyy3WFh7kuNcmUDnfGWoCUm4sBc2E0q6Cnik 8p3w== 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=lH6SBnQ4xrHrGQeEHvJ5u/3KSpQHUvvzwrmVeb1tOZ8=; fh=i4GZlcAaHsF4VHyO7JHzxHDr4s6U7Qx1CuKdOgxnbSo=; b=IHEkRb15pJPd/emSd0SgHllfT7nVpXsihVeq08WrGRTjEFwik2OkPsQ5GBZbUgEWAL LLLF1tttUzsy91mc2TnBP/0GWWBNR5LBDehl1F4w15Qf3xlG/38YY/722XLmjybxwrnQ C5dIgq0IuyIMM6Q0FcehRSXrx8lxCqjN6RDcgtdsrB5w6RloV+axc95yBAy7BeD8ndsf k+Lixkue8m8XTHBbZMRGyw5CEP+/RZdcrMWfa2xs6tZ4RDa4gNEGYj0L1wt29Dq0hREO IJEqn3k2jLwR39irmOjtr9MIBlXrUvNN6Fwi+OoDg3hkQaYmTeCz/hTNCFwJ/5KW6iaB sGZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xenosoft.de header.s=strato-dkim-0002 header.b=GkrttZnE; dkim=neutral (no key) header.i=@xenosoft.de; 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 bq5-20020a056a02044500b005c5e2331ba9si1398150pgb.324.2023.12.08.02.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 02:53:23 -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=GkrttZnE; dkim=neutral (no key) header.i=@xenosoft.de; 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 B57A380F7E5D; Fri, 8 Dec 2023 02:53:20 -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 S1573469AbjLHKw7 (ORCPT + 99 others); Fri, 8 Dec 2023 05:52:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232374AbjLHKw5 (ORCPT ); Fri, 8 Dec 2023 05:52:57 -0500 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D6761727 for ; Fri, 8 Dec 2023 02:53:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702032755; cv=none; d=strato.com; s=strato-dkim-0002; b=K+RBCHuRflsPVn2/sFv8O7Ts1H6JYHaf60UFExvqzKo4CkV5UQlFwk4IEiRwy69q7z diEpKKKEEdywfjqWRvwpZypGGJ3rWz73aMzwAm8bXPMdNhr+KldbHUwLB0X9aiGpgl6+ KknMSRYKYNBaSaMMdSRIyo19xThISEWvSgBtMvnifFnB0jxatwCjJH62Ezedfuew2HZg /OLZwOGP6+0/LEdF/kZLmanzPt71JjzYH1oSTmor5xe54151DfubQXqCfbZQWRAxPDB6 wKyum123P17KVW1w07ApPMqE0F010l3QMfQnwHIX4FoJsTWdg15oHw7OhyT7ueh6MQNM A/bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1702032755; 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=lH6SBnQ4xrHrGQeEHvJ5u/3KSpQHUvvzwrmVeb1tOZ8=; b=O4/4aM+60FaeIWXXxmakbYiOk80wIKjx56pYnOf+NKQ4L1JCqqpi3HXN3gRFkFsli1 CQv5pHVOAcWacmeQe71w3NubCvHGEHp925oGoYUYIc+A5cPvC/csxDt3JggeOMkI9BxY uoanoEYAhXqxUbQOVWHgDWH1fLSAwRFjQxTYkl6i0NLqUwi5ej59bFJqCnVU9f9AB310 qR/tXrra/mCaZQeKh4OUXoXBWXpgH4f00ul6y37jfRcDBmoHYVcTsHMgQwT/p8Fh4+Er iYU2TpDs72oou22WG0XjTO58NSd4/M1D93Uv5NAjzKwu9TsMOwZA++gZNqdVjcnt3u6U aRrw== 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=1702032755; 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=lH6SBnQ4xrHrGQeEHvJ5u/3KSpQHUvvzwrmVeb1tOZ8=; b=GkrttZnEEmTljMGki6GULywxWeVKDPJwje9aehBTYDsAEq4Hu0hYKF5J3dN5/AYSp2 b4RPLuV9GhYuXTOeSbyA/pazNWIAp6uEQ0WSGue7QPNwRfeZsCrvsVbDjbZyXoNB2wQ0 X6MDP7cP1yOp1VlbXYSF8IQPOv1C/3zo4AnsPV3Dy026MCKm9dR3VSld2lMVmg8dwylS e9XGs7cBYLEKAg4z5hmcTAeZs+JBgnuGka+4qtOMsXaGRjRP44lAdPjVJ+9zlL06UFng wrKrrglfgSuzj0kH7y4o3CqYT9Pe5tFVqf79HyDXKz9nkq/IKJ4MGFiBfkHfJxPCq7ch YeSw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1702032755; 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=lH6SBnQ4xrHrGQeEHvJ5u/3KSpQHUvvzwrmVeb1tOZ8=; b=2pkYr6gv/7SxhRY1a7hLYS44BHKDz8fXWRQNd5qrSfeBu7hQ6fLVYtEIymFXoEkcRa KY2NZQYH8sZ84JlOZcCQ== X-RZG-AUTH: ":L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySfLxnHfJ+Dkjp5DdBfi4XXBswJY0lkTEDrUFf1HwyMiKmo0Cv1RTUCg==" Received: from [IPV6:2a02:8109:8984:5d00:f8bc:fe1b:3f93:a193] by smtp.strato.de (RZmta 49.10.0 AUTH) with ESMTPSA id 626c0czB8AqYIml (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 8 Dec 2023 11:52:34 +0100 (CET) Message-ID: <1dca4a2e-5bde-4825-8e8a-4b4ac8dd958e@xenosoft.de> Date: Fri, 8 Dec 2023 11:52:34 +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: 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, Geert Uytterhoeven Cc: "R.T.Dickinson" , mad skateman , Christian Zigotzky , John Paul Adrian Glaubitz References: <47a81d2e0e47b1715718779b6978a8b595cc7c5d.1700140609.git.geert@linux-m68k.org> <77c6gkquzq4sdtmrlko3lkxvcnipm2zfjem3kvhgslcellkefh@man7pbbzud47> <37b9e5ab-e170-4071-a912-f3fec0d59d5c@xenosoft.de> <9e8d2abd-94a1-4fb6-b30a-c6e4c52af011@xenosoft.de> <1bd6d2c8-007b-46f7-85b4-9793ec650f94@xenosoft.de> In-Reply-To: <1bd6d2c8-007b-46f7-85b4-9793ec650f94@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]); Fri, 08 Dec 2023 02:53:20 -0800 (PST) On 25 November 2023 at 01:35 pm, Christian Zigotzky wrote: > 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 Hi All, The issue with the virtio-mouse-pci cursor still exists. I still use the patch for "a/drivers/gpu/drm/drm_client.c". Is there any news regarding a solution? Thanks, Christian