Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Apr 2021 15:24:31 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Brandon Bergren <bdragon@FreeBSD.org>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: Last old PowerMac G5 that I have access to may be starting to fail: iichb0: I2C error
Message-ID:  <42970984-06AA-402A-BA46-2D3E1133F2DF@yahoo.com>
In-Reply-To: <c5e9b292-cc40-4d3c-9b53-4e1f4e9fca77@www.fastmail.com>
References:  <9D1F3413-B4E1-468C-BCAE-520C12196B34.ref@yahoo.com> <9D1F3413-B4E1-468C-BCAE-520C12196B34@yahoo.com> <e563898d-b247-4144-8f4e-95abcbb5af90@www.fastmail.com> <BBE8C6D7-345C-4B31-8238-6C855B611C39@yahoo.com> <c5e9b292-cc40-4d3c-9b53-4e1f4e9fca77@www.fastmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-Apr-17, at 07:40, Brandon Bergren <bdragon at FreeBSD.org> =
wrote:

> On Fri, Apr 16, 2021, at 11:32 PM, Mark Millard wrote:
>>=20
>>=20
>> On 2021-Apr-16, at 13:41, Brandon Bergren <bdragon at FreeBSD.org> =
wrote:
>>=20
>>> Do you have a dmesg? There's some bits in the thermal drivers I've =
been looking into recently where I have certain machines where the =
thermal chip is left in automatic mode but also the system attempts to =
drive it in manual mode, which causes things like the fans jerking on =
and off and spurious 103.0C readings on the temperature probe the chip =
is internally sampling. I half wonder if there's a similar issue causing =
us to accidentally crash the chip or something.
>>=20
>> I'm unclear on what you are after. The only time it left
>> any evidence behind was the one line that I reported.
>> (It was on the console --and in /var/logs/messages after
>> power off/power on.) I've never gotten more information
>> from it left powered on, not even via FireWire dcons:
>> no response to the outside world until after power-off
>> then power-on.
>>=20
>=20
> What I'm after is seeing what thermal chip is installed in your =
machine, and what settings it is reporting at power on time. The ones =
I've been seeing be problematic are adt7460 which were preconfigured by =
OF to run in automatic mode, but those are specific to G4 powerbooks.
>=20
> So I'd like to know what hardware is involved so I can look for =
similar misconfigurations in the appropriate driver by comparing what =
we're doing against the chip's datasheet.
>=20
> Since you're getting an i2c error, my assumption is that we are =
directly talking to a chip *somewhere* here and I'd like to know what =
that chip is.

This should be a start at the information that you are
looking for (boot -v was used):

