Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp512221yba; Wed, 3 Apr 2019 13:16:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3zxw8n/TOypNQSbUqEg3qDgcVEgnLxTnS2bQAxTD/koYCfoXRLcMnH7m+C2UGCuhx80h9 X-Received: by 2002:a62:ab12:: with SMTP id p18mr1457236pff.216.1554322619578; Wed, 03 Apr 2019 13:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554322619; cv=none; d=google.com; s=arc-20160816; b=Fazsupbg6QTxw/dSp08S5dUrBW+VU7IlGNPMeFn80M2Px+96QXlQLAcegy0AhOcoGB SOFLw/MauVaF9XWLDz7suSZiVixblijDQOV1Xx5zhN7ASZI3Akpy0Iu69xVpl4JPKAlL NHkp0deCliYaqBeGV6vfPd3ySKKkAWEpQULp+MNrLtmYj9iQ+0tlxi6Jn272t9O5Vux0 E00sAHVS+OrBYYw9hKU3MtNvD6tI6lWxwH1dkkOQH6bLXob2PVUcWgpuKhO2/kiCG4pR rh6c0+BEIlykp33U5T3iv45yHxK1W595u7c2A4Gq4LUlNa0ZWU6gm1eKI/mCpuSQ4hKy J5Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5xXNU6VCSy2hcdJkhUbhiDiPMWFHlZ8nTyY/AUcQDBI=; b=T/yBnQN4XhS831+HEenuOWCcc2lHTB3mr6CCPq66C4sahGec162zFiHH8+pw3BrMaV SRon6aNhqkMU798QRdo9WUL3QfDMeqK1YarA+/brpGJz9BrMpcMt/5VOnjDa//ULPqaP ES4U3qXRBH+wxlC5hzoCARF7I87LxFGgcY2cRkGdmTf4r4I/OeGKeb0DotTTLYGCP2nQ YDKCm9hlLN7MalYsAOpdEQncZXp8AYi6Umv6zxjPqgtr67BFuVZ4XY/Dq2dXoCXE8POA jFL4ud/R7s0sDZ0WnWOlXQu5k4DlYV0MgRLYJB6XEC4UD37fatuOQpB3QVsj46jqeGzU jYXg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si14644143pgi.180.2019.04.03.13.16.44; Wed, 03 Apr 2019 13:16:59 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726376AbfDCUNg (ORCPT + 99 others); Wed, 3 Apr 2019 16:13:36 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51960 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbfDCUNf (ORCPT ); Wed, 3 Apr 2019 16:13:35 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 930C52827BE From: Sebastian Reichel To: Sebastian Reichel , Tomi Valkeinen , Tony Lindgren , Pavel Machek , Laurent Pinchart Cc: "H. Nikolaus Schaller" , dri-devel@lists.freedesktop.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Sebastian Reichel Subject: [PATCHv6 0/4] omapdrm: DSI command mode panel support Date: Wed, 3 Apr 2019 22:13:22 +0200 Message-Id: <20190403201326.3127-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190403195413.djfrgzuj7povdksi@earth.universe> References: <20190403195413.djfrgzuj7povdksi@earth.universe> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Here is another round of the DSI command mode panel patchset integrating the feedback from PATCHv5. The patches are based on Tomi's omapdrm-5.2 tag. It does not contain the patches required for OMAP3 support (it needs a workaround for a hardware bug) and for automatic display rotation. They should get their own series, once this patchset has landed. Also it does not yet use the DRM panel/bridge things, but IMHO should be merged before. Having this helps means 'git bisect' can be used while converting DSI support to DRM panel/bridge style. Tested on Droid 4: * Framebuffer Console, updated at 1Hz due to blinking cursor * Display blanking * Xorg 1.19 with modesetting driver * Weston 5.0 with DRM backend * kmstest (static image) * No updates send when nothing needs to be sent Known issues: * OMAP3 is untested and most likely broken due to missing workaround(s) for hardware bugs. * Weston 5.0 with fbdev backend does not work, since it uses neither page flip nor dirty ioctl. You need to use the drm backend. Changes since PATCHv5: * Rebased to Tomi's omapdrm-5.2 tag * Simplified omap_framebuffer_dirty() by using drm_for_each_crtc() Changes since PATCHv4: * Apply Acked-/Tested-by received from Tony and Pavel * Fix spelling/optimize commit messages * Use proper multi-line comments * Restructure patch 4: move the whole HDMI block into a static subfunction, that is only called when output type is HDMI. Also drop the incorrect check for DVI. Changes since PATCHv3: * Drop all Tested/Acked-by tags * Drop the rotation patches for now * Rebase to 4.20-rc1 + fixes from Laurent and Tony * Add fixes for DSI regressions introduced in 4.20-rc1 * Store info update manual update mode in omap_crtc_state * Lock modesetting in omap_framebuffer_dirty * Directly loop through CRTCs instead of connectors in dirty function * Properly refresh display during page flips and get Weston working * Add more comments about implementation details Changes since PATCHv2: * Drop omap3 quirk patch (OMAP3 should get its own mini-series) * Rebase to current linux-next * Use existing 'rotation' DT property to set DRM orientation hint * Add Tested-by from Tony Changes since PATCHv1: * Drop patches, that were queued by Tomi * Rebase to current master * Rework the omap3 workaround patch to only affect omap3 * Add orientation DRM property support -- Sebastian Sebastian Reichel (4): drm/omap: use DRM_DEBUG_DRIVER instead of CORE drm/omap: don't check dispc timings for DSI drm/omap: add framedone interrupt support drm/omap: add support for manually updated displays drivers/gpu/drm/omapdrm/omap_crtc.c | 182 ++++++++++++++++++++++++++-- drivers/gpu/drm/omapdrm/omap_crtc.h | 2 + drivers/gpu/drm/omapdrm/omap_drv.h | 4 +- drivers/gpu/drm/omapdrm/omap_fb.c | 19 +++ drivers/gpu/drm/omapdrm/omap_irq.c | 25 ++++ drivers/gpu/drm/omapdrm/omap_irq.h | 1 + 6 files changed, 222 insertions(+), 11 deletions(-) -- 2.20.1