Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2083212ybz; Sun, 26 Apr 2020 10:45:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLc/ic4ZUrsyuVv2zdMAZlACizcJVZnlaKMwUwbM9EZn0vDCh3iAbBFBAdjeFxUbhD2MCPZ X-Received: by 2002:a05:6402:129a:: with SMTP id w26mr15099428edv.254.1587923134089; Sun, 26 Apr 2020 10:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587923134; cv=none; d=google.com; s=arc-20160816; b=uNVP33xrolf0q2MEHhptF03YHYGT2IZHLDjh0fRL0daBEkDNB48Wc9ZzHAYi0FsUcN gpJ4b14nTve3h2CBJmsxl4pujZgS6gKV4+KlbXFkU53E2YMSXHMHyutTp2O9LGN85hvf uAQlmLzcgfyOFxUYlEMqBaEJ+xSHAYe+dQw9t9uWauPbAs/EeazpJuAg3Bvd679Phr7N AePxLiHcOqDcQ76taKj0UH69JK5L5ZptSDXz3K85rNfnKdiYRdebEuzQHAQHmaiIJW5Z MpkAk0nWawA64wz5FVywfOukstVa5Lv7suEkwK0bGoiuFoMg1ZjJZ+Qt6Z9+zfKo07fV Ko9Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GFT0N+FKvDCdPMD1mtKkLyCsaDeRGmAM2feufN5XvzY=; b=n7oBPJbEbN2vgNdFfhHTX9Yi77RuOzTf35/W8cwK7ut2xqCMo0hjGjoC0ZwU/jtTfU rMgtquv5GXJeiNsQxzbuNK26+3OkRE4Y0/0QPy1+87IM7WFdK5XrnYSLEfQyh6aT8TcI 5TzF/CKF5bAN5lSWFezMGtHA7O9EEBW4ouEpmATb2QCwTW6sNoXYZk+uUpS2zJo/2vsZ stktelDi+2t9diMNr0qAHcL5Y8h9O6aApf+q8Kn+y7l4v5gZIEnMHtuOXvGTJgXfrjdZ dBM+4voORJvCNOyWjlb82IO6soOhy84fLa77RSe0/m7T/Sn7ooDQFZiWJg53Y18DIwKO vi0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b="D62SW/M8"; 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=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si6841320edf.435.2020.04.26.10.45.11; Sun, 26 Apr 2020 10:45:34 -0700 (PDT) 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; dkim=fail header.i=@flygoat.com header.s=vultr header.b="D62SW/M8"; 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=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726329AbgDZRlS (ORCPT + 99 others); Sun, 26 Apr 2020 13:41:18 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:60006 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbgDZRlQ (ORCPT ); Sun, 26 Apr 2020 13:41:16 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 275842049A; Sun, 26 Apr 2020 17:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1587922876; bh=prpMrkoSAy8iSRgJ5vUbfLQcjZXENeRE5+WtUrRFzyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D62SW/M8V1GXmb53wqGrNIJ77onCk7Re5jZhutzWe50lpq/Kkn3pBWDevZk2/b7Xd maV8CZe5Bnu9vZR2P8rMEbxmlKsKFcEcbdSsiJZPvkCn1BHYeIp2TcTJN4SOTivjjF cwA6hIak424aXYfssPHrLAENTL2Nlt6p1vI036qUv1aPwL+NYrp4z0seaKSjfSW7KP q2he1ZBkYP0Oz8Cf7R3N5gEJaSfhMN1vW+hSYzlTnH9VEMpKyaibIjKfvMIhV9Ee1i WvSLRw/hkOBYit6Sa8g0HwuaCGKh6tL7N1Rj40/VJS32UEOQxjh33JxFDSjs4qCYdg 70VpODaX6m2Jw== From: Jiaxun Yang To: akpm@linux-foundation.org Cc: sunguoyun@loongson.cn, Jiaxun Yang , Thomas Bogendoerfer , Paul Burton , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Dmitry Korotin , Daniel Silsby , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] mips/mm: Enable SOFT_DIRTY for all 64bit systems Date: Mon, 27 Apr 2020 01:40:56 +0800 Message-Id: <20200426174058.1181837-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200426174058.1181837-1-jiaxun.yang@flygoat.com> References: <20200426174058.1181837-1-jiaxun.yang@flygoat.com> 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 64bit systems always have enough page table bits. So we can safely enable it for all of them instead of for Loongson only. If oneday 32bit systems get 64bit PTEs than we can drop this limition. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 85011023839b..743ed9b9099e 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -45,6 +45,7 @@ config MIPS select HAVE_ARCH_MMAP_RND_BITS if MMU select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT select HAVE_ARCH_SECCOMP_FILTER + select HAVE_ARCH_SOFT_DIRTY if 64BIT select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES select HAVE_ASM_MODVERSIONS @@ -495,7 +496,6 @@ config MACH_LOONGSON64 select COMMON_CLK select USE_OF select BUILTIN_DTB - select HAVE_ARCH_SOFT_DIRTY help This enables the support of Loongson-2/3 family of machines. -- 2.26.0.rc2