Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1463313

Re: [PATCH] powerpc/powernv: Initialise nest mmu

From Alistair Popple <alistair@popple.id.au>
Newsgroups linux.kernel
Subject Re: [PATCH] powerpc/powernv: Initialise nest mmu
Date 2016-08-16 03:00 +0200
Message-ID <s6ATv-4sZ-7@gated-at.bofh.it> (permalink)
References <s6k2l-290-13@gated-at.bofh.it> <s6kvo-2zI-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Balbir,

<snip>
 
> > +	/* Update partition table control register on all Nest MMUs */
> > +	opal_nmmu_set_ptcr(-1UL, __pa(partition_tb) | (PATB_SIZE_SHIFT - 12));
> > +
> 
> Just wondering if
> 
> 1. Instead of using -1 for all cpus, we should do
> 	for_each_online_cpu() {
> 		opal_numm_set_ptcr(...)
> 	}

Good question, but I don't think it makes sense to do that. The NMMU is
per-chip/socket rather than per-cpu so it shouldn't be tied to
onlining/offlining of individual CPUs.

> 2. In cpu hotplug path do the same when onlining and set to NULL on
> offlining?

Again, the nmmu isn't tied to a specific CPU but rather a chip/socket. So in
theory at least it's possible that all CPUs in a chip could be offline but
other units on the chip could still be using the nmmu so we wouldn't want to
disable the nmmu at that point.

> I think we should definitely try and become hotplug aware from the OS
> view point and drive it from the OS
> 
> What do you think?
>
> Balbir Singh.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] powerpc/powernv: Initialise nest mmu Alistair Popple <alistair@popple.id.au> - 2016-08-15 09:00 +0200
  Re: [PATCH] powerpc/powernv: Initialise nest mmu Balbir Singh <bsingharora@gmail.com> - 2016-08-15 09:30 +0200
    Re: [PATCH] powerpc/powernv: Initialise nest mmu Alistair Popple <alistair@popple.id.au> - 2016-08-16 03:00 +0200
      Re: [PATCH] powerpc/powernv: Initialise nest mmu Balbir Singh <bsingharora@gmail.com> - 2016-08-16 06:30 +0200

csiph-web