All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "Américo Wang" <xiyou.wangcong@gmail.com>,
	"Kernel development list" <linux-kernel@vger.kernel.org>,
	"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: sysfs lockdep complaint
Date: Sat, 20 Feb 2010 23:31:01 +0800	[thread overview]
Message-ID: <20100220153101.GJ3000@hack> (raw)
In-Reply-To: <1266678898.17363.0.camel@jlt3.sipsolutions.net>

On Sat, Feb 20, 2010 at 04:14:58PM +0100, Johannes Berg wrote:
>On Sat, 2010-02-20 at 23:03 +0800, Américo Wang wrote:
>
>> This should be fixed by the following patch, it is based on the
>> 4 patches from Eric.
>
>Thanks, one down.
>
>[    1.556276] windfarm: initializing for dual-core desktop G5
>[    1.822554] BUG: key 6b6b6b6b6b6b6b6b not in .data!
>[    1.827044] ------------[ cut here ]------------
>[    1.831498] Badness at kernel/lockdep.c:2706
>[    1.836013] NIP: c0000000000b6a3c LR: c0000000000b6a20 CTR: 0000000000000000
>[    1.840721] REGS: c0000002161976a0 TRAP: 0700   Not tainted  (2.6.33-rc8-00140-g4ec62b2-dirty)
>[    1.845620] MSR: 9000000000029032 <EE,ME,CE,IR,DR>  CR: 24000022  XER: 000fffff
>[    1.850679] TASK = c000000216198000[1] 'swapper' THREAD: c000000216194000 CPU: 1
>[    1.850884] GPR00: 0000000000000000 c000000216197920 c000000000b10328 0000000000000001 
>[    1.856050] GPR04: 0000000000000001 c000000000070d0c 0000000000000000 0000000000000002 
>[    1.861327] GPR08: 0000000000000000 c0000000014320f0 0000000000000001 c000000000b27638 
>[    1.866640] GPR12: 0000000024000044 c000000000b21680 0000000000000056 0000000001400000 
>[    1.871978] GPR16: 0000000000240ee0 c000000000718923 c0000000007ff6ec 000000000000005e 
>[    1.877351] GPR20: c0000000007e6118 c000000002b74a58 c000000216194080 c000000002b74a70 
>[    1.882770] GPR24: 0000000000000000 0000000000000000 fffffffffffffff4 c00000021643ee40 
>[    1.888249] GPR28: 6b6b6b6b6b6b6b6b c00000021644b188 c000000000a77780 c000000216197920 
>[    1.899228] NIP [c0000000000b6a3c] .lockdep_init_map+0x148/0x66c
>[    1.904944] LR [c0000000000b6a20] .lockdep_init_map+0x12c/0x66c
>[    1.910740] Call Trace:
>[    1.916549] [c000000216197920] [c0000000000b6a08] .lockdep_init_map+0x114/0x66c (unreliable)
>[    1.922686] [c000000216197a20] [c0000000001efd58] .sysfs_add_file_mode+0x90/0x124
>[    1.928883] [c000000216197ae0] [c0000000001efe28] .sysfs_add_file+0x3c/0x50
>[    1.935088] [c000000216197b80] [c0000000001eff84] .sysfs_create_file+0x5c/0x74
>[    1.941348] [c000000216197c20] [c000000000429284] .device_create_file+0x40/0x5c
>[    1.941356] [c000000216197cc0] [c000000000440fec] .wf_register_sensor+0x108/0x178
>[    1.941363] [c000000216197d70] [c0000000007e6368] .smu_sensors_init+0x3b8/0x690
>[    1.941369] [c000000216197e40] [c0000000000084e4] .do_one_initcall+0xac/0x204
>[    1.941374] [c000000216197ef0] [c0000000007b84b8] .kernel_init+0x1f0/0x270
>[    1.941380] [c000000216197f90] [c000000000028f8c] .kernel_thread+0x54/0x70
>[    1.941383] Instruction dump:
>[    1.941385] e93e81c8 80090000 2f800000 409e04f4 482fa5e5 60000000 2fa30000 419e04e4 
>[    1.941395] e93e81d0 80090000 2f800000 409e04d4 <0fe00000> 480004cc fb9d0000 e93e8018 
>
>
>I think I get the point ... I'll go through myself.
>

Thank you!

For this case, you could add sysfs_attr_init() in wf_register_sensor().



      reply	other threads:[~2010-02-20 15:28 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18  9:32 sysfs lockdep complaint Johannes Berg
2010-02-20  9:26 ` Américo Wang
2010-02-20 11:13   ` Johannes Berg
2010-02-20 13:54     ` Américo Wang
2010-02-20 14:00       ` Johannes Berg
2010-02-20 11:20   ` Johannes Berg
2010-02-20 13:51     ` Américo Wang
2010-02-20 13:58       ` Johannes Berg
2010-02-20 15:16         ` Américo Wang
2010-02-20 14:01       ` Johannes Berg
2010-02-20 15:03         ` Américo Wang
2010-02-20 15:07           ` Johannes Berg
2010-02-20 15:08           ` Johannes Berg
2010-02-20 15:20             ` Américo Wang
2010-02-20 15:28               ` Johannes Berg
2010-02-20 15:31                 ` Johannes Berg
2010-02-20 15:44                   ` Américo Wang
2010-02-20 15:44                     ` Johannes Berg
2010-02-20 15:40                 ` Américo Wang
2010-02-20 15:41                   ` [PATCH] module: init sysfs attributes Johannes Berg
2010-02-20 15:43                   ` [PATCH] windfarm: " Johannes Berg
2010-02-24  2:49                     ` Benjamin Herrenschmidt
2010-02-24  7:32                       ` Johannes Berg
2010-02-24  7:34                         ` Américo Wang
2010-02-24  9:12                           ` Johannes Berg
2010-02-25  1:43                             ` Américo Wang
2010-03-08  7:46                               ` Johannes Berg
2010-02-24 13:24                           ` Greg KH
2010-02-25  1:46                             ` Américo Wang
2010-02-20 15:14           ` sysfs lockdep complaint Johannes Berg
2010-02-20 15:31             ` Américo Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100220153101.GJ3000@hack \
    --to=xiyou.wangcong@gmail.com \
    --cc=ebiederm@xmission.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.