Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp25136imu; Thu, 8 Nov 2018 14:06:48 -0800 (PST) X-Google-Smtp-Source: AJdET5eURxN5tbH4tFArGZzdLft9zg+LmDGihL4T/4hxu8OrTr/qfkAtZZ1O3fLvuODZgHgm3+AW X-Received: by 2002:a63:d70e:: with SMTP id d14mr5291914pgg.159.1541714808248; Thu, 08 Nov 2018 14:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541714808; cv=none; d=google.com; s=arc-20160816; b=w6OF56aRPPon6o2VS41ZA6crKDf8mtL4cJTY4n5NBoAoWcNox+W9YOZPgMU59+syBQ gk595YMQROebZcnVpvNjw7uVvnrYD8qRy69NoYCgvWTW0meOK05LvCPs5yey+Xk0kQAs KfxrbLqjgt4vLE5+iOeGI7RgkjLS5gKOWSdzMJB22bPpbk3qV3p0KCnu15rqonHx/YrL mNLX+MzdxptxinRvcSLiI1JvWbmBdFSICQt2Sidn8UttR807O5Cd/pAmYGWzbivvh1gS 6rlVI8xHwjNMGk/eSniMbR7mFBbrqJDUc45Ec9K5ZQAz9SpYDVQ2N6/qN0crmXLOxtkP 6ogw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ebwJCnvVl0vjbBGbRXUdBrh3uMdqzaPYaE7O5ESQD0g=; b=H9esM89pFSnt+C3VptL4tApcv45CjkyQVvQcoIFESKA9aZbFJIehhxE1K+hiH+DjyL 6WE5B3Q7XfBo5fR24XTytSe7AWC3o/3yiXBTbK62B+c99pWft4vDUt9yQFAglrKoE1dr Plq9JHJiQ+E9NTp+dLPD/usXe4+tHsVMzi6+OIAYKU7QaNGdGeHxp4znp/KkZuqYupX8 8+/YqS5a0UcI8gpZI/nFFuSdK5DbUzxuE63K4iPwuAjkCyYVlOnvdOO1zg1XrTzYTI8r 7hFA1UCPwrJx/yInXxUrRkOSL/+HG0QrrD8/NW/D74XNKjR+DKlP3wqaILA5Y2Jngi0U YwSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZQwciXhC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e33-v6si5638608pld.314.2018.11.08.14.06.30; Thu, 08 Nov 2018 14:06:48 -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=@kernel.org header.s=default header.b=ZQwciXhC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731472AbeKIHmT (ORCPT + 99 others); Fri, 9 Nov 2018 02:42:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:34100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728544AbeKIHmT (ORCPT ); Fri, 9 Nov 2018 02:42:19 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B72882086C; Thu, 8 Nov 2018 22:04:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714688; bh=6Wru0SEdY49dINhG2O65+1GZ/Np6nLUBUmpPPtyXZqI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZQwciXhCuMcnose+FO3n5hScbmHijLKUrFx1MhzGI5YZbp4JwKpGrrxFI4326j6M2 jPa7qKcr+bHdgdfYuRvOwib+GhlSNpMw2CZTMD2fXATkYXMsstVuyYlOz0fvU74Nxe pzVKnzfzL3oOhBKV0zh86yAu6jr9LdfSCKq836OE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Christian=20S=C3=BCnkenberg?= , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Sasha Levin Subject: [PATCH 4.9 066/171] x86/cpu/cyrix: Add alternative Device ID of Geode GX1 SoC Date: Thu, 8 Nov 2018 13:50:36 -0800 Message-Id: <20181108215132.344839494@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215127.257643509@linuxfoundation.org> References: <20181108215127.257643509@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit ae1d557d8f30cb097b4d1f2ab04fa294588ee1cf ] A SoC variant of Geode GX1, notably NSC branded SC1100, seems to report an inverted Device ID in its DIR0 configuration register, specifically 0xb instead of the expected 0x4. Catch this presumably quirky version so it's properly recognized as GX1 and has its cache switched to write-back mode, which provides a significant performance boost in most workloads. SC1100's datasheet "Geode™ SC1100 Information Appliance On a Chip", states in section 1.1.7.1 "Device ID" that device identification values are specified in SC1100's device errata. These, however, seem to not have been publicly released. Wading through a number of boot logs and /proc/cpuinfo dumps found on pastebin and blogs, this patch should mostly be relevant for a number of now admittedly aging Soekris NET4801 and PC Engines WRAP devices, the latter being the platform this issue was discovered on. Performance impact was verified using "openssl speed", with write-back caching scaling throughput between -3% and +41%. Signed-off-by: Christian Sünkenberg Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1496596719.26725.14.camel@student.kit.edu Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- arch/x86/kernel/cpu/cyrix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/cyrix.c b/arch/x86/kernel/cpu/cyrix.c index 455d8ada9b9a..d39cfb2c6b63 100644 --- a/arch/x86/kernel/cpu/cyrix.c +++ b/arch/x86/kernel/cpu/cyrix.c @@ -253,6 +253,7 @@ static void init_cyrix(struct cpuinfo_x86 *c) break; case 4: /* MediaGX/GXm or Geode GXM/GXLV/GX1 */ + case 11: /* GX1 with inverted Device ID */ #ifdef CONFIG_PCI { u32 vendor, device; -- 2.17.1