Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3977540pxk; Tue, 22 Sep 2020 07:30:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhO8IlHg7vndvp9EolNnlfNRLgk6UBkMKeE4Wt+kkK4LhGeKSpuAIVFEAlWBpZ7+LCLcAu X-Received: by 2002:a17:906:d97b:: with SMTP id rp27mr5474125ejb.18.1600785001966; Tue, 22 Sep 2020 07:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600785001; cv=none; d=google.com; s=arc-20160816; b=pGPYfQohrXhPmYzswYj7D1XMUZWykQZLPbeUs5GWdy1H7bn1P+wYN9UBm5/YKfktN7 owhn854A8+TApaCM4fznnTGsNdc94C/tU5r0ti0/LoMOPK73rZn+zaA/+hwv8FJ81EqU Jt3neZhTr3p7scPbKo21k0RtI1OLEhORhUH77WOe1H5JuQU70BlJUc8NQt5/+p6959zQ QEEQtfHU3j/For9oVVRvVJB/wP8RcQd3loHdjx75Yv9EmazdNrmjJOfm+FBWUsxXW8RX s2EQSPGM08lfJXkqerncuLjPc1K4zNFVXo1UEN5wyakOai1ov+jG9KTo/V/9/MdlBNh3 IoZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qDK+a1lq8zteedBqLEzBJBmtvYH8kC4nH7+SJdhiIlQ=; b=Fmz1aUxNWvy/sW4dvRbgV5k7gjQ5RRQmsIXjgzty18A5XLTAz0vowKDpN/AzMNeBYI NUfZzMOHJNBdPZLGmQtbCJHRNP+4ikwOnRtIxfso6Eh3Guj0juJwCe1bQCUkPmSsplBv i8nzAwCYVTV/gn+yRCa8Q2J8RFJ5/LSspOON4TrsqMsHGg8m40vi5mfTzWzrkkyA+cnX GkK6iPbFWussYxJRvCtV7mUEoSWcBl04K5Sj/dpLgVXimJ4JCOZqP5AGzBK74hqfNScq jojf/uBrynCoVSZpf9mJPwX+QBBibmOUOoLYm12DDuNFjTGvU8tMSNNNRqbL+jjLTllS JLBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0GDOmErS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si10669028ejv.149.2020.09.22.07.29.38; Tue, 22 Sep 2020 07:30:01 -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; dkim=pass header.i=@kernel.org header.s=default header.b=0GDOmErS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726727AbgIVOZg (ORCPT + 99 others); Tue, 22 Sep 2020 10:25:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:59042 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbgIVOZe (ORCPT ); Tue, 22 Sep 2020 10:25:34 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3F7E2073A; Tue, 22 Sep 2020 14:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600784734; bh=wQx7HRd1PEMCjgO+IIjRBfqRQ/i8QsVPVrEKxApVDCY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0GDOmErSh9Jgj+/3Vk7j0+x7Lp2zRADZFYttC95BZnGyB6R44l7r1m8K6t4ne0KDO yjFVo7r7PwQN6hAXU6UmFCvrE4zaFqoPhnEA/Vry7VSuntc+4Ck8BYziSEF++uxYdU ihnCKZgD8HyAyy8/c4aY1Fo2XZCXTbXhr7S4cf+o= Date: Tue, 22 Sep 2020 10:25:32 -0400 From: Sasha Levin To: Michel =?iso-8859-1?Q?D=E4nzer?= Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , Nicholas Kazlauskas Subject: Re: [PATCH AUTOSEL 5.4 13/15] drm/amdgpu/dc: Require primary plane to be enabled whenever the CRTC is Message-ID: <20200922142532.GO2431@sasha-vm> References: <20200921144054.2135602-1-sashal@kernel.org> <20200921144054.2135602-13-sashal@kernel.org> <1ee666b4-f1af-a19f-e03a-fdfc00698d2f@daenzer.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1ee666b4-f1af-a19f-e03a-fdfc00698d2f@daenzer.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 04:48:05PM +0200, Michel D?nzer wrote: >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. Will drop it for now, thanks. -- Thanks, Sasha