Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3621787ybk; Tue, 19 May 2020 09:02:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr9F2PIUBesc18gfqlUT32wUyE9k0JF1yO4+2rleMoWsNVK0DVC4ycqxQRQ1EAGkh0SDXN X-Received: by 2002:a17:906:d10f:: with SMTP id b15mr11052521ejz.227.1589904125344; Tue, 19 May 2020 09:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589904125; cv=none; d=google.com; s=arc-20160816; b=a0bXHYZYoFIq0OGzLWYVSoyaFMfVq3dgj7+Z7qxEG2CVEp6ri3DwiKwXoqnKqOSP8H rBB/AhACeq72zddqQKODzvexQEW6+Sje0UlaFFZUwlRJC/xVZCD38KSkk2pnRTn3lBLg Zs7uD7mbgTf0aFOCP6R9JHnrPntzRqYlCRJfi7n+L3d4z6eSPg7xBSyF/HCCBn8wAKP0 xMBfwwLyWRbtXKLDtfLPeue+nx/P2Dy+11H3+6+xZPvoMIFOM/Y4jrBtL678TzlQpvA2 R4h3oE3IBrAQfh0PfnmIxrbwIIhC3Hqan9hJWFN78UtbSGgSSW33W8Seh2scogy+TpPi 1YBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=cr2Ns7pyxSMaC8GiXz0ixGu4myjgHFeOhwI5dGP2FiM=; b=V7YKLp0R7aIYYAct7hgE1Biyj02QxGyjuF6hRZbQ3c5Qp3UobNPZr4gY9YAbXXR/S9 ll3yOqLAAnSzT7siaQ/oro50K/nJW1qyealp84i9Vau2MlFN8a5H82m5U3Ty2zTEFFzP h5wk/welwPneh+g4zr8U2Zum5ErRsor1ZQurJNidKlxw5ibOFBv9c2NnJmF4T9S7+ic8 ZasURDXOJ/CAZis8r+3ckMwfu872CXgQX5YRkGXNnnwz9IXH5MTIGADYCxhXHp0jdkPc ifUIfVTYXXwd7HqIRGykHdycob7IOC4KcDdKUV944WxZFN7OWqf4/LMCIX9X2cfAjOlU VTAA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si130229ejq.430.2020.05.19.09.01.39; Tue, 19 May 2020 09:02:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729321AbgESQAL (ORCPT + 99 others); Tue, 19 May 2020 12:00:11 -0400 Received: from elvis.franken.de ([193.175.24.41]:59275 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729211AbgESQAK (ORCPT ); Tue, 19 May 2020 12:00:10 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jb4ew-0001Fc-00; Tue, 19 May 2020 18:00:02 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 0EC79C012F; Tue, 19 May 2020 17:42:13 +0200 (CEST) Date: Tue, 19 May 2020 17:42:13 +0200 From: Thomas Bogendoerfer To: Sergey.Semin@baikalelectronics.ru Cc: Serge Semin , Alexey Malahov , Paul Burton , Ralf Baechle , Arnd Bergmann , Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Allison Randal , Thomas Gleixner , Zhou Yanjie , Paul Cercueil , Jiaxun Yang , Mike Rapoport , Andrew Morton , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 12/20] mips: MAAR: Add XPA mode support Message-ID: <20200519154213.GA15797@alpha.franken.de> References: <20200306124807.3596F80307C2@mail.baikalelectronics.ru> <20200506174238.15385-1-Sergey.Semin@baikalelectronics.ru> <20200506174238.15385-13-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200506174238.15385-13-Sergey.Semin@baikalelectronics.ru> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 06, 2020 at 08:42:30PM +0300, Sergey.Semin@baikalelectronics.ru wrote: > From: Serge Semin > > When XPA mode is enabled the normally 32-bits MAAR pair registers > are extended to be of 64-bits width as in pure 64-bits MIPS > architecture. In this case the MAAR registers can enable the > speculative loads/stores for addresses of up to 39-bits width. > But in this case the process of the MAAR initialization changes a bit. > The upper 32-bits of the registers are supposed to be accessed by mean > of the dedicated instructions mfhc0/mthc0 and there is a CP0.MAAR.VH > bit which should be set together with CP0.MAAR.VL as indication > of the boundary validity. All of these peculiarities were taken into > account in this commit so the speculative loads/stores would work > when XPA mode is enabled. > > Co-developed-by: Alexey Malahov > Signed-off-by: Alexey Malahov > Signed-off-by: Serge Semin > Cc: Thomas Bogendoerfer > Cc: Paul Burton > Cc: Ralf Baechle > Cc: Arnd Bergmann > Cc: Rob Herring > Cc: linux-pm@vger.kernel.org > Cc: devicetree@vger.kernel.org > --- > arch/mips/include/asm/maar.h | 17 +++++++++++++++-- > arch/mips/include/asm/mipsregs.h | 10 ++++++++++ > arch/mips/mm/init.c | 8 +++++++- > 3 files changed, 32 insertions(+), 3 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]