Return-Path: Received: from mail-qg0-f71.google.com (mail-qg0-f71.google.com [209.85.192.71]) by kanga.kvack.org (Postfix) with ESMTP id 63BD36B007E for ; Sat, 16 Apr 2016 18:05:45 -0400 (EDT) Received: by mail-qg0-f71.google.com with SMTP id t38so184320118qge.3 for ; Sat, 16 Apr 2016 15:05:45 -0700 (PDT) Received: from nm41-vm4.bullet.mail.bf1.yahoo.com (nm41-vm4.bullet.mail.bf1.yahoo.com. [216.109.114.159]) by mx.google.com with ESMTPS id b74si41639972qhb.115.2016.04.16.15.05.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Apr 2016 15:05:44 -0700 (PDT) Date: Sat, 16 Apr 2016 22:05:09 +0000 (UTC) From: Paul Sturm Reply-To: Paul Sturm Message-ID: <217592687.1822970.1460844309150.JavaMail.yahoo@mail.yahoo.com> Subject: pmd_set_huge failure and ACPI warning MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1822969_1769754276.1460844309139" References: <217592687.1822970.1460844309150.JavaMail.yahoo.ref@mail.yahoo.com> Sender: owner-linux-mm@kvack.org List-ID: To: "linux-mm@kvack.org" ------=_Part_1822969_1769754276.1460844309139 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Not sure if this is the right place to post. If it is not please direct me = to where I should go. I am running x86_64 kernel 4.4.6 on an Intel Xeon D system. This is an SOC = system that includes dual 10G ethernet using the ixgbe driver.=C2=A0 I have also tested this on kernels 4.2 through 4.6rc3 with the same result. When the ixgbe driver loads, I get the following two warnings: [ 5453.184701] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - vers= ion 4.2.1-k=C2=A0 [ 5453.184704] ixgbe: Copyright (c) 1999-2015 Intel Corporation.=C2=A0 [ 5453.184767] ACPI Warning: \_SB_.PCI0.BR2C._PRT: Return Package has no el= ements (empty) (20150930/nsprepkg-126)=C2=A0 [ 5453.184891] pmd_set_huge: Cannot satisfy [mem 0x383fffa00000-0x383fffc00= 000] with a huge-page mapping due to MTRR override.=C2=A0 BIOS is set to enable 64-bit DMA above 4GB.=C2=A0 cat proc/mtrr looks like this:=C2=A0 reg00: base=3D0x080000000 ( 2048MB ), size=3D 2048MB, count=3D1: uncachable= =C2=A0 reg01: base=3D0x380000000000 (58720256MB ), size=3D262144MB, count=3D1: unc= achable=C2=A0 reg02: base=3D0x383fff800000 (58982392MB ), size=3D 8MB, count=3D1: write-t= hrough=C2=A0 reg03: base=3D0x383ffff00000 (58982399MB ), size=3D 1MB, count=3D1: uncacha= ble=C2=A0 When I change the BIOS setting to disable DMA above 4GB (no other BIOS chan= ges I tried had any effect on the MTRR ranges)=C2=A0 cat /proc/mtrr looks like this:=C2=A0 reg00: base=3D0x080000000 ( 2048MB ), size=3D 2048MB, count=3D1: uncachable= =C2=A0 reg01: base=3D0x380000000000 (58720256MB ), size=3D262144MB, count=3D1: unc= achable=C2=A0 reg02: base=3D0x0f9800000 ( 3992MB ), size=3D 8MB, count=3D1: write-through= =C2=A0 reg03: base=3D0x0f9f00000 ( 3999MB ), size=3D 1MB, count=3D1: uncachable=C2= =A0 and the pmd_set_huge warning indicates a memory range in the 0x0fxxxx uncac= heable range.=C2=A0 So the result is that ixgbe seems to always try to get it's hugepage from t= he uncacheable range.=C2=A0 I can post the full dmesg if requested, but in the meantime, here are the T= LB-related entries:=C2=A0 [ 0.027925] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8=C2=A0 [ 0.027931] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4=C2=A0 [ 0.325307] HugeTLB registered 1 GB page size, pre-allocated 0 pages=C2=A0 [ 0.325315] HugeTLB registered 2 MB page size, pre-allocated 0 pages=C2=A0 I tried to pre-allocate both 1GB and 2MB pages via the kernel command line = and it had no effect.=C2=A0 I have tried both compiling the driver in the kernel and loading it as a mo= dule. Same results.=C2=A0 I first reported this on the e1000 sourceforge list and they directed me he= re.=C2=A0 In addition to the pmd_set_huge warning, there is also that ACPI warning. I= am not sure if it is related or not, but I can say it only appears when th= e IXGBE driver is loaded and it always loads right before the pmd_set_huge = warning.=C2=A0 Please advise. ------=_Part_1822969_1769754276.1460844309139 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Not sur= e if this is the right place to post. If it is not please direct me to wher= e I should go.
I am running x86_64 kernel 4.4.6 on an Intel X= eon D system. This is an SOC system that includes dual 10G ethernet using t= he ixgbe driver. 
I have also tested this on ke= rnels 4.2 through 4.6rc3 with the same result.

