Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2027470ybd; Sun, 23 Jun 2019 22:46:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxG8f6RS4WdWIdPlRYXhHCetq6MiKSChATDUcl7B5vyOD1aB4LXHbS3XDijI37gYEE6s4/q X-Received: by 2002:a63:4105:: with SMTP id o5mr32016502pga.308.1561355203830; Sun, 23 Jun 2019 22:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561355203; cv=none; d=google.com; s=arc-20160816; b=tWjWCAW1UHYGsbYPrmScKt03PMsDjsL3HmxUOGeg41kNMP7MCpEAlAB+2076/cXdel 5X3KUtyJHgWc8xrEdFkoFYlRhV1wPQEdC0GcDDZYgbzN31Bs1QxRaRSjVEimTOi9enY8 Fi05vs0Mxh0YoSPpmP7rGlJL4qsrTLNbXYb6Ef5DBux504dSMX5QC4Pou9TbdxGMsrNr wnnIfksRJnkxxxne/6HLY/IW+43PcpW5vR9OUYdzh7zqgRBS5kMXoiwSBLKodSWmW6Bd DJh+CjJRjeWyQfr7M80qKvsAJ7b8GLh2ZZM6DKWTaR6IedjoFTXbtw3ffv5fg3oMZad9 I2IA== 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=+l3vwi8bsor/tja9ZheW5y8DiiO/mW8k6zhZ4E83rTI=; b=E+P/7z+rsGs54rzKQkPZ2eKWq+ZIBjWUEvc6FWsoXbaiMekXnsUPJ3brDBdMq5kUk1 R1afr3e1hSx1yVgpBAIYHQLXqi2PLE1GzZFgOV85hxIYfoxP+s/rjW2grnKqcLGTk7Lf TF4MNc9XVqg4uMhJG9HN4zjO2CW7e0rI4azISryUijtkfvhyMeOLo1EWQanySxFNtHm8 I7v62Y3nCKebRKzsGngHe9TOdQs7ofXoScFxzYKpdrDSfriypHdgVXEH5kCGaOGll3JV xGEJ7krCM7jC/ZiFLbkHzV4jTipYONLtVDY8HNdKPsCTMPSlO8G5nTQvzvdH5IhMSqlC fyJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mAvADQ+c; 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 v97si9937206pjb.23.2019.06.23.22.46.28; Sun, 23 Jun 2019 22:46:43 -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=@infradead.org header.s=bombadil.20170209 header.b=mAvADQ+c; 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 S1727296AbfFXFng (ORCPT + 99 others); Mon, 24 Jun 2019 01:43:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35624 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726223AbfFXFnf (ORCPT ); Mon, 24 Jun 2019 01:43:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+l3vwi8bsor/tja9ZheW5y8DiiO/mW8k6zhZ4E83rTI=; b=mAvADQ+cwTdSv+lt/UrCLAQIca 0dD4dqEu4sMMNiFBL7leKtPj9jibj22MJ0jwgHB3KU5zu4mlrT2QfCgV56BTu/m9YZiG5Nr1uUm84 y1PwMD41gPqcy/8w1H7CcUsZnBbdXBxDp9rR/8b7435grnEb/8gn616L6xirlmp6IkDOHezq54Jci M+NToc3yEOIoREpCO/yTJs29tuZDuvF0ETJp51nUCIKg/w2K4HNxKopP12CaHADIOpvmDhFTgD5Qr WovcnekXgMnBwUh7ex4C90RWdFHYis/U2RnDWbeNGhclz0LrvcsC3mzmXItVAbQVafsOja8CpIj2P g7pyPeTQ==; Received: from 213-225-6-159.nat.highway.a1.net ([213.225.6.159] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hfHlM-0006Fu-LS; Mon, 24 Jun 2019 05:43:33 +0000 From: Christoph Hellwig To: Palmer Dabbelt , Paul Walmsley Cc: Damien Le Moal , linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/17] riscv: use CSR_SATP instead of the legacy sptbr name in switch_mm Date: Mon, 24 Jun 2019 07:42:59 +0200 Message-Id: <20190624054311.30256-6-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190624054311.30256-1-hch@lst.de> References: <20190624054311.30256-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch to our own constant for the satp register instead of using the old name from a legacy version of the privileged spec. Signed-off-by: Christoph Hellwig --- arch/riscv/mm/context.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c index 89ceb3cbe218..beeb5d7f92ea 100644 --- a/arch/riscv/mm/context.c +++ b/arch/riscv/mm/context.c @@ -57,12 +57,7 @@ void switch_mm(struct mm_struct *prev, struct mm_struct *next, cpumask_clear_cpu(cpu, mm_cpumask(prev)); cpumask_set_cpu(cpu, mm_cpumask(next)); - /* - * Use the old spbtr name instead of using the current satp - * name to support binutils 2.29 which doesn't know about the - * privileged ISA 1.10 yet. - */ - csr_write(sptbr, virt_to_pfn(next->pgd) | SATP_MODE); + csr_write(CSR_SATP, virt_to_pfn(next->pgd) | SATP_MODE); local_flush_tlb_all(); flush_icache_deferred(next); -- 2.20.1