Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp475810ybk; Wed, 20 May 2020 04:33:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNiAxrh01clisNJWdXKT8jsvNaaZaZEAvwdrA0o2zTYF0FU6KFgv7G+DK/NJES3ZC6cOXP X-Received: by 2002:a50:ed06:: with SMTP id j6mr2923714eds.209.1589974395127; Wed, 20 May 2020 04:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589974395; cv=none; d=google.com; s=arc-20160816; b=zXV9r9cVW5F9UfvaExOJapug8ShLkFQMV/a7PlooXa9x4tTO+N0Ya6Au4KpZq6eb7e 3N75zli1y6JnRyhphwLGP1kouEYtqFnh1A185qphYMj3lNDg31BQYs4dKNFlnKoqa/CP JqtTUJc6GAjxiBd0bR99f82D6jR7Eu/6Ca4yL1Ya8bvh399a3ZBLuiv3N2EQTbLHlpwF 9eipsB6KWTiBrg/kZu2Chwfo0W9qBm7K7KeCROPkaKm0Uyr1AimcyxfMLu5qx1YvowTr /8Igz9sjy33W77jUmcFBEnITU8r/rICisLdzFreyrr+4XCbL0Er4n/JqjSJqvjHYKpac 2JUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Qez2/Z5dTVlIAyeC3kTs8TKgmM+kZwCNINv9WBsoW3o=; b=GbNzISHk9MzKiXTe1IuunjEhc6DLprSRNQsq26HoBFmNc2iejA0+FyicsVy48ahSRr 0zWhwZuTbLXcvtc4m0R2Ev+Nnf+CgwbHTM4BtMbe2ZIw4o1krfGVKeHfzD6YGyf7I/BK TFuk7jYvUkONSu7yd6sQVmlv1Fhn2eZYG9dM2oCOccrWtX7CDp/PrQbI6hevWq5CZ0Ss 2JZUpA7UJM9Fjk5wqKM8h6mt4mOnvsUdpdbWu6ArNrlYM2tTcVn484lAtwj9hr0LA40G bQS7+SezFiuYbxF3DeCyp6fIjeNzHrphMW28hXEIAMskCeu2R7NnGuIijw6SHUOSz1L5 lCUw== 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 r13si1335408edx.177.2020.05.20.04.32.52; Wed, 20 May 2020 04:33:15 -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 S1726691AbgETLbI (ORCPT + 99 others); Wed, 20 May 2020 07:31:08 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:57970 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbgETLbH (ORCPT ); Wed, 20 May 2020 07:31:07 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 2D97180307C1; Wed, 20 May 2020 11:31:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yGC09t4w11r0; Wed, 20 May 2020 14:31:00 +0300 (MSK) Date: Wed, 20 May 2020 14:30:58 +0300 From: Serge Semin To: Thomas Bogendoerfer CC: Serge Semin , Alexey Malahov , Paul Burton , Ralf Baechle , Arnd Bergmann , Rob Herring , , , Greg Kroah-Hartman , Allison Randal , Thomas Gleixner , Zhou Yanjie , Paul Cercueil , Jiaxun Yang , Mike Rapoport , Andrew Morton , , Subject: Re: [PATCH v2 12/20] mips: MAAR: Add XPA mode support Message-ID: <20200520113058.nd7fsafrbhdcp2c7@mobilestation> References: <20200306124807.3596F80307C2@mail.baikalelectronics.ru> <20200506174238.15385-1-Sergey.Semin@baikalelectronics.ru> <20200506174238.15385-13-Sergey.Semin@baikalelectronics.ru> <20200519154213.GA15797@alpha.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200519154213.GA15797@alpha.franken.de> X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 19, 2020 at 05:42:13PM +0200, Thomas Bogendoerfer wrote: > 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. Great! Thanks. -Sergey > > Thomas. > > -- > Crap can work. Given enough thrust pigs will fly, but it's not necessarily a > good idea. [ RFC1925, 2.3 ]