Re: Question about xserve G5

Javi Hotmail <[email protected]>
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <DB8PR04MB6860BC2392B1637417EF8977AC140@DB8PR04MB6860.eurprd04.prod.outlook.com>
Here it is.


Javi.


On 29/10/2020 14:14, Nathan Whitehorn wrote:
> Could you provide your dmesg? It would be nice to do what sensors you
> have.
> -Nathan
>
> On 10/29/20 8:36 AM, Javi Hotmail wrote:
>> If I'm not mistake the issue then is how the PPC implementation reads
>> the device tree data from open firmware correct?.
>>
>> I believe this implementation is within:
>>
>> pcr.c        pmcr.c        pmufreq.c
>>
>>
>> Thanks in advance,
>>
>> Javi.
>>
>>
>> On 29/10/2020 12:26, Michael Tuexen wrote:
>>>> On 29. Oct 2020, at 10:51, Javi Hotmail <[email protected]>
>>>> wrote:
>>>>
>>>> Hello all,
>>>>
>>>> I'm new in this mailing list, although I've been going back and forth
>>>> with PPC (G4/G5) and FreeBSD since 9.0.
>>>>
>>>> I have a question that perhaps some of you already stumbled across,
>>>> but
>>>> I wanted to know if there is a way to get it to work before I jump in
>>>> the code.
>>>>
>>>> I have a xserve G5 dual 2.3Ghz, and I installed FreeBSD 12.1. Works
>>>> quite well, but I cannot get cpufreq + powerd/powerdxx to work at all.
>>>>
>>>> I get this:
>>>>
>>>> # powerdxx
>>>> powerd++: (ENOFREQ) cannot access dev.cpu.0.freq, at least the
>>>> first CPU
>>>> core must support frequency updates
>>>>
>>>>
>>>> This is the relevant part of sysctl:
>>>> # sysctl dev.cpu
>>>> dev.cpu.1.%parent: cpulist0
>>>> dev.cpu.1.%pnpinfo: name=PowerPC,G5
>>>> dev.cpu.1.%location:
>>>> dev.cpu.1.%driver: cpu
>>>> dev.cpu.1.%desc: Open Firmware CPU
>>>> dev.cpu.0.%parent: cpulist0
>>>> dev.cpu.0.%pnpinfo: name=PowerPC,G5
>>>> dev.cpu.0.%location:
>>>> dev.cpu.0.%driver: cpu
>>>> dev.cpu.0.%desc: Open Firmware CPU
>>>> dev.cpu.%parent:
>>>>
>>>> The issue is that after few minutes the fans ramp up to insane levels,
>>>> and my goal with this is to use powerd or powerdxx to manage the
>>>> situation.
>>> The fans ramping up is a known issue. One way to work around it is to
>>> disable SMP.
>>>
>>> To disable SMP, put in /boot/loader.conf
>>> kern.smp.disabled=1
>>>
>>> Best regards
>>> Michael
>>>> Thanks in advance,
>>>>
>>>> Javi.
>>>>
>>>> _______________________________________________
>>>> [email protected] mailing list
>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
>>>> To unsubscribe, send any mail to "[email protected]"
>> _______________________________________________
>> [email protected] mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
>> To unsubscribe, send any mail to "[email protected]"
>>
>

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
dmesg.txt (text/plain, 9.4 KB)
---<<BOOT>>---
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.2-RELEASE r366954 GENERIC powerpc
gcc version 4.2.1 20070831 patched [FreeBSD]
VT(ofwfb): resolution 640x480
cpu0: IBM PowerPC 970FX revision 3.0, 2300.26 MHz
cpu0: Features dc000000<PPC32,PPC64,ALTIVEC,FPU,MMU>
cpu0: HID0 511081<NAP,DPM,NHR,TBEN,ENATTN>
real memory  = 1565147136 (1492 MB)
avail memory = 1458524160 (1390 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
random: unblocking device.
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree> on nexus0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
pcr0: <PPC 970 Power Control Register> on cpu0
pcr0: No power mode data in device tree!
device_attach: pcr0 attach returned 6
cpu1: <Open Firmware CPU> on cpulist0
pcr1: <PPC 970 Power Control Register> on cpu1
pcr1: No power mode data in device tree!
device_attach: pcr1 attach returned 6
powermac_nvram0: <Apple NVRAM> mem 0xfff04000-0xfff07fff on ofwbus0
powermac_nvram0: bank0 generation 464, bank1 generation 465
unin0: <Apple UniNorth System Controller> mem 0xf8000000-0xf8ffffff on ofwbus0
unin0: Version 53
iichb0: <Keywest I2C controller> mem 0xf8001000-0xf8001fff irq 0 on unin0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
iicbus0: <unknown card> at addr 0xd4
max66900: <Temp-Monitor MAX6690> at addr 0x98 on iicbus0
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
htpic0: <OpenPIC Interrupt Controller> mem 0xf8040000-0xf807ffff irq 33554488 on unin0
pcib0: <Apple U3 Host-AGP bridge> mem 0xf0000000-0xf1ffffff on ofwbus0
pci0: <OFW PCI bus> on pcib0
agp0: <Apple U3 AGP Bridge> on hostb0
pcib1: <IBM CPC9X5 HyperTransport Tunnel> mem 0xf2000000-0xf47fffff,0xf8070000-0xf8070fff on ofwbus0
pcib1: 4 HT IRQs on device 1.0
pcib1: 4 HT IRQs on device 2.0
pcib1: 86 HT IRQs on device 3.0
pci1: <OFW PCI bus> on pcib1
pcib2: <OFW PCI-PCI bridge> at device 1.0 on pci1
pci2: <OFW PCI bus> on pcib2
mpt0: <LSILogic SAS/SATA Adapter> mem 0x90000000-0x90003fff,0x90020000-0x9002ffff irq 33554484 at device 2.0 on pci2
mpt0: MPI Version=1.5.19.0
vgapci0: <VGA-compatible display> mem 0xa0000000-0xafffffff,0x90010000-0x9001ffff irq 33554485 at device 3.0 on pci2
pcib3: <OFW PCI-PCI bridge> at device 2.0 on pci1
pci3: <OFW PCI bus> on pcib3
bge0: <Broadcom BCM5704 A3, ASIC rev. 0x002003> mem 0xb0030000-0xb003ffff,0xb0020000-0xb002ffff irq 33554486 at device 4.0 on pci3
bge0: enabling MBOX workaround for AMD-8131 PCI-X Bridge
bge0: CHIP ID 0x00002003; ASIC REV 0x02; CHIP REV 0x20; PCI-X 33 MHz
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 1000BASE-T media interface> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
bge0: Ethernet address: 00:0d:93:9b:ce:b8
bge1: <Broadcom BCM5704 A3, ASIC rev. 0x002003> mem 0xb0010000-0xb001ffff,0xb0000000-0xb000ffff irq 33554489 at device 4.1 on pci3
bge1: enabling MBOX workaround for AMD-8131 PCI-X Bridge
bge1: CHIP ID 0x00002003; ASIC REV 0x02; CHIP REV 0x20; PCI-X 33 MHz
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 1000BASE-T media interface> PHY 1 on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
bge1: Ethernet address: 00:0d:93:9b:ce:b9
pcib4: <OFW PCI-PCI bridge> at device 3.0 on pci1
pci4: <OFW PCI bus> on pcib4
macio0: <K2 KeyLargo I/O Controller> mem 0x80000000-0x8007ffff at device 7.0 on pci4
openpic0: <OpenPIC Interrupt Controller> mem 0x40000-0x7ffff on macio0
macgpio0: <MacIO GPIO Controller> mem 0x50-0x8a on macio0
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> on scc0
uart1: <z8530, channel B> on scc0
iichb1: <Keywest I2C controller> mem 0x18000-0x18fff irq 33554458 on macio0
iicbus1: <OFW I2C bus> on iichb1
iic1: <I2C generic I/O> on iicbus1
iicbus1: <unknown card> at addr 0x5a
iicbus1: <unknown card> at addr 0x5c
ds17750: <Temp-Monitor DS1775> at addr 0x90 on iicbus1
iicbus1: <unknown card> at addr 0x94
iicbus1: <unknown card> at addr 0x1c0
pmu0: <Apple PMU99 Controller> mem 0x16000-0x17fff irq 33554457 on macio0
pmu0: registered as a time-of-day clock, resolution 0.001000s
pcib5: <OFW PCI-PCI bridge> at device 4.0 on pci1
pci5: <OFW PCI bus> on pcib5
ohci0: <NEC uPD 9210 USB controller> mem 0x80102000-0x80102fff irq 33554495 at device 11.0 on pci5
usbus0 on ohci0
ohci1: <NEC uPD 9210 USB controller> mem 0x80101000-0x80101fff irq 33554495 at device 11.1 on pci5
usbus1 on ohci1
ehci0: <NEC uPD 72010x USB 2.0 controller> mem 0x80100000-0x801000ff irq 33554495 at device 11.2 on pci5
usbus2: EHCI version 1.0
usbus2 on ehci0
pcib6: <OFW PCI-PCI bridge> at device 5.0 on pci1
pci6: <OFW PCI bus> on pcib6
ata0: <K2 Kauai ATA Controller> mem 0x80204000-0x80207fff irq 33554471,33554470 at device 13.0 on pci6
fwohci0: <1394 Open Host Controller Interface> mem 0x80200000-0x80200fff irq 33554472 at device 14.0 on pci6
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:0d:93:ff:fe:c1:52:be
fwohci0: invalid speed 7 (fixed to 3).
fwohci0: Phy 1394a available S800, 3 ports.
fwohci0: Link S800, max_rec 4096 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:0d:93:c1:52:be
fwe0: Ethernet address: 02:0d:93:c1:52:be
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: fwohci_intr_core: BUS reset
fwohci0: PhysicalUpperBound register is not implemented.  Physical memory access is limited to the first 4GB
fwohci0: PhysicalUpperBound = 0x00000000
fwohci0: fwohci_intr_core: node_id=0x00000001, SelfID Count=2, CYCLEMASTER mode
pcib7: <OFW PCI-PCI bridge> at device 6.0 on pci1
pci7: <OFW PCI bus> on pcib7
gem0: <Apple K2 GMAC Ethernet> mem 0x80400000-0x805fffff at device 15.0 on pci7
gem0: invalid MAC address
device_attach: gem0 attach returned 6
pcib8: <OFW PCI-PCI bridge> at device 7.0 on pci1
pci8: <OFW PCI bus> on pcib8
atapci0: <ServerWorks K2 SATA150 controller> mem 0x80600000-0x80601fff irq 33554432 at device 12.0 on pci8
pcib1: failed to reserve resource for pcib8
atapci0: 0x10 bytes of rid 0x20 res 4 failed (0, 0xffffffffffffffff).
ata2: <ATA channel> at channel 0 on atapci0
ata3: <ATA channel> at channel 1 on atapci0
ata4: <ATA channel> at channel 2 on atapci0
ata5: <ATA channel> at channel 3 on atapci0
atapci1: <ServerWorks K2 SATA150 controller> at device 12.1 on pci8
pcib1: failed to reserve resource for pcib8
atapci1: 0x10 bytes of rid 0x20 res 4 failed (0, 0xffffffffffffffff).
atapci1: unable to map interrupt
device_attach: atapci1 attach returned 6
Timecounter "timebase" frequency 33333333 Hz quality 0
Event timer "decrementer" frequency 33333333 Hz quality 1000
Timecounters tick every 1.000 msec
firewire0: 2 nodes, maxhop <= 1 cable IRM irm(1)  (me) 
firewire0: bus manager 1 
max66900: 2 sensors detected.
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
ugen0.1: <NEC OHCI root HUB> at usbus0
uhub0: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <NEC OHCI root HUB> at usbus1
uhub1: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
usbus2: 480Mbps High Speed USB v2.0
ugen2.1: <NEC EHCI root HUB> at usbus2
uhub2: <NEC EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
fcu0: FCU initialized, RPM shift: 2
fcu0: 8 fans detected!
uhub0: 3 ports with 3 removable, self powered
uhub1: 2 ports with 2 removable, self powered
SMP: AP CPU #1 launched
Trying to mount root from ufs:/dev/ada0s3 [rw]...
Root mount waiting for: CAM usbus2
uhub2: 5 ports with 5 removable, self powered
Root mount waiting for: CAM usbus2
ada0 at ata2 bus 0 scbus3 target 0 lun 0
ada0: <Lexar SSD H190117H> ACS-2 ATA SATA 3.x device
ada0: Serial Number J36395J000281
ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada0: 122104MB (250069680 512 byte sectors)
cd0 at ata0 bus 0 scbus1 target 0 lun 0
cd0: <MATSHITA CD-RW  CW-8123 CA14> Removable CD-ROM SCSI device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
mountroot: waiting for device /dev/ada0s3...
ugen0.2: <vendor 0x04d9 USB Keyboard> at usbus0
ukbd0 on uhub0
ukbd0: <vendor 0x04d9 USB Keyboard, class 0/0, rev 1.10/2.60, addr 2> on usbus0
kbd1 at ukbd0
uhid0 on uhub0
uhid0: <vendor 0x04d9 USB Keyboard, class 0/0, rev 1.10/2.60, addr 2> on usbus0
module_register: cannot register gem/miibus from if_gem.ko; already loaded from kernel
Module gem/miibus failed to register: 17
module_register: cannot register pci/gem from if_gem.ko; already loaded from kernel
Module pci/gem failed to register: 17
lo0: link state changed to UP
bge0: link state changed to DOWN
bge0: link state changed to UP
Security policy loaded: MAC/ntpd (mac_ntpd)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.