From patchwork Wed Nov 6 16:58:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 11230745 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 42D54112B for ; Wed, 6 Nov 2019 17:01:21 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B0CC21882 for ; Wed, 6 Nov 2019 17:01:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B0CC21882 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 297776EDF1; Wed, 6 Nov 2019 17:01:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 97EA06EDF0 for ; Wed, 6 Nov 2019 17:01:09 +0000 (UTC) X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXQrEOHTIXs8PvtBNfIQ==" X-RZG-CLASS-ID: mo00 Received: from localhost.localdomain by smtp.strato.de (RZmta 44.29.0 AUTH) with ESMTPSA id e07688vA6H12hLp (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 6 Nov 2019 18:01:02 +0100 (CET) From: Stephan Gerhold To: Linus Walleij Subject: [PATCH 0/7] drm/mcde: DSI video mode fixes Date: Wed, 6 Nov 2019 17:58:28 +0100 Message-Id: <20191106165835.2863-1-stephan@gerhold.net> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1573059666; s=strato-dkim-0002; d=gerhold.net; h=Message-Id:Date:Subject:Cc:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=S1CYtW/UKvourRGitE9tLFPWLqns2bi9wjMLuuoA2Yo=; b=dTPO4WMUPfqCabQeKXmey4p2IJWew4vwvwi9WTFLG/7ws8au7vUJ0Gm8ft3yzua5el shGIVxJYqsC1bdgj/o+/Xb8shjfl/3ILeJE6uEjhBSKk38n8o5wQKZbWCc7DqeyV6yx/ bbmW5wg8fOaSJP6F1XDlwHwz8erlwN3VITd94q4wfEcZQePk7Ausc6UxQC+Y3kiICM80 sXicvN5wmSZqe3ZvzY+gSaXJOpq8WYyC1/0no9cPr2btUASHT7YHcAT+XaCpN8qbnhA1 yhr8HT8fSw8Lo4lrUoeAerecIjq/ujwzgyNTNkdTvmdUbHILqYhvg0tSgdKkY5LdjQrZ A30Q== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Stephan Gerhold , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is a collection of fixes to make DSI video mode work better using the MCDE driver. With these changes, MCDE appears to work properly for the video mode panel I have been testing with. Note: The patch that fixes the DSI link register setup for video mode [1] is still necessary; but we still need to finish it and actually make it initialize a panel correctly. This series contains only patches for the other parts in MCDE. I have tested it by disabling most of the register setup in the DSI driver, which makes it re-use the properly working DSI register set by the bootloader. [1]: https://lists.freedesktop.org/archives/dri-devel/2019-October/238175.html Stephan Gerhold (7): drm/mcde: Provide vblank handling unconditionally drm/mcde: Fix frame sync setup for video mode panels drm/mcde: dsi: Make video mode errors more verbose drm/mcde: dsi: Delay start of video stream generator drm/mcde: dsi: Fix duplicated DSI connector drm/mcde: dsi: Enable clocks in pre_enable() instead of mode_set() drm/mcde: Handle pending vblank while disabling display drivers/gpu/drm/mcde/mcde_display.c | 57 +++++---- drivers/gpu/drm/mcde/mcde_drm.h | 1 + drivers/gpu/drm/mcde/mcde_drv.c | 18 +-- drivers/gpu/drm/mcde/mcde_dsi.c | 167 +++++++++++++-------------- drivers/gpu/drm/mcde/mcde_dsi_regs.h | 10 ++ 5 files changed, 126 insertions(+), 127 deletions(-) Tested-by: Linus Walleij