Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4773293ybi; Mon, 15 Jul 2019 14:41:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxZItHxHDRHuGI0rygAT1Lx/XUjzWDAX6Rp+vGZLKvr8v+9nCAXd4mHLJYAMVVOpBFxBLh X-Received: by 2002:a17:902:b612:: with SMTP id b18mr4581186pls.8.1563226895505; Mon, 15 Jul 2019 14:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563226895; cv=none; d=google.com; s=arc-20160816; b=nZzLBbd7P2fF3eFlIdjEtmejvG8ewuozYb18LcrTYc9tscQ276FfLPlDnODwXU5v4L Lz3el94MBzqyOe8WIU25VWKSGmSZfFfA9M4R1l/RA9Nw07LpOo84mI/wN0Qo9qEHL0Yw mSJyzxq3B8yByMTvKmV+f3SKZNDG4/loDOeJVpQs/xStJpq5q1JuMZZls2HMwzuIOUt6 HzMg6TQTg+gkrrVzx7eH41JB04qVJmUZXcZgy0T/0wvp1mFQRIl2lvuSstBBY+WY5Xr8 +Vy0gGxksXFtURSxqq7Gm9gkTWvzZjbupbTNXPVJUxxENSWYsGL8wWm8sxlI090AhMGw mR7g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=FswRZqgN/pvd1iwzddhHBmlf5FX0AHTot/eT8dI7keU=; b=wh63z2HNpDMm0yIwxrkXVprjWSZQbISMj0MgeZ10KpKm/iscW1nHSB/B1fpwPjQe9Q fQ7gdvD4O3DWkJMY6OHSHJyhrvKFQYMTEe9BON/bX0vHZ+y/ctltMAay8mmwRy0fcEO2 KQGGNf6vBEQit2fMpLFpzqPctEVevymX0iaOYwWpZHBZMLQ0JjyldVtJojg/kl4XVm/h X7n0Iai5pXvlfVf63qxA/U7I/xJAbW7p9mxmloE73KkcCic+NCg2Y+ghwT6lAL1mJUqM 2ygI7GFGTpBMpTrwTCtyPk327mJd9q3to+m33mq21tLegtGDwQHRHv+XtJ4b5nyRVBz4 QEJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=jn+8EzXV; 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=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bd11si16049650plb.184.2019.07.15.14.41.19; Mon, 15 Jul 2019 14:41:35 -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=fail header.i=@crapouillou.net header.s=mail header.b=jn+8EzXV; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731858AbfGOVkP (ORCPT + 99 others); Mon, 15 Jul 2019 17:40:15 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:34402 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730156AbfGOVkP (ORCPT ); Mon, 15 Jul 2019 17:40:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1563226813; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=FswRZqgN/pvd1iwzddhHBmlf5FX0AHTot/eT8dI7keU=; b=jn+8EzXVNZMIYKWPAYf2H5irN0X3fraihSEH+bzKqqk6FsMRFZRe9M0X/Mm3viPitnyWrj hlBhhEFYQSe9r4wyynCknqW/TxRPFMbiInu53uA4FdfklHrU07XDnYNqLvBiklZO7J5sNC so0TqQ5wNG0Ze/iCIZ7lsZLTIzKgtnA= From: Paul Cercueil To: Ralf Baechle , Paul Burton , James Hogan Cc: od@zcrc.me, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Silsby , Paul Cercueil Subject: [PATCH 1/5] MIPS: Disallow CPU_SUPPORTS_HUGEPAGES for XPA,EVA Date: Mon, 15 Jul 2019 17:39:59 -0400 Message-Id: <20190715214003.9714-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Silsby In preparation for 32-bit MIPS huge page support. EVA,XPA are extended-addressing modes for 32-bit MIPS systems. Because huge pages aren't currently supported in 32-bit MIPS, this doesn't take any features away from EVA,XPA-enabled systems. However, the soon-to- come 32-bit MIPS huge page support doesn't yet support them. This also disables CPU_SUPPORTS_HUGEPAGES for the small number of 32-bit MIPS CPUs from Alchemy/Netlogic that support a custom 36-bit extended addressing. It's unknown if they even support huge pages in hardware. Signed-off-by: Daniel Silsby Signed-off-by: Paul Cercueil --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index d50fafd7bf3a..ff5f1314241e 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -2110,6 +2110,7 @@ config CPU_SUPPORTS_ADDRWINCFG bool config CPU_SUPPORTS_HUGEPAGES bool + depends on !(32BIT && (ARCH_PHYS_ADDR_T_64BIT || EVA)) config CPU_SUPPORTS_UNCACHED_ACCELERATED bool config MIPS_PGD_C0_CONTEXT -- 2.21.0.593.g511ec345e18