Received: by 10.223.185.116 with SMTP id b49csp453866wrg; Fri, 16 Feb 2018 01:40:00 -0800 (PST) X-Google-Smtp-Source: AH8x224WsaqUxfiY77RjM/yiIiMkL68T4L2L0cevjfLoMGYmXim0+lQDKQtYNh7stbK8ihhneYeT X-Received: by 2002:a17:902:bf0c:: with SMTP id bi12-v6mr5384188plb.143.1518774000120; Fri, 16 Feb 2018 01:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518774000; cv=none; d=google.com; s=arc-20160816; b=WhzCx5mOjH+vRuEabIZHhgh/Ci4t/v5knNUgR+m+CbtsnpFoDkgtzid5hhD0xtAdKJ +UZA1p9aGXVx/oyCjGXg3FRJoz73Ag0O6hMj1XampYzzkhbK6BzCGidQD4UrK8SE75MQ TW7yuLqsgusMcpPYzD+xXIjNxHzgYHqX3MhxrpLEuyXD0e2fK5bPTa1tczHuX3fWWCI4 jtLmZO0Rv38Sk5oIuAS0AVS7LT31XIUel9fAHjPLXqgpDWODoyRtF3aCFEW+yj1tsSb0 tVBw678cfIukWChQqv34vtX55x6eoDG9cTW3KAiC0NMjarJVht3Z88MyKv0HbJNDACrs 2+7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=yJnLFt9AjAY7CBuWJ0CoDsZlUOXgUigoaBb2i8NShgk=; b=pz9Dm4lhi1ys1SXZTdBwBhkJqEkA5smNaEQ0gou6CcorL08uI1MRuVTQYpe/10/a/a Zgg7YxPXGclYt8DijFeovQYJlxf+3R6ZPDuPZ+K0wa2S8LrznE8q/wieuekjj+v+jDLl ZpFlcvJYugiDlo4Jk1fDDEHgrn8mmClCjZ0fjPw29jASpLQi7aa/VI/IWJNpciq1ynG8 /vioec6QbBkPcwgqfkMg8kRsfzIS0aZ5F0kZqOXSR0cuTJCaQhariwu5oeI0EbhNAOgC ZG8QLakoSw422pfB5yzHIVrVkf/Rjr5GR9wI2VM14YM7zRFmDVUs37XVR6KGXgTSLrL8 eUzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pRMC8/XW; 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 x1si2634176pgv.124.2018.02.16.01.39.45; Fri, 16 Feb 2018 01:40:00 -0800 (PST) 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=pRMC8/XW; 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 S1426696AbeBOQzR (ORCPT + 99 others); Thu, 15 Feb 2018 11:55:17 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:39970 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423659AbeBOQzP (ORCPT ); Thu, 15 Feb 2018 11:55:15 -0500 Received: by mail-qk0-f195.google.com with SMTP id n198so352676qke.7 for ; Thu, 15 Feb 2018 08:55:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yJnLFt9AjAY7CBuWJ0CoDsZlUOXgUigoaBb2i8NShgk=; b=pRMC8/XWfRcLlKgCBooDMaNS2wEFwddj7xGoMPnCbSRmwbPqFyRi4pDS6qRJpGVqY6 0PELXFiAc6v0YiqmbD44WYKuFcZFcTh6BCdG5mqLPa9tzjiuGr0+KXDOBz9HYeroP5bv H9rZSV1fPSFAJWcfAfAazZ35VNVF8dHDlCJFoqHGmXjkIJeZCyGXpL21g+J1Do0fjWrd nNXcWbbMCmOLg7gs8Zd+jcI0qJ8s6Y1RQ2w2xAsdnE9K2S3ypgQveYVAhEA1MVlAOUZ0 OWyq5CXDd4UIlZ0AaQ28BJdLG4P+4ruJgVZSCJrIPM1Qg37ymSBM/j4T63vFL3vAURop kIEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yJnLFt9AjAY7CBuWJ0CoDsZlUOXgUigoaBb2i8NShgk=; b=q8Xn9uXhJ0/Ag5h2zbM4EJYFJ/+fIjxsCf1H/z9yZq+yhIXhjLrLywLWMDnkR4jBbs MNAxWe+XKVD2CxziB1Se9h0xW7Ch+uo6uT3BVvQ7l8bSe5u96Sed1useNp/jecSermBR w0FxxqE2DZA7WY26tvhRS6ywEYwcsc77kim+b0i4qB3FhI8iJJg1QrVojNd5NERxpZv2 fDoAK9Jqsqv3S9n/8kGOrLjOdFzZwEzsYz/nNufTS+cuMSG100OW6k8fw1sfotp52kzI ib1qbt1fVKX/pkKoyzTJLHUOq9w8faueyU+JWKLm5RKAwVBAA7zQlI1VZ4BXhnQuE+lo YaJQ== X-Gm-Message-State: APf1xPD3vVO0t4BmSre8tBV6HTFZT+AvoOIMrIwArctElJXY+uo+DSap bh4saDWP54MCvE6Yz3QbBg== X-Received: by 10.55.99.139 with SMTP id x133mr5206171qkb.182.1518713714702; Thu, 15 Feb 2018 08:55:14 -0800 (PST) Received: from localhost.localdomain.localdomain ([138.20.184.130]) by smtp.gmail.com with ESMTPSA id k63sm6064742qte.3.2018.02.15.08.55.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 08:55:13 -0800 (PST) From: Matthew Whitehead To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Cc: Matthew Whitehead Subject: [PATCH 3/3] x86/Kconfig : Explicitly enumerate i686-class cpus in Kconfig Date: Thu, 15 Feb 2018 11:54:56 -0500 Message-Id: <1518713696-11360-3-git-send-email-tedheadster@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1518713696-11360-1-git-send-email-tedheadster@gmail.com> References: <1518713696-11360-1-git-send-email-tedheadster@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The X86_P6_NOP config class leaves out many i686-class cpus. Instead, explicitly enumerate all these cpus. Using a configuration with M686 currently sets X86_MINIMUM_CPU_FAMILY=5 instead of the correct value 6. Booting on an i586 it will fail to generate the "This kernel requires an i686 CPU, but only detected an i586 CPU" message and intentional halt as expected. It will instead just silently hang when it hits i686-specific instructions. Signed-off-by: Matthew Whitehead --- arch/x86/Kconfig.cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu index ec64aa7..8b8d229 100644 --- a/arch/x86/Kconfig.cpu +++ b/arch/x86/Kconfig.cpu @@ -385,7 +385,7 @@ config X86_CMOV config X86_MINIMUM_CPU_FAMILY int default "64" if X86_64 - default "6" if X86_32 && X86_P6_NOP + default "6" if X86_32 && (MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || MEFFICEON || MATOM || MCRUSOE || MCORE2 || MK7 || MK8) default "5" if X86_32 && X86_CMPXCHG64 default "4" -- 1.8.3.1