When the ixgbe= driver loads, I get the following two warnings:

[ 5453.18470= 1] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 4.2.1-k<= /span> [ 5453.184704] ixgbe: Copyright (c) 1999-2015 = Intel Corporation. 
[ 5453.184767] ACPI Warning= : \_SB_.PCI0.BR2C._PRT: Return Package has no elements (empty) (20150930/ns= prepkg-126)&nb= sp;
[ 5453.184891] pmd_set_huge: Can= not satisfy [mem 0x383fffa00000-0x383fffc00000] with a huge-page mapping du= e to MTRR override. 

BIOS is set to enable 64-bit DMA above 4GB. 
cat proc/mtrr looks like this: 
reg00: base=3D0x080000000 ( 2048MB ), size=3D 2048MB, count=3D1: u= ncachable = ;
reg01: base=3D0x380000000000 (587202= 56MB ), size=3D262144MB, count=3D1: uncachable 
reg02: base=3D0x383fff800000 (58982392MB ), size=3D 8MB, count=3D1: write-= through <= /span>
reg03: base=3D0x383ffff00000 (58982399= MB ), size=3D 1MB, count=3D1: uncachable 

When I change the BIOS setti= ng to disable DMA above 4GB (no other BIOS changes I tried had any effect o= n the MTRR ranges) 
cat /proc/mtrr looks like t= his: 
reg00: base=3D0x080000000 ( 2048MB ), siz= e=3D 2048MB, count=3D1: uncachable 
reg01: base= =3D0x380000000000 (58720256MB ), size=3D262144MB, count=3D1: uncachable 
reg02: base=3D0x0f9800000 ( 3992MB ), size=3D 8MB= , count=3D1: write-through 
reg03: base=3D0x0f9= f00000 ( 3999MB ), size=3D 1MB, count=3D1: uncachable 

and the pmd_set= _huge warning indicates a memory range in the 0x0fxxxx uncacheable range. 
So the result is that ixgbe seems to always try to get it's hugepage f= rom the uncacheable range. 

I can post the full dmesg if requested, bu= t in the meantime, here are the TLB-related entries: 
[ 0.027925] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8 

[ 0.027931] Last level dTLB entries: 4KB 64, 2MB 0, 4MB = 0, 1GB 4 =

[ 0.325307] HugeTLB registered 1 GB page size, pre-allocated= 0 pages =
[ 0.325315] HugeTLB registered 2 MB p= age size, pre-allocated 0 pages 
I tried to pre= -allocate both 1GB and 2MB pages via the kernel command line and it had no = effect. <= /span>

I have tried both compiling the driver in the kernel and load= ing it as a module. Same results. 

I first reported this on the e1000 = sourceforge list and they directed me here. 

In addition to the pmd_se= t_huge warning, there is also that ACPI warning. I am not sure if it is rel= ated or not, but I can say it only appears when the IXGBE driver is loaded = and it always loads right before the pmd_set_huge warning.
 

Please adv= ise.
------=_Part_1822969_1769754276.1460844309139-- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org