Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9175274ybi; Wed, 10 Jul 2019 06:00:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZlNPCyzLH2OoOvY2OGx7uhExgb0qQmM9MYTuwerYVpHIPHOEwcWzMuOWcPvM8SWMPiYwM X-Received: by 2002:a63:4404:: with SMTP id r4mr36712414pga.245.1562763625588; Wed, 10 Jul 2019 06:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562763625; cv=none; d=google.com; s=arc-20160816; b=ODWuruZ2Ouif6GNRM4qYGHHFDZKsvGiYmFYmcyCFXb9YHF7YEPJzgwL6gx6wxt9J4q ScZvVOJA+kVgk8yvH6xrZl2x1qc6d6lT3Ae4Bn3LUx24HatqKN9le0nef4xD4CK3nh8p UE+60TJ868dJm7UiJG9n6uQJMIbLpI8/jWjmWCEcSR8Ui1OzPvnDzaz+hm3ay1PS+UU4 U7ewiPrqUIRIj69e4i7MGGlw1yIDOVQsnyQbhjed0sb0BzBzpme6Rmdhte+HbcojCaia PFdcHJNO/+tNlMAXny0evAaf7gRiNQM7pybVc3rRPmymb9xpnyt55HWmypUvKJ0aEJkf FV/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+/RrUXUrGHRVboTz0zDoM+JO3RCsS7rTzYLFHvfHaz0=; b=QKsmmZZ4GPA96U9xnl3CcR6IgSfj9Xmp8cGrrTHWU0TMHqJJevwXkZMYGDWe23pI1h sYuZqY/hY+s5iG0y4ggo4ULOqBSQTwUajp+t4mwbJha0lh2kLwaVPs9JbBkg46IKNjZh WcTTe94npA4QPUTcNB5pSXzRbJmrxrjDZzV7V7nFC2FIimVRLQj30RQgBGRr97nqyHqm 5mt31VIi4vc6BgFOXHuiemLqXafRf9fz/Aw6uEs/I05U8G9AwK8FYkp8ApDFlXNPWbL4 pbjWhJdICcNEX07ngFdalkfhlZpc5dTB49fQyyubycKJsEvxZaMQJw99ENW5VwTpmG7N CRyQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si2280161pfo.234.2019.07.10.06.00.09; Wed, 10 Jul 2019 06:00:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727226AbfGJMz6 (ORCPT + 99 others); Wed, 10 Jul 2019 08:55:58 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:46237 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbfGJMz6 (ORCPT ); Wed, 10 Jul 2019 08:55:58 -0400 X-Originating-IP: 86.250.200.211 Received: from localhost (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: maxime.ripard@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 05851C0004; Wed, 10 Jul 2019 12:55:52 +0000 (UTC) Date: Wed, 10 Jul 2019 14:55:52 +0200 From: Maxime Ripard To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Maarten Lankhorst , Sean Paul , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] drm/modes: Skip invalid cmdline mode Message-ID: <20190710125552.qvmnh6qs63ikiu2k@flea> References: <20190709145151.23086-1-digetx@gmail.com> <20190710101229.54ufuhmh22dfxclr@flea> <4ad69d15-07f8-9753-72d6-a51402c94c20@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="67vkpimxupn2emik" Content-Disposition: inline In-Reply-To: <4ad69d15-07f8-9753-72d6-a51402c94c20@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --67vkpimxupn2emik Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 10, 2019 at 03:42:28PM +0300, Dmitry Osipenko wrote: > 10.07.2019 13:12, Maxime Ripard =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Tue, Jul 09, 2019 at 05:51:51PM +0300, Dmitry Osipenko wrote: > >> The named mode could be invalid and then cmdline parser misses to vali= date > >> mode's dimensions, happily adding 0x0 mode as a valid mode. One case w= here > >> this happens is NVIDIA Tegra devices that are using downstream bootloa= der > >> which adds "video=3Dtegrafb" to the kernel's cmdline and thus upstream= Tegra > >> DRM driver fails to probe because of the invalid mode. > >> > >> Fixes: 3aeeb13d8996 ("drm/modes: Support modes names on the command li= ne") > >> Signed-off-by: Dmitry Osipenko > > > > Applied to drm-misc-next-fixes > > > > Thanks for figuring this out! > > Thank you very much! So the driver now doesn't fail to probe because > of the cmdline, but what else I noticed is that the framebuffer > console is now rotated by 90=C2=B0 on a 800x1280 panel, while display in > Xorg is vertical as it was before. Seems something else is still > missing, reverting "drm/modes: Rewrite the command line parser" > returns the framebuffer's console orientation into the original > state. What is the whole command line passed by the bootloader ? Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --67vkpimxupn2emik Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXSXgWAAKCRDj7w1vZxhR xbSNAP90FVLFwB5+zilKrKrHuq5DCTLYbu5hD446R9T6mYbDzwEAsVaCQHHR/dDs 5WjcFcl9xSdLXeMNaAFgIjCu90b7Uw0= =Pmf4 -----END PGP SIGNATURE----- --67vkpimxupn2emik--