Bug 10683

Summary: ACPI Exception when loading video.ka with custom DSDT
Product: ACPI Reporter: Mika Fischer (mika.fischer)
Component: Power-VideoAssignee: Zhang Rui (rui.zhang)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: acpi-bugzilla, sam
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.25 Subsystem:
Regression: --- Bisected commit-id:
Attachments: dmesg output
patch: use ACPI style error code.
dmesg output with patch applied
Patch: don't bind devices which are not listed in _DOD

Description Mika Fischer 2008-05-12 01:36:06 UTC
For more details see Bug#10448.

When using the custom DSDT attached to the other bug report (which disables the AML code which invokes SMI during ACPI video initialization), I get the following ACPI exception when loading video.ko:
[ACPI Debug]  String: [0x07] "In _DOD"
[ACPI Debug]  String: [0x06] "CADL ="
[ACPI Debug]  Integer: 0x0000000000000002
[ACPI Debug]  String: [0x06] "PSIZ ="
[ACPI Debug]  Integer: 0x0000000000000001
ACPI Error (utglobal-0126): Unknown exception code: 0xFFFFFFFE [20070126]
Pid: 1146, comm: modprobe Tainted: G       A 
2.6.25-x86-latest.git-06791-gd269f
 [<c023c07d>] acpi_format_exception+0x2b/0x35
 [<c023a2c2>] acpi_ut_exception+0xc/0x43
 [<f8866d06>] acpi_video_bus_add+0xb59/0xb6b [video]
 [<c018e7f6>] sysfs_find_dirent+0x13/0x23
 [<c018f355>] sysfs_create_link+0xa3/0xc2
 [<c023ffde>] acpi_device_probe+0x37/0xcd
 [<c0268688>] driver_probe_device+0x9d/0x114
 [<c0268736>] __driver_attach+0x37/0x55
 [<c026819d>] bus_for_each_dev+0x35/0x57
 [<c026853b>] driver_attach+0x11/0x13
 [<c02686ff>] __driver_attach+0x0/0x55
 [<c0267c6b>] bus_add_driver+0x91/0x192
 [<c02688e1>] driver_register+0x45/0x9a
 [<f883e02f>] acpi_video_init+0x2f/0x4d [video]
 [<c013bd62>] sys_init_module+0x1514/0x163e
 [<c0240311>] acpi_bus_register_driver+0x0/0x38
 [<c01064d2>] sys_mmap2+0x62/0x77
 [<c01037c6>] sysenter_past_esp+0x6a/0x90
 =======================
ACPI Exception (video-1707): UNKNOWN_STATUS_CODE, Cant attach device [20070126]
input: Video Bus as /class/input/input5
ACPI: Video Device [NVID] (multi-head: yes  rom: no  post: no)
input: Video Bus as /class/input/input6
ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)

With the original DSDT, the machine just hangs, but that's because of AML code which invokes SMI during ACPI video initialization.

dmesg attached
Comment 1 Mika Fischer 2008-05-12 01:36:42 UTC
Created attachment 16107 [details]
dmesg output
Comment 2 Zhang Rui 2008-05-12 01:40:03 UTC
Created attachment 16108 [details]
patch: use ACPI style error code.

Please apply this patch and attach the dmesg output. :)
Comment 3 Mika Fischer 2008-05-12 02:07:02 UTC
Created attachment 16109 [details]
dmesg output with patch applied

Output is now:
[ACPI Debug]  String: [0x07] "In _DOD"
[ACPI Debug]  String: [0x06] "CADL ="
[ACPI Debug]  Integer: 0x0000000000000002
[ACPI Debug]  String: [0x06] "PSIZ ="
[ACPI Debug]  Integer: 0x0000000000000001
ACPI Exception (video-1707): AE_NOT_FOUND, Cant attach device [20070126]
input: Video Bus as /class/input/input5
ACPI: Video Device [NVID] (multi-head: yes  rom: no  post: no)
input: Video Bus as /class/input/input6
ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
Comment 4 Zhang Rui 2008-05-12 19:04:30 UTC
Created attachment 16120 [details]
Patch: don't bind devices which are not listed in _DOD

Please apply this patch on top of the old one and attach the result of 
"tree /proc/acpi/video/" before and after this patch this applied. :)
Comment 5 Zhang Rui 2008-05-19 01:18:09 UTC
Hi, Mika,
any update on this?
Comment 6 Zhang Rui 2008-06-02 01:08:13 UTC
Mike, it would be great if you can test this patch.
Or else I'll close this bug.
Comment 7 Len Brown 2008-06-13 22:21:43 UTC
status?
Comment 8 Mika Fischer 2008-06-14 00:16:19 UTC
Sorry for the delay, I was very busy getting my masters degree :)

I'll try to test this today or tomorrow.
Comment 9 Len Brown 2008-10-16 22:26:12 UTC
please re-open this report if this is still an issue.