Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2430948pxb; Tue, 23 Feb 2021 07:00:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFCiS87czcNNH+C4VhAJ5Ywgqvryrs0s73U1qEmIGhF0apFZZuR/p7cFqv8gERxtUW7jof X-Received: by 2002:a17:906:7b8d:: with SMTP id s13mr26784972ejo.247.1614092402607; Tue, 23 Feb 2021 07:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614092402; cv=none; d=google.com; s=arc-20160816; b=FEOvhvuxPjKq+bgf4k9Wrt+Ni+92PiOqFZhYZJXZLgJKYUDso63tqNDHVOZFUj1WCF rTr25MNT0lLcGnUutSq2fmL4GD8P5DFBZ5oafEIPafdQOn0943XKzwW5v7ltzHNaE8Lk mSeXg9AbeimITWhIXRlR8A3OJAFBJZLcnxipxrtb7Oh8zsIZDXMlP/lmKfYowquewTFI dX1SgTOUeZoIRH0kkIWgud5VeV0MuUpcGOYvAdJAH6/87zcPfaalHYo2jtohL6ij070f 81IyBRufWMLvKHFYJqBa9OIguzQeJX95fS9KgUVLLkrLNodsZmCFmJItmvkXIAP9de2/ rmew== 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=jlV7um2EY+vl+2ZBJzHoUyA7guYZm1/i3OsQfILG6rY=; b=nN8lRta/gH+Ui9YDG0Ie1hcJksrFujhK2aCE6mi4H/R8poZ2sw6g3ZtyLCdTfVyV4B ijzckuWOmuZgnsEm7QeS5ehj4ASBgO9FMW7fj4VstUP6HnSqL0glZ7TgO9oWit1HSkr1 D3RQv/wNK2QteLxunlQhtZbvI7KOjmVAjV08IDuB2+pUjJjIMGuP+RRvHr3jfFIBBGGN GvgwTaZU5/S69UWiK86DgNVsOvcIftlyyjG60DwgUiGtvcBS+1QvfJN58bCamKDVHzpb 9S/Th1XWb1rDFEG340GRv6KGBhJWVmM5YaH9QMQRsjOXVwGqMQ+CXLW7Wgyh7y7xVCbx yOuA== 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 dm17si8616854edb.99.2021.02.23.06.59.38; Tue, 23 Feb 2021 07:00:02 -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 S232542AbhBWO5O (ORCPT + 99 others); Tue, 23 Feb 2021 09:57:14 -0500 Received: from mail-io1-f50.google.com ([209.85.166.50]:42314 "EHLO mail-io1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231867AbhBWO5N (ORCPT ); Tue, 23 Feb 2021 09:57:13 -0500 Received: by mail-io1-f50.google.com with SMTP id u20so17340318iot.9 for ; Tue, 23 Feb 2021 06:56:57 -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=jlV7um2EY+vl+2ZBJzHoUyA7guYZm1/i3OsQfILG6rY=; b=rc75seAxPN4cOJptMBCbuQLlsLKVDZNMUvNJAHyiqxLQ8Pkn2V4TCWGa1AS7+0JJ9/ yjhA970DcT1pQnmaoeaJhx+7YkcetA5Pj1nbST20V46/j3Ob776nYcnO1L165jVqtCwK 7YCljRa7WwxMDjH5b6l5sSSbwqhGXn3FB3NQMssEu055IfIkZQdQbjUZqLoxQTT0VDt6 9LGRrl9SXrB4wyU0O1h9PEbFaQb45D7Ll1WrPuNKnmNDwdu3No+a9iHHFrXs1mBzTXsQ y5Ux55uRAHltpT23KT0wP+QAwkFJsCtg2z3Tv/nJzomvZqIj0a4T+Jurih8UefKmj4sc jRaQ== X-Gm-Message-State: AOAM533wXzmarlIULw1wKjFZF0Upa1RmnmOnbjMufopShF0g+0mkAse/ Tj5HO9BN/qrGGconBgr0KmoaTAocVIjzGidneTo= X-Received: by 2002:a05:6602:24cb:: with SMTP id h11mr20201100ioe.79.1614092192347; Tue, 23 Feb 2021 06:56:32 -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 09:56:21 -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 9:26 AM Alex Riesen wrote: > > Lyude Paul, Tue, Jan 19, 2021 02:54:13 +0100: > > diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c > > index c6367035970e..5f4f09a601d4 100644 > > --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c > > +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c > > @@ -2663,6 +2663,14 @@ nv50_display_create(struct drm_device *dev) > > else > > nouveau_display(dev)->format_modifiers = disp50xx_modifiers; > > > > + if (disp->disp->object.oclass >= GK104_DISP) { > > + dev->mode_config.cursor_width = 256; > > + dev->mode_config.cursor_height = 256; > > + } else { > > + dev->mode_config.cursor_width = 64; > > + dev->mode_config.cursor_height = 64; > > + } > > + > > /* create crtc objects to represent the hw heads */ > > if (disp->disp->object.oclass >= GV100_DISP) > > crtcs = nvif_rd32(&device->object, 0x610060) & 0xff; > > This change broke X cursor in my setup, and reverting the commit restores it. > > Dell Precision M4800, issue ~2014 with GK106GLM [Quadro K2100M] (rev a1). > libdrm 2.4.91-1 (Debian 10.8 stable). > There are no errors or warnings in Xorg logs nor in the kernel log. Hi Alex, Could you confirm which ddx is driving the nvidia hw? You can find this out by running "xrandr --listproviders", or also in the xorg log. Thanks, -ilia