From: Andrey Gusev <ronne@list.ru>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "paulus@samba.org" <paulus@samba.org>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: Errors related to i2c-powermac on the G4
Date: Wed, 25 Jul 2012 16:50:23 +0400 [thread overview]
Message-ID: <500FEB8F.5030402@list.ru> (raw)
In-Reply-To: <1343211439.3715.46.camel@pasglop>
[-- Attachment #1: Type: text/plain, Size: 4565 bytes --]
25.07.2012 14:17, Benjamin Herrenschmidt пишет:
> On Wed, 2012-07-25 at 11:29 +0400, Andrey Gusev wrote:
>> 20.07.2012 18:46, Andrey Gusev пишет:
>>> Hi!
>>> I build kernel from git and can see errors in dmesg on boot. 3.4.5
>>> doesn't have such issue.
>>> git show | head -n2
>>> commit 85efc72a0218335324d358ac479a04c16316fd4d
> Ok, so:
>
>> Actual for 3.5.0
>> [ 2.841441] i2c /dev entries driver
>> [ 2.850155] i2c i2c-0: therm_windtunnel: attach_adapter method is deprecated
>> [ 2.858330] i2c i2c-0: Please use another way to instantiate your i2c_client
> The above (deprecated methods) have been around for a while, I'm
> converting the drivers one by one, windtunnel hasn't yet been
> trough the grinder.
>
> However, now that I know I have a tester that will make things easier
> (since I don't have the actual HW :-) I'll send you a patch to try out
> as soon as I have it sorted.
Ok, want to note, that currently driver often execute printk to report its
state. Like:
[ 683.193213] CPU-temp: 55.0 C, Case: 37.6 C, Fan: 0 (tuned +0)
[ 715.197382] CPU-temp: 55.3 C, Case: 37.8 C, Fan: 0 (tuned +0)
[ 763.204204] CPU-temp: 56.0 C, Case: 38.1 C, Fan: 0 (tuned +0)
[ 851.214944] CPU-temp: 57.0 C, Case: 38.7 C, Fan: 3 (tuned +3)
[ 1099.243500] CPU-temp: 58.3 C, Case: 39.3 C, Fan: 4 (tuned +1)
[ 1187.258423] CPU-temp: 58.8 C, Case: 39.6 C, Fan: 5 (tuned +1)
Could you make it more tolerant to logs?
>
>> [ 2.866457] PowerMac i2c bus pmu 2 registered
>> [ 2.874885] i2c i2c-1: therm_windtunnel: attach_adapter method is deprecated
>> [ 2.882965] i2c i2c-1: Please use another way to instantiate your i2c_client
>> [ 2.890928] PowerMac i2c bus pmu 1 registered
>> [ 2.899526] i2c i2c-2: therm_windtunnel: attach_adapter method is deprecated
>> [ 2.907463] i2c i2c-2: Please use another way to instantiate your i2c_client
>> [ 2.915397] PowerMac i2c bus mac-io 0 registered
> Above are the same.
>
>> [ 2.923272] i2c i2c-2: i2c-powermac: invalid reg on
>> /pci@f2000000/mac-io@17/i2c@18000/cereal
>> [ 2.931286] i2c i2c-2: i2c-powermac: invalid reg on
>> /pci@f2000000/mac-io@17/i2c@18000/deq
>> [ 2.939246] i2c i2c-2: i2c-powermac: invalid reg on
>> /pci@f2000000/mac-io@17/i2c@18000/i2c-modem
> Those are mostly harmless, they just tell us that the device-tree is
> missing the i2c address for a few things. The only one potentially
> worrying is the "deq" one (audio), for which I should have a workaround.
>
> Can you send me a tarball of /proc/device-tree on your machine so I can
> check a few things ? I might add code to silence some of those warnings
> as they don't actually indicate a problem.
I attached device-tree to this mail. I want to note, that letter another
driver found this address.
[ 75.981181] snd-aoa-codec-tas: tas found, addr 0x35 on
/pci@f2000000/mac-io@17/i2c@18000/deq
>
>> [ 2.947580] i2c i2c-3: therm_windtunnel: attach_adapter method is deprecated
>> [ 2.955559] i2c i2c-3: Please use another way to instantiate your i2c_client
>> [ 2.964492] PowerMac i2c bus uni-n 1 registered
>> [ 2.972493] i2c i2c-3: i2c-powermac: invalid reg on
>> /uni-n@f8000000/i2c@f8001000/cereal
>> [ 2.980977] usb 1-1: new full-speed USB device number 2 using ohci_hcd
>> [ 2.989404] i2c i2c-4: therm_windtunnel: attach_adapter method is deprecated
>> [ 2.997793] i2c i2c-4: Please use another way to instantiate your i2c_client
>> [ 3.007320] DS1775 digital thermometer [@49]
>> [ 3.015574] Temp: 33.0 C Hyst: 75.0 C OS: 80.0 C
>> [ 3.024410] ADM1030 fan controller [@2c]
>> [ 3.032533] PowerMac i2c bus uni-n 0 registered
>> [ 3.040575] i2c i2c-4: Failed to register i2c client MAC,adm1030 at 0x2c
>> (-16)
> That one probably means that therm_windtunnel grabbed the device before
> we could expose it using the "new way"... well I think :-) I'll have to
> double check, but does it look like the thermal control is working ? If
> it is, then it's probably just that and will naturally disappear as soon
> as therm_windtunnel is converted over.
Yes, I guess therm_windtunnel grabbed it. It works now.
>
>> [ 3.048714] i2c i2c-4: i2c-powermac: Failure to register
>> /uni-n@f8000000/i2c@f8001000/fan@58
>> [ 3.057147] i2c i2c-4: Failed to register i2c client MAC,ds1775 at 0x49
>> (-16)
>> [ 3.065304] i2c i2c-4: i2c-powermac: Failure to register
>> /uni-n@f8000000/i2c@f8001000/temp-monitor@92
>> [ 3.073475] i2c i2c-4: i2c-powermac: invalid reg on
>> /uni-n@f8000000/i2c@f8001000/cereal
>> [ 3.082701] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised:
>> dm-devel@redhat.com
>>
> Cheers,
> Ben.
>
>
>
>
Andrey
[-- Attachment #2: device-tree.tar.bz2 --]
[-- Type: application/octet-stream, Size: 26610 bytes --]
prev parent reply other threads:[~2012-07-25 12:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-20 14:46 Errors related to i2c-powermac on the G4 Andrey Gusev
2012-07-25 7:29 ` Andrey Gusev
2012-07-25 10:17 ` Benjamin Herrenschmidt
2012-07-25 12:50 ` Andrey Gusev [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=500FEB8F.5030402@list.ru \
--to=ronne@list.ru \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.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.