Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp191566ybl; Tue, 20 Aug 2019 18:08:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1nQ4/GCMeOIS0vBwEQP9ht6dsqlDGYOR0aDoti+QfVkZggbbQ4QXLNCGSDTMLJKq02eft X-Received: by 2002:a65:6104:: with SMTP id z4mr26415120pgu.27.1566349686280; Tue, 20 Aug 2019 18:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566349686; cv=none; d=google.com; s=arc-20160816; b=bqdIKSCG7UDbuGnS5SfXATKe3uciKNQ1fKBLdVLGizbJtzh7P3eL3aMJr7RGvl/M2q 8OGJAd5H9X9shFyAXwgRzfKG1Kw3W5WMCTgtFG+8I8vfXooSESeh8ZK8Vx6dYdnz3y8J LiL/j0ZPOBNfZ6JtZ/aOka61byCT/Br4vsFlhoRvvTliFjm7T/5mYZSlJMlCzCSbn8l8 zHL/9SEZa2aIm4fWKI/+4tokn0yPS6nu51hY0hrJuIsDx8MovoKk3gtuf5y/oM6JK7hg YewZGx/P6953lPVmkqguhXYUJkHJz0quStftXjPrt1GgjEti/Myr5e8bSCbSOTzNOhhG nVlg== 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:date:cc:to:from:subject:message-id; bh=qRoH6sW4pgxGpzhKLSufdiGBorkaSkJ5jlnOm+Wy7Eo=; b=zNawK7RlPFGFVTiJP/9c4Mr25TcoVtU/0vDSFpATIL2fKSYPOSkA+C/Vo691fqm86L QuALVONJ9AAJTYrUYWMaL/jeqUdVT3HUeAZAtanh9yXKP7/Ccx67/eGvv+0VDbHPTt8/ P6HJONbgjhX75u9Q6g5Gv3/wZBDZNoNjxBwy8wObn2lEJLwNZ9Z/AkQ7BiJkmzqgUdHv l+BN2qewMm6m4qqWWyJSkuczON5PrAJluxVniZ31rEN1MXW7A/cYVaRz3AgTRnfEgI4p l2hKrjmGtECpl1v8U7dc1Qy36I/qYwQCEt89+O0GVX75VB04lqrkrVm7fjmHPjKt2OVW Sliw== 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 cj2si14111258plb.190.2019.08.20.18.07.50; Tue, 20 Aug 2019 18:08:06 -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 S1726762AbfHUAm6 (ORCPT + 99 others); Tue, 20 Aug 2019 20:42:58 -0400 Received: from gate.crashing.org ([63.228.1.57]:49888 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbfHUAm6 (ORCPT ); Tue, 20 Aug 2019 20:42:58 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x7L0gRWO003493; Tue, 20 Aug 2019 19:42:29 -0500 Message-ID: Subject: Re: [PATCH v2 05/12] powerpc/mm: rework io-workaround invocation. From: Benjamin Herrenschmidt To: Christoph Hellwig , Christophe Leroy Cc: Paul Mackerras , Michael Ellerman , npiggin@gmail.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Wed, 21 Aug 2019 10:42:27 +1000 In-Reply-To: <20190820222828.GC18433@lst.de> References: <5fa3ef069fbd0f152512afaae19e7a60161454cf.1566309262.git.christophe.leroy@c-s.fr> <20190820222828.GC18433@lst.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-08-21 at 00:28 +0200, Christoph Hellwig wrote: > On Tue, Aug 20, 2019 at 02:07:13PM +0000, Christophe Leroy wrote: > > ppc_md.ioremap() is only used for I/O workaround on CELL platform, > > so indirect function call can be avoided. > > > > This patch reworks the io-workaround and ioremap() functions to > > use the global 'io_workaround_inited' flag for the activation > > of io-workaround. > > > > When CONFIG_PPC_IO_WORKAROUNDS or CONFIG_PPC_INDIRECT_MMIO are not > > selected, the I/O workaround ioremap() voids and the global flag is > > not used. > > Note that CONFIG_PPC_IO_WORKAROUNDS is only selected by a specific cell > config, and CONFIG_PPC_INDIRECT_MMIO is always selected by cell, so > I think we can make CONFIG_PPC_IO_WORKAROUNDS depend on > CONFIG_PPC_INDIRECT_MMIO Or we can deprecate that old platform... not sure anybody uses it anymore (if anybody ever did). Cheers, ben.