From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 98240] Kernel module fails to load on HP Pavilion V3A33AV laptop. Date: Fri, 14 Oct 2016 02:58:19 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1439951226==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============1439951226== Content-Type: multipart/alternative; boundary="14764138990.18E2F.31045"; charset="UTF-8" --14764138990.18E2F.31045 Date: Fri, 14 Oct 2016 02:58:19 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D98240 --- Comment #12 from Ilia Mirkin --- (In reply to Sergey Okhapkin from comment #11) > [ 3234.532656] ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismat= ch > - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95) > [ 3234.532743] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type > mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-= 95) > [ 3234.532849] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type > mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-= 95) > [ 3234.533890] pci 0000:01:00.0: optimus capabilities: enabled, status > dynamic power,=20 > [ 3234.533897] VGA switcheroo: detected Optimus DSM method > \_SB_.PCI0.PEG0.PEGP handle > [ 3234.533898] nouveau: detected PR support, will not use DSM > [ 3234.534005] nouveau 0000:01:00.0: NVIDIA GM107 (1171b0a2) > [ 3234.538042] retrieving _ROM off: 0x0, len: 0x1000, ret: 0x1000 > [ 3234.539278] retrieving _ROM off: 0x1000, len: 0xf000, ret: 0xf000 Grrr. Well, that's the issue. It only returns 0x1000 worth of data, but cla= ims to return a buffer sized to 0xf000. And I think I see why: Name (VROM, Buffer (Local1) { 0x00 /* . */ }) Which allocates the VROM buffer to be 0xf000 sized. At the end, that buffer= is filled with Mid (Local5, Local0, Local1, VROM) /* \_SB_.PCI0.PEG0.PEGP._ROM.VROM */ Return (VROM) /* \_SB_.PCI0.PEG0.PEGP._ROM.VROM */ However I suspect that Mid() doesn't actually *replace* the object. And thi= s is what acpi_ex_store_buffer_to_buffer() does on Linux - as long as less data = is stored, the length of the object appears untouched. So ... given this implementation, I'm not sure how we can reliably skip the "fast" ACPI read. Ben, thoughts? --=20 You are receiving this mail because: You are the assignee for the bug.= --14764138990.18E2F.31045 Date: Fri, 14 Oct 2016 02:58:19 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 12 on bug 98240<= /a> from Ilia Mirkin
(In reply to Sergey Okhapkin from comment #11)
> [ 3234.532656] ACPI Warning: \_SB.PCI0.GFX0._DSM=
: Argument #4 type mismatch
> - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
> [ 3234.532743] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type
> mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsargumen=
ts-95)
> [ 3234.532849] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type
> mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsargumen=
ts-95)
> [ 3234.533890] pci 0000:01:00.0: optimus capabilities: enabled, status
> dynamic power,=20
> [ 3234.533897] VGA switcheroo: detected Optimus DSM method
> \_SB_.PCI0.PEG0.PEGP handle
> [ 3234.533898] nouveau: detected PR support, will not use DSM
> [ 3234.534005] nouveau 0000:01:00.0: NVIDIA GM107 (1171b0a2)
> [ 3234.538042] retrieving _ROM off: 0x0, len: 0x1000, ret: 0x1000
> [ 3234.539278] retrieving _ROM off: 0x1000, len: 0xf000, ret: 0xf000

Grrr. Well, that's the issue. It only returns 0x1000 worth of data, but cla=
ims
to return a buffer sized to 0xf000. And I think I see why:

            Name (VROM, Buffer (Local1)
            {
                 0x00                                             /* . */
            })

Which allocates the VROM buffer to be 0xf000 sized. At the end, that buffer=
 is
filled with

            Mid (Local5, Local0, Local1, VROM) /*
\_SB_.PCI0.PEG0.PEGP._ROM.VROM */
            Return (VROM) /* \_SB_.PCI0.PEG0.PEGP._ROM.VROM */

However I suspect that Mid() doesn't actually *replace* the object. And thi=
s is
what acpi_ex_store_buffer_to_buffer() does on Linux - as long as less data =
is
stored, the length of the object appears untouched.

So ... given this implementation, I'm not sure how we can reliably skip the
"fast" ACPI read. Ben, thoughts?


You are receiving this mail because:
  • You are the assignee for the bug.
= --14764138990.18E2F.31045-- --===============1439951226== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9ub3V2ZWF1Cg== --===============1439951226==--