Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3208831pxk; Mon, 21 Sep 2020 07:56:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzunRkMn/dFI+Pf5IlHE5+LsB+CwxEImT6FJstBEBcPmKv17yWAjQmlJOpt+DxsJb2ZBEpc X-Received: by 2002:a17:907:264c:: with SMTP id ar12mr51879974ejc.80.1600700171630; Mon, 21 Sep 2020 07:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600700171; cv=none; d=google.com; s=arc-20160816; b=pPKRITX/aDa4+OwHx/iUfPAdz8Kq/wtfvfDE0xI6PtCH4B53PNiqS7gpeNoLpOfwFt MUJJJ6/5O18129Vh8XwxQKD/3WldZsS8omB7ZJHrxhssgkC7jZzP6sXuOUCb4iDf74P/ IaPTIHH3VL/jN1pbiB+Ok0QMScQoMBxLFVs5vGfI9sYLXaFjRNonin4jVmhdApgnppZX oNQDZyWFWfw5zaBKV3ZJvxUWugX+RXlLO0SCII4JJ5pkvRL1d5RABqxXjlK+XIA4U1ZS mB96a1gxzsCViOY7qeGxACiCHTOit0dhmIN2J1PyzUoZCJQLzILpBujon5u3CFoy1OPZ bY4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=h09uCXFXKM/7GVsE25NPwx0hqTMkPhiZMkKEIdHurr4=; b=aZ2yZaO7VBiryAkZKoC/0Ifl2G1PkkB1EyNUmjbM/xpmcxSI5PKuX+TKvJlTQJmolI 8h8GIRmKpvmPtiBEyYVWik+AzMi9yKWYGuI3KN8GnpG8yPiLWAOFxcszP0el538SmNdt UCHZSS3IdvCxyblK/7ttATGOSxga4YRPCf6B2P9XA9tn2tqB+4tE9e5Z77rQzfWPUFSq LOSE5JOES4pFiyeMIPGRXUjMZKVtBphAK8Kp2VfoKeOJ4H8/CZ/hsyT0c94eROYXeo/R J9j0W82bQgzmsg1g/0fVJ4S9PORfTmxyUDSgYBbBXB0eBpl/Mcdz+zdqe55Gmofk4L9g Mx0g== 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 dn20si10265797ejc.342.2020.09.21.07.55.47; Mon, 21 Sep 2020 07:56:11 -0700 (PDT) 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 S1727345AbgIUOyr (ORCPT + 99 others); Mon, 21 Sep 2020 10:54:47 -0400 Received: from mail.netline.ch ([148.251.143.178]:45749 "EHLO netline-mail3.netline.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727285AbgIUOyr (ORCPT ); Mon, 21 Sep 2020 10:54:47 -0400 X-Greylist: delayed 396 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Sep 2020 10:54:45 EDT Received: from localhost (localhost [127.0.0.1]) by netline-mail3.netline.ch (Postfix) with ESMTP id CDC412A6045; Mon, 21 Sep 2020 16:48:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netline-mail3.netline.ch Received: from netline-mail3.netline.ch ([127.0.0.1]) by localhost (netline-mail3.netline.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id n-6O19CCSCnF; Mon, 21 Sep 2020 16:48:07 +0200 (CEST) Received: from thor (212.174.63.188.dynamic.wline.res.cust.swisscom.ch [188.63.174.212]) by netline-mail3.netline.ch (Postfix) with ESMTPSA id 192B92A6016; Mon, 21 Sep 2020 16:48:06 +0200 (CEST) Received: from localhost ([::1]) by thor with esmtp (Exim 4.94) (envelope-from ) id 1kKN6w-000aC1-Sy; Mon, 21 Sep 2020 16:48:05 +0200 To: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , Nicholas Kazlauskas References: <20200921144054.2135602-1-sashal@kernel.org> <20200921144054.2135602-13-sashal@kernel.org> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Subject: Re: [PATCH AUTOSEL 5.4 13/15] drm/amdgpu/dc: Require primary plane to be enabled whenever the CRTC is Message-ID: <1ee666b4-f1af-a19f-e03a-fdfc00698d2f@daenzer.net> Date: Mon, 21 Sep 2020 16:48:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <20200921144054.2135602-13-sashal@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-09-21 4:40 p.m., Sasha Levin wrote: > From: Michel Dänzer > > [ Upstream commit 2f228aab21bbc74e90e267a721215ec8be51daf7 ] > > Don't check drm_crtc_state::active for this either, per its > documentation in include/drm/drm_crtc.h: > > * Hence drivers must not consult @active in their various > * &drm_mode_config_funcs.atomic_check callback to reject an atomic > * commit. > > atomic_remove_fb disables the CRTC as needed for disabling the primary > plane. > > This prevents at least the following problems if the primary plane gets > disabled (e.g. due to destroying the FB assigned to the primary plane, > as happens e.g. with mutter in Wayland mode): > > * The legacy cursor ioctl returned EINVAL for a non-0 cursor FB ID > (which enables the cursor plane). > * If the cursor plane was enabled, changing the legacy DPMS property > value from off to on returned EINVAL. > > v2: > * Minor changes to code comment and commit log, per review feedback. > > GitLab: https://gitlab.gnome.org/GNOME/mutter/-/issues/1108 > GitLab: https://gitlab.gnome.org/GNOME/mutter/-/issues/1165 > GitLab: https://gitlab.gnome.org/GNOME/mutter/-/issues/1344 > Suggested-by: Daniel Vetter > Acked-by: Daniel Vetter > Reviewed-by: Nicholas Kazlauskas > Signed-off-by: Michel Dänzer > Signed-off-by: Alex Deucher > Signed-off-by: Sasha Levin I'm a bit nervous about this getting backported so far back so quickly. I'd prefer waiting for 5.9 final first at least. -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and X developer