From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 992D6C433DB for ; Tue, 23 Feb 2021 14:56:34 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3DDBB64E21 for ; Tue, 23 Feb 2021 14:56:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3DDBB64E21 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alum.mit.edu Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=nouveau-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D22A66E9CC; Tue, 23 Feb 2021 14:56:33 +0000 (UTC) Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id E77A06E9CC; Tue, 23 Feb 2021 14:56:32 +0000 (UTC) Received: by mail-io1-f46.google.com with SMTP id q77so17382690iod.2; Tue, 23 Feb 2021 06:56:32 -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=dlF+REj3ZIBmQtvGGVnjbBX/snu0ukfp8KzTc+F0tG5a1vsA0uVCPT0cy0P4KwzTre RVeG398Mcc3Er5KQS3FCG+OpctlSSbFN3tW22U1s/bSpsiyxnexLqnEeK3qg0RCiXFDy K3px8GAz6hrCPDUk4Vk64EkVlc14FQQiy2Fe6CxKIRI2f+FasRZK4cuUejnR9uI8HKFN lh4+quZ3Im/NDO7sHZlhGR0mIKZg0YzSstR7XSbKNfgzQHRMYTbVX7bxpw05TNOdOsoN afClhUgKnlaltcCvgaSNGqXY/KDHt4Y5/8sqlS5ZQ8/2hmL3gLqXvL6/2EC+6iaE7BHF j4Eg== X-Gm-Message-State: AOAM53146ueckQWx4xY268FvadGecH8FFbxrv244+sO85MZyeGEw2vYw t3IaZjXIXtPp3bbFMSF8o5UFVxWCeh5ybmzezZ4= X-Google-Smtp-Source: ABdhPJzRZwXRb1la0GMwx+ZhoDIz+aEfwGxnH+TD2zlplxcjV1p+0QmI6jsxIrIxkFQXPlk3s9buU4XAusngiI4vY4k= 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: To: Alex Riesen Subject: Re: [Nouveau] [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace X-BeenThere: nouveau@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Nouveau development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Pankaj Bharadiya , LKML , dri-devel , Ben Skeggs , nouveau , Dave Airlie Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: nouveau-bounces@lists.freedesktop.org Sender: "Nouveau" 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 _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/nouveau