lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 19 Jan 2021 10:18:27 +0000
From:   Simon Ser <contact@...rsion.fr>
To:     Lyude Paul <lyude@...hat.com>
Cc:     nouveau@...ts.freedesktop.org, James Jones <jajones@...dia.com>,
        Martin Peres <martin.peres@...e.fr>,
        Jeremy Cline <jcline@...hat.com>, stable@...r.kernel.org,
        Ben Skeggs <bskeggs@...hat.com>,
        David Airlie <airlied@...ux.ie>,
        Daniel Vetter <daniel@...ll.ch>,
        Christian König <christian.koenig@....com>,
        Thomas Zimmermann <tzimmermann@...e.de>,
        Nirmoy Das <nirmoy.aiemd@...il.com>,
        dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] drivers/nouveau/kms/nv50-: Reject format modifiers for cursor planes

On Tuesday, January 19th, 2021 at 2:54 AM, Lyude Paul <lyude@...hat.com> wrote:

> Nvidia hardware doesn't actually support using tiling formats with the
> cursor plane, only linear is allowed. In the future, we should write a
> testcase for this.
>
> Fixes: c586f30bf74c ("drm/nouveau/kms: Add format mod prop to base/ovly/nvdisp")
> Cc: James Jones <jajones@...dia.com>
> Cc: Martin Peres <martin.peres@...e.fr>
> Cc: Jeremy Cline <jcline@...hat.com>
> Cc: Simon Ser <contact@...rsion.fr>
> Cc: <stable@...r.kernel.org> # v5.8+
> Signed-off-by: Lyude Paul <lyude@...hat.com>

Together with [1], this patch allows me to run unpatched modifier-aware
user-space successfully, without a cursor visual glitch. drm_info
correctly reports the new modifier list, and wlroots logs confirm that
a flavor of NVIDIA_BLOCK_LINEAR_2D is used for the primary buffers and
LINEAR is used for cursor buffers.

Code looks good to me as well.

Reviewed-by: Simon Ser <contact@...rsion.fr>

[1]: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3724

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