Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp378608ybc; Tue, 12 Nov 2019 02:58:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyXkVr6tqQQRYm/R6Qh8mDDbTKViDv05GCaZY4eky4+fJUt9rJ4ngsYP22tYESP9NtOMfRX X-Received: by 2002:a17:906:7fcb:: with SMTP id r11mr27130511ejs.85.1573556284415; Tue, 12 Nov 2019 02:58:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573556284; cv=none; d=google.com; s=arc-20160816; b=O4hF07PTnkHk+awcgKYTRUxmnYqio4/wOuX+H1qPJqegBBuChoQKS2Z/ZAhERcGz6u gTiZ1TbhJMPKNuj7G8a7vBGRkJwI9hnEYl1gwuG++WEVZtJGGIs0t80PMmhE87HTcSQ+ SInbqcrbrYd2NqodMP4wV3HlHZVdkXQ0wLcWTVhoaRcQXHUAt/Q1Plfbpq4dIRDxk/QA FiHWRwdzxmvzZAboXC6d0wSZjYj74cKUo0qqU0b9AQha3MrY1E/MeC58WT2NGqYAr7dm 2zSZnjUzhgzMch2JXeEOIUzTXYHfORL7jQdlI75AvZmICmXTn1utWnpM4wuxjMp5iqyg fAMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IXWCpOeIhR7PfY3tybK6BNFuYaq0ioALQBdaGwm1ybU=; b=W/8EErtTgC25Cl8a9anW3d113cdB+Gn3EDaH62eQp6Fu2wi9T3Qtxdhrbyc96litMD yjt0JyaKsZ0Do2zHMCtM+jEES4Kb8Rxpn+tSyG87QbF7zSqbC4FCK/DFqARAm0w2MoLP QGwbiI8HgBPyKZSaJ5qBIHsl5rQ0kInYAuEx8XeX1Y6ttopVZl71SaaymRfuRT6Aw1Cl Ckmeyfn89tOzqFzhIUu1RFiZAcNt0DRbxEz2ae/uvi93xtNGrK1ewWXqrMWBXs2Cmgct Gj9H+y/deTQqNICgrS5QVRpfwQcxyqNZQ+xSzF/T6b03jjZKF9lvjHBocjDCWrHL7cUw We6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=VORlG8Nn; 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 j3si13342550edh.14.2019.11.12.02.57.39; Tue, 12 Nov 2019 02:58:04 -0800 (PST) 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; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=VORlG8Nn; 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 S1726376AbfKLKyw (ORCPT + 99 others); Tue, 12 Nov 2019 05:54:52 -0500 Received: from onstation.org ([52.200.56.107]:48248 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbfKLKyv (ORCPT ); Tue, 12 Nov 2019 05:54:51 -0500 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 76AAA3E994; Tue, 12 Nov 2019 10:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1573556090; bh=jjKN6d8ptQSkUyJcPph5rCkFf0mBynfnJx+7tQMICQ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VORlG8Nn/3lq3rYkTopLtuLPXh2vlijLFzlNyEBCu4fJtdhpfSVehn+fa32ryyxyU LxnIYKoabfxZU5OhptEPMIOeM3FbFpqdhWPOiHSxLbihbLXYO2eKzMOEsJFxb6pL4R F+PmEubwY8vTdhKlUiQMI55U73QeJvBrbtU1alDE= Date: Tue, 12 Nov 2019 05:54:50 -0500 From: Brian Masney To: Jeffrey Hugo Cc: Rob Clark , Rob Clark , freedreno , Linux Kernel Mailing List , dri-devel , linux-arm-msm , Sean Paul Subject: Re: [Freedreno] drm/msm: 'pp done time out' errors after async commit changes Message-ID: <20191112105450.GA9144@onstation.org> References: <20191107111019.GA24028@onstation.org> <20191110135321.GA6728@onstation.org> <20191111113806.GA1420@onstation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 11, 2019 at 07:51:22AM -0700, Jeffrey Hugo wrote: > On Mon, Nov 11, 2019 at 4:38 AM Brian Masney wrote: > > > > On Sun, Nov 10, 2019 at 10:37:33AM -0700, Jeffrey Hugo wrote: > > > On Sun, Nov 10, 2019 at 6:53 AM Brian Masney wrote: > > > > > > > > On Fri, Nov 08, 2019 at 07:56:25AM -0700, Jeffrey Hugo wrote: > > > > There's a REG_MDP5_PP_AUTOREFRESH_CONFIG() macro upstream here: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/msm/disp/mdp5/mdp5.xml.h#n1383 > > > > > > > > I'm not sure what to put in that register but I tried configuring it > > > > with a 1 this way and still have the same issue. > > > > > > > > diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c > > > > index eeef41fcd4e1..6b9acf68fd2c 100644 > > > > --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c > > > > +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c > > > > @@ -80,6 +80,7 @@ static int pingpong_tearcheck_setup(struct drm_encoder *encoder, > > > > mdp5_write(mdp5_kms, REG_MDP5_PP_SYNC_THRESH(pp_id), > > > > MDP5_PP_SYNC_THRESH_START(4) | > > > > MDP5_PP_SYNC_THRESH_CONTINUE(4)); > > > > + mdp5_write(mdp5_kms, REG_MDP5_PP_AUTOREFRESH_CONFIG(pp_id), 1); > > > > > > > > return 0; > > > > } > > > > > > bit 31 is the enable bit (set that to 1), bits 15:0 are the > > > frame_count (how many te events before the MDP sends a frame, I'd > > > recommend set to 1). Then after its programmed, you'll have to flush > > > the config, and probably use a _START to make sure the flush takes > > > effect. > > > > I think that I initially get autorefresh enabled based on your > > description above since the ping pong IRQs occur much more frequently. > > However pretty quickly the error 'dsi_err_worker: status=c' is shown, > > the contents on the screen shift to the right, and the screen no longer > > updates after that. That error decodes to > > DSI_ERR_STATE_DLN0_PHY | DSI_ERR_STATE_FIFO according to dsi_host.c. > > > > Here's the relevant code that I have so far: > > So, Unless I missed it, you haven't disabled using _start when > autorefresh is enabled. If you are using both at the same time, > you'll overload the DSI and get those kinds of errors. That fixed the issue. Just to close out this thread, I submitted a patch with what I have here: https://lore.kernel.org/lkml/20191112104854.20850-1-masneyb@onstation.org/T/#u I'll work on async commit support for the MDP5. Thanks Jeff and Rob! Brian