Re: sysfs cpu entry
Kumar Gala wrote: What 32-bit chip are you looking to enable this for? - k I am working on some stuff for the 750GX kevin ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
get_cycles()
H, Anyone know how to turn get_cycles() into an actual time in a module? ppc_tb_freq does not seem to be exported? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
Re: get_cycles()
From: Kevin Diggs [EMAIL PROTECTED] Date: Sat, 26 Apr 2008 00:54:11 -0700 Anyone know how to turn get_cycles() into an actual time in a module? ppc_tb_freq does not seem to be exported? You should really be using ktime_t and associated interfaces. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
[BUG] 2.6.25-git8 Kernel Bug while bootup on ppc and x86
While booting the 2.6.25-git8 kernel on the ppc and x86_64 machine, kernel bug is hit. This was reported in the next-20080423 kernel http://lkml.org/lkml/2008/4/23/206. Call trace of x86_64 machine BUG: unable to handle kernel paging request at IP: [802359e5] put_files_struct+0x25/0x110 PGD 0 Oops: 0002 [333] SMP CPU 3 Modules linked in: Pid: 1391, comm: khelper Tainted: G D 2.6.25-git8-autotest #1 RIP: 0010:[802359e5] [802359e5] put_files_struct+0x25/0x110 RSP: :81090d06bdb0 EFLAGS: 00010282 RAX: 0101 RBX: fffe RCX: 8100010260e0 RDX: 0007 RSI: 0001 RDI: RBP: fffe R08: 2267 R09: R10: 0010 R11: R12: R13: 81032d2e9000 R14: 81090e74b000 R15: 81061e4cbce0 FS: () GS:81032e4ae940() knlGS: CS: 0010 DS: 0018 ES: 0018 CR0: 8005003b CR2: CR3: 00201000 CR4: 06e0 DR0: DR1: DR2: DR3: DR6: 0ff0 DR7: 0400 Process khelper (pid: 1391, threadinfo 81090d06a000, task 81090d8113a0) Stack: 81090d8113a0 fffe fffe 81032e556e00 81032d2e9000 81090e74b000 81061e4cbce0 80294278 81090d06be70 80636bc0 81090d3646c0 81032d2e9000 Call Trace: [80294278] do_execve+0x108/0x230 [802098e9] sys_execve+0x49/0x80 [8020c417] kernel_execve+0x67/0xd0 [8021d060] physflat_send_IPI_mask+0x0/0xb0 [802443e9] call_usermodehelper+0x119/0x130 [8022e577] schedule_tail+0x27/0x60 [8020c3a8] child_rip+0xa/0x12 [8021d060] physflat_send_IPI_mask+0x0/0xb0 [802442d0] call_usermodehelper+0x0/0x130 [8020c39e] child_rip+0x0/0x12 Code: 48 83 c4 18 c3 90 48 83 ec 38 4c 89 64 24 18 48 89 5c 24 08 49 89 fc 48 89 6c 24 10 4c 89 6c 24 20 4c 89 74 24 28 4c 89 7c 24 30 f0 ff 0f 0f 94 c0 84 c0 0f 84 b8 00 00 00 4c 8b 6f 08 31 ed 41 RIP [802359e5] put_files_struct+0x25/0x110 RSP 81090d06bdb0 CR2: ---[ end trace ca143223eefdc828 ]--- drivers/rtc/hctosys.c: unable to open rtc device (rtc0) Freeing unused kernel memory: 404k freed input: AT Translated Set 2 keyboard as /class/input/input0 BUG: unable to handle kernel paging request at 0001001c IP: [804dcfc5] _spin_lock+0x5/0x20 PGD 0 Oops: 0002 [334] SMP CPU 11 Modules linked in: Pid: 1, comm: swapper Tainted: G D 2.6.25-git8-autotest #1 RIP: 0010:[804dcfc5] [804dcfc5] _spin_lock+0x5/0x20 RSP: :81061e4cba08 EFLAGS: 00010282 RAX: 0100 RBX: 805bceb7 RCX: RDX: 81061e4cbfd8 RSI: 0001 RDI: 0001001c RBP: 81061e740b00 R08: R09: 279c R10: 0004 R11: 00479490 R12: ff9c R13: 01f8 R14: 81061e4cbe10 R15: FS: () GS:81061e57ef40() knlGS: CS: 0010 DS: 0018 ES: 0018 CR0: 8005003b CR2: 0001001c CR3: 00201000 CR4: 06e0 DR0: DR1: DR2: DR3: DR6: 0ff0 DR7: 0400 Process swapper (pid: 1, threadinfo 81061e4ca000, task 81032e4b9710) Stack: 8028c22e 81061e740b00 805bceb7 81061e740b00 81032dd2aa00 01f8 81061e4cbe10 01f8 802c6de2 8026232e 0282 Call Trace: [8028c22e] get_unused_fd_flags+0x2e/0x120 [802c6de2] load_elf_binary+0x1b2/0x1d40 [8026232e] generic_file_aio_read+0x4de/0x560 [8028e129] do_sync_read+0xd9/0x120 [80248110] autoremove_wake_function+0x0/0x30 [8028c5f7] __dentry_open+0x197/0x2b0 [80297985] deny_write_access+0x15/0x40 [80292944] open_exec+0xa4/0xc0 [8029258d] search_binary_handler+0x8d/0x210 [802c55e6] load_script+0x266/0x270 [80292166] get_arg_page+0x46/0xb0 [802924a1] copy_strings+0x1c1/0x1e0 [8029258d] search_binary_handler+0x8d/0x210 [80294352] do_execve+0x1e2/0x230 [802098e9] sys_execve+0x49/0x80 [8020c417] kernel_execve+0x67/0xd0 [80209078] init_post+0x58/0xf0 [8020c3a8] child_rip+0xa/0x12 [8020c39e] child_rip+0x0/0x12 Code: 66 66 90 66 66 90 f0 81 2f 00 00 00 01 0f 94 c0 84 c0 ba 01 00 00 00 75 09 f0 81 07 00 00 00 01 30 d2 89 d0 c3 90 b8 00 01 00 00 f0 66 0f c1 07 38 e0 74 06 f3 90 8a 07 eb f6 c3 66 66 66 90 66 RIP [804dcfc5] _spin_lock+0x5/0x20 RSP 81061e4cba08 CR2: 0001001c ---[ end trace ca143223eefdc828 ]--- call trace on ppc
Re: [BUG] 2.6.25-git8 Kernel Bug while bootup on ppc and x86
On Sat, Apr 26, 2008 at 04:51:54PM +0530, Kamalesh Babulal wrote: While booting the 2.6.25-git8 kernel on the ppc and x86_64 machine, kernel bug is hit. This was reported in the next-20080423 kernel http://lkml.org/lkml/2008/4/23/206. Call trace of x86_64 machine BUG: unable to handle kernel paging request at IP: [802359e5] put_files_struct+0x25/0x110 PGD 0 Oops: 0002 [333] SMP CPU 3 Modules linked in: Pid: 1391, comm: khelper Tainted: G D 2.6.25-git8-autotest #1 RIP: 0010:[802359e5] [802359e5] put_files_struct+0x25/0x110 RSP: :81090d06bdb0 EFLAGS: 00010282 RAX: 0101 RBX: fffe RCX: 8100010260e0 RDX: 0007 RSI: 0001 RDI: RBP: fffe R08: 2267 R09: R10: 0010 R11: R12: R13: 81032d2e9000 R14: 81090e74b000 R15: 81061e4cbce0 FS: () GS:81032e4ae940() knlGS: CS: 0010 DS: 0018 ES: 0018 CR0: 8005003b CR2: CR3: 00201000 CR4: 06e0 DR0: DR1: DR2: DR3: DR6: 0ff0 DR7: 0400 Process khelper (pid: 1391, threadinfo 81090d06a000, task 81090d8113a0) Stack: 81090d8113a0 fffe fffe 81032e556e00 81032d2e9000 81090e74b000 81061e4cbce0 80294278 81090d06be70 80636bc0 81090d3646c0 81032d2e9000 Call Trace: [80294278] do_execve+0x108/0x230 ... Most likely fixed by http://lkml.org/lkml/2008/4/26/1 Thanks Regards, Kamalesh Babulal, cu Adrian -- Is there not promise of rain? Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. Only a promise, Lao Er said. Pearl S. Buck - Dragon Seed ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
Re: [BUG] 2.6.25-git8 Kernel Bug while bootup on ppc and x86
Adrian Bunk wrote: On Sat, Apr 26, 2008 at 04:51:54PM +0530, Kamalesh Babulal wrote: While booting the 2.6.25-git8 kernel on the ppc and x86_64 machine, kernel bug is hit. This was reported in the next-20080423 kernel http://lkml.org/lkml/2008/4/23/206. Call trace of x86_64 machine BUG: unable to handle kernel paging request at IP: [802359e5] put_files_struct+0x25/0x110 PGD 0 Oops: 0002 [333] SMP CPU 3 Modules linked in: Pid: 1391, comm: khelper Tainted: G D 2.6.25-git8-autotest #1 RIP: 0010:[802359e5] [802359e5] put_files_struct+0x25/0x110 RSP: :81090d06bdb0 EFLAGS: 00010282 RAX: 0101 RBX: fffe RCX: 8100010260e0 RDX: 0007 RSI: 0001 RDI: RBP: fffe R08: 2267 R09: R10: 0010 R11: R12: R13: 81032d2e9000 R14: 81090e74b000 R15: 81061e4cbce0 FS: () GS:81032e4ae940() knlGS: CS: 0010 DS: 0018 ES: 0018 CR0: 8005003b CR2: CR3: 00201000 CR4: 06e0 DR0: DR1: DR2: DR3: DR6: 0ff0 DR7: 0400 Process khelper (pid: 1391, threadinfo 81090d06a000, task 81090d8113a0) Stack: 81090d8113a0 fffe fffe 81032e556e00 81032d2e9000 81090e74b000 81061e4cbce0 80294278 81090d06be70 80636bc0 81090d3646c0 81032d2e9000 Call Trace: [80294278] do_execve+0x108/0x230 ... Most likely fixed by http://lkml.org/lkml/2008/4/26/1 Hi Adrian, Thanks, the patch fixes the boot up bug. -- Thanks Regards, Kamalesh Babulal, Linux Technology Center, IBM, ISTL. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
Re: [PATCH1/7] i2c: Add support for device alias names
Hi Jochen, On Fri, 11 Apr 2008 16:07:35 +0200, Jochen Friedrich wrote: Based on earlier work by Jon Smirl and Jean Delvare. This patch allows new-style i2c chip drivers to have alias names using the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this point, the old i2c driver binding scheme (driver_name/type) is still supported. Signed-off-by: Jochen Friedrich [EMAIL PROTECTED] Cc: Jean Delvare [EMAIL PROTECTED] Cc: Jon Smirl [EMAIL PROTECTED] --- drivers/hwmon/f75375s.c| 21 drivers/i2c/chips/ds1682.c |3 +- drivers/i2c/chips/menelaus.c |3 +- drivers/i2c/chips/tps65010.c |3 +- drivers/i2c/chips/tsl2550.c|3 +- drivers/i2c/i2c-core.c | 51 +++- drivers/media/video/cs5345.c |3 +- drivers/media/video/cs53l32a.c |3 +- drivers/media/video/cx25840/cx25840-core.c |3 +- drivers/media/video/ivtv/ivtv-i2c.c|2 +- drivers/media/video/m52790.c |3 +- drivers/media/video/msp3400-driver.c |3 +- drivers/media/video/saa7115.c |3 +- drivers/media/video/saa7127.c |3 +- drivers/media/video/tlv320aic23b.c |3 +- drivers/media/video/tuner-core.c |3 +- drivers/media/video/tvaudio.c |3 +- drivers/media/video/upd64031a.c|3 +- drivers/media/video/upd64083.c |3 +- drivers/media/video/v4l2-common.c |5 ++- drivers/media/video/vp27smpx.c |3 +- drivers/media/video/wm8739.c |3 +- drivers/media/video/wm8775.c |3 +- drivers/rtc/rtc-ds1307.c |3 +- drivers/rtc/rtc-ds1374.c |3 +- drivers/rtc/rtc-m41t80.c |3 +- drivers/rtc/rtc-rs5c372.c |3 +- include/linux/i2c.h|5 +-- include/linux/mod_devicetable.h| 13 +++ include/media/v4l2-common.h|4 ++- include/media/v4l2-i2c-drv-legacy.h|2 +- include/media/v4l2-i2c-drv.h |2 +- scripts/mod/file2alias.c | 13 +++ 33 files changed, 139 insertions(+), 48 deletions(-) diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c index 1464338..3ec9123 100644 --- a/drivers/hwmon/f75375s.c +++ b/drivers/hwmon/f75375s.c @@ -117,7 +117,8 @@ struct f75375_data { static int f75375_attach_adapter(struct i2c_adapter *adapter); static int f75375_detect(struct i2c_adapter *adapter, int address, int kind); static int f75375_detach_client(struct i2c_client *client); -static int f75375_probe(struct i2c_client *client); +static int f75375_probe(struct i2c_client *client, + const struct i2c_device_id *id); static int f75375_remove(struct i2c_client *client); static struct i2c_driver f75375_legacy_driver = { @@ -628,7 +629,8 @@ static void f75375_init(struct i2c_client *client, struct f75375_data *data, } -static int f75375_probe(struct i2c_client *client) +static int f75375_probe(struct i2c_client *client, + const struct i2c_device_id *id) { struct f75375_data *data = i2c_get_clientdata(client); struct f75375s_platform_data *f75375s_pdata = client-dev.platform_data; @@ -637,7 +639,8 @@ static int f75375_probe(struct i2c_client *client) if (!i2c_check_functionality(client-adapter, I2C_FUNC_SMBUS_BYTE_DATA)) return -EIO; - if (!(data = kzalloc(sizeof(struct f75375_data), GFP_KERNEL))) + data = kzalloc(sizeof(struct f75375_data), GFP_KERNEL); + if (!data) return -ENOMEM; i2c_set_clientdata(client, data); @@ -653,7 +656,8 @@ static int f75375_probe(struct i2c_client *client) return -ENODEV; } - if ((err = sysfs_create_group(client-dev.kobj, f75375_group))) + err = sysfs_create_group(client-dev.kobj, f75375_group); + if (err) goto exit_free; if (data-kind == f75375) { @@ -713,7 +717,8 @@ static int f75375_detect(struct i2c_adapter *adapter, int address, int kind) int err = 0; const char *name = ; - if (!(client = kzalloc(sizeof(*client), GFP_KERNEL))) { + client = kzalloc(sizeof(*client), GFP_KERNEL); + if (!client) { err = -ENOMEM; goto exit; } @@ -745,10 +750,12 @@ static int f75375_detect(struct i2c_adapter *adapter, int address, int kind) dev_info(adapter-dev, found %s version: %02X\n, name, version); strlcpy(client-name, name, I2C_NAME_SIZE); - if ((err = i2c_attach_client(client))) + err = i2c_attach_client(client); + if (err) goto exit_free; - if ((err =
Re: sysfs cpu entry
On Thu, 2008-04-24 at 21:08 -0700, Kevin Diggs wrote: P.S.: On an unrelated note, anyone know where to start looking for problems in pmac_zilog. My 8600 modem which worked fine in 2.4 is now essentially useless. Some problem with handshaking, I think. It's possible that handshaking is broken, I remember some nasty tricks with it on some Apple HW and I may have gotten that wrong... Ben. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
Re: get_cycles()
David Miller wrote: From: Kevin Diggs [EMAIL PROTECTED] Date: Sat, 26 Apr 2008 00:54:11 -0700 Anyone know how to turn get_cycles() into an actual time in a module? ppc_tb_freq does not seem to be exported? You should really be using ktime_t and associated interfaces. This looks pretty cool ... but I don't want to create a dependency on hrtimer. So ... How expensive would it be to export ppc_tb_freq? Or add a get_cycles_tb() function? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev
Re: get_cycles()
From: Kevin Diggs [EMAIL PROTECTED] Date: Sat, 26 Apr 2008 19:39:07 -0700 This looks pretty cool ... but I don't want to create a dependency on hrtimer. It doesn't create such a dependency. We use it unconditionally in the generic networking. Please don't use platform specific interfaces if you don't have to. You're be insulated from so many things. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev