Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1479857imu; Wed, 23 Jan 2019 18:33:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN4l08/Mn6vaOG77L11ctug1wYNzjVq1kyxqOmmlbwJ4bgo+SJfq1Or/gI1jBhGqIwquqqzR X-Received: by 2002:a62:7f93:: with SMTP id a141mr4633781pfd.96.1548297207308; Wed, 23 Jan 2019 18:33:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548297207; cv=none; d=google.com; s=arc-20160816; b=gCaoew37mzspF00bS0C3hmQa7ExIjTzdTu2prfvNfpEcaDFNqp/c8+AVbML2jMiRar A1DLfXWGZlifSS/w8LLpdrs6W8MgpJG6irIcMjHtj8p21gb+Do+Cy75wbTBoN/B63p3t AM/E/5bfRaILOPAZFd5Dgx2tZRvihxbAk09NLvqoYPKUnIQLD55YErPA2smlxqx7R2Qs 9hqk4RbQFX1rEFG6XjzOWLkIfdOkMS5UOYgv01bqueYyoqptwZOsBYfw/Tw2f43PmW8W NZ8rx3ZeU6DrOSubSj3xJbnj/1+X0CFEd/zo7M6+ZHeFu6Dpcpg6t+qvZkyS+bPVkgeG WFnA== 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:dkim-signature; bh=TbFz25pMR+7iD0pod5DYooRNYBhNI8ybS7y/Jz81r7o=; b=NvpqPIyRwaKoAaLCVTBStbAA3V47eOpm9d5uJc7NqmCST+vPYKqZ15sdqV2UFgqol/ E43mS1uaQG/IOLuCdmf0RUD4N+E0m2zRWavZEAcTPlB20SUaTm0xIL/3GgzwXReoS3hg 9UkTl9gOMT2/PJSk2pglr7TvHuXi9mpDsXz1XcbcY80c10m7H7pED3furMFV0lKQDHss zzXpGHmGT2L2lWFau9gCtn3D5oHKiOMfPNg7FAuXyXWXr9R4hSs5RPlXmAlpYLcAZZh3 t1Al8fnyVNqaAb935yh4nxF6bnVbGgqETlO8v2YhghvH9dEdF1vEDy3bm3GLE22h9C95 sVaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YYldT0xR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t75si20146903pfa.170.2019.01.23.18.33.10; Wed, 23 Jan 2019 18:33:27 -0800 (PST) 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=@kernel.org header.s=default header.b=YYldT0xR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727182AbfAXCc0 (ORCPT + 99 others); Wed, 23 Jan 2019 21:32:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:33352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726517AbfAXCc0 (ORCPT ); Wed, 23 Jan 2019 21:32:26 -0500 Received: from guoren-Inspiron-7460 (23.83.240.247.16clouds.com [23.83.240.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C86A82184C; Thu, 24 Jan 2019 02:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548297145; bh=xMNcOlbl+2Kuj9GNXWp0XWbM0a57TgxgtsrzT66ucgA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YYldT0xRjEgfd7VNgxT/sLYQJpyP51FdK5D+0XHF71b/C8WBF4MbWIv7/ycoGW2nh 8Sp8vsGNTclkpaqI/N8hWbG1et5ITbVdixdKPAnlqqskesgzQkuEqiOIB0VU+okWgy x8GM2ipLFj0f9ZrPa7uCgtUIEBs0nMXQTaVyO06k= Date: Thu, 24 Jan 2019 10:31:57 +0800 From: Guo Ren To: Palmer Dabbelt Cc: Christoph Hellwig , aou@eecs.berkeley.edu, linux-arch@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, ren_guo@c-sky.com, mao_han@c-sky.com Subject: Re: [PATCH] riscv: fixup max_low_pfn with PFN_DOWN. Message-ID: <20190124023157.GA22934@guoren-Inspiron-7460> References: <20190116010738.GA4817@guoren-Inspiron-7460> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2019 at 06:00:35PM -0800, Palmer Dabbelt wrote: > On Tue, 15 Jan 2019 17:07:38 PST (-0800), guoren@kernel.org wrote: > >Hi Christoph, > > > >I use PFN_DOWN() every where as possible and seems it's a habit > >problem. So let risc-v maintainer to choose "PFN_DOW()" or > >">> PAGE_SHIFT". > > > >Also the same with "end_of_DRAM & max_low_pfn". > > PFN_DOWN makes sense to me, as that's what we're trying to do here (round a > physical address down to page frame number). Am a I misunderstanding > something? > No, you got it :) Best Regards Guo Ren