From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755883AbdCXM2t (ORCPT ); Fri, 24 Mar 2017 08:28:49 -0400 Received: from ozlabs.org ([103.22.144.67]:55439 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751706AbdCXM2l (ORCPT ); Fri, 24 Mar 2017 08:28:41 -0400 From: Michael Ellerman To: Alistair Popple Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mhairgrove@nvidia.com, shailendras@nvidia.com, Alistair Popple Subject: Re: [PATCH 3/3] powerpc/powernv: Introduce address translation services for Nvlink2 In-Reply-To: <1490154573-22475-3-git-send-email-alistair@popple.id.au> References: <1490154573-22475-1-git-send-email-alistair@popple.id.au> <1490154573-22475-3-git-send-email-alistair@popple.id.au> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Fri, 24 Mar 2017 23:28:32 +1100 Message-ID: <87k27ex3in.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alistair Popple writes: > diff --git a/arch/powerpc/include/asm/tlb.h b/arch/powerpc/include/asm/tlb.h > index 6095575..fc61fca 100644 > --- a/arch/powerpc/include/asm/tlb.h > +++ b/arch/powerpc/include/asm/tlb.h > @@ -63,15 +63,21 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, > } > > #ifdef CONFIG_SMP > +/* If there is an NPU context associated with this thread it may have > + * been active on a GPU which has issued translation requests via the > + * nest mmu. In this case we need to do a broadcast tlb to invalidate > + * any caches on the nest mmu. Invalidations on the GPU are handled > + * via mmu notfiers. > + */ > static inline int mm_is_core_local(struct mm_struct *mm) > { > - return cpumask_subset(mm_cpumask(mm), > + return !mm->context.npu_context && cpumask_subset(mm_cpumask(mm), > topology_sibling_cpumask(smp_processor_id())); > } This breaks the BookE build (corenet64_smp_defconfig): 23:22:58 In file included from arch/powerpc/mm/pgtable-book3e.c:15:0: 23:22:58 ./arch/powerpc/include/asm/tlb.h: In function 'mm_is_core_local': 23:22:58 ./arch/powerpc/include/asm/tlb.h:75:21: error: 'mm_context_t {aka struct }' has no member named 'npu_context' 23:22:58 return !mm->context.npu_context && cpumask_subset(mm_cpumask(mm), 23:22:58 ^ cheers From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Subject: Re: [PATCH 3/3] powerpc/powernv: Introduce address translation services for Nvlink2 Date: Fri, 24 Mar 2017 23:28:32 +1100 Message-ID: <87k27ex3in.fsf@concordia.ellerman.id.au> References: <1490154573-22475-1-git-send-email-alistair@popple.id.au> <1490154573-22475-3-git-send-email-alistair@popple.id.au> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1490154573-22475-3-git-send-email-alistair-Y4h6yKqj69EXC2x5gXVKYQ@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, mhairgrove-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org, shailendras-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org, Alistair Popple List-Id: devicetree@vger.kernel.org Alistair Popple writes: > diff --git a/arch/powerpc/include/asm/tlb.h b/arch/powerpc/include/asm/tlb.h > index 6095575..fc61fca 100644 > --- a/arch/powerpc/include/asm/tlb.h > +++ b/arch/powerpc/include/asm/tlb.h > @@ -63,15 +63,21 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, > } > > #ifdef CONFIG_SMP > +/* If there is an NPU context associated with this thread it may have > + * been active on a GPU which has issued translation requests via the > + * nest mmu. In this case we need to do a broadcast tlb to invalidate > + * any caches on the nest mmu. Invalidations on the GPU are handled > + * via mmu notfiers. > + */ > static inline int mm_is_core_local(struct mm_struct *mm) > { > - return cpumask_subset(mm_cpumask(mm), > + return !mm->context.npu_context && cpumask_subset(mm_cpumask(mm), > topology_sibling_cpumask(smp_processor_id())); > } This breaks the BookE build (corenet64_smp_defconfig): 23:22:58 In file included from arch/powerpc/mm/pgtable-book3e.c:15:0: 23:22:58 ./arch/powerpc/include/asm/tlb.h: In function 'mm_is_core_local': 23:22:58 ./arch/powerpc/include/asm/tlb.h:75:21: error: 'mm_context_t {aka struct }' has no member named 'npu_context' 23:22:58 return !mm->context.npu_context && cpumask_subset(mm_cpumask(mm), 23:22:58 ^ cheers -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html