Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2673139pxb; Tue, 23 Feb 2021 12:36:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxr5tgwvfChVNklIDwpOCHTl6HhApxgRtfq5wrJjgiw8mdAF0THeHFfDcxi4ZWOBJBzuT2/ X-Received: by 2002:a17:907:7608:: with SMTP id jx8mr11299320ejc.99.1614112602089; Tue, 23 Feb 2021 12:36:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614112602; cv=none; d=google.com; s=arc-20160816; b=PA4WnE05F3aE5F4pfCeQ2voZL+qYqZLO6lRYQcXoXx4yaiWw8DUVcs30iGO3V/MPMB eM/RXrx3wunpe0DEkrVLB4IF4u8qiECvogUUeN4S7+wDQTWOG1qLkiHIJ3xxc3nydMro 7Nra3YoeojgjDRDyGP7EoERlhx5yts+iLxUlVEN8yLHfrGrrVwhKjserwE3CrfS/7vIq 3fHxzUKUfCUSJ8ZEDqSxP7qmd43/p0kWk/wzM0gMCuNMyDLewa3++Q19QALdVejQvl7a wYdxAGqmyCtNbch27FYL1vyTORrlIblFvtIliQfBn8tT8HOLFEkOojVV+BXv5cFCSRi5 H5/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=NBD19TtNuqKmtZTJ8bFpz+xLfryH6M8evU2W8orJimw=; b=NoD2dnRGd/sKVHapo9vaNd9Ppps9WhDzSokcf2NAz/i0zZuK7zuNCfeUcZfhWEegia 7b/0aieV2Mw8o/TCYI7kDUtkDMxkkPQTSPwk2TvD8ePzfFpRS8NxyztI/VDc03sut0yJ iSWiVJK4Gv21a4IG/hXwOn+WY60rw3S6OqSis4t3TuGXFdeYbOpOdg6/Pu1r0GLlCSP4 Zurrd9UtoeBdy8SfuTiK5BhMDz4cqi/FXmY+MQNDUsKEtRKpncB5RMMzHbZ274gkgdgb fButX2aXBPezMFwPH1rGSG/DP/oqpxwMQGNzkSIHBYf3PHLm0smtg5Luohl7tHTsefwP h88A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr1si15509649ejc.438.2021.02.23.12.36.18; Tue, 23 Feb 2021 12:36:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233745AbhBWSPI (ORCPT + 99 others); Tue, 23 Feb 2021 13:15:08 -0500 Received: from mail-il1-f169.google.com ([209.85.166.169]:46391 "EHLO mail-il1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233817AbhBWSO4 (ORCPT ); Tue, 23 Feb 2021 13:14:56 -0500 Received: by mail-il1-f169.google.com with SMTP id i18so2171004ilq.13 for ; Tue, 23 Feb 2021 10:14:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NBD19TtNuqKmtZTJ8bFpz+xLfryH6M8evU2W8orJimw=; b=AxpqRPgiZpLeJpudauMu58fFjZbDKykbw4VK9oUSdygJSoYAxFwMiZ1DcSuQEnj/e4 2PqKN0oL1pVnuuLLrlkZLZOqqM0FvWc7LYWM8yap3YlEiRq5S1d9ZoBd23GN6dNNAhCF J+tqggI4qM48JrwXq4rKDpfJk6d7CFks5dy+PzTNEZ8g3Xrf6ZqMqRvgzxCcpdLnJg/y Vi2gASwWjJjxVfVeN9pzYU1XucMx5Z3aqPQ4gVi//g5472DlOU0XjYdydQsnnxsQUZ4p 6tD25svBVl4Mnybty7/a4v4ZRi3NgFzqmQUFeIfrSskaI3XQFmCl5uokRFQA2wa1YP89 Yx7g== X-Gm-Message-State: AOAM531CWBsjNdgCxNtEG5TwXG3LB9h4povy4vsSfzzGmSEAR+lgLtj7 Vf0zWoS2ACqlfWqv8OSUZcU7piZRr3X6DhgoQUQ= X-Received: by 2002:a05:6e02:1848:: with SMTP id b8mr20333140ilv.210.1614104050299; Tue, 23 Feb 2021 10:14:10 -0800 (PST) MIME-Version: 1.0 References: <20210119015415.2511028-1-lyude@redhat.com> <20210119015415.2511028-2-lyude@redhat.com> In-Reply-To: From: Ilia Mirkin Date: Tue, 23 Feb 2021 13:13:59 -0500 Message-ID: Subject: Re: [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace To: Alex Riesen Cc: Lyude Paul , Pankaj Bharadiya , David Airlie , nouveau , James Jones , LKML , dri-devel , Jeremy Cline , Ben Skeggs , Dave Airlie Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 11:23 AM Alex Riesen wrote: > > Alex Riesen, Tue, Feb 23, 2021 16:51:26 +0100: > > Ilia Mirkin, Tue, Feb 23, 2021 16:46:52 +0100: > > > I'd recommend using xf86-video-nouveau in any case, but some distros > > > > I would like try this out. Do you know how to force the xorg server to > > choose this driver instead of modesetting? > > Found that myself (a Device section with Driver set to "nouveau"): > > $ xrandr --listproviders > Providers: number : 1 > Provider 0: id: 0x68 cap: 0x7, Source Output, Sink Output, Source Offload crtcs: 4 outputs: 5 associated providers: 0 name:nouveau > > And yes, the cursor looks good in v5.11 even without reverting the commit. FWIW it's not immediately apparent to me what grave error modesetting is committing in setting the cursor. The logic looks perfectly reasonable. It's not trying to be fancy with rendering the cursor/etc. The one thing is that it's using drmModeSetCursor2 which sets the hotspot at the same time. But internally inside nouveau I think it should work out to the same thing. Perhaps setting the hotspot, or something in that path, doesn't quite work for 256x256? [Again, no clue what that might be.] It might also be worthwhile just testing if the 256x256 cursor works quite the way one would want. If you're interested, grab libdrm, there's a test called 'modetest', which has an option to enable a moving cursor (-c iirc). It's hard-coded to 64x64, so you'll have to modify it there too (and probably change the pattern from plain gray to any one of the other ones). Cheers, -ilia