Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1197465ybl; Tue, 13 Aug 2019 08:50:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2pMmsAWxaoh5CL03yM43dDJ/huJ7badvgNSdUrdfIihTDFXsl0amh4XnTAW2WtIYoy7Jg X-Received: by 2002:a63:c1c:: with SMTP id b28mr35122195pgl.354.1565711418188; Tue, 13 Aug 2019 08:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565711418; cv=none; d=google.com; s=arc-20160816; b=XjVfQNEIvSkTgZG5KoPWCrNRIBckKAtTJUY0/G5+6axwNJOgn4iRl9VUEI8nkgv6WG Ii9zue5EsN6heOrzHHOMxskxZp+AddaEQCMh2l8I5HbgSrFZGTEDQhCD26UneSGG8E6e bfBJAgobTKkxf28Bu/Twd6gkv75cQpW26LAKVGMltTEwcL23hN3f7qHXI4Ugv9ibpWNb gNV80QflHmLSu4vef+dpROLjyixfe+h5eyZOaw+5h4fcFKdNb50SzOKuabF7sROPVk7b MvtIZmIpL9zFTvB4QG3VVn4UNgBeDNUR1rnErcQQ3Ym4Q/43rSUz8H9MAOlB6sO/Lhqp +dxQ== 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=pknLE1TtKxJ6/rcx/PvasOsKhUJ+pwFGGkkvEq/kpZA=; b=WRMirO0AqQNHCejY4IOWWnhychQIjhxPvbaA+3etm3XJe+WZWeh4551YY/g0z2elA2 csQdFfzSqol6BsaLEKllg/EivlkZhGfRy7Zq7ep1bA6gZUA9ZdQATeqEiagoL3e986Ip qX6XMTszjq6RQdbcvPcCYV6wNiaVs/AHu+DStSmSqXizCp6X3D/MjC0WCgjZP1ERwR+i 8K/lHII0KNfbA4/ilVYFKbCi+03FKlXIssvucqBA67Q7nx7ecBzlQMQ+olOBUq9OxU0v 1VALBxPNVo5YLWjB5DRIHTV5SRZdnnxgVxXX3Iccl5fwDN1tlPUicrrotYcz7a7vgdZN /OOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FiFMhsDC; 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 h21si907910pjt.4.2019.08.13.08.50.02; Tue, 13 Aug 2019 08:50:18 -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=FiFMhsDC; 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 S1730143AbfHMPr6 (ORCPT + 99 others); Tue, 13 Aug 2019 11:47:58 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43298 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727452AbfHMPr4 (ORCPT ); Tue, 13 Aug 2019 11:47:56 -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=pknLE1TtKxJ6/rcx/PvasOsKhUJ+pwFGGkkvEq/kpZA=; b=FiFMhsDCQ0sFT3HotO2BOzXDkc 4LjNDVOrLDwi6hE8bmpnlyhD931FoOhSSZGBofNzZbnwZiQbeNRvjWOM8d1pknF7vwF/5UykgtX80 xFuyBLkxgX63jlEqrSYUHN3YGm1yJgyLiVwtQB60FUotxGkJCLUmrMJLDWXHB4mzN2y7ZWpW+uiyA OnHK+Xfs2nSPlGx99U2pe12sROiKn4x/jHV+hxY+pzzbnbsf6EEpu+9i63E17XW05i3WieCteAmdu POoz6NdzfS9zfZuAZyXLOZ+EkbbJ1ZikA6I26YJIxscFRlgcGRTBVaoFM7ITWf0g3v3X+G6o1e7sY Qfa0aggA==; Received: from [2001:4bb8:180:1ec3:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hxZ1e-0004ix-Lx; Tue, 13 Aug 2019 15:47:55 +0000 From: Christoph Hellwig To: Palmer Dabbelt , Paul Walmsley Cc: Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Atish Patra Subject: [PATCH 02/15] riscv: use CSR_SATP instead of the legacy sptbr name in switch_mm Date: Tue, 13 Aug 2019 17:47:34 +0200 Message-Id: <20190813154747.24256-3-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190813154747.24256-1-hch@lst.de> References: <20190813154747.24256-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 Reviewed-by: Atish Patra --- 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