Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1059492imm; Tue, 3 Jul 2018 04:58:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLqKGBuGCognT9TWC7qi58bYyKf6iGcfyGWSdwK7izZosngMIu0qq4/p+m9v4cRn3mFoVtn X-Received: by 2002:a17:902:4d:: with SMTP id 71-v6mr29849776pla.317.1530619114620; Tue, 03 Jul 2018 04:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530619114; cv=none; d=google.com; s=arc-20160816; b=nPiJdAQPSaRIvt4XWPkm16FNA5cyZMhSZLinVfl8wcQcy27yy0S1WOcF5huPbuAjPR 921Aop2uFMancwK0bzjvcKBqTswRFLia4r6cAZxQ7hg2KcjJLuvuutBv0/rklvBC770Z lfCdqsg0BwfOakgs2JUAdbwPekcB8RJ3AOdFKPOflrl1KyomNAW7qAiyj1rlmiJwvu/6 MsZUlow86/MjEmacZY4YsMx36345sYhvUfUJ8FJeluwIojakuKXRak3+VOu0qDGCTEKB DXbl/ALEHQdD5pL8S9mYN3EMnmRoE3KMM9X8XEaxySmJIWOu+PlvOTdRHsF70nlWg6yr quTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=a2N70L5LGupsNJGftm8TOtg19pwpwH8tlL+j86Jbbhs=; b=yaJxvcQuiHW8bN1Ntokf1wHyVmv6HR6yyAPW56SGvcFuFWyAWmGoboOdvthPNZw424 FDzqlkIaCQnVPQwerDlY+YkJz/6gl6/60ll9Aby+g98T3xVKBy1NO6BxoAJGcUQdY8Y4 LbbqsD73dTAwPxfpMAEkPTzpOhnXyrPTH/pYOGrrTNLMD7wa/RB85fvoBPLeRLCCKO7f eLDbK1Ge6IWEpgHFTuHFNVssxY90oJgximyzkATP+tAGZ+dWeRKNmUfIJAfXQFmDn0jG yhu2Oorm697+hGG8O4ot8RIxx0dis5VV1O93miZmzGp1H26ctqdZ/DMHnUfAqTF35KiP CsoQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2-v6si951728plh.339.2018.07.03.04.58.20; Tue, 03 Jul 2018 04:58:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752686AbeGCL5l (ORCPT + 99 others); Tue, 3 Jul 2018 07:57:41 -0400 Received: from mga09.intel.com ([134.134.136.24]:54424 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067AbeGCL5k (ORCPT ); Tue, 3 Jul 2018 07:57:40 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2018 04:57:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,303,1526367600"; d="scan'208";a="69275097" Received: from jnikula-mobl2.fi.intel.com (HELO localhost) ([10.237.72.62]) by fmsmga001.fm.intel.com with ESMTP; 03 Jul 2018 04:57:23 -0700 From: Jani Nikula To: Daniel Vetter , Lyude Paul Cc: linux-fbdev@vger.kernel.org, Kees Cook , Bartlomiej Zolnierkiewicz , =?utf-8?Q?Jan_H=2E?= =?utf-8?Q?_Sch=C3=B6nherr?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Bjorn Helgaas Subject: Re: [PATCH] video/console/vgacon: Print big fat warning with nomodeset In-Reply-To: <20180703073452.GD7880@phenom.ffwll.local> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20180702210442.18648-1-lyude@redhat.com> <20180703073452.GD7880@phenom.ffwll.local> Date: Tue, 03 Jul 2018 14:57:08 +0300 Message-ID: <87a7r8r0q3.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 03 Jul 2018, Daniel Vetter wrote: > On Mon, Jul 02, 2018 at 05:04:40PM -0400, Lyude Paul wrote: >> It's been a pretty good while since kernel modesetting was introduced. >> It has almost entirely replaced previous solutions which required >> userspace modesetting, and I can't even recall any drivers off the top >> of my head for modern day hardware that don't only support one or the >> other. Even nvidia's ugly blob does not require the use of nomodeset, >> and only requires that nouveau be blacklisted. >> >> Effectively, the only thing nomodeset does in the year 2018 is disable >> your graphics drivers. Since VESA is a thing, this will give many users >> the false impression that they've actually fixed an issue they were >> having with their machine simply because the laptop will boot up to a >> degraded GUI. This of course, is never actually the case. >> >> Things get even worse when you consider that there's still an enormous >> amount of tutorials users find on the internet that still suggest adding >> nomodeset, along with various users who have been around long enough to >> still suggest it. >> >> There really isn't any legitimate reason I can see for this to be an >> option that's used by anyone else other then developers, or properly >> informed users. So, let's end the confusion and start printing warnings >> whenever it's enabled. >> >> Signed-off-by: Lyude Paul > > Yeah makes tons of sense. I think we should also perhaps mark the option > as a tainting one, but I think that's only wired up for module option. You could do that by adding add_taint(TAINT_USER, LOCKDEP_STILL_OK); in text_mode(). If you do that, you should probably amend the warning message accordingly. Either way, Acked-by: Jani Nikula > Reviewed-by: Daniel Vetter > >> --- >> drivers/video/console/vgacon.c | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c >> index f09e17b60e45..09731b2f6815 100644 >> --- a/drivers/video/console/vgacon.c >> +++ b/drivers/video/console/vgacon.c >> @@ -112,6 +112,11 @@ EXPORT_SYMBOL(vgacon_text_force); >> static int __init text_mode(char *str) >> { >> vgacon_text_mode_force = true; >> + >> + pr_warning("You have booted with nomodeset. This means your GPU drivers are DISABLED\n"); >> + pr_warning("Any video related functionality will be severely degraded, and you may not even be able to suspend the system properly\n"); >> + pr_warning("Unless you actually understand what nomodeset does, you should reboot without enabling it\n"); >> + >> return 1; >> } >> >> -- >> 2.17.1 >> >> _______________________________________________ >> dri-devel mailing list >> dri-devel@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Jani Nikula, Intel Open Source Graphics Center