Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1268805ybl; Tue, 13 Aug 2019 09:51:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwA7rVUbHTASoNQwFE/RhH4hlI1YHAakm2CY9bh2mCB6YKfGLTitLhMuCcXHNLDcSvYWSXo X-Received: by 2002:a62:ce8a:: with SMTP id y132mr1795242pfg.240.1565715119044; Tue, 13 Aug 2019 09:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565715119; cv=none; d=google.com; s=arc-20160816; b=kn8BIsE2K4g7zClSGvH3CuWKdPmIEFSx/ioSUuu2G3OkLquYY0XhdamfZVx29YVm5L nFJ53ZRmJaF2z748rQbnY1y6/WGccTbi43oJpvSPDtvHCByzfvsl00Dp0sNTiI5CGJlg eJkcvS5y35jhsnalBrksQfqhrECuIc4Gn5zLMb7gdGnfv4rVfXCVD3o2l0QPzdHn1igp u/mrvblKAaDuMbS6Z1phvVUVB1+2VhB5CjZbcVHejWtrTjCq2PgKAk3Hb1O7WzfuTEnF VzPiz7lRvxZf1dzHErXPveXhIZ6yUQ4UZCnP2bXsxJVUSxKk8bImO+FH5eeTqq+ii2oi qRCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=wWYXt7jx7G31cd0rE9luks4j70Eji+/vHa4Z1GbiX1s=; b=HyXaZ2QBGU3aLCc+B8Tc5xuCdcWlYch3XURcDcUwvcQO5XVF+VbJgb2ytajW3+zCA2 lO1so4XPLiGX2KIQLAk+Kclc2iPwi9L8P3WBR46QZNdn9dyLoS8p/TwoJvIWkwmfcRGy DAM945kDboe5ukXk5Ovn51grW7K1YNFvQ8qaDjCLlg4CG0hnIRM1173xCSi6vRy+TjnC 2uoCyvRT52IzSFxViOJufAjpqKqZAZJn6pBhwdJBjcqJ1hh5bqKG2U5x9TSSFH2TOIAH 5py1qxOIEZG7nft3UdFXiTW/NholCITUGcEJk9XL/QR+68Ui0Nru5L6j2DVGEouDR8EX iweA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=PVaDn1Ye; 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 g7si5951543plq.360.2019.08.13.09.51.42; Tue, 13 Aug 2019 09:51:59 -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; dkim=pass header.i=@sifive.com header.s=google header.b=PVaDn1Ye; 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 S1728086AbfHMQsq (ORCPT + 99 others); Tue, 13 Aug 2019 12:48:46 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:42906 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbfHMQsq (ORCPT ); Tue, 13 Aug 2019 12:48:46 -0400 Received: by mail-ot1-f66.google.com with SMTP id j7so30294943ota.9 for ; Tue, 13 Aug 2019 09:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=wWYXt7jx7G31cd0rE9luks4j70Eji+/vHa4Z1GbiX1s=; b=PVaDn1YePRT9j9KWakxbJ5aZbPHOe1J33ryNWuvT223ufkBNGNMfeasLJ4OrxmwPQZ zC9YYVf5EuudnD8g2gF+COcciyXunWMzIWBn3kPO03qtPucFcPSAcXnoBJ6kR8EpWhD1 n2kN9d52DP0eEmM3jbQMP5LVdVgEvBpuKKVeVwA4eSx6BVuM8ibVKAoD7BR6I9ULnXs5 FAoNg0DL0iJBEqca3QwrsWRVpN2G6Rn3ar6llSZc784HZGsYUJgp2ajlMF+fYDPicuzH 95qrxSmcS0SEyuOAfEnmAETTEAs+VX2awtZGt/ux0Jucg+YEytTtvv1a97y1iTAEt4ja F88g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=wWYXt7jx7G31cd0rE9luks4j70Eji+/vHa4Z1GbiX1s=; b=N3upIU1OULUHruXflvxxi+Heh+lbmzxeteNaR7svuQrjsR5YIPKx+JIOlxlWUKjWEA GXzkYHYmlY267SQSZyvfPTDGqhkweIPDJUSizQ3J8kNwd2oYt60yomVNcmg+1TMXPEZk Cbilyu0zr2mHzF65bPiMLzl74j0d5AeRJfzS2FnjDJWZWnlJWaPb8affcxs5bDGyy0Ay a0Sc7BedOp6QQRfOu0tYWj9UISnwEuoLt72WpIH04OFIt4e+k3HVfrL2VTIGe3L0RRYH GAC77GcpKzoCdx+5jZtuW5rFxTkLm/JYSxtnp21Uzx3PoDERkxOfwqinpqhfv4rTZrda ccLg== X-Gm-Message-State: APjAAAVcOiatYwUB9qrGKNuRHLxGMaS6x0JKEzRslcqO0TrNsoCqIJFc 8v9bHt//nI5KYbfayiJ8qgvaIxOmKQI= X-Received: by 2002:a5d:8497:: with SMTP id t23mr39094733iom.298.1565714925017; Tue, 13 Aug 2019 09:48:45 -0700 (PDT) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id t19sm91323213iog.41.2019.08.13.09.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Aug 2019 09:48:44 -0700 (PDT) Date: Tue, 13 Aug 2019 09:48:43 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Logan Gunthorpe cc: Greentime Hu , Rob Herring , Albert Ou , Andrew Waterman , Palmer Dabbelt , Linux Kernel Mailing List , Stephen Bates , Olof Johansson , greentime.hu@sifive.com, linux-riscv@lists.infradead.org, Michael Clark , Christoph Hellwig , linux-mm@kvack.org Subject: Re: [PATCH v4 2/2] RISC-V: Implement sparsemem In-Reply-To: Message-ID: References: <20190109203911.7887-1-logang@deltatee.com> <20190109203911.7887-3-logang@deltatee.com> <0926a261-520e-4c40-f926-ddd40bb8ce44@deltatee.com> <96156909-1453-d487-ff66-a041d67c74d6@deltatee.com> <5506c875-9387-acc9-a7fe-5b7c10036c40@deltatee.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Aug 2019, Paul Walmsley wrote: > On Tue, 13 Aug 2019, Logan Gunthorpe wrote: > > > On 2019-08-13 12:04 a.m., Greentime Hu wrote: > > > > > Every architecture with mmu defines their own pfn_valid(). > > > > Not true. Arm64, for example just uses the generic implementation in > > mmzone.h. > > arm64 seems to define their own: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/Kconfig#n899 > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/mm/init.c#n235 > > While there are many architectures which have their own pfn_valid(); > oddly, almost none of them set HAVE_ARCH_PFN_VALID ? (fixed the linux-mm@ address) - Paul