Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9206612ybi; Wed, 10 Jul 2019 06:27:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgnG7BVKxruT3qPdsB9AMDI3CEJ6uX1Fg+iu2CHR1RHGVp6LyvqYA/kiQiNsPZ9srNz+w7 X-Received: by 2002:a17:902:4e25:: with SMTP id f34mr38630265ple.305.1562765273579; Wed, 10 Jul 2019 06:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562765273; cv=none; d=google.com; s=arc-20160816; b=bgMBX+19BlWeWnawmggVvG3OWicNFmRyNSCWDT+OlWKnDflOM/3bGAtvsyoMH8eicQ jJU2T0LA5l/2BNsLyFVYz4fR3RiQcL5qeDuVqCWdYYAfYfD0m7XxCrD9QzLETXevdJ3i ZEgFldmgoPAK7QB9I2ADj1ZLMUKCNv6oUOWJcHzryKOJTAZw8z/nI7Skneuxb6Dd27GX 4TSUefU8Rec6XksPK7VDt7V+g+v7PCUK91wXIcIGFVgnP5LrxXBcqch8WNOWUBUifL5X qc3bA9Ij9nLZzE3NiN3N5ieY6XJZww+Gh2Ab2b1JSiS1D49LxWq+vfh5d2qviNhVIWiV j5LA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=z7ylOxfLdhUvUzU0fEvFs37rFjaeIPMVCihg4Np+yiM=; b=kMYbzVQXxCE7GUoI9TgEin4M00zpWHQCwt1u7f7PLmYeB3Mr/4VnrXA68B3sdkFJYZ I69eMhtFgLO5iePEiQjFSvcUieQxjWZKKepJ5Ur91Lpij+mGaFUcUtee4ydShqdNWikE kHnnSQqR3pfzN+xyEnUjvhsBzQYOLC1zxRLHR8wWQyotSpR9PzcR72IuNntKLMQs90aN t39tILrbN60XRt0vIUdSTZu6bXGCeoMhsQffMcRALYTqKmG5Artu02jTc4QqcrkNcoaC 3zfVf57LE1Iq2hFkLI1V036/TJu7oyrL4c4r57qyNsPMQuhAhYWjPxLmotAv5PoSJbdK Lhcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bZMHBsxJ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j17si2334015pfa.198.2019.07.10.06.27.37; Wed, 10 Jul 2019 06:27:53 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bZMHBsxJ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727492AbfGJNAB (ORCPT + 99 others); Wed, 10 Jul 2019 09:00:01 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35412 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727421AbfGJM77 (ORCPT ); Wed, 10 Jul 2019 08:59:59 -0400 Received: by mail-lj1-f194.google.com with SMTP id x25so2013578ljh.2; Wed, 10 Jul 2019 05:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=z7ylOxfLdhUvUzU0fEvFs37rFjaeIPMVCihg4Np+yiM=; b=bZMHBsxJ8aQL5q16//D1P0Kakf6jjGLqfBX3KWpIqnfbjKhyhGk4JFP5Zh8yrBtV9D yFUwyD214OB4RhTTE1FwWKvcdaWQFSiw86DE44C9ki+NtX3vZ0L3n77ohnZcsGRbsLx2 M7HVjLcUUKFUpTgouNnuV+cpmxk0P7YjuMLW0/N8mx4Ggi7R+tqniIOBgEA4u/cgrblq aDn/4dTj+lxZlnpniTeuTTdPwa67iIphdYc7aORIUU8JiWyp2ja2P9RBa5qlptkddm9Z DWOORKvuDKvLSMm5CGF6djJsk40gY/vrBl5yfI0zEcmeqIErTzHb7DpDyrelEQROElba VIeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=z7ylOxfLdhUvUzU0fEvFs37rFjaeIPMVCihg4Np+yiM=; b=gGDlPyKovbX0Z33dh0uxvfp2ZkoPXCjZMYW+xPqEIcUOhM37BdcFrGlKCIOXlahdz1 oU3fbU6sDnr7Cn7eK4Kqp9aqOszjjTifSH4m/k6K0D+P+TyL4uWoziUmvWJbaN3ZcGjB DAc1AmcLhVEeVgwdxPhscN1EwzEHrssaIGOhHPTNM+I1eueJ6FDux+ej0e/kHLD+a2G2 WzEInV2prDlzFBx+U8yfPk7P59SRJKOqqAdhF5Js38p5NoXpyVn4JuAtkFBA9R27Y4kT 5bIxejo4DuzV0bO+pXgpvXiYD6Kfw1sJAXQA3ov6q5Lyd7OutslREhvHcHkLmfsK+CEP jJFg== X-Gm-Message-State: APjAAAX7sdnZT+PoEgxRaeFiF5hcpdmRYwcpEstLj4Gh3/ABQLKMcb8M T2famRihTf2KR2uwx9nt/aQdbAeT X-Received: by 2002:a2e:9e81:: with SMTP id f1mr17744867ljk.29.1562763596585; Wed, 10 Jul 2019 05:59:56 -0700 (PDT) Received: from [192.168.2.145] (ppp79-139-233-208.pppoe.spdop.ru. [79.139.233.208]) by smtp.googlemail.com with ESMTPSA id f24sm380661lfk.72.2019.07.10.05.59.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2019 05:59:55 -0700 (PDT) Subject: Re: [PATCH v1] drm/modes: Skip invalid cmdline mode To: Maxime Ripard 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 References: <20190709145151.23086-1-digetx@gmail.com> <20190710101229.54ufuhmh22dfxclr@flea> <4ad69d15-07f8-9753-72d6-a51402c94c20@gmail.com> <20190710125552.qvmnh6qs63ikiu2k@flea> From: Dmitry Osipenko Message-ID: Date: Wed, 10 Jul 2019 15:59:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190710125552.qvmnh6qs63ikiu2k@flea> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 10.07.2019 15:55, Maxime Ripard пишет: > On Wed, Jul 10, 2019 at 03:42:28PM +0300, Dmitry Osipenko wrote: >> 10.07.2019 13:12, Maxime Ripard пишет: >>> 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 validate >>>> mode's dimensions, happily adding 0x0 mode as a valid mode. One case where >>>> this happens is NVIDIA Tegra devices that are using downstream bootloader >>>> which adds "video=tegrafb" 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 line") >>>> 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° 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 ? tegraid=30.1.3.0.0 mem=1022M@2048M android.commchip=0 vmalloc=512M androidboot.serialno=015d3f18c9081210 video=tegrafb no_console_suspend=1 console=none debug_uartport=hsport usbcore.old_scheme_first=1 lp0_vec=8192@0xbddf9000 tegra_fbmem=8195200@0xabe01000 core_edp_mv=0 audio_codec=rt5640 board_info=f41:a00:1:44:2 root=/dev/sda1 rw rootwait tegraboot=sdmmc gpt gpt_sector=61079551 androidboot.bootloader=4.23 androidboot.baseband=1231_0.18.0_0409