Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp484210ybk; Sat, 9 May 2020 08:39:05 -0700 (PDT) X-Google-Smtp-Source: APiQypJ1RDgS/qUpdHGaXJLm5PJNPpGdsE8G6ynVKII46GLmL2Hh1Ud3qa/v+5MJQegmKCHQsgSu X-Received: by 2002:a17:907:2708:: with SMTP id w8mr229690ejk.326.1589038745174; Sat, 09 May 2020 08:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589038745; cv=none; d=google.com; s=arc-20160816; b=A1dEkf9fou7LfWfZRhP7OS4JORaG3xdcpyBApUeFe9ExWe+ApH68TCsbZ8JSu8j8Jc 2KPXPtb0R6V9uIanUMbdfdG90/VlWOnCt29Najg8k6aLXJM4VKokBegVmYTFvhj5WjaW +BOLB1/PMjeGY5M7P2zxMb0aXMjD3/35RRSfMRI0j59CddQu9UXSb/WkAjQREehFms9Q RBzgtt4DbKu2qD52JmIG8/XhHhBaGwCgEQDTEeYXKbqmP0TZ8ppCcqIui8F6ByhMhEk+ XClHalbvr06V/eYs0Pdr6WrTWhrIEpORJifjUi80TOYoylB967KKvGSWhRxofQzM/JMh ftQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=rcivY61FjI8KZB+d1rBbrvH7RkDa2Uc4j8UGF0eae0Y=; b=PHHFDFGGAASScL6ZLZKbz4lqN4MaEME6EPRt1DwdSg0BDh2IH+eqbF9F/Ff5GbVQ7c wSgA6ICTK5ufS497SsU6cm1vEkovqx+aIP+rjVZ/eiRCD3Nv+auJpx0r8C5ZMTxBOUJY gbzYrUdCmNdGKoayHBSQx7Q02G2OL/9P6IH1ty3BC0ErUwv3Z5jIJQFk0DyRHKegOKDG UJL4Lk+spvc/N+gUZIcnLV019qMqs3kuhkfpmsQ8jkTd7r1HfsqR6w046xewWHkwKwH4 Pn3b8+ErkydvQHIoFNWEd63KNKkJnW3ecF6AfthWDX7bOD8mDoYJYa2hdF6VaYnIigGo CU3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=JG+grHef; 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 l24si2973245eja.496.2020.05.09.08.38.42; Sat, 09 May 2020 08:39: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; dkim=pass header.i=@lca.pw header.s=google header.b=JG+grHef; 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 S1727950AbgEIPhT (ORCPT + 99 others); Sat, 9 May 2020 11:37:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726782AbgEIPhT (ORCPT ); Sat, 9 May 2020 11:37:19 -0400 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3A70C061A0C for ; Sat, 9 May 2020 08:37:18 -0700 (PDT) Received: by mail-qt1-x829.google.com with SMTP id g16so3409519qtp.11 for ; Sat, 09 May 2020 08:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=rcivY61FjI8KZB+d1rBbrvH7RkDa2Uc4j8UGF0eae0Y=; b=JG+grHefh6HgG+HoX1rFmDt90/y3Ikvg28kVGgdyTr9sorkJyr5DUZaGAqskqMhVL3 5NIq0QuQj+Du4dphPJH64v4hZL2u92XPhqb3UJnCwAp5L97OqduMn0g1mrEk3xD/DjxS N0iMYNPsx73zlAv6mfTV+YbVVC0yRw1IdEYanWV1TggD6vX3b6/y0X0KtUgTbQr4RX6y kKDa0L/o+4Wg0w6y33aN1PUOaCcbjDGMDsR0jkQfZwfWl+i/O9BKuEY4Hiqnuv1Ld17l 7cC3UI1upj540CwbqQZEnOE0d6xsVWttI7A7LwzgMcFOn0OyAd5CEG6yMpEf67KzHFn8 AWPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=rcivY61FjI8KZB+d1rBbrvH7RkDa2Uc4j8UGF0eae0Y=; b=N9yuqhUIHwA+C36OTgM1cs7BJJhtfYF0abyzrAfiglCYWSNGJbzd7veQfAfZgBljO+ hQjpZ8/KiIs7sNzTbU+WicQmEnPtDvb+VWaaQmjLoN2QGeQ7F17sdK2HPjfs5F6J+R27 u+HuwCbzvOxzmwiarXVqRAxtWHG5emxREawKILmNM95YqOJPmY0PpZYAEGUobTuJ5qk1 eT7v5yyUYbTm4+Ekf9aJGPMd9OjkFCIl+a0Cz7lEJfP+yR5ojKnU1pItOATXru2XK0Ww MJdjA+FZI+dR/ejs7dEWnHRIhTOuhnmwjm1xhhIywyBzG7dfP2HJ3xEnKS4HUZjP7DL2 StBA== X-Gm-Message-State: AGi0PubEXNqiqvPqNVrJu71ZaGQgJOmZowZYabaI5ltoYs650omOpSZj CrO/MotkafMHW/lXDHbkgZ32fwG6dXInpA== X-Received: by 2002:ac8:3733:: with SMTP id o48mr8387465qtb.149.1589038636813; Sat, 09 May 2020 08:37:16 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id k127sm3766709qkb.35.2020.05.09.08.37.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 May 2020 08:37:16 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: ioremap() called early from pnv_pci_init_ioda_phb() Date: Sat, 9 May 2020 11:37:15 -0400 Message-Id: References: <1589013450.02gfmpktnp.astroid@bobo.none> Cc: Christophe Leroy , Michael Ellerman , LKML , linuxppc-dev In-Reply-To: <1589013450.02gfmpktnp.astroid@bobo.none> To: Nicholas Piggin X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On May 9, 2020, at 4:38 AM, Nicholas Piggin wrote: >=20 > Your patch to use early_ioremap is faulting? I wonder why? Yes, I don=E2=80=99t know the reasons either. I suppose not many places in o= ther parts of the kernel which keep using those addresses from early_ioremap= () after system booted. Otherwise, we would see those leak warnings elsewher= e. Thus, we probably have to audit the code, and if still necessary, call early= _ioremap() and then early_iounmap() followed by a ioremap() once slab alloca= tor is available?=