Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2016-03-29 Thread Luis R. Rodriguez
On Wed, Mar 16, 2016 at 1:20 PM, Luis R. Rodriguez wrote: > On Thu, Nov 05, 2015 at 11:43:59AM -0800, Luis R. Rodriguez wrote: >> On Thu, Nov 5, 2015 at 11:14 AM, Yinghai Lu wrote: >> > On Mon, Sep 14, 2015 at 7:46 AM, Stuart Hayes >> > wrote: >> >> >> >> Booting with 'disable_mtrr_cleanup' wor

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2016-03-19 Thread Luis R. Rodriguez
On Thu, Nov 05, 2015 at 11:43:59AM -0800, Luis R. Rodriguez wrote: > On Thu, Nov 5, 2015 at 11:14 AM, Yinghai Lu wrote: > > On Mon, Sep 14, 2015 at 7:46 AM, Stuart Hayes > > wrote: > >> > >> Booting with 'disable_mtrr_cleanup' works, but the system I am working with > >> isn't actually failing--

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-11-05 Thread Luis R. Rodriguez
On Thu, Nov 5, 2015 at 11:14 AM, Yinghai Lu wrote: > On Mon, Sep 14, 2015 at 7:46 AM, Stuart Hayes > wrote: >> >> Booting with 'disable_mtrr_cleanup' works, but the system I am working with >> isn't actually failing--it just gets ugly error messages. And the BIOS on >> the >> system I am worki

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-11-05 Thread Yinghai Lu
On Mon, Sep 14, 2015 at 7:46 AM, Stuart Hayes wrote: > > Booting with 'disable_mtrr_cleanup' works, but the system I am working with > isn't actually failing--it just gets ugly error messages. And the BIOS on the > system I am working with had set up the MTRRs correctly. Please post boot log and

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-14 Thread Stuart Hayes
>> >> Linux drivers no longer use MTRR so why is the cleanup needed, ie, what would >> happen if the cleanup is just skipped in your case ? > > The infiniband & video drivers still use MTRR (or at least it was my > understanding that they do). In any case, Stuart -- could you try booting > with

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-04 Thread Toshi Kani
On Fri, 2015-09-04 at 03:40 +0200, Luis R. Rodriguez wrote: > On Thu, Sep 03, 2015 at 06:48:46PM -0600, Toshi Kani wrote: > > On Fri, 2015-09-04 at 01:54 +0200, Luis R. Rodriguez wrote: > > > On Thu, Sep 03, 2015 at 05:21:14PM -0600, Toshi Kani wrote: > > > > On Fri, 2015-09-04 at 00:45 +0200, Luis

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Jan Beulich
>>> On 04.09.15 at 01:54, wrote: > If I undestand this correctly then I think we're in a pickle with Xen unless > we add hypervisor support and hypercall support for mtrr_type_lookup(). Are you perhaps unaware of XENPF_read_memtype (which our kernel uses)? Jan -- To unsubscribe from this list:

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Luis R. Rodriguez
On Thu, Sep 03, 2015 at 06:48:46PM -0600, Toshi Kani wrote: > On Fri, 2015-09-04 at 01:54 +0200, Luis R. Rodriguez wrote: > > On Thu, Sep 03, 2015 at 05:21:14PM -0600, Toshi Kani wrote: > > > On Fri, 2015-09-04 at 00:45 +0200, Luis R. Rodriguez wrote: > > > > On Thu, Sep 03, 2015 at 04:25:31PM -060

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Toshi Kani
On Fri, 2015-09-04 at 01:54 +0200, Luis R. Rodriguez wrote: > On Thu, Sep 03, 2015 at 05:21:14PM -0600, Toshi Kani wrote: > > On Fri, 2015-09-04 at 00:45 +0200, Luis R. Rodriguez wrote: > > > On Thu, Sep 03, 2015 at 04:25:31PM -0600, Toshi Kani wrote: : > > > > On Xen, > > > > > > When Xen is use

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Luis R. Rodriguez
On Thu, Sep 03, 2015 at 05:21:14PM -0600, Toshi Kani wrote: > On Fri, 2015-09-04 at 00:45 +0200, Luis R. Rodriguez wrote: > > On Thu, Sep 03, 2015 at 04:25:31PM -0600, Toshi Kani wrote: > > > On Fri, 2015-09-04 at 00:07 +0200, Luis R. Rodriguez wrote: > > > : > > > > These are still at odds, for i

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Toshi Kani
On Fri, 2015-09-04 at 00:45 +0200, Luis R. Rodriguez wrote: > On Thu, Sep 03, 2015 at 04:25:31PM -0600, Toshi Kani wrote: > > On Fri, 2015-09-04 at 00:07 +0200, Luis R. Rodriguez wrote: > > : > > > These are still at odds, for instance, I was under the impression we can > > > just have the OS retu

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Luis R. Rodriguez
On Thu, Sep 03, 2015 at 04:25:31PM -0600, Toshi Kani wrote: > On Fri, 2015-09-04 at 00:07 +0200, Luis R. Rodriguez wrote: > : > > These are still at odds, for instance, I was under the impression we can > > just have the OS return MTRR_TYPE_INVALID if the OS / drivers never used > > or set up MTRR

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Toshi Kani
On Fri, 2015-09-04 at 00:07 +0200, Luis R. Rodriguez wrote: : > These are still at odds, for instance, I was under the impression we can > just have the OS return MTRR_TYPE_INVALID if the OS / drivers never used > or set up MTRR, but the platform did, above (not the patch) you seem to be > saying

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Luis R. Rodriguez
On Thu, Sep 03, 2015 at 03:31:42PM -0600, Toshi Kani wrote: > On Thu, 2015-09-03 at 21:51 +0200, Luis R. Rodriguez wrote: > > On Thu, Sep 03, 2015 at 01:22:42PM -0600, Toshi Kani wrote: > > > On Thu, 2015-09-03 at 20:40 +0200, Luis R. Rodriguez wrote: > > > > On Thu, Sep 03, 2015 at 02:10:14PM -040

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Toshi Kani
On Thu, 2015-09-03 at 21:51 +0200, Luis R. Rodriguez wrote: > On Thu, Sep 03, 2015 at 01:22:42PM -0600, Toshi Kani wrote: > > On Thu, 2015-09-03 at 20:40 +0200, Luis R. Rodriguez wrote: > > > On Thu, Sep 03, 2015 at 02:10:14PM -0400, Prarit Bhargava wrote: > > > > > > > > > > > > On 09/03/2015 01

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Luis R. Rodriguez
On Thu, Sep 03, 2015 at 01:22:42PM -0600, Toshi Kani wrote: > On Thu, 2015-09-03 at 20:40 +0200, Luis R. Rodriguez wrote: > > On Thu, Sep 03, 2015 at 02:10:14PM -0400, Prarit Bhargava wrote: > > > > > > > > > On 09/03/2015 01:59 PM, Luis R. Rodriguez wrote: > > > > On Thu, Sep 03, 2015 at 08:17:0

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Toshi Kani
On Thu, 2015-09-03 at 20:40 +0200, Luis R. Rodriguez wrote: > On Thu, Sep 03, 2015 at 02:10:14PM -0400, Prarit Bhargava wrote: > > > > > > On 09/03/2015 01:59 PM, Luis R. Rodriguez wrote: > > > On Thu, Sep 03, 2015 at 08:17:02AM -0400, Prarit Bhargava wrote: > > > > > > > > > > > > On 09/02/201

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Luis R. Rodriguez
On Thu, Sep 03, 2015 at 02:10:14PM -0400, Prarit Bhargava wrote: > > > On 09/03/2015 01:59 PM, Luis R. Rodriguez wrote: > > On Thu, Sep 03, 2015 at 08:17:02AM -0400, Prarit Bhargava wrote: > >> > >> > >> On 09/02/2015 10:45 PM, Luis R. Rodriguez wrote: > >>> On Mon, Aug 31, 2015 at 11:05:33AM -05

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Prarit Bhargava
On 09/03/2015 01:59 PM, Luis R. Rodriguez wrote: > On Thu, Sep 03, 2015 at 08:17:02AM -0400, Prarit Bhargava wrote: >> >> >> On 09/02/2015 10:45 PM, Luis R. Rodriguez wrote: >>> On Mon, Aug 31, 2015 at 11:05:33AM -0500, Stuart Hayes wrote: Increase the range of chunk sizes tried in mtrr_clea

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Luis R. Rodriguez
On Thu, Sep 03, 2015 at 08:17:02AM -0400, Prarit Bhargava wrote: > > > On 09/02/2015 10:45 PM, Luis R. Rodriguez wrote: > > On Mon, Aug 31, 2015 at 11:05:33AM -0500, Stuart Hayes wrote: > >> Increase the range of chunk sizes tried in mtrr_cleanup() so it is able > >> to map large memory configs i

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-03 Thread Prarit Bhargava
On 09/02/2015 10:45 PM, Luis R. Rodriguez wrote: > On Mon, Aug 31, 2015 at 11:05:33AM -0500, Stuart Hayes wrote: >> Increase the range of chunk sizes tried in mtrr_cleanup() so it is able >> to map large memory configs into MTRRs. >> >> Currently, mtrr_cleanup() will fail with large memory config

Re: Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-09-02 Thread Luis R. Rodriguez
On Mon, Aug 31, 2015 at 11:05:33AM -0500, Stuart Hayes wrote: > Increase the range of chunk sizes tried in mtrr_cleanup() so it is able > to map large memory configs into MTRRs. > > Currently, mtrr_cleanup() will fail with large memory configurations, > because it limits chunk_size to 2GB, which m

Fwd: [PATCH] x86: Use larger chunks in mtrr_cleanup

2015-08-31 Thread Stuart Hayes
Increase the range of chunk sizes tried in mtrr_cleanup() so it is able to map large memory configs into MTRRs. Currently, mtrr_cleanup() will fail with large memory configurations, because it limits chunk_size to 2GB, which means that each MTRR can only cover 2GB of memory. With a memory size of