Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2349241pxb; Mon, 20 Sep 2021 19:42:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3cQz2+k44qDdFRe11GATkNicxoMrMSxi280T99g+nEtOQZLvkYpQ3JnQ7WbwpzntYGofk X-Received: by 2002:a17:906:1341:: with SMTP id x1mr31400526ejb.277.1632192159152; Mon, 20 Sep 2021 19:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192159; cv=none; d=google.com; s=arc-20160816; b=jaIMYYrOQFRxDhaWtNrZEwULbTv2scQhdrXEKnEFm2RXMlU8b7zZZxLTVvqmyNG5AX LYmpovwG4mtwC2Ge/srDaw0DmKkxfcrluQK34/KOrnB0QDTTPieR83+4dfF8G7cW4SGz SIVqrt/CLLBy+X+acW+wg4i92qcyYcvnt2CMPSVloskX27iRPiwQrrsGnGe3g3C06Cwc QqWCUIXkSOmCyM9tQpjc0LQY/opgRblRZTtKtVGczR41d822nTXv0TdQXioFn/qH9n08 5fcjkvURNGPPhwMacCe34bZ5c4vdWxsTMxMQcxyB6wP6HeYMAc6xos8aAXqCZdlcUo4X qiNA== 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=Ck06a6y1g8ydUkQRok1GFjvGmmxIfzxU6BXpdFjNzTo=; b=OVuVKtzPBpxXWr8qSk4aSM0N6r6fxTZUGIJ2dRW4oLIm8KtjNBvlWYc/RbMt1L8jkt 8KP/Sdn23hsAMgX7DxY0ekXuyG5PzwiGeVLZ4NCwosIEeUzkkB4z0Pl/d+45v/uZbz3M O8QOzUR5YV/QbnHUEbHn3rqrkOxv9m10LqFlAuGNSCGGonbScWOwoxejPm2o6GBdyeP/ jeT9ardjRB4WmOM4KyFr/3JDQXEeUi8epc23IcZcGeD20HjV6w9hRrZPO6fQZxKV2Ik+ ACoRZHADcq1PjbBoKLP6+xcvwtykvhqQWsrMLSM68HUitVuTGFMp74sFMh1CQyNJZzBX BNBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=s6N3dzBj; 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 os28si12793983ejb.559.2021.09.20.19.42.15; Mon, 20 Sep 2021 19:42:39 -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=s6N3dzBj; 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 S1351674AbhITSUC (ORCPT + 99 others); Mon, 20 Sep 2021 14:20:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:35750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376369AbhITSMJ (ORCPT ); Mon, 20 Sep 2021 14:12:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 47944613CE; Mon, 20 Sep 2021 17:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158440; bh=6sB9V2TH2YXKggSm4ORmhaVpFYlE+jF8nGZ2tX7oayk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s6N3dzBjNXWUnezjKkq8SPJL9HauV0FXM+tCvoBfntxh9SOVPh7Y1EQCBb06tyjQz PfY/kp3QZ2b22+kloXnn+Y9tlG4yrzAlPBAjCHrm+re+WSHqHsQqKmxy0U3va/kTio pjYPIOXRtbEmJEgci+5Yv+K219rSxL7K8PtLJsM4= 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.4 125/260] drm/msm: mdp4: drop vblank get/put from prepare/complete_commit Date: Mon, 20 Sep 2021 18:42:23 +0200 Message-Id: <20210920163935.364789918@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 20194d86d033..5d50e93efe36 100644 --- a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c +++ b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c @@ -108,13 +108,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) @@ -133,12 +126,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