Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp270151pxb; Mon, 8 Nov 2021 13:21:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeb3XleFzXiVw8/kuGqCQ61OjecQzmPP3pXU/+S5K4qFMQYIMS3ayTXZGZO+7ClrvUy6kw X-Received: by 2002:a05:6402:34d4:: with SMTP id w20mr2887567edc.63.1636406507543; Mon, 08 Nov 2021 13:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636406507; cv=none; d=google.com; s=arc-20160816; b=DtXWZLYzZEcVR864eOUZW2dqCedu/5rfUAso0UKMZuM7buQJQe/aH4XCdFntqLKklv diYMrVjzI5KVpKOrtIc421I4Y4HbK1b63pZP6B2CsH8kgvqBA+lQjX17RNyomfVkEd02 FUAuDqiMWg/9hAjrlvznZdM20xBpG8/WTxWJW6KEBXoRPljzUPkwJb0R1CQLAjRCtIRl ikDSjf0m8FcPDCY6p08yydHQbWRQxjSmibpuV+oNm+0mgu3ksliOWCFSI0QT+n0QflEC Noi0K9YwEqEynVGP3vdXznTKNd89xduGBPU3EBgr6rWJJWCw2AnSYTJ6XDft3CxaoVA7 9VeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=Btpcwoh5C+oImkInFXOdmxw5k/7vmh/3d/Q5JYZrq+g=; b=rhRnZ6YtaBtaislwaWCmbr4HFTLuUF9SllCUooU2OAmnbGKD5Iqvbew/Q8ktMUJEfC OmObSoW5OyPrvCqXEvHY00LZfRq9QgtS1uUp3sHrxsskHg0z9od6q3UhmsUsJIbJd+VZ oeZX48zEkXWgoDj8aB+V20wLxZAKI9jqeCjm99yWbQ0nHQL5NYc/4KPfW1Q/5jK/FJPa 78KbYIKbRLYtBqgq1gLrRmIXzpbv3XGL+MfSrLYQefIkHH9Frz1Kz4AZgC4lxUuchDyJ QJPbP9CwQme04Qd+8EsIthyAkpQ5wliwXZTPoArHfm4wJsjnh0XlSTnrpOcq26RAuyj1 ZWYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si30152812edk.215.2021.11.08.13.21.23; Mon, 08 Nov 2021 13:21:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238583AbhKHQe1 (ORCPT + 99 others); Mon, 8 Nov 2021 11:34:27 -0500 Received: from mga17.intel.com ([192.55.52.151]:44177 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbhKHQe1 (ORCPT ); Mon, 8 Nov 2021 11:34:27 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10162"; a="212990891" X-IronPort-AV: E=Sophos;i="5.87,218,1631602800"; d="scan'208";a="212990891" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2021 08:31:32 -0800 X-IronPort-AV: E=Sophos;i="5.87,218,1631602800"; d="scan'208";a="491278288" Received: from mschuett-mobl2.ger.corp.intel.com (HELO localhost) ([10.249.33.194]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2021 08:31:29 -0800 From: Jani Nikula To: Javier Martinez Canillas , Thomas Zimmermann , linux-kernel@vger.kernel.org Cc: Pekka Paalanen , Daniel Vetter , Michel =?utf-8?Q?D=C3=A4nzer?= , dri-devel@lists.freedesktop.org, Peter Robinson Subject: Re: [PATCH v3 0/6] Cleanups for the nomodeset kernel command line parameter logic In-Reply-To: <7047ccc5-0927-f304-4d60-181d61344f8b@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20211108121544.776590-1-javierm@redhat.com> <509f58a5-5276-5608-e3ba-4694956f6c50@suse.de> <7047ccc5-0927-f304-4d60-181d61344f8b@redhat.com> Date: Mon, 08 Nov 2021 18:31:27 +0200 Message-ID: <87pmra7go0.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 08 Nov 2021, Javier Martinez Canillas wrote: > Hello Thomas, > > On 11/8/21 13:50, Thomas Zimmermann wrote: >> Hi >> >> Am 08.11.21 um 13:15 schrieb Javier Martinez Canillas: >>> There is a lot of historical baggage on this parameter. It is defined in >>> the vgacon driver as nomodeset, but its set function is called text_mode() >>> and the value queried with a function named vgacon_text_force(). >>> >>> All this implies that it's about forcing text mode for VGA, yet it is not >>> used in neither vgacon nor other console driver. The only users for these >>> are DRM drivers, that check for the vgacon_text_force() return value to >>> determine whether the driver should be loaded or not. >>> >>> That makes it quite confusing to read the code, because the variables and >>> function names don't reflect what they actually do and also are not in the >>> same subsystem as the drivers that make use of them. >>> >>> This patch-set attempts to cleanup the code by moving the nomodseset param >>> to the DRM subsystem and do some renaming to make their intention clearer. >>> >>> This is a v3 of the patches, that address issues pointed out by Jani Nikula >>> in v2: https://lkml.org/lkml/2021/11/4/594 >>> >>> Patch #1 and #2 are just trivial cleanups. >>> >>> Patch #3 moves the nomodeset boot option to the DRM subsystem and renames >>> the variables and functions names. >>> >>> Patch #4 removes the relationship between the nomodeset parameter and the >>> CONFIG_VGA_CONSOLE Kconfig symbol. >> >> On patches 1 to 4 >> >> Acked-by: Thomas Zimmermann >> > > Thanks! > >>> >>> Patch #5 adds nomodeset to the kernel parameters documentation. >>> >>> Patch #6 improves the message when nomodeset is enabled to make it more >>> accurate and less sensational. >> >> See my comments on these patches. >> > > Yes, agreed with your feedback on these. I'll improve it when posting a v4. With the changes proposed by Thomas, the series is also Acked-by: Jani Nikula In particular, it's fine to merge the i915 parts via whichever tree suits you all best (I presume it's drm-misc). I might have bikeshedded the drm_get_modeset() name and the choice of drm_mode_config.h to place the declaration... but meh. The series is definitely an improvement to the status quo. BR, Jani. > > Best regards, -- > Javier Martinez Canillas > Linux Engineering > Red Hat > -- Jani Nikula, Intel Open Source Graphics Center