Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3715496imm; Mon, 4 Jun 2018 08:09:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL3Pe5f3MXbHNxOBwy2KB1vGYAXVkpX5Vya0jYiaWxpmwaG3B2F3rijZRuprQPXKXciejT1 X-Received: by 2002:a63:7207:: with SMTP id n7-v6mr17326258pgc.195.1528124956444; Mon, 04 Jun 2018 08:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528124956; cv=none; d=google.com; s=arc-20160816; b=hk/osSzheMtS90vKSZdbGARfzLjKree4GqN88nLrqZAs1gs8hdWIUHQg/LZVJdKEt4 LTa9ozhJiPf+b6ek9Of5Ienqobz470A0pqW6o/e8ExNWMJ06RexpfErwVgTib/IZ+eXe G6LCfcXI2WoQLQqIjgcJHB2iKfXjnjYXTNTAQBc7z4OpPpwrnt03lIcQD8Au5KufOE/O DIIP0dr6QnjOcaka7nWoxJjIpJJlXpV2PEooooRFdmXUCHXW53o9QdyevswLwBg7IEFS Rx3iy/DDj2t6jda1wzOk1Kj3yk7FGMWUPZ4hoQBzuf37S3hYZmND27+TnOlek2NajhPI KoOQ== 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:arc-authentication-results; bh=CQSz1wrkRpKjTWfFPURSzLleXeQiEXd5psMYqCGRsaE=; b=EJ8IBXmvOe4ItW+YJimMuksu710HRDczEDwrWeSaCaPWYgMmjuE4JDqqdILLfqrffK lRC1wxoY1KwSLJryQuP3HDu9br4w26FseitJj0Zys/hdEJRFeZIvw/uegnF3xf1GfTLi 5Ve51z+7ii2nOnXeAsP0bOOMgucdGRi02WfKQ1R7FpKgPH2oAsX7W/WiyOCifpTaBwmb r+Y3nkmEUvSPuX5iyReTy0mg1Sn1Ut+UuboJs8MJ7KQM+vXBlZiyA4Ff9J5/zh9UviHx enX8bqvzNiRoJSmJtR2Jt6WWp2tiC4tXiVZ11DgEiVT1LMWkI8Y7i9xc3yG0/Ozs+NB6 TbQw== 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 31-v6si45067129plk.191.2018.06.04.08.08.32; Mon, 04 Jun 2018 08:09:16 -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 S1753698AbeFDPGl (ORCPT + 99 others); Mon, 4 Jun 2018 11:06:41 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:44604 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473AbeFDPGk (ORCPT ); Mon, 4 Jun 2018 11:06:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BF5521596; Mon, 4 Jun 2018 08:06:39 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9065C3F557; Mon, 4 Jun 2018 08:06:39 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 037971AE53C1; Mon, 4 Jun 2018 16:07:10 +0100 (BST) Date: Mon, 4 Jun 2018 16:07:10 +0100 From: Will Deacon To: Chintan Pandya Cc: catalin.marinas@arm.com, mark.rutland@arm.com, akpm@linux-foundation.org, toshi.kani@hpe.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v12 4/5] arm64: Implement page table free interfaces Message-ID: <20180604150709.GA8593@arm.com> References: <1527856758-27169-1-git-send-email-cpandya@codeaurora.org> <1527856758-27169-5-git-send-email-cpandya@codeaurora.org> <20180604121328.GG9482@arm.com> <98ef3cd0-a9a1-d5b5-f1a6-c0ab8b15ec6a@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98ef3cd0-a9a1-d5b5-f1a6-c0ab8b15ec6a@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 04, 2018 at 07:13:18PM +0530, Chintan Pandya wrote: > On 6/4/2018 5:43 PM, Will Deacon wrote: > >On Fri, Jun 01, 2018 at 06:09:17PM +0530, Chintan Pandya wrote: > >>+ next = addr; > >>+ end = addr + PUD_SIZE; > >>+ do { > >>+ pmd_free_pte_page(entry, next); > >>+ } while (entry++, next += PMD_SIZE, next != end); > >>+ > >>+ pud_clear(pudp); > >>+ __flush_tlb_kernel_pgtable(addr); > >>+ pmd_free(NULL, table); > >>+ } > >>+ return 1; > > > >So with these patches, we only ever return 1 from these helpers. It looks > >like the same is true for x86, so how about we make them void and move the > >calls inside the conditionals in lib/ioremap.c? Obviously, this would be a > >separate patch on the end. > > That sounds valid code churn to me. But since x86 discussion is not > concluded yet, I would wait to share until that gets resolved. May be > not in v13 but separate effort. Would that be okay to you ? Yes, fine by me. Will