Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp383741ybb; Wed, 25 Mar 2020 01:31:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsP4fDemmA0Ktq49ldlAuPeNnlJDfckQjrawwu2duntFyG84u5PMM3zTeA6Vh1MAgx0Ssv5 X-Received: by 2002:a54:4094:: with SMTP id i20mr1586169oii.141.1585125067354; Wed, 25 Mar 2020 01:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585125067; cv=none; d=google.com; s=arc-20160816; b=tsXVdoeKwidQCDMy3avsH5TSdcDjJmvii0F4BkoVJIM3L0Yz4B3CT3OaYdjTGUrU/d t5egiiL7gbto+kpb9HVt/Y9fGhR25aZB8l7WZLY5rmxY+MxSDFQseurBy5zv83pNl1Ni 9TBSULRql/AlLEpwSvHIs8azQQpQOT0sbgNybNMHSyp3myG0FnAWmNNjcJvmLfTvqfob Xy1gX3KTT2/CYCt1Jo5upJPIfMPRlkaUzj/1AZhTChqjGiKKuywf/dW+AyN+J48xBLwx 7TOX83MNi5mjYMn9DmAtIpViR0+nCZqaUJ+p+MeLOBpS8qZ3c1iB+lJbDRcdYvPvjECF c+ig== 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=JW+AVIpzm01IzO0+AiwfcBPUBOrJpwpq609VFgSnHcI=; b=yxixfAmX0UNQ/36QeKdQfG2kNbCs9bsJ6LfTPlgeJcs/aVud9/SzCcSeHsh68g/h+/ kABc37P5PsLH7aynJKPUCntuv9C4p9izoPGXX9LhAOSXz8m7GWDrD3PZwnr6xlaKvRog 3BrBJwN7wn+bMA1big5bGV4RXkxLT29q125hkoF9BZR89GEGvDWovhMcRD29NZRtE2Lz sgIZZ8pdiNV2eLUTa7F/W0nDNTAI+91sIDP8MFtnoxOZ0WK8oIr+duIv4SteWZbfoTmz u2OGr2jnlHQ2K/QQbCvHEnhP4fvDTUjvCNTI2Qq0o1zfa/UvkWm2dozK8qqnH+9J0XyG x9FA== ARC-Authentication-Results: i=1; mx.google.com; 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 o124si10329780oib.111.2020.03.25.01.30.55; Wed, 25 Mar 2020 01:31:07 -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; 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 S1727392AbgCYIaR (ORCPT + 99 others); Wed, 25 Mar 2020 04:30:17 -0400 Received: from verein.lst.de ([213.95.11.211]:39651 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbgCYIaR (ORCPT ); Wed, 25 Mar 2020 04:30:17 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A87AE68AFE; Wed, 25 Mar 2020 09:30:13 +0100 (CET) Date: Wed, 25 Mar 2020 09:30:12 +0100 From: Christoph Hellwig To: "Maciej W. Rozycki" Cc: Christoph Hellwig , Thomas Bogendoerfer , Fredrik Noring , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] MIPS: remove cpu_has_64bit_gp_regs and cpu_has_64bit_addresses Message-ID: <20200325083012.GA21605@lst.de> References: <20200324161525.754181-1-hch@lst.de> <20200324161525.754181-2-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 25, 2020 at 02:36:57AM +0000, Maciej W. Rozycki wrote: > On Tue, 24 Mar 2020, Christoph Hellwig wrote: > > > Both macros are always identical to CONFIG_64BIT. > > I think this abstraction makes sense, especially if we want to support > 64-bit CPUs that only support 32-bit segments, i.e. MIPS architecture > processors whose CP0.Config.AT=1, or legacy MIPS processors that had a > similar limitation, such as the R5900 currently under review. The only use of cpu_has_64bit_addresses is the choice of the ioremap code base. Which ioremap code does the R5900 want to use? If it doesn't match CONFIG_64BIT having a config option for the ioremap implementation seems much more sensible, and can be added with the R5900 patch set (do you have a link to it?).