Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1536351ybt; Thu, 18 Jun 2020 10:58:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPfL3ep6maetoRVJMLHXgpGBe+dnNtG+TcObWlooBwWiQhugpsUFBnTw3jmisnPyqs/4PO X-Received: by 2002:a50:f145:: with SMTP id z5mr5556685edl.78.1592503100411; Thu, 18 Jun 2020 10:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592503100; cv=none; d=google.com; s=arc-20160816; b=LKCQdE2my8cEj6lLuJ426m8nr58nUoEiZh7WdmvwI+/53O3sduc0XFNesZGG9/5OOm ZOx+T+OI6UX2EfD+rwnwcvOfVZpNSvljR0s9f3X5UNkgjcHomzSRDTCkynstG0x+Z7cI 3uXOLYS3JLGPUKuAUd3xytykttEBjjgBoulOerSP6gQdIbxa2gklZc0M1zzA0piXU5fV 4fiJU6+c6SIXMeN33EQ5gWAJUdZqKVjcYoApwQEpuvCYCHAx5BZh362Ye1IbjsBaetfO AGDSEQJyMmDPbcFGv7R2Xa+nKp4LVfrJMDH1UWdUBYumrzuhp5P1CGdVbe3CtMgAkSjA B1CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:references :in-reply-to:cc:to:from; bh=BiZFXaPSUZBKDxK4qcZiZ/buDTVsAUx7FP3WdBe34dM=; b=BHMdKQ/OW2tCSHMdoXnJJ0oseGIMWEduBqcn45mtEdjjG6u2wsNFhMVXoQGWpuRU9I Z2ZYgs8TnCW9x4DAHyZtt1pobUrwQNKg/dIvFkxocpEsq3co3BDaijrDGH6gNrUjVUys B9mE+O+HURq+QE5DU6jZHVXzxPn2R/ClQFzrs8U4IBG2ph9nI3VSQNXARnzgDw6OmJN4 P22Ri8ZmagdZUSdqaZhfXrMXpzkoaH00fznw5NCG4N3eeZVkb1Ee1UWXQZdCCqpclGQa XNpigUQdwlGSJUwZsDtqPmULn0W1rvFRPASmfSO1+vxEnuV78T4neIb8ynlbcuaunDw6 H0hw== ARC-Authentication-Results: i=1; mx.google.com; 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 ci9si2295062ejb.218.2020.06.18.10.57.56; Thu, 18 Jun 2020 10:58:20 -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; 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 S1729825AbgFRMhV (ORCPT + 99 others); Thu, 18 Jun 2020 08:37:21 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:57447 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729803AbgFRMhU (ORCPT ); Thu, 18 Jun 2020 08:37:20 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 49nhKB0y8Qz9sTL; Thu, 18 Jun 2020 22:37:16 +1000 (AEST) From: Michael Ellerman To: Michael Ellerman , Andrew Morton , Mike Rapoport Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Christophe Leroy , Mike Rapoport , linux-mm@kvack.org In-Reply-To: <20200615092229.23142-1-rppt@kernel.org> References: <20200615092229.23142-1-rppt@kernel.org> Subject: Re: [PATCH] powerpc/8xx: use pmd_off() to access a PMD entry in pte_update() Message-Id: <159248379681.3471720.4172093587973243088.b4-ty@ellerman.id.au> Date: Thu, 18 Jun 2020 22:37:16 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Jun 2020 12:22:29 +0300, Mike Rapoport wrote: > The pte_update() implementation for PPC_8xx unfolds page table from the PGD > level to access a PMD entry. Since 8xx has only 2-level page table this can > be simplified with pmd_off() shortcut. > > Replace explicit unfolding with pmd_off() and drop defines of pgd_index() > and pgd_offset() that are no longer needed. Applied to powerpc/fixes. [1/1] powerpc/8xx: use pmd_off() to access a PMD entry in pte_update() https://git.kernel.org/powerpc/c/687993ccf3b05070598b89fad97410b26d7bc9d2 cheers