Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-06-03 Thread Dave Hansen
On 6/2/20 4:18 PM, Kirill A. Shutemov wrote: > On Tue, May 26, 2020 at 07:27:15AM -0700, Dave Hansen wrote: >> On 5/25/20 8:08 AM, Kirill A. Shutemov wrote: >> +if (not_addressable) { >> +pr_err("%lldGB of physical memory is not addressable in >> the paging

Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-06-02 Thread Kirill A. Shutemov
On Tue, May 26, 2020 at 07:27:15AM -0700, Dave Hansen wrote: > On 5/25/20 8:08 AM, Kirill A. Shutemov wrote: > +if (not_addressable) { > +pr_err("%lldGB of physical memory is not addressable in > the paging mode\n", > +

Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-05-26 Thread Dave Hansen
On 5/25/20 8:08 AM, Kirill A. Shutemov wrote: + if (not_addressable) { + pr_err("%lldGB of physical memory is not addressable in the paging mode\n", + not_addressable >> 30); + if (!pgtable_l5_enabled()) +

Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-05-25 Thread Mike Rapoport
On Mon, May 25, 2020 at 06:08:20PM +0300, Kirill A. Shutemov wrote: > On Mon, May 25, 2020 at 05:59:43PM +0300, Mike Rapoport wrote: > > On Mon, May 25, 2020 at 07:49:02AM +0300, Kirill A. Shutemov wrote: > > > On Mon, May 11, 2020 at 10:17:21PM +0300, Kirill A. Shutemov wrote: > > > > A 5-level

Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-05-25 Thread Kirill A. Shutemov
On Mon, May 25, 2020 at 05:59:43PM +0300, Mike Rapoport wrote: > On Mon, May 25, 2020 at 07:49:02AM +0300, Kirill A. Shutemov wrote: > > On Mon, May 11, 2020 at 10:17:21PM +0300, Kirill A. Shutemov wrote: > > > A 5-level paging capable machine can have memory above 46-bit in the > > > physical

Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-05-25 Thread Mike Rapoport
On Mon, May 25, 2020 at 07:49:02AM +0300, Kirill A. Shutemov wrote: > On Mon, May 11, 2020 at 10:17:21PM +0300, Kirill A. Shutemov wrote: > > A 5-level paging capable machine can have memory above 46-bit in the > > physical address space. This memory is only addressable in the 5-level > > paging

Re: [PATCH] x86/mm: Fix boot with some memory above MAXMEM

2020-05-24 Thread Kirill A. Shutemov
On Mon, May 11, 2020 at 10:17:21PM +0300, Kirill A. Shutemov wrote: > A 5-level paging capable machine can have memory above 46-bit in the > physical address space. This memory is only addressable in the 5-level > paging mode: we don't have enough virtual address space to create direct > mapping