Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755289AbZITRr2 (ORCPT ); Sun, 20 Sep 2009 13:47:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755109AbZITRrY (ORCPT ); Sun, 20 Sep 2009 13:47:24 -0400 Received: from ey-out-2122.google.com ([74.125.78.26]:28348 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755244AbZITRrX convert rfc822-to-8bit (ORCPT ); Sun, 20 Sep 2009 13:47:23 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=L7/rsDVuMpJADSIDu2poN225+Zjuritmz5CdnwpqG/mtITacOXct6cEfbqhbprpHGH 8aMxYaoFLAVdkt8hu8cLvvdp1wxwDH76Re6YB3F5YVya4Pm3ic2KtFfUiYruZQiSChWa 7RGaJ0jz3z60qfvexRPhILoE9JQIH4VA4MegQ= MIME-Version: 1.0 In-Reply-To: <20090920162306.GA18214@dreamland.darkstar.lan> References: <4AB1C907.1070503@gmail.com> <20090920162306.GA18214@dreamland.darkstar.lan> Date: Sun, 20 Sep 2009 11:47:25 -0600 Message-ID: <51f3faa70909201047x56313d99q7cdc49bcc4634b01@mail.gmail.com> Subject: Re: asus_atk0110 not working on Asus P7P55D PRO From: Robert Hancock To: Luca Tettamanti Cc: linux-kernel , linux-acpi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4413 Lines: 90 On Sun, Sep 20, 2009 at 10:23 AM, Luca Tettamanti wrote: > Il Wed, Sep 16, 2009 at 11:28:39PM -0600, Robert Hancock ha scritto: >> Just built a new system with an Asus P7P55D PRO motherboard. The >> ATK0110 driver doesn't seem to be able to retrieve any hardware >> monitoring parameters successfully, sensors gives: >> >> atk0110-acpi-0 >> Adapter: ACPI interface >> ERROR: Can't get value of subfeature in0_input: I/O error >> Vcore Voltage: ? ? ?+0.00 V ?(min = ?+0.80 V, max = ?+1.60 V) >> ERROR: Can't get value of subfeature in1_input: I/O error >> +3.3V Voltage: ? ? ?+0.00 V ?(min = ?+2.97 V, max = ?+3.63 V) >> ERROR: Can't get value of subfeature in2_input: I/O error >> +5V Voltage: ? ? ? ?+0.00 V ?(min = ?+4.50 V, max = ?+5.50 V) >> >> etc. and dmesg spits out a bunch of these: >> >> ATK0110 ATK0110:00: atk_read_value_new: ACPI exception: AE_BUFFER_OVERFLOW >> >> I'm guessing this board uses a different format than what the driver >> is expecting. I'm attaching the gzipped decompiled DSDT from the >> board, hopefully it's useful to somebody.. > > Please try the following patch, it should detect the proper buffer size. > Obviously something not quite right: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [] acpi_ut_copy_isimple_to_esimple+0x3e/0x16e PGD 11d5c8067 PUD 11d680067 PMD 0 Oops: 0002 [#1] SMP last sysfs file: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:03/ATK0110:00/hwmon/hwmon0/in0_input CPU 3 Modules linked in: ipv6 cpufreq_ondemand acpi_cpufreq freq_table fuse dm_multipath uinput snd_ice1724 snd_rawmidi snd_seq_device snd_hda_codec_via snd_ice17xx_ak4xxx snd_ac97_codec snd_hda_intel snd_hda_codec ac97_bus snd_ak4xxx_adda snd_ak4114 snd_hwdep snd_pcm snd_pt2258 snd_i2c snd_timer gspca_spca561 snd gspca_main videodev ata_generic r8169 v4l1_compat firewire_ohci pata_acpi usb_storage firewire_core i2c_i801 snd_page_alloc soundcore mii v4l2_compat_ioctl32 asus_atk0110 wmi joydev pata_jmicron i2c_core pcspkr serio_raw hwmon crc_itu_t [last unloaded: scsi_wait_scan] Pid: 2475, comm: sensors-applet Not tainted 2.6.31-rc0 #6 System Product Name RIP: 0010:[] [] acpi_ut_copy_isimple_to_esimple+0x3e/0x16e RSP: 0018:ffff88011f2d1c48 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000006 RDX: 0000000000000018 RSI: ffff88011f2d1dc8 RDI: 0000000000000000 RBP: ffff88011f2d1c68 R08: ffff88013ba9a2d0 R09: ffff88013ba9a2d0 R10: 00000000c261101f R11: 00000000c261101f R12: ffff88013ba70a40 R13: ffff88011f2d1dd8 R14: ffff88013b2d3fc0 R15: ffff88011f2d1dc8 FS: 00007f7cdbea1800(0000) GS:ffff880028260000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011f398000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process sensors-applet (pid: 2475, threadinfo ffff88011f2d0000, task ffff88011f2c8000) Stack: 0000000000004001 00000000c261101f ffff88011f2d1cc8 ffff88011f2d1dc8 <0> ffff88011f2d1ca8 ffffffff81301ce3 ffff88013b2d3fc0 00000000c261101f <0> 0000000000000000 00000000c261101f 0000000000000000 0000000000000000 Call Trace: [] acpi_ut_copy_iobject_to_eobject+0x94/0xb3 [] acpi_evaluate_object+0x1b5/0x21a [] acpi_evaluate_object_typed+0x3b/0xfa [] atk_input_show+0x1a0/0x2bb [asus_atk0110] [] ? system_call_fastpath+0x16/0x1b Code: 28 00 00 00 48 89 45 e8 31 c0 48 89 f3 49 89 f8 48 89 ce 48 c7 01 00 00 00 00 48 85 ff 0f 84 1d 01 00 00 b9 06 00 00 00 48 89 df ab 41 0f b6 40 09 89 03 41 8a 78 09 40 80 ff 03 74 56 77 12 RIP [] acpi_ut_copy_isimple_to_esimple+0x3e/0x16e RSP CR2: 0000000000000000 ---[ end trace d7191dbc499ceceb ]--- Based on the disassembly I think this memset is what failed in drivers/acpi/acpica/utcopy.c, in the acpi_ut_copy_isimple_to_esimple function: /* Always clear the external object */ ACPI_MEMSET(external_object, 0, sizeof(union acpi_object)); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/