Errors related to i2c-powermac on the G4

Andrey Gusev ronne at list.ru
Wed Jul 25 22:50:23 EST 2012


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 at f2000000/mac-io at 17/i2c at 18000/cereal
>> [ 2.931286] i2c i2c-2: i2c-powermac: invalid reg on
>> /pci at f2000000/mac-io at 17/i2c at 18000/deq
>> [ 2.939246] i2c i2c-2: i2c-powermac: invalid reg on
>> /pci at f2000000/mac-io at 17/i2c at 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 at f2000000/mac-io at 17/i2c at 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 at f8000000/i2c at 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 at f8000000/i2c at f8001000/fan at 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 at f8000000/i2c at f8001000/temp-monitor at 92
>> [ 3.073475] i2c i2c-4: i2c-powermac: invalid reg on
>> /uni-n at f8000000/i2c at f8001000/cereal
>> [ 3.082701] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised:
>> dm-devel at redhat.com
>>
> Cheers,
> Ben.
>
>
>
>
Andrey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: device-tree.tar.bz2
Type: application/octet-stream
Size: 26610 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20120725/684a6acd/attachment-0001.obj>


More information about the Linuxppc-dev mailing list