# dmesg -a | grep -C3 -i iic | more
cpu1: <Open Firmware CPU> on cpulist0
powermac_nvram0: <Apple NVRAM> mem 0xfff04000-0xfff07fff on ofwbus0
powermac_nvram0: bank0 generation 680, bank1 generation 681
iichb0: <Keywest I2C controller> mem 0xf8001000-0xf8001fff irq 42 on =
unin0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
iicbus0: <unknown card> at addr 0xca
ds17750: <Temp-Monitor DS1775> at addr 0x94 on iicbus0
max66900: <Temp-Monitor MAX6690> at addr 0x98 on iicbus0
max66901: <Temp-Monitor MAX6690> at addr 0x9c on iicbus0
iicbus0: <unknown card> at addr 0xd2
fcu0: <Apple Fan Control Unit> at addr 0x15e on iicbus0
iicbus0: <unknown card> at addr 0x30
ad74170: <Supply-Monitor AD7417> at addr 0x58 on iicbus0
ad74170: 5 sensors detected.
iicbus0: <unknown card> at addr 0xa0
iicbus0: <unknown card> at addr 0x32
ad74171: <Supply-Monitor AD7417> at addr 0x5a on iicbus0
ad74171: 5 sensors detected.
iicbus0: <unknown card> at addr 0xa2
iicbus0: <unknown card> at addr 0x1c0
vgapci0: <VGA-compatible display> port 0x400-0x4ff mem =
0xa0000000-0xafffffff,0x90000000-0x9000ffff irq 33554480 at device 16.0 =
numa-domain 0 on pci0
vgapci0: Boot video device
agp0: <Apple U3 AGP Bridge> numa-domain 0 on hostb0
--
scc0: <Zilog Z8530 dual channel SCC> mem =
0x13000-0x13fff,0x8400-0x84ff,0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff =
irq 33554454,33554437,33554438,33554455,33554439,33554440 on macio0
uart0: <z8530, channel A> numa-domain 0 on scc0
uart1: <z8530, channel B> numa-domain 0 on scc0
iichb1: <Keywest I2C controller> mem 0x18000-0x18fff irq 33554458 on =
macio0
iicbus1: <OFW I2C bus> numa-domain 0 on iichb1
iic1: <I2C generic I/O> on iicbus1
iicbus1: <unknown card> at addr 0x1c0
snapper0: <Texas Instruments TAS3004 Audio Codec> at addr 0x6a on =
iicbus1
pcm0: <Apple I2S Audio Controller> mem =
0x10000-0x10fff,0x8000-0x80ff,0x8100-0x81ff irq =
33554462,33554433,33554434 on macio0
ohci0: <OHCI (generic) USB controller> mem 0x80081000-0x80081fff irq =
33554459 at device 8.0 numa-domain 0 on pci4
usbus0 numa-domain 0 on ohci0
--
cpu1: Nominal frequency 2000Mhz
powermac_nvram0: <Apple NVRAM> mem 0xfff04000-0xfff07fff on ofwbus0
powermac_nvram0: bank0 generation 680, bank1 generation 681
iichb0: <Keywest I2C controller> mem 0xf8001000-0xf8001fff irq 42 on =
unin0
unin mapdev: start f8001000, len 4095
iichb0: no domain found
iichb0: Revision: A2
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
iicbus0: <unknown card> at addr 0xca
ds17750: <Temp-Monitor DS1775> at addr 0x94 on iicbus0
max66900: <Temp-Monitor MAX6690> at addr 0x98 on iicbus0
max66901: <Temp-Monitor MAX6690> at addr 0x9c on iicbus0
iicbus0: <unknown card> at addr 0xd2
fcu0: <Apple Fan Control Unit> at addr 0x15e on iicbus0
iicbus0: <unknown card> at addr 0x30
ad74170: <Supply-Monitor AD7417> at addr 0x58 on iicbus0
ad74170: 5 sensors detected.
ad74170: Sensors
ad74170: Location: CPU A AD7417 AMB ID: 10 type: 0
--
ad74170: Location: CPU A AD7417 AD2 ID: 12 type: 1
ad74170: Location: CPU A AD7417 AD3 ID: 13 type: 1
ad74170: Location: CPU A AD7417 AD4 ID: 14 type: 1
iicbus0: <unknown card> at addr 0xa0
iicbus0: <unknown card> at addr 0x32
ad74171: <Supply-Monitor AD7417> at addr 0x5a on iicbus0
ad74171: 5 sensors detected.
ad74171: Sensors
ad74171: Location: CPU B AD7417 AMB ID: 15 type: 0
--
ad74171: Location: CPU B AD7417 AD2 ID: 17 type: 1
ad74171: Location: CPU B AD7417 AD3 ID: 18 type: 1
ad74171: Location: CPU B AD7417 AD4 ID: 19 type: 1
iicbus0: <unknown card> at addr 0xa2
iicbus0: <unknown card> at addr 0x1c0
unin0: <dart, dart> mem 0xf8033000-0xf8039fff (no driver attached)
vgapci0: <VGA-compatible display> port 0x400-0x4ff mem =
0xa0000000-0xafffffff,0x90000000-0x9000ffff irq 33554480 at device 16.0 =
numa-domain 0 on pci0
vgapci0: Boot video device
--
uart1: fast interrupt
uart1: PPS capture mode: DCD
scc0: fast interrupt
iichb1: <Keywest I2C controller> mem 0x18000-0x18fff irq 33554458 on =
macio0
iichb1: Revision: A1
iicbus1: <OFW I2C bus> numa-domain 0 on iichb1
iic1: <I2C generic I/O> on iicbus1
iicbus1: <unknown card> at addr 0x1c0
snapper0: <Texas Instruments TAS3004 Audio Codec> at addr 0x6a on =
iicbus1
pcm0: <Apple I2S Audio Controller> mem =
0x10000-0x10fff,0x8000-0x80ff,0x8100-0x81ff irq =
33554462,33554433,33554434 on macio0
macio0: <k2-keylargo-pwm-fan, fans> mem =
0x4c-0x4f,0x34-0x37,0x30-0x33,0x2c-0x2f (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0x80081000-0x80081fff irq =
33554459 at device 8.0 numa-domain 0 on pci4



=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42970984-06AA-402A-BA46-2D3E1133F2DF>