Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1713015pxb; Thu, 16 Sep 2021 13:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqaFls9gFCmisugV7MHGo6rzAZcygIVEuw+ecUMUIbe1R0zPjRwFV1aGmL6ALWNFy6ib7+ X-Received: by 2002:a05:6402:3c2:: with SMTP id t2mr8449678edw.261.1631824951700; Thu, 16 Sep 2021 13:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631824951; cv=none; d=google.com; s=arc-20160816; b=UMJsJ3P39l5Uw2Q35Df3u5c8yA0fQZ5rSpNFbDZ8PytTzDkqZIT4gHgnPkMLqdlm6U PCp+Ki8p27JorXu5COb048BhqMKZWo+ofWaKN6H0BPYqYpsnDSLmTAVP+vt0eSajtuFp /orEUkcqgXm0h8Qk0XJds3w8CSOnSq7E3JAdyNCOqXnag5/Ql0PzY/9umu02P1uIsvkG PxELrcgLaglZPKk+op/3Y80M+gq3pHv+tMEb0L3N9Oh6CUhCmik270xB7lPz3lBhDCQU 4U88H+km+8QSL09ase7fxSUPfu24kiKuOxQfR0Y/RWnpks1fXn2QynwEuyv1+gnFK0+o l7mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OEH1E1AmcgZH1qpuhEu0SHWIH1BsB0WaGNr7gNWais8=; b=lBZY2B5HgMxJSgjMOoOqNJY3eVeEY4uYqVEeBON5JUVWB5j20D0ZPd7TImrBwSMwVd XQOcAwYpLTV2W7cHlzIUQkRk6PMZ0dUhOK0RCtBdQifZvHms31IdsKpDXjKdk5/lSaZz 7hMSdfFiA6TDDW/MFk3Avy2Rhw7jRnkgwotIcy4/lpb1izGgpsy7jmvUJZf/OsZIZclI qssS8VS5oDjn5xdzp0XwV9PWQksRNwt9iWII1DHcMEKC21vvJCMdfAT/Yvp3KAmBZVXe OCzjV+rSBYnRLzHhfJAXvD8/d6hcRvKWNN6jljKNDRDxIyLtCXx174I7h5ZCg8RfGADs WJIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jECEXwNq; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si5848866edc.449.2021.09.16.13.41.59; Thu, 16 Sep 2021 13:42:31 -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=@linuxfoundation.org header.s=korg header.b=jECEXwNq; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241258AbhIPQZJ (ORCPT + 99 others); Thu, 16 Sep 2021 12:25:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:54936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240646AbhIPQRS (ORCPT ); Thu, 16 Sep 2021 12:17:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F1CC6613AD; Thu, 16 Sep 2021 16:12:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808724; bh=xeQWfEsv1S3omZYVhggyNOkJWt5UqAbHAXYCl5P3d1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jECEXwNqTohxCzxm30KA0v0J6oYw+bS25SG01zrBBHXoM5B9G8M4/i0zDQ380BHFL 33emKVS+n54LH3yzzg9lTBvQsTZEksGZ3Rd2YTFyuAHUhqWp2sJ2VAap1Xt0Cmin1i M9Z62XKWZPApA1rhvzpsaiEoHCF8gpfUeSGhFyuo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Heidelberg , Dmitry Baryshkov , Rob Clark , Sasha Levin Subject: [PATCH 5.10 198/306] drm/msm: mdp4: drop vblank get/put from prepare/complete_commit Date: Thu, 16 Sep 2021 17:59:03 +0200 Message-Id: <20210916155800.810620307@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Heidelberg [ Upstream commit 56bd931ae506730c9ab1e4cc4bfefa43fc2d18fa ] msm_atomic is doing vblank get/put's already, currently there no need to duplicate the effort in MDP4 Fix warning: ... WARNING: CPU: 3 PID: 79 at drivers/gpu/drm/drm_vblank.c:1194 drm_vblank_put+0x1cc/0x1d4 ... and multiple vblank time-outs: ... msm 5100000.mdp: vblank time out, crtc=1 ... Tested on Nexus 7 2013 (deb), LTS 5.10.50. Introduced by: 119ecb7fd3b5 ("drm/msm/mdp4: request vblank during modeset") Signed-off-by: David Heidelberg Link: https://lore.kernel.org/r/20210715060925.7880-1-david@ixit.cz Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c index c1c152e39918..39577bf9215a 100644 --- a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c +++ b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c @@ -89,13 +89,6 @@ static void mdp4_disable_commit(struct msm_kms *kms) static void mdp4_prepare_commit(struct msm_kms *kms, struct drm_atomic_state *state) { - int i; - struct drm_crtc *crtc; - struct drm_crtc_state *crtc_state; - - /* see 119ecb7fd */ - for_each_new_crtc_in_state(state, crtc, crtc_state, i) - drm_crtc_vblank_get(crtc); } static void mdp4_flush_commit(struct msm_kms *kms, unsigned crtc_mask) @@ -114,12 +107,6 @@ static void mdp4_wait_flush(struct msm_kms *kms, unsigned crtc_mask) static void mdp4_complete_commit(struct msm_kms *kms, unsigned crtc_mask) { - struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); - struct drm_crtc *crtc; - - /* see 119ecb7fd */ - for_each_crtc_mask(mdp4_kms->dev, crtc, crtc_mask) - drm_crtc_vblank_put(crtc); } static long mdp4_round_pixclk(struct msm_kms *kms, unsigned long rate, -- 2.30.2