lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 29 May 2013 10:15:39 +0200
From:	Ingo Molnar <mingo@...nel.org>
To:	Dimitri Sivanich <sivanich@....com>
Cc:	Thomas Gleixner <tglx@...utronix.de>,
	Ingo Molnar <mingo@...hat.com>,
	"H. Peter Anvin" <hpa@...or.com>,
	Alexander Gordeev <agordeev@...hat.com>,
	Suresh Siddha <suresh.b.siddha@...el.com>,
	linux-kernel@...r.kernel.org, x86@...nel.org,
	Russ Anderson <rja@....com>, Mike Travis <travis@....com>
Subject: Re: [PATCH] x86/UV: GRU distributed mode mappings


* Dimitri Sivanich <sivanich@....com> wrote:

> On Tue, May 28, 2013 at 09:59:12AM +0200, Ingo Molnar wrote:
> > 
> > * Dimitri Sivanich <sivanich@....com> wrote:
> > 
> > > Setup mappings for GRU distributed mode and include them as untracked
> > > pat ranges.
> > 
> > Would be nice to have the customary changelog content:
> > 
> >   " Current code does (A), this has a problem when (B).
> >     We can improve this doing (C), because (D)."
> > 
> > Or so - your changelog is pretty light on the 'why' aspect.
> >
> How about the following?

Looks good to me.

> UV GRU hardware will support an optional distributed mode that will allow 
> per-node address mapping of local GRU space, as opposed to mapping all GRU
> hardware to the same contiguous high space.
> 
> If GRU distributed mode is selected, setup per-node page table mappings and
> include them as untracked pat ranges.
> 
> Signed-off-by: Dimitri Sivanich <sivanich@....com>
> ---
>  arch/x86/kernel/apic/x2apic_uv_x.c |   63 +++++++++++++++++++++++++++++----
>  1 file changed, 57 insertions(+), 6 deletions(-)

So this looks like suitable v3.11 material - not an urgent fix needed for 
v3.10, right?

Noticed this detail:

> +	} else
> +		return start >= gru_start_paddr && end <= gru_end_paddr;

in the kernel we generally try to balance curly braces - either all 
branches are curly or none.

> +	/* Save upper (63:M) bits of address only for is_GRU_range */
> +	gru_first_node_paddr &= gru_dist_umask;
> +	gru_last_node_paddr &= gru_dist_umask;
> +	pr_info("UV: Map GRU_DIST base 0x%016llx  0x%016llx - 0x%016llx\n",
> +		gru_dist_base, gru_first_node_paddr, gru_last_node_paddr);

I suspect this should be pr_debug()?

Thanks,

	Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