From patchwork Mon Mar 4 14:52:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 10837877 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C38271399 for ; Mon, 4 Mar 2019 14:53:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF0032A649 for ; Mon, 4 Mar 2019 14:53:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A31832A6F3; Mon, 4 Mar 2019 14:53:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AC6A82A676 for ; Mon, 4 Mar 2019 14:53:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fIIqRO/O47JezcP4cu9Ov2RRyVmEZg7Q2zsRYKatOJs=; b=trPN4z4enndebI t5D5DNKdmQllF8vvzAtIJ3bR3rmeEKv6JpbACfnmbRdKrUDIT9EvB099uTkF7aZPdFcfHAtWsi7TZ I16bYlMQd3prO6qT8KxoD320Bkakswain4O0X9CSyTW2cxiUyhSNZWGZHycCgGD+1cjCHNrb1loOd JZ+G84c57Hae0+qs9J4Ek+1s+iiRReoaQjIS/qRiS+KHg31sqpyFd2ypKfCOd36BsV14dIqC0CbRr pKhV8vd2tyTFjeC3IbCX+nvF5gsworBjIEwdJZtMbGgn0R/+ypcwcyxt6LlmpgWTqsZ0fZBfz1LwT jtJVMHhASPW0lYuRyn5Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0oxm-0006Ue-KF; Mon, 04 Mar 2019 14:53:06 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0oxb-0006KY-S3 for linux-arm-kernel@lists.infradead.org; Mon, 04 Mar 2019 14:52:57 +0000 X-Originating-IP: 185.94.189.188 Received: from localhost (unknown [185.94.189.188]) (Authenticated sender: maxime.ripard@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 265F740002; Mon, 4 Mar 2019 14:52:43 +0000 (UTC) From: Maxime Ripard To: Maarten Lankhorst , Sean Paul , Maxime Ripard , Daniel Vetter , David Airlie Subject: [PATCH 0/7] drm/vc4: Allow for more boot-time configuration Date: Mon, 4 Mar 2019 15:52:33 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190304_065256_061254_C40A54C2 X-CRM114-Status: GOOD ( 11.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: eben@raspberrypi.org, dri-devel@lists.freedesktop.org, Paul Kocialkowski , Eric Anholt , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, The proprietary stack for the RaspberryPi allows for a number of video parameters widely used by their users, but yet don't have any equivalents in the mainline kernel. Those options are detailed here: https://www.raspberrypi.org/documentation/configuration/config-txt/video.md While not all of them are desirable to have in the mainline kernel, some of them still have value, such as properties to initialise the overscan or rotation parameters, or the one to deal with broken displays. This series is an attempt to support those, and is based on a rewrite of the command line parser I did a couple of years ago that never reached upstream (due to a lack of time on my side). While this parser was initially made to deal with named modes (in order to support TV modes), it also allowed to extend it more easily, which is why it's resurrected. Since a change of the command line parser can pretty easily get things wrong and introduce regressions, I also worked with a number of unit tests that you can find here: http://code.bulix.org/tpo7dg-607264?raw Eventually, I guess those tests should be part of the kernel somewhere, but I haven't found a suitable place for them to be included yet. Let me know what you think, Maxime Maxime Ripard (7): drm/vc4: hdmi: Check that the monitor supports HDMI audio drm/edid: Allow to ignore the audio EDID data drm/edid: Allow to ignore the HDMI monitor mode drm/modes: Rewrite the command line parser drm/modes: Support modes names on the command line drm/modes: Allow to specify rotation and reflection on the commandline drm/modes: Parse overscan properties drivers/gpu/drm/drm_connector.c | 3 +- drivers/gpu/drm/drm_edid.c | 16 +- drivers/gpu/drm/drm_fb_helper.c | 55 ++++- drivers/gpu/drm/drm_modes.c | 441 ++++++++++++++++++++++++--------- drivers/gpu/drm/vc4/vc4_hdmi.c | 6 +- include/drm/drm_connector.h | 3 +- 6 files changed, 408 insertions(+), 116 deletions(-) base-commit: e179d8e074e05a913a0915ae3c4b82f1434d9f4e