From patchwork Tue Feb 16 15:03:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 12090139 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7558AC433DB for ; Tue, 16 Feb 2021 15:03:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0E9F164E02 for ; Tue, 16 Feb 2021 15:03:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E9F164E02 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=soleen.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 822796B006C; Tue, 16 Feb 2021 10:03:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7D3906B006E; Tue, 16 Feb 2021 10:03:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 70FC16B0070; Tue, 16 Feb 2021 10:03:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0169.hostedemail.com [216.40.44.169]) by kanga.kvack.org (Postfix) with ESMTP id 5ADED6B006C for ; Tue, 16 Feb 2021 10:03:55 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 29E2E8248076 for ; Tue, 16 Feb 2021 15:03:55 +0000 (UTC) X-FDA: 77824450830.08.bulb34_1c1444627644 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin08.hostedemail.com (Postfix) with ESMTP id 041221819E62C for ; Tue, 16 Feb 2021 15:03:54 +0000 (UTC) X-HE-Tag: bulb34_1c1444627644 X-Filterd-Recvd-Size: 3808 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Tue, 16 Feb 2021 15:03:54 +0000 (UTC) Received: by mail-qt1-f171.google.com with SMTP id w20so7258296qta.0 for ; Tue, 16 Feb 2021 07:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=nlIjDNwciuLZerl/8KMONEqRooC3ce2GyvtFs6F4uM4=; b=P1tfOetut2I2vGuRsUKhLDELRY/NzRBZQxkQX1Ao+vkgFWiyG9YY+qr9ELeKuwaTxG aTSaaRybuoY6kMpmZwSgvG7WMstkZ76HrGR0prajouzqodZt7EqyyiXcOgCHLc3uqWhq YfiQKKqvetgRothSFf4Ye+tKYmpwTv6E1uPKadXRX6QOCOF7GlGpuBmQ5S4F79g+HeSn W/xyt0A0bLSF1t1eAOWhAUwbIrntQ/vA5ygdkpZJhU2QqFNCMJElApwFgmJKJocGpLWw /BAYG/2p3vVaeFikeTJ8bL2J5rf5o41pVgnVRflLTXhi1BAqNfEQKJyvMJG1jepugJoH /QSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=nlIjDNwciuLZerl/8KMONEqRooC3ce2GyvtFs6F4uM4=; b=Zs0VluvK3YWz7luAEJeAM3lFRkSmp0+pj/HsNuFt6+uQvlqNk48/1bm2qHTDxT4giy tAp3hS6FCyCWsamWePggM1ArZdAZ3zopwT3/0nEf0wO7pLX7eEkXQalxQEhfubCdFdYC VNVJE7oxrHO39QncmksQl+5JSuQodvJoE5daUOlTO5tCDXsfcqKy8rMRSnnsaaOCqnrJ OUvwIdIy2DZ8lw9J4ASDCbJJBCHwfS1YBMi/UWe+vpm/Lod+NB30yLHz2YrHp4l+4pHg d1yagTZ3cfYARdSolhctHQniO6y7y9Qu8HeEUaSiQm+yCujj7qvWxxFFCEfqYobgxYpQ UUXQ== X-Gm-Message-State: AOAM531xYoBKWpMXsBTxl+A9Vq0TtuCmD6C84GW0Kp21PGk+yd0TugmH 5c76BR3wVrY746JMP1SuqDSFxQ== X-Google-Smtp-Source: ABdhPJwMh/Z5O55xxWEmoIiSjHCE6yEstHKMQGgxQ/3H13B7Iy838arwlkSGi/GCtdewYjPehohTxQ== X-Received: by 2002:ac8:5bc4:: with SMTP id b4mr19105609qtb.240.1613487833590; Tue, 16 Feb 2021 07:03:53 -0800 (PST) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id t19sm14974271qke.109.2021.02.16.07.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 07:03:52 -0800 (PST) From: Pavel Tatashin To: pasha.tatashin@soleen.com, tyhicks@linux.microsoft.com, jmorris@namei.org, catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, anshuman.khandual@arm.com, rppt@kernel.org, logang@deltatee.com, ardb@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mhocko@suse.com, linux-mm@kvack.org Subject: [PATCH v3 0/1] correct the inside linear map range during hotplug check Date: Tue, 16 Feb 2021 10:03:50 -0500 Message-Id: <20210216150351.129018-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: v3: - Sync with linux-next where arch_get_mappable_range() was introduced. v2: - Added test-by Tyler Hicks - Addressed comments from Anshuman Khandual: moved check under IS_ENABLED(CONFIG_RANDOMIZE_BASE), added WARN_ON(start_linear_pa > end_linear_pa); Fixes a hotplug error that may occur on systems with CONFIG_RANDOMIZE_BASE enabled. Applies against linux-next. v1: https://lore.kernel.org/lkml/20210213012316.1525419-1-pasha.tatashin@soleen.com v2: https://lore.kernel.org/lkml/20210215192237.362706-1-pasha.tatashin@soleen.com Pavel Tatashin (1): arm64: mm: correct the inside linear map range during hotplug check arch/arm64/mm/mmu.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-)