Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp27127pxk; Tue, 15 Sep 2020 16:47:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw21fEecj9HpFRVFzQhgdaJknI3R58010bfOG7rV5AkaNCoqeq+mwwA89VE/+H1lp8YrEDI X-Received: by 2002:a05:6402:445:: with SMTP id p5mr25266062edw.214.1600213633215; Tue, 15 Sep 2020 16:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600213633; cv=none; d=google.com; s=arc-20160816; b=V5JnpFskzT1JgxHK4kd+ZR3zXIFoQEmSwkJySJoQSk0qlxNr51kkmbFvf44Vf7PgQF km4zvcWtl2i7Wzm3YTLD2VKlw5gW4f0WiiAq0oRFI/vHhQtzwnOkIQ+7/U3nqOmUaznO SMB34Q8ZEExPKAWJKxtJzMBeW/XnNBz1CPPBMUemnrGrJxPtOoSjKyN/f2ETERGxbGou EA9yaB8ghVvQJD3CboOJa9HUc90i6nwbUPpQXRbEH9UBqUxndGmqrcsEKCnDyJuqcDCP W0Kn+zwosGhpGRjmtMx/NezXyooC5hDbWAtTX2YLs4EKokVTfuEqv+kwDgbmxkApInjn 7CPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5eQbHMIom4FuUOFx8o1n41vhhheztOpsT5iIGFxOmNU=; b=d2FcljFQ2FYwnETCzAfDdZ9/CJIvlFRzMJvqEEB22MvAZJSolWPXOfyAfIghKzW3z4 0w60uRgXSJUGMPfFEqOaW5Qtgwgg3c5FbDjQIQF/dovGWkjPKQMo5CTOSiH6rtwtXUwE Vhy0ivUgF7zMhEls/ZZmla6zVxn+68o8Xw6P3Rsvr7b+OEN6WjCZxZZlQEc8WkqAy0AU Mwp7x7Q7GhxUl1TmgEIgdmKYvn8c5W/9+tiGSVIeCGVFyrRplpGrX/PW7aJvLSvUS8Wc Pdqjs/g/uS1OI7ivpsevoRiISb+5lRDVDV+Gi8uPIzgZmgsvzI7sXCWBlIPvsfi8xYVQ Baqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vUB8ZyKr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si8433328ejy.677.2020.09.15.16.46.51; Tue, 15 Sep 2020 16:47:13 -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=vUB8ZyKr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727386AbgIOXog (ORCPT + 99 others); Tue, 15 Sep 2020 19:44:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:47666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726951AbgIOOd4 (ORCPT ); Tue, 15 Sep 2020 10:33:56 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 1EAFE23C2D; Tue, 15 Sep 2020 14:25:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600179923; bh=h+LDTVU6B+QYrUuEFbdmHcygt5Pw7j+MzrI28AjRQw0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vUB8ZyKrVbup/ZPfaj9y4zgpgklI8NUmQJVw3QKyjvMbG0V8GBGfGOsd/i6kxnqNS kD/LVRseK/ZLZVOyhSc+tqAeMpv2Wpb88xbDymiPRlL3tauhCS5NMyGHeiSFoAi9sT rL7GwqNcqHnnRRnVpF8cw7QATEGQMxwyinbVq/Gg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , Paul Kocialkowski , Sasha Levin Subject: [PATCH 5.8 039/177] drm/sun4i: backend: Support alpha property on lowest plane Date: Tue, 15 Sep 2020 16:11:50 +0200 Message-Id: <20200915140655.512533098@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915140653.610388773@linuxfoundation.org> References: <20200915140653.610388773@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard [ Upstream commit e359c70462d2a82aae80274d027351d38792dde6 ] Unlike what we previously thought, only the per-pixel alpha is broken on the lowest plane and the per-plane alpha isn't. Remove the check on the alpha property being set on the lowest plane to reject a mode. Fixes: dcf496a6a608 ("drm/sun4i: sun4i: Introduce a quirk for lowest plane alpha support") Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai Cc: Paul Kocialkowski Link: https://patchwork.freedesktop.org/patch/msgid/20200728134810.883457-1-maxime@cerno.tech Signed-off-by: Sasha Levin --- drivers/gpu/drm/sun4i/sun4i_backend.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_backend.c b/drivers/gpu/drm/sun4i/sun4i_backend.c index 072ea113e6be5..30672c4c634da 100644 --- a/drivers/gpu/drm/sun4i/sun4i_backend.c +++ b/drivers/gpu/drm/sun4i/sun4i_backend.c @@ -589,8 +589,7 @@ static int sun4i_backend_atomic_check(struct sunxi_engine *engine, /* We can't have an alpha plane at the lowest position */ if (!backend->quirks->supports_lowest_plane_alpha && - (plane_states[0]->fb->format->has_alpha || - (plane_states[0]->alpha != DRM_BLEND_ALPHA_OPAQUE))) + (plane_states[0]->alpha != DRM_BLEND_ALPHA_OPAQUE)) return -EINVAL; for (i = 1; i < num_planes; i++) { -- 2.25.1