Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp656187pxf; Wed, 7 Apr 2021 08:32:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxurVwjRLyGAQc8kFY3O60tRWZen1+q99cxDPNOU3gMjV5Dso+9XzJBF0XBYe/xGFq7dt5 X-Received: by 2002:a17:906:6d4c:: with SMTP id a12mr4402394ejt.459.1617809544092; Wed, 07 Apr 2021 08:32:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617809544; cv=none; d=google.com; s=arc-20160816; b=0XQiD2KC4vV+bG7XGCu2tIr0M01zwTyeGCQJjor7PhajOXzVB9qtPb6sjAHiTFqyGf FXygTMfrYXybuC2LznHFUs3/z6CFk3xwv2pVeUSpualms7P+PQL7RHsPnfok0FmK34uf gNkuU9uCvKEJIjfma2T+u+VRKWoixi1gD6NogqXn9Yxxlg86FuoLUlUxwWYNmYd8/tq/ xe6tYQUJTFXKbTWaMd7is9QBItC2cVr4IWkBDoeANja5HL7lFSujcVMMmE8uce8wqV18 20qruMIwwYEg6kCL274KwQxGHM9tPtQLz8SEYuOe2P7csgxiMfBc1oPrz3g1fvQlvCEx gdJg== 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 :message-id:date:subject:cc:to:from; bh=cp4AUFQcdIcWhmCE8T8uawahSbbZH2mKef0WeK4Wsgg=; b=ZCx0NiQG+7iV9c1PyOYbnahI2r8p+O+Md12q88cJF2nQessdSIsLq1jtNb/d2A5VEV tsc8YK26KYHC7qNdScuOlcHAulbbngn8pyUPGPt9mbE9iuOn1Mmq2WXwxMvTIUcrg1SR O9D/fvnk95r+K9WgEchq5vGpp2RRRRhGEyziOPkAqKccszVqhjwKYkdRLWfAPi/Fqjk7 n5j7iO/RXvLgJdB+sZF+ysswc28tinFUHLHFAtu1HnTozfpwZdaZS4am30IpLucfIRhk lHefM+VnQwvQB1gvLgxnab2qgbxkLXi0jdNZk1ZmmfsE+Npeu7UIqmj6wJKuIISa60S6 rMaA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch5si1366478ejb.369.2021.04.07.08.31.58; Wed, 07 Apr 2021 08:32:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343762AbhDFVrz (ORCPT + 99 others); Tue, 6 Apr 2021 17:47:55 -0400 Received: from relay08.th.seeweb.it ([5.144.164.169]:34845 "EHLO relay08.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343733AbhDFVrx (ORCPT ); Tue, 6 Apr 2021 17:47:53 -0400 Received: from Marijn-Arch-PC.localdomain (94-209-165-62.cable.dynamic.v4.ziggo.nl [94.209.165.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 5DEF43F347; Tue, 6 Apr 2021 23:47:38 +0200 (CEST) From: Marijn Suijten To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Marijn Suijten , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Sai Prakash Ranjan , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] drm/msm/mdp5: Emit vsync signal often enough Date: Tue, 6 Apr 2021 23:47:23 +0200 Message-Id: <20210406214726.131534-1-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This set of patches corrects and improves VSync-related register setup on the MDP5 block. Values written to the registers were way too high leading to the MDSS block counting way too many ticks on the vclk before emitting a vsync interrupt, resulting in significant update issues on command- and video-mode panels. With lower values - that match those of downstream kernels - the panels on Sony devices (Xperia X, XA2 Ultra, and more) update at an acceptable rate without "pp_done" timeouts. The Driver-IC in these panels is also able to drive an interrupt line and a future patchset will enable the use of this "disp-te" GPIO beyond acquiring it in dsi_host. This fixes panel framerate the correct way (instead of running at half the desired framerate), but these patches are still needed to aid development now and shorten lockup times when the TE interrupt misbehaves by not arriving at all. AngeloGioacchino Del Regno (1): drm/msm/mdp5: Disable pingpong autorefresh at tearcheck init Marijn Suijten (2): drm/msm/mdp5: Configure PP_SYNC_HEIGHT to double the vtotal drm/msm/mdp5: Do not multiply vclk line count by 100 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) -- 2.31.1