I’m 99% sure this is the trouble, I don’’t really understand IRQ’s and interrupts, there is some info in the Rage_128_register_referance_guide.
I tested my theory via OS X 10.4.11and it mapped the VRAM rather than giving me the ATY:Not Usable, it also changed the screen resolution twice, once to 640x480 then to 1280x960.
dev /pci/@f “ /pci/@f” select-dev “ ATY,Rage128Pd” encode-string “ name” property 1 encode-int “ interrupts” property boot
OS X would not be able to change the screen resolution if the ‘NDRV’ didn’t load!!!
So I’m 99% sure this is the trouble and we need to figure out how to create a mapped interrupt for the card, rather than this dummy Interrupt I create because I’m a dummy;-)
On Aug 8, 2019, at 12:41 AM, Jd Lyons lyons_dj@yahoo.com wrote:
Could be the Rage128 ‘NDRV’ is aborting do to the lack of an interrupt……….
On Thu, 8 Aug 2019, Jd Lyons wrote:
I’m 99% sure this is the trouble, I don’’t really understand IRQ’s and interrupts, there is some info in the Rage_128_register_referance_guide.
OK we might be onto something but still don't understand what exactly is missing and just adding the property may be enough to get the NDRV load but then probably will hang eventually if it relies on the device generating interrupts which we don't emulate. I don't know either how IRQ is used in Rage128P and haven't checked the docs but in general a device can have an interrupt line that it can use to send interrupt request to the CPU when it needs attention (such as finished with an async task, some buffer is full or empty, etc.). These are likely settable in the device's registers to tell it when to generate interrupt so we should implement that functionality. But it's likely we don't even emulate the function that should generate an interrupt yet as the emulation is very simple currently so first that function needs to be implemented so we can implement an interrupt.
I tested my theory via OS X 10.4.11and it mapped the VRAM rather than giving me the ATY:Not Usable, it also changed the screen resolution twice, once to 640x480 then to 1280x960.
dev /pci/@f “ /pci/@f” select-dev “ ATY,Rage128Pd” encode-string “ name” property 1 encode-int “ interrupts” property boot
OS X would not be able to change the screen resolution if the ‘NDRV’ didn’t load!!!
So I’m 99% sure this is the trouble and we need to figure out how to create a mapped interrupt for the card, rather than this dummy Interrupt I create because I’m a dummy;-)
MacOS does not like the above. With sufficiently large debug level it gives me:
Copying peer property 'interrupts' stored at 0x1FB28484 ---------------- Node 'usb' has 1 interrupt(s). ---------------- Processing unit_interrupt_specifier: Raw unit_int_specifier : 00006800 00000000 00000000 00000001 Interrupt-map-mask values: 00FFF800 00000000 00000000 00000007
Comparing interrupt-map entries to this unit_interrupt_specifier:
Masked unit_int_specifier: 00006800 00000000 00000000 00000001 Interrupt-map child spec : 00006800 00000000 00000000 00000001 New unit_int_specifier : 0000001C 00000001
unit_interrupt_specifer[0] = 28 (ua_size = 0, is_size = 2) setting edge[0] to 0 OpenPIC setup: vectorIndex 13, intSource 28, level 2, sense 1, polarity 0
This is for comparison for the USB controller where it works, then with above dummy interrupts property for ati-vga (after running FCode ROM and adding interrupts property as above):
Copying device node peer 'ATY,Rage128Ps' of node at 0x1FAD8270. device_type 'display': Matched parcel 'cofb', device_type 'display'. Copying first property 'name' stored at 0x1FB28824, devNode 0x1FAD8288 Copying peer property 'vendor-id' stored at 0x1FB2885C Copying peer property 'device-id' stored at 0x1FB28888 Copying peer property 'revision-id' stored at 0x1FB288B4 Copying peer property 'class-code' stored at 0x1FB288E0 Copying peer property 'min-grant' stored at 0x1FB2890C Copying peer property 'max-latency' stored at 0x1FB28938 Copying peer property 'devsel-speed' stored at 0x1FB28964 Copying peer property 'subsystem-vendor-id' stored at 0x1FB28990 Copying peer property 'subsystem-id' stored at 0x1FB289BC Copying peer property 'cache-line-size' stored at 0x1FB289E8 Copying peer property 'device_type' stored at 0x1FB28A14 Copying peer property 'model' stored at 0x1FB28A44 Copying peer property 'compatible' stored at 0x1FB28A7C Copying peer property 'assigned-addresses' stored at 0x1FB28AA8 Creating property - 'AAPL,address' (size = 12) Creating property 'AAPL,address' (size = 0xC); stored at 0x1FB28B0C. Belongs to devNode 0x1FAD8288 Copying peer property 'reg' stored at 0x1FB28B40 Copying peer property 'width' stored at 0x1FB28BB8 Copying peer property 'height' stored at 0x1FB28BE4 Copying peer property 'depth' stored at 0x1FB28C10 Copying peer property 'linebytes' stored at 0x1FB28C3C Copying peer property 'interrupts' stored at 0x1FB28C68 ---------------- Node 'ATY,Rage128Ps' has 1 interrupt(s). ---------------- Processing unit_interrupt_specifier: Raw unit_int_specifier : 00007000 00000000 00000000 00000001 Interrupt-map-mask values: 00FFF800 00000000 00000000 00000007
Comparing interrupt-map entries to this unit_interrupt_specifier:
Masked unit_int_specifier: 00007000 00000000 00000000 00000001 Interrupt-map child spec : 00006800 00000000 00000000 00000001 ******************* MacOS: Fatal Error! (0xF3B37FDB) ******************* ***** MacOS: the following error causes your machine not to be able to boot: ***** ***** MacOS: unit-interrupt-specifier for 'ATY,Rage128Ps' not found in map. ***** unit_interrupt_specifer[3] = 1 (ua_size = 3, is_size = 1) setting edge[0] to 0 OpenPIC setup: vectorIndex 14, intSource 1, level 2, sense 1, polarity 0 Copying peer property 'address' stored at 0x1FB28D44 Copying peer property 'ATY,Status' stored at 0x1FB28D70 Copying peer property 'ATY,Flags' stored at 0x1FB28D9C Copying peer property 'EDID' stored at 0x1FB28DC8 Copying peer property 'character-set' stored at 0x1FB28E70 Copying peer property 'AGP_Address_Range' stored at 0x1FB28EA4 Copying peer property 'AGP_Address_Block' stored at 0x1FB28ED4 Copying peer property 'AGP_Alignment' stored at 0x1FB28F00 Copying peer property 'AGP_AllowOverlap' stored at 0x1FB28F2C Copying peer property 'ATY,Rom#' stored at 0x1FB28F58 Copying peer property 'ATY,Card#' stored at 0x1FB28F90 Copying peer property 'ATY,Fcode' stored at 0x1FB28FC8 Copying peer property 'driver,AAPL,MacOS,PowerPC' stored at 0x1FB28FF8 node 'ATY,Rage128Ps': Did NOT replace property 'driver,AAPL,MacOS,PowerPC'. Copying peer property 'stdin' stored at 0x1FB3DB58 Copying peer property 'stdout' stored at 0x1FB3DB84 Copying peer property 'supports-bootinfo' stored at 0x1FB3DBB0 node 'ATY,Rage128Ps': Property NOT added (already loaded) 'driver,AAPL,MacOS,PowerPC'.
then booting stops later due to the above error. So we need to make sure these properties match with whatever they should match.
This interrupts property should be added by OpenBIOS if the card specifies it uses an IRQ, this is done in drivers/pci.c::ob_pci_configure_irq() if I understood that right. That looks at the config of the PCI device (see https://wiki.osdev.org/PCI). We can patch ati-vga in QEMU to say it uses an IRQ:
diff --git a/hw/display/ati.c b/hw/display/ati.c index 84961d193f..d89153a826 100644 --- a/hw/display/ati.c +++ b/hw/display/ati.c @@ -902,6 +910,9 @@ static void ati_vga_realize(PCIDevice *dev, Error **errp) pci_register_bar(dev, 0, PCI_BASE_ADDRESS_MEM_PREFETCH, &vga->vram); pci_register_bar(dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->io); pci_register_bar(dev, 2, PCI_BASE_ADDRESS_SPACE_MEMORY, &s->mm); + + /* interrupt not yet emulated but MacOS driver needs it to load */ + dev->config[PCI_INTERRUPT_PIN] = 1; }
Then OpenBIOS adds the interrupts property and I don't get the above fatal error:
---------------- Node 'ATY,Rage128Ps' has 1 interrupt(s). ---------------- Processing unit_interrupt_specifier: Raw unit_int_specifier : 00007000 00000000 00000000 00000001 Interrupt-map-mask values: 00FFF800 00000000 00000000 00000007
Comparing interrupt-map entries to this unit_interrupt_specifier:
Masked unit_int_specifier: 00007000 00000000 00000000 00000001 Interrupt-map child spec : 00006800 00000000 00000000 00000001 Interrupt-map child spec : 00007000 00000000 00000000 00000001 New unit_int_specifier : 0000001D 00000001
unit_interrupt_specifer[0] = 29 (ua_size = 0, is_size = 2) setting edge[0] to 0 OpenPIC setup: vectorIndex 14, intSource 29, level 2, sense 1, polarity 0
Then it tries to switch mode but programs wrong values for resolution before reading EDID info and after reading EDID it does not program new values but hangs around where it exited before:
ati_mm_write 1 0x68 GPIO_MONID <- 0x0 ati_mm_write 1 0x6b GPIO_MONID <- 0x7 ati_mm_write 1 0x6a GPIO_MONID <- 0x0 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 ati_mm_write 1 0x271 CUR_CLR1 <- 0x0 ati_mm_write 1 0x272 CUR_CLR1 <- 0x0 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 ati_mm_write 1 0x271 CUR_CLR1 <- 0x0 ati_mm_write 1 0x272 CUR_CLR1 <- 0x0 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 ati_mm_write 1 0x271 CUR_CLR1 <- 0x0 ati_mm_write 1 0x272 CUR_CLR1 <- 0x0 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 ati_mm_write 1 0x271 CUR_CLR1 <- 0x0 ati_mm_write 1 0x272 CUR_CLR1 <- 0x0 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 Extend free pool: phys 0x1ffb5000 virt 0x00000000 count: 11 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 ati_mm_write 1 0x271 CUR_CLR1 <- 0x0 ati_mm_write 1 0x272 CUR_CLR1 <- 0x0 ati_mm_write 1 0x52 CRTC_GEN_CNTL <- 0x9 ati_mm_read 4 0x100 CONFIG_APER_0_BASE -> 0x81000000
Then does not boot further from here so you can keep continue guessing why it hangs (maybe waiting for an interrupt?) now or check what the NDRV wants to do to understand better what we need. (I haven't tried OS X.)
Regards, BALATON Zoltan
Looks like a Rage128 NDRV to me….
| +-o ATY,Rage128Pd@E <class IOPCIDevice, registered, matched, active, busy 0, retain count 17> | | | { | | | "devsel-speed" = <00000000> | | | "ATY,NVMode" = <"kcModeID_B"> | | | "AAPL,ndrv-interrupt-set" = "IONDRVInterruptSet is not serializable" | | | "class-code" = <00030000> | | | "depth" = <00000020> | | | "ATY,CRTActive" = <00000001> | | | "width" = <00000500> | | | "reg" = <00007000000000000000000000000000000000004200701000000000000000000000000001000000010070140000000000000000000000000000010002007018000000000000000000000$ | | | "my_switch" = <0001000000> | | | "assigned-addresses" = <420070100000000081000000000000000100000001007014000000000000100000000000000001000200701800000000820000000000000000004000> | | | "ATY,Panel" = <"Apple,XGA"> | | | "AAPL,gray-page" = <00000001> | | | "my_lcd" = <00> | | | "my_crtc" = <01> | | | "ATY,ReplaceMode" = <"kLastModeNumber"> | | | "max-latency" = <00000000> | | | "AAPL,phandle" = <fff62794> | | | "compatible" = <"VGA"> | | | "device-id" = <00005245> | | | "AAPL,gray-value" = <00648cc3> | | | "RF,REF" = <00000b86> | | | "IOPMIsPowerManaged" = Yes | | | "ExactRatioMode" = <"kp800x600x60"> | | | "IOHibernateState" = <00000000> | | | "revision-id" = <00000000> | | | "RF,VCLK" = <00000000> | | | "EDIDCheckSum" = <1a> | | | "address" = <81000000> | | | "Copy,Sime" = <03000cb3395009181004013eb8e00000002a0cb3395022224828002b80040000> | | | "RF,XCLK" = <000019c8> | | | "cache-line-size" = <00000000> | | | "AAPL,iokit-ndrv" = <00628af8> | | | "ATY,TVActive" = <00000000> | | | "AAPL,address" = <22faf0001f4bc00022e4e000> | | | "interrupts" = <00000001> | | | "SaveConfig" = <0073071700820b1a3a02050006c0004000a003c003f300010003550003000000> | | | "AAPL,vram-memory" = <8100000000ff8000> | | | "OverPanelMode" = <"kp800x600x60"> | | | "RF,MCLK" = <000019c8> | | | "my_default" = <"Apple"> | | | "name" = <"ATY,Rage128Pd"> | | | "subsystem-vendor-id" = <00001af4> | | | "model" = <"ATY Rage128"> | | | "AAPL,RegEntryID" = <01200300fedffcff53696d6552756c7a> | | | "subsystem-id" = <00001100> | | | "DAC" = <01> | | | "height" = <000003c0> | | | "ATY,PanelActive" = <00000000> | | | "ATY,DisplayMode" = <"k640x480x60"> | | | "Factory" = <00004000> | | | "ATY,DefaultMode" = <"k640x480x60"> | | | "Copy,ATYN,err" = <f615> | | | "RF,DotClock" = <00000000> | | | "IODeviceMemory" = (({"address"=18446744071578845184,"length"=16777216}),{"offset"=4096,"parent"=({"address"=18446744073474670592,"length"=65536}),"length"=25$ | | | "ATYN" = <0073071700820b1a3a02050006c0004000a003c003f300010003550003000000> | | | "ATY,CurMode" = <"kAliasID"> | | | "ATY,memsize" = <00ff8000> | | | "ATY,Connection" = <"kMonitorVGA"> | | | "display-connect-flags" = <00000000> | | | "driver,AAPL,MacOS,PowerPC" = <6d74656a000000000d4154592c5261676531323850640000000000000000000000000000000000000101602f00000006102e446973706c61795f52616765313$ | | | "Copy,Sime,err" = <f615> | | | "Power Management private data" = "{ this object = 01200300, interested driver = 01200300, driverDesire = 0, deviceDesire = 2, ourDesiredPowerState = 2, previ$ | | | "Init,Time" = <002fca4c013eb8e0> | | | "ATY,Sense" = <00000717> | | | "my_modes" = <0101010202> | | | "AAPL,maps" = ("_IOMemoryMap is not serializable","_IOMemoryMap is not serializable","_IOMemoryMap is not serializable") | | | "ATY,ChkSumMode" = <"k640x480x60"> | | | "AAPL,ndrv-dev" = Yes | | | "ATY,MEM" = <"SDR512Kx16x2x16MB128"> | | | "driver-ist" = <013df0800000000100000000000000000000000000000000013df080000000020000000000000000> | | | "ATY,TimingFlagsMode" = <"kcModeID_B"> | | | "vendor-id" = <00001002> | | | "min-grant" = <00000000> | | | "device_type" = <"display"> | | | "Copy,ATYN" = <03000cb3395009181004013eb8e00000002a0cb3395022224828002b80040000> | | | "Power Management protected data" = "{ theNumberOfPowerStates = 3, version 1, power state 0 = { capabilityFlags 00000000, outputPowerCharacter 00000000, input$ | | | "EDID" = <00ffffffffffff0049143412000000002a180104a5281e7806ee91a3544c99260f5054210800e1c0d1c00101010101010101010101012520006641001a30001e3340932e110000180000$ | | | "linebytes" = <00001400> | | | "AAPL,ndrvInst" = "IOPEFNDRV is not serializable" | | | } | | | | | +-o .Display_Rage128 <class IOATI128NDRV, registered, matched, active, busy 0, retain count 12> | | | +-o IOFramebufferI2CInterface <class IOFramebufferI2CInterface, registered, matched, active, busy 0, retain count 5> | | | +-o display0 <class IODisplayConnect, registered, matched, active, busy 0, retain count 5> | | | | +-o AppleDisplay <class AppleDisplay, registered, matched, active, busy 0, retain count 7> | | | +-o IOFramebufferUserClient <class IOFramebufferUserClient, !registered, !matched, active, busy 0, retain count 5> | | +-o ATIRage128 <class ATIRage128, registered, matched, active, busy 0, retain count 6> | | +-o ATIR1282DContext <class ATIR1282DContext, !registered, !matched, active, busy 0, retain count 5> | | +-o ATIR128Surface <class ATIR128Surface, !registered, !matched, active, busy 0, retain count 5> | +-o ethernet@F <class IOPCIDevice, registered, matched, active, busy 0, retain count 10>
On Aug 8, 2019, at 12:11 PM, Jd Lyons lyons_dj@yahoo.com wrote:
I’m 99% sure this is the trouble, I don’’t really understand IRQ’s and interrupts, there is some info in the Rage_128_register_referance_guide.
I tested my theory via OS X 10.4.11and it mapped the VRAM rather than giving me the ATY:Not Usable, it also changed the screen resolution twice, once to 640x480 then to 1280x960.
dev /pci/@f “ /pci/@f” select-dev “ ATY,Rage128Pd” encode-string “ name” property 1 encode-int “ interrupts” property boot
OS X would not be able to change the screen resolution if the ‘NDRV’ didn’t load!!!
So I’m 99% sure this is the trouble and we need to figure out how to create a mapped interrupt for the card, rather than this dummy Interrupt I create because I’m a dummy;-)
On Aug 8, 2019, at 12:41 AM, Jd Lyons lyons_dj@yahoo.com wrote:
Could be the Rage128 ‘NDRV’ is aborting do to the lack of an interrupt……….
Howard, when you have time will you dump the IOReg for you Rage128Ps?
ioreg -n ATY,Rage128Ps
On Aug 8, 2019, at 1:48 PM, Jd Lyons lyons_dj@yahoo.com wrote:
Looks like a Rage128 NDRV to me….
| +-o ATY,Rage128Pd@E <class IOPCIDevice, registered, matched, active, busy 0, retain count 17> | | | { | | | "devsel-speed" = <00000000> | | | "ATY,NVMode" = <"kcModeID_B"> | | | "AAPL,ndrv-interrupt-set" = "IONDRVInterruptSet is not serializable" | | | "class-code" = <00030000> | | | "depth" = <00000020> | | | "ATY,CRTActive" = <00000001> | | | "width" = <00000500> | | | "reg" = <00007000000000000000000000000000000000004200701000000000000000000000000001000000010070140000000000000000000000000000010002007018000000000000000000000$ | | | "my_switch" = <0001000000> | | | "assigned-addresses" = <420070100000000081000000000000000100000001007014000000000000100000000000000001000200701800000000820000000000000000004000> | | | "ATY,Panel" = <"Apple,XGA"> | | | "AAPL,gray-page" = <00000001> | | | "my_lcd" = <00> | | | "my_crtc" = <01> | | | "ATY,ReplaceMode" = <"kLastModeNumber"> | | | "max-latency" = <00000000> | | | "AAPL,phandle" = <fff62794> | | | "compatible" = <"VGA"> | | | "device-id" = <00005245> | | | "AAPL,gray-value" = <00648cc3> | | | "RF,REF" = <00000b86> | | | "IOPMIsPowerManaged" = Yes | | | "ExactRatioMode" = <"kp800x600x60"> | | | "IOHibernateState" = <00000000> | | | "revision-id" = <00000000> | | | "RF,VCLK" = <00000000> | | | "EDIDCheckSum" = <1a> | | | "address" = <81000000> | | | "Copy,Sime" = <03000cb3395009181004013eb8e00000002a0cb3395022224828002b80040000> | | | "RF,XCLK" = <000019c8> | | | "cache-line-size" = <00000000> | | | "AAPL,iokit-ndrv" = <00628af8> | | | "ATY,TVActive" = <00000000> | | | "AAPL,address" = <22faf0001f4bc00022e4e000> | | | "interrupts" = <00000001> | | | "SaveConfig" = <0073071700820b1a3a02050006c0004000a003c003f300010003550003000000> | | | "AAPL,vram-memory" = <8100000000ff8000> | | | "OverPanelMode" = <"kp800x600x60"> | | | "RF,MCLK" = <000019c8> | | | "my_default" = <"Apple"> | | | "name" = <"ATY,Rage128Pd"> | | | "subsystem-vendor-id" = <00001af4> | | | "model" = <"ATY Rage128"> | | | "AAPL,RegEntryID" = <01200300fedffcff53696d6552756c7a> | | | "subsystem-id" = <00001100> | | | "DAC" = <01> | | | "height" = <000003c0> | | | "ATY,PanelActive" = <00000000> | | | "ATY,DisplayMode" = <"k640x480x60"> | | | "Factory" = <00004000> | | | "ATY,DefaultMode" = <"k640x480x60"> | | | "Copy,ATYN,err" = <f615> | | | "RF,DotClock" = <00000000> | | | "IODeviceMemory" = (({"address"=18446744071578845184,"length"=16777216}),{"offset"=4096,"parent"=({"address"=18446744073474670592,"length"=65536}),"length"=25$ | | | "ATYN" = <0073071700820b1a3a02050006c0004000a003c003f300010003550003000000> | | | "ATY,CurMode" = <"kAliasID"> | | | "ATY,memsize" = <00ff8000> | | | "ATY,Connection" = <"kMonitorVGA"> | | | "display-connect-flags" = <00000000> | | | "driver,AAPL,MacOS,PowerPC" = <6d74656a000000000d4154592c5261676531323850640000000000000000000000000000000000000101602f00000006102e446973706c61795f52616765313$ | | | "Copy,Sime,err" = <f615> | | | "Power Management private data" = "{ this object = 01200300, interested driver = 01200300, driverDesire = 0, deviceDesire = 2, ourDesiredPowerState = 2, previ$ | | | "Init,Time" = <002fca4c013eb8e0> | | | "ATY,Sense" = <00000717> | | | "my_modes" = <0101010202> | | | "AAPL,maps" = ("_IOMemoryMap is not serializable","_IOMemoryMap is not serializable","_IOMemoryMap is not serializable") | | | "ATY,ChkSumMode" = <"k640x480x60"> | | | "AAPL,ndrv-dev" = Yes | | | "ATY,MEM" = <"SDR512Kx16x2x16MB128"> | | | "driver-ist" = <013df0800000000100000000000000000000000000000000013df080000000020000000000000000> | | | "ATY,TimingFlagsMode" = <"kcModeID_B"> | | | "vendor-id" = <00001002> | | | "min-grant" = <00000000> | | | "device_type" = <"display"> | | | "Copy,ATYN" = <03000cb3395009181004013eb8e00000002a0cb3395022224828002b80040000> | | | "Power Management protected data" = "{ theNumberOfPowerStates = 3, version 1, power state 0 = { capabilityFlags 00000000, outputPowerCharacter 00000000, input$ | | | "EDID" = <00ffffffffffff0049143412000000002a180104a5281e7806ee91a3544c99260f5054210800e1c0d1c00101010101010101010101012520006641001a30001e3340932e110000180000$ | | | "linebytes" = <00001400> | | | "AAPL,ndrvInst" = "IOPEFNDRV is not serializable" | | | } | | | | | +-o .Display_Rage128 <class IOATI128NDRV, registered, matched, active, busy 0, retain count 12> | | | +-o IOFramebufferI2CInterface <class IOFramebufferI2CInterface, registered, matched, active, busy 0, retain count 5> | | | +-o display0 <class IODisplayConnect, registered, matched, active, busy 0, retain count 5> | | | | +-o AppleDisplay <class AppleDisplay, registered, matched, active, busy 0, retain count 7> | | | +-o IOFramebufferUserClient <class IOFramebufferUserClient, !registered, !matched, active, busy 0, retain count 5> | | +-o ATIRage128 <class ATIRage128, registered, matched, active, busy 0, retain count 6> | | +-o ATIR1282DContext <class ATIR1282DContext, !registered, !matched, active, busy 0, retain count 5> | | +-o ATIR128Surface <class ATIR128Surface, !registered, !matched, active, busy 0, retain count 5> | +-o ethernet@F <class IOPCIDevice, registered, matched, active, busy 0, retain count 10>
On Aug 8, 2019, at 12:11 PM, Jd Lyons lyons_dj@yahoo.com wrote:
I’m 99% sure this is the trouble, I don’’t really understand IRQ’s and interrupts, there is some info in the Rage_128_register_referance_guide.
I tested my theory via OS X 10.4.11and it mapped the VRAM rather than giving me the ATY:Not Usable, it also changed the screen resolution twice, once to 640x480 then to 1280x960.
dev /pci/@f “ /pci/@f” select-dev “ ATY,Rage128Pd” encode-string “ name” property 1 encode-int “ interrupts” property boot
OS X would not be able to change the screen resolution if the ‘NDRV’ didn’t load!!!
So I’m 99% sure this is the trouble and we need to figure out how to create a mapped interrupt for the card, rather than this dummy Interrupt I create because I’m a dummy;-)
On Aug 8, 2019, at 12:41 AM, Jd Lyons lyons_dj@yahoo.com wrote:
Could be the Rage128 ‘NDRV’ is aborting do to the lack of an interrupt……….
On 8/8/19, Jd Lyons lyons_dj@yahoo.com wrote:
Howard, when you have time will you dump the IOReg for you Rage128Ps?
Sure, here you go!
| +-o pci@f0000000 <class IOPlatformDevice, registered, matched, active, busy 0, retain count 9> | | +-o AppleMacRiscAGP <class AppleMacRiscAGP, !registered, !matched, active, busy 0, retain count 10> | | +-o uni-north-agp@B <class IOPCIDevice, registered, matched, active, busy 0, retain count 8> | | +-o ATY,Rage128Ps@10 <class IOAGPDevice, registered, matched, active, busy 0, retain count 19> | | | { | | | "devsel-speed" = <00000001> | | | "ATY,NVMode" = <"k1280x1024x75"> | | | "AGP_Address_Block" = <10000000> | | | "class-code" = <00030000> | | | "AAPL,ndrv-interrupt-set" = "IONDRVInterruptSet is not serializable" | | | "depth" = <00000008> | | | "ATY,Flags" = <07170f9b> | | | "width" = <00000500> | | | "ATY,CRTActive" = <00000010> | | | "fast-back-to-back" = <> | | | "reg" = <0000800000000000000000000000000000000000020080300000000000000000000000000002000042008010000000000000000000000000040000000200801800000000000000000000000000004000> | | | "my_switch" = <0001000000> | | | "assigned-addresses" = <c20080100000000094000000000000000400000082008030000000009002000000000000000200008200801800000000900000000000000000004000> | | | "ATY,Panel" = <"Apple,XGA"> | | | "AAPL,gray-page" = <00000001> | | | "character-set" = <"ISO8859-1"> | | | "my_lcd" = <00> | | | "my_crtc" = <01> | | | "ATY,ReplaceMode" = <"kLastModeNumber"> | | | "iso6429-1983-colors" = <> | | | "max-latency" = <00000000> | | | "AAPL,phandle" = <ff94bb50> | | | "compatible" = <"pci1002,5046","pciclass,030000"> | | | "device-id" = <00005046> | | | "AGP_Master" = <> | | | "AAPL,gray-value" = <00648cc3> | | | "IOAGPCommandValue" = <07000302> | | | "RF,REF" = <00000b86> | | | "ATY,Status" = <00000000> | | | "IOPMIsPowerManaged" = Yes | | | "ExactRatioMode" = <"kp800x600x60"> | | | "IOHibernateState" = <00000000> | | | "revision-id" = <00000000> | | | "ATY,Card#" = <"109-63000-00"> | | | "RF,VCLK" = <000034bc> | | | "EDIDCheckSum" = <ca> | | | "address" = <94008000> | | | "Copy,Sime" = <cf401749b950119cb00401a830600000002a020b980828220824002fca4c01a8> | | | "ATY,Fcode" = <"1.70"> | | | "RF,XCLK" = <000036b0> | | | "AAPL,boot-display" = <> | | | "AAPL,iokit-ndrv" = <00741af8> | | | "ATY,TVActive" = <00000000> | | | "AAPL,address" = <313110003531100031286000> | | | "interrupts" = <00000001> | | | "AAPL,vram-memory" = <9600000000ff8000> | | | "fcode-rom-offset" = <00000000> | | | "OverPanelMode" = <"kp800x600x60"> | | | "RF,MCLK" = <00002e18> | | | "my_default" = <"Apple"> | | | "IOInterruptControllers" = ("IOInterruptControllerFF910BD8") | | | "name" = <"ATY,Rage128Ps"> | | | "IOInterruptSpecifiers" = (<0000003000000001>) | | | "model" = <"ATY,Rage128Pro"> | | | "AAPL,RegEntryID" = <01a7d600fe5829ff53696d6552756c7a> | | | "ATY,Rom#" = <"113-63001-110"> | | | "DAC" = <10> | | | "height" = <00000400> | | | "AGP_Address_Range" = <00000000ffffffff> | | | "AGP_AllowOverlap" = <00000001> | | | "ATY,PanelActive" = <00000000> | | | "Factory" = <07170f9b> | | | "ATY,DefaultMode" = <"k640x480x60"> | | | "ATYN" = <0024071700820bca000000000000000000000000000000000000000000000000> | | | "ATY,DisplayMode" = <"k1280x1024x75"> | | | "IODeviceMemory" = (({"address"=18446744071897612288,"length"=67108864}),({"address"=18446744071830634496,"length"=131072}),({"address"=18446744071830503424,"length"=16384$ | | | "RF,DotClock" = <000034bc> | | | "ATY,CurMode" = <"k1280x1024x75"> | | | "ATY,memsize" = <00ff8000> | | | "ATY,Connection" = <"kMonitorVGA"> | | | "display-connect-flags" = <00000000> | | | "driver,AAPåL,MacOS,PowerPC" = <6d74656a000000000d4154592c5261676531323850730000000000000000000000000000000000000101603000000006102e446973706c61795f526167653132380000000000$ | | | "Copy,Sime,err" = <f615> | | | "Power Management private data" = "{ this object = 01a7d600, interested driver = 01a7d600, driverDesire = 0, deviceDesire = 2, ourDesiredPowerState = 2, previousRequest = $ | | | "Init,Time" = <002c43e800000000> | | | "ATY,Sense" = <00000717> | | | "my_modes" = <0101010202> | | | "AAPL,maps" = ("_IOMemoryMap is not serializable","_IOMemoryMap is not serializable","_IOMemoryMap is not serializable") | | | "ATY,ChkSumMode" = <"k1280x1024x75"> | | | "AAPL,ndrv-dev" = Yes | | | "IOAGPFlags" = 7 | | | "AAPL,slot-name" = <"SLOT-A"> | | | "driver-ist" = <01add7e0000000010000000000000000000000000000000001add7e0000000020000000000000000> | | | "ATY,TimingFlagsMode" = <"k1280x1024x75"> | | | "vendor-id" = <00001002> | | | "min-grant" = <00000008> | | | "device_type" = <"display"> | | | "Copy,ATYN" = <0024071700820bca000000000000000000000000000000000000000000000000> | | | "Power Management protected data" = "{ theNumberOfPowerStates = 3, version 1, power state 0 = { capabilityFlags 00000000, outputPowerCharacter 00000000, inputPowerRequirem$ | | | "IONVRAMProperty" = Yes | | | "EDID" = <00ffffffffffff0026cdb44681240000250d010368221b782a2d90a4574a9c25115054bfef008180714f010101010101010101010101bc34009851002a4010901300540e1100001e000000ff003035323$ | | | "linebytes" = <00000500> | | | "AGP_Alignment" = <10000000> | | | "AAPL,ndrvInst" = "IOPEFNDRV is not serializable" | | | "AAPL,interrupts" = <0000003000000001> | | | } | | | | | +-o .Display_Rage128 <class IOATI128NDRV, registered, matched, active, busy 0, retain count 12> | | | +-o IOFramebufferI2CInterface <class IOFramebufferI2CInterface, registered, matched, active, busy 0, retain count 5> | | | +-o display0 <class IODisplayConnect, registered, matched, active, busy 0, retain count 5> | | | | +-o AppleDisplay <class AppleDisplay, registered, matched, active, busy 0, retain count 7> | | | +-o IOFramebufferUserClient <class IOFramebufferUserClient, !registered, !matched, active, busy 0, retain count 5> | | +-o name_perrier_thomas_ATIcceleratorDriver <class name_perrier_thomas_ATIcceleratorDriver, registered, matched, active, busy 0, retain count 4> | | +-o ATIRage128 <class ATIRage128, registered, matched, active, busy 0, retain count 6> | | +-o ATIR1282DContext <class ATIR1282DContext, !registered, !matched, active, busy 0, retain count 5> | | +-o ATIR128Surface <class ATIR128Surface, !registered, !matched, active, busy 0, retain count 5>