Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9159699ybi; Wed, 10 Jul 2019 05:43:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHz1iRtlD3O3xsSgrCkZncipUOdrfsviZ67gd3cokbnhtaOH6pptm2PU2P/gpiCfA0u2Va X-Received: by 2002:a17:902:788e:: with SMTP id q14mr39136930pll.234.1562762617915; Wed, 10 Jul 2019 05:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562762617; cv=none; d=google.com; s=arc-20160816; b=I7ZCp0+Zv3nK+Uh9pEdVW2EHcie2xzpXLzxCRZuXuZXlNW7/iHprXffSpzBs2asglE OxeNMbQPSeS5Nhv5l4bKfonFqdqGfhMIsQHz4NJdulDaYoXL3k4XMbF6vPnPqf0+zuYi rwCQy89+V4hnl2eQt2FJ1DwxhDAN1y56f5ZEw4wzMjCEz+RkvfUcnLbQtfjbV1e1w/qy R9yQ6+ctsvlWBnAY6OLm99/jy4WGLnJuUi7/XFB1Q060ya9/QRCv0EH4yYcZocbZvs6Z wH/PmRZTbaO7kl4eIzUZolsXy9BoQgPMQlnoYHaMB6rYmtIgsPpnH7oYw3YCamyMcMJV aPPg== 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=SaYCgTca3sd4iZ2y4Hurjp1FivgyQ/okDm47EWmj7hc=; b=j3IsW/GNerQsxOoTQkX068u7BBsTB+aUXw7rvOtXFWDWLBxtpixtxQrtVIfqKsGTer ZmUnfK1jacH4JipBTeof1JkgQwHlraaxG80VDaE8kYToQfhWL7UNdMD/C0BWL5edJpE4 +ntAiGDacHrbyemhLvbGui7d1j2KpQv8g+r3MhJwnoacSusxyEfHdk8TH3Rp7ZTei/Bp LbIEs8MIiyXq9cDto8GCCJULZ9TmCkrvhU4PM0HWzYtrzRcyNrBLeuZX3QGy2fmBntBp OHtC2YDe/nXZnxzJm+kUpHyBK/beHk3ObNGeZ3GmV3Yerl3BEP4fYea7WSeHxqYShrG+ bgvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=StYp8lyS; 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 f1si2282493pgc.144.2019.07.10.05.43.22; Wed, 10 Jul 2019 05:43:37 -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=StYp8lyS; 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 S1727303AbfGJMme (ORCPT + 99 others); Wed, 10 Jul 2019 08:42:34 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:45220 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727068AbfGJMme (ORCPT ); Wed, 10 Jul 2019 08:42:34 -0400 Received: by mail-lj1-f195.google.com with SMTP id m23so1903147lje.12; Wed, 10 Jul 2019 05:42:33 -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=SaYCgTca3sd4iZ2y4Hurjp1FivgyQ/okDm47EWmj7hc=; b=StYp8lySiG1t3rWrCk1RzdObODtoNN3M/d5jCJvsQedwGPLuCSmiBx/w1LaHbHFBgl IW+kkJFyaUBp09u3k5VqkReqlcgUfOobnH8TQDrFU0OR+Liynqa8yY2NxZLOzag7KUT1 xCJCIUw/qeUpp3J+PSkmXkFC1wEJNMB0ySnOXLazvLNFVsf0WDQod9shSiT40woQDRzt 3kEHD3fpkyI7jbriqPscoEqppfz1fxGz5f9WTCG+U0mFSoFFYGmkT1CxrM6OT850kyI6 TTqE2IEKoUZfN8fzfYoPZV1GWkDrtiFaySStTqhFu17j+UF1MPIRJlHbfX/NR8LuSGK4 0Ppw== 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=SaYCgTca3sd4iZ2y4Hurjp1FivgyQ/okDm47EWmj7hc=; b=UpW68VWR+9Nz3Q/r4Sf0j1EjDbJiOJnhN+gRFQp0sIYLjq2S0WY7pV4izbIK88VZ2V ONV++KrdaagtaxxDfnGawqBDGbllot52eHeWOQ/NO/iU78E/+mcYSTvA0h2nTypFsPpL 0LW172djIqYj5MW3HVgVCAXzGC8TBkkwo0dGx93T4m84jysTuxpiGiFxnC6d3GeBzzOn yW0JHjE/ReWQXurxon6SQchcUCmBAb9wfhhcnIT0u6SOwJNFiPxLb4oWvy/YhaKibntO zN5hvr+A+1Y927xx5aCKTPFk1SuZ5eTlQOaTSLKXX2TP5C/KdWkS0Q4c+sM5HzXvXx3s cUeQ== X-Gm-Message-State: APjAAAV2G7fkKef2MlA0LwIci0+WlYMYzbSnfswNPlISAEeaSTEkWKqv wmeIQDBSNyNA41fwzlq4BL7El/N4 X-Received: by 2002:a2e:9117:: with SMTP id m23mr17637479ljg.134.1562762551887; Wed, 10 Jul 2019 05:42:31 -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 n187sm343784lfa.30.2019.07.10.05.42.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2019 05:42:29 -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> From: Dmitry Osipenko Message-ID: <4ad69d15-07f8-9753-72d6-a51402c94c20@gmail.com> Date: Wed, 10 Jul 2019 15:42:28 +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: <20190710101229.54ufuhmh22dfxclr@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 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.