From patchwork Wed Nov 1 14:13:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 117717 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp937984qgn; Wed, 1 Nov 2017 07:13:42 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SwV7W1Z9ps6P+1qQNgMY+udWbaqnFJny5+gE2nKn1Z+EfneqC4kbSUAJdPcsnr7r8XXAGq X-Received: by 10.99.95.216 with SMTP id t207mr6456507pgb.185.1509545622080; Wed, 01 Nov 2017 07:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509545622; cv=none; d=google.com; s=arc-20160816; b=LiIMuQsYbX2rMk6ihEoYCHRBIVGVdokJdI9vSr1ELqnYQIlLdh1txWoZbAWLCC1OuB lQWNMfrsmYUdCZat1BjkEh3fqrwzzVecN1vW8C3c2GgVuYKXRqvQj/bgTN4CItcmcBkP AMAF54rnI0JJoqkzlvOFCt7CMH6Mcu1wLth8v72BKKleaZ2zNBsu1CetCfIZK88CHSBM 5nyGf06UUv67dUgnYHOzRT1lOxYlYMIULjKc+U7xjf3ek1qnrZlrtcKh4Ot4yx7RmZ8D S1RTOpqZQLfZnQc/m4EkdBbsPNO/sEg6a6wRg6uqufP64J2oj7tscG4yfzhxadxSfyfz Mhvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vWa/sqOyQVnIuhy37AaYXhiM3BdZXAv6N/0HE5tYChk=; b=fxMzBNur3bLGyHP2MWXz5wS5sJh84ZtoVys76dyHOYfgM8wrwwok6LOSB7wc6YLatj GNCU281TxJljT8KIFlkacovNF9d/55/MiiWOdp22l2LxzUHgWs4Tc4Q6dajzyrhc1U7j 0KgwIozv6G5LC+0gLg1e7zu/eC9NZT0IYBaWzrNtYvlUDs7rLIoU++Z5YILoOZLFf5e7 yakz7/HaIRYDK925H7oPbtyW4INfDy5fvokdvsHKM8xbCjHpJsxQr0uiKakM27aWfG9m I/ynl4Od9K5ZtzZruP8GWXYdbdeavLRZDiPqsuKSbdGPbnBdE66wgFZ0kJ45uJ6hw3Wf Rxhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si1140932pgn.235.2017.11.01.07.13.41; Wed, 01 Nov 2017 07:13:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754573AbdKAONk (ORCPT + 26 others); Wed, 1 Nov 2017 10:13:40 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:12508 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753101AbdKAONi (ORCPT ); Wed, 1 Nov 2017 10:13:38 -0400 Received: from e110455-lin.cambridge.arm.com (e110455-lin.cambridge.arm.com [10.2.131.60]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id vA1EDQdm004474; Wed, 1 Nov 2017 14:13:26 GMT From: Liviu Dudau To: Brian Starkey Cc: Mali DP Maintainers , Daniel Vetter , David Airlie , DRI-devel , LKML , Liviu Dudau Subject: [PATCH] drm: mali-dp: Disable planes when their CRTC gets disabled. Date: Wed, 1 Nov 2017 14:13:26 +0000 Message-Id: <20171101141326.3112-1-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make sure only the planes on the active CRTCs get committed and that all planes on the disabled CRTCs get turned off. Reviewed-by: Brian Starkey Signed-off-by: Liviu Dudau --- drivers/gpu/drm/arm/malidp_crtc.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.14.3 diff --git a/drivers/gpu/drm/arm/malidp_crtc.c b/drivers/gpu/drm/arm/malidp_crtc.c index 153a496706262..904fff80917ba 100644 --- a/drivers/gpu/drm/arm/malidp_crtc.c +++ b/drivers/gpu/drm/arm/malidp_crtc.c @@ -77,6 +77,9 @@ static void malidp_crtc_atomic_disable(struct drm_crtc *crtc, struct malidp_hw_device *hwdev = malidp->dev; int err; + /* always disable planes on the CRTC that is being turned off */ + drm_atomic_helper_disable_planes_on_crtc(old_state, false); + drm_crtc_vblank_off(crtc); hwdev->hw->enter_config_mode(hwdev);