Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
140 user(s) are online (89 user(s) are browsing Forums)

Members: 0
Guests: 140

more...

Support us!

Headlines

Forum Index


Board index » All Posts




Re: First user
Just can't stay away
Just can't stay away


@MartinW
Quote:
Has this driver been pulled for some reason? I can't find it on OS4Depot.
Looks like all of his software, for example nvme.device as well, was removed from OS4depot, the only exception I found is ahidrv-filesave

Go to top


Re: Pegasos2 with RadeonHD/RX via bridge
Home away from home
Home away from home


@joerg,geennaam
So that prove my troughs that if issue with 64/32bit BARs still there, then OS4 kernel (and so all the apps using OS calls), can't see a shit :)

But then, RadeonHD have both video and audio parts. And still, in the Ranger/SysMon it not only didn't list video part (which is 64bit, so ok, understandable), but also hd-audio. It didn't show anything, like, bridge is empty.

From another side, probably we do have good news anyway : OF itself
see both bridge, and RadeonHD in, so it's OS4 issue.

@geennaam
Btw, is it possible to boot QEMU with pass through card attached, but display over something else, and to test to boot with BBOOT and AmigaBoot.of , to see, if Ranger will show pass through card attached at all with AmigaBoot.of and / or Bboot.

I.e. if amigaboot.of booting will show nothing about card in Ranger, but BBOOT booting will show it, then it will mean that on real pegasos2 we still have issues with 32vs64bit BARs things left.

@all
Maybe worth to try to boot with Morphos and Linux ? To see what they tell, about, etc. ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top


Re: First user's report of new Intel HD Audio (Azalia) driver by geennaam
Not too shy to talk
Not too shy to talk


Has this driver been pulled for some reason? I can't find it on OS4Depot.


Amiga x5040 ı 16GB ı RX580
GB-A1000 060@100,
A1200 PiStorm32-Lite CM4
Go to top


Re: Pegasos2 with RadeonHD/RX via bridge
Just can't stay away
Just can't stay away


@geennaam
Quote:
I think that Ranger just lists the PCI devices which are reported by the system.
Yes, it just displays what the AmigaOS 4.x kernel found and added to the expansion.library lists, it doesn't include own PCI(e) hardware scanning code.

Quote:
The pegasos has two bridges. That results in two busses.
Unless I understood something wrong the Marvell has no bridges, just 2 PCI busses.
The Articia-S (MAI Teron CX/PX/Mini PReP reference/evaluation boards, AmigaOne SE/XE/µA1, and Pegasos1) has 2 busses as well (first one, 0.0.0, directly connected to the onboard ethernet chip, the VIA southbridge incl. PATA, USB, etc. and the 3 PCI33 slots, 0.6.x-0.A.x), but the other one (0.1.0) uses an internal PCI-to-PCI bridge for the AGP and PCI66 slots (1.0.x + 1.1.x).


Edited by joerg on 2023/7/25 17:50:53
Go to top


Re: Pegasos2 with RadeonHD/RX via bridge
Quite a regular
Quite a regular


@kas1e

I think that Ranger just lists the PCI devices which are reported by the system.
The pegasos has two bridges. That results in two busses. Ranger reports my RX 560 just fine behind the AGP bridge. With the assumption that you already use the PCIe power inserter, it looks like the kernel is not able to scan behind your 8112. Maybe you have better luck with the pericom bridge. This was also the key to get those HD cards working on a sam440.

Go to top


Re: Pegasos2 with RadeonHD/RX via bridge
Just can't stay away
Just can't stay away


@kas1e
Quote:
Question is : why os4 apps such as ranger and sysmon didnt see card ? I assume if it issues with BARs we still should see it as hardware with wrong memory regions,etc, right ? Or issues with bars can be resulted with os4 not see card as hardware at all ?
In AmigaOS 4.x kernels only supporting 32 bit PCI, like the Pegasos2 one, 64 bit BARs don't exist at at all, nothing, incl. drivers and tools like Ranger, can access it.
In your dump_all_with_bridge_and_radeonhd.txt for the PCI->PCIe bridge there is "xp6" in reg and assigned-addresses. I don't know what "xp6" is, but since for memory BARs "x" is 64 bit and "m" is 32 bit it may be something 64 bit related, and therefore not supported by the kernel, as well.

Go to top


Re: Pegasos2 with RadeonHD/RX via bridge
Home away from home
Home away from home


@balaton,geennaam
So, takin into account latest pciconfigs and what geennam says we do have pci bridge seen on pci@6 and radeonhd card witb hdaudio visibly too.

Question is : why os4 apps such as ranger and sysmon didnt see card ? I assume if it issues with BARs we still should see it as hardware with wrong memory regions,etc, right ? Or issues with bars can be resulted with os4 not see card as hardware at all ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top


Re: Pegasos2 with RadeonHD/RX via bridge
Quite a regular
Quite a regular


@kas1e

In case you didn't know: 1002,AAB0 is the hdaudio soundcard endpoint for audio over HDMI or DP.

Go to top


Re: Pegasos2 with RadeonHD/RX via bridge
Home away from home
Home away from home


@balaton
Quote:

What if you cd to /pci/pci and do ls? Does a display device node appear there?


ok cd /pci/pci
ok ls
display
@0
pci1002
,AAB0@0,1
ok


/pci/pci there is the same as /pci@80000000/pci@6
I just before forget to do "ls" inside as well, so didn't see display@0 and pci1002,AAB0@0,1


Then you can also get .properties of that to see how the firmware sees this:

for display@0:

ok cd display@0
ok 
.properties
vendor
-id             0x1002 (4098)
device-id             0x682B (26667)
revision-id           0x87 (135)
class-
code            0x30000 (196608)
subsystem-id          0x1043 (4163)
subsystem-vendor-id   0x7250 (29264)
.
vendor-name          "ATI"
.class                "Display Controller"
.subclass             "PC Compatible"
interrupts            0x1 (1)
devsel-speed          0x0 (0)
min-grant             0x0 (0)
max-latency           0x0 (0)
rom                   [0x20000 bytes]
        [
000FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[010FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[020FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[030FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[040FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[050FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[060FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[070FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[080] FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[090] FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[0A0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[0B0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[0C0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[0D0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[0E0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[0F0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[100FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[110FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[120FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[130FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[140FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[150FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[160FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[170FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[180FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[190FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[1A0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[1B0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[1C0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[1D0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[1E0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
        
[1F0FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
[skipped]

name                  "display"
reg                   0:0
                      xp0
,0,10,0:10000000
                      x0
,0,18,0:40000
                      i0
,0,20,0:100
                      m0
,0,30,0:20000
assigned
-addresses    xp0,0,10,90000000:10000000
                      x0
,0,18,80100000:40000
                      i0
,0,20,FE002000:100
                      m0
,0,30,80140000:20000
ok



For pci1002,AAB0@0,1:

ok cd pci1002,AAB0@0,1
ok 
.properties
vendor
-id             0x1002 (4098)
device-id             0xAAB0 (43696)
revision-id           0x0 (0)
class-
code            0x40300 (262912)
subsystem-id          0x1043 (4163)
subsystem-vendor-id   0xAAB0 (43696)
.
vendor-name          "ATI"
interrupts            0x2 (2)
devsel-speed          0x0 (0)
min-grant             0x0 (0)
max-latency           0x0 (0)
name                  "pci1002,AAB0"
reg                   0,1:0
                      x0
,1,10,0:4000
assigned
-addresses    x0,1,10,80160000:4000
ok



Quote:

You could get all info from SmartFirmware with dump-all but that's too long to post here, maybe send it to me or upload somewhere.


full dump-all with bridge + inserted RadeonHD:
https://kas1e.mikendezign.com/pegasos2 ... h_bridge_and_radeonhd.txt


Quote:

There's also a dump-pciconfig word in SmartFirmware but I don't know what that does but sounds like it can get some info from a card.


It's like same like .properties looks like, you shoud inter to the directory to be able to have output from, so that the outputs:

/pci/pci:

ok cd /pci/pci
ok dump
-pciconfig
Package 0xFC5A818
        host bridge 
0
        bus 
0
        device 
6
        
function = 0
        header type 
1
        
class code 060400
        revision id 
AA
        vendor id 
10B5
        device id 
8112
        subsystem vendor id 
0000
        subsystem device id 
0000
        command 
0007
        status 
0230 [MED M66 CAP MASTE MEME IOE]
        
latency 00
        BIST 
01
        cache 
00
        BAR 0 
8000000C
        BAR 1 
00000000
        primary bus 
00
        secondary bus 
01
        subordinate bus 
01
        secondary latency 
00
        i
/o base 20
        i
/o limit 20
        secondary status 
2000
        memory base 
8010
        memory limit 
9FF0
        prefetch base 
FFF0
        prefetch limit 
FFE0
        prefetch64 base 
00000000
        prefetch64 limit 
00000000
        i
/o 32 base 0000
        i
/o 32 limit 0000
        boot ROM 
00000000
        interrupt line 
00
        interrupt pin 
01
        bridge control 
0000
ok



/pci/pci/display@0:

ok cd display@0
ok dump
-pciconfig
Package 0xFC5B3D0
        host bridge 
0
        bus 
1
        device 
0
        
function = 0
        header type 
0
        
class code 030000
        revision id 
87
        vendor id 
1002
        device id 
682B
        subsystem vendor id 
1043
        subsystem device id 
7250
        command 
0000
        status 
0010 [FAST CAP]
        
latency 00
        BIST 
80
        cache 
00
        BAR 0 
9000000C
        BAR 1 
00000000
        BAR 2 
80100004
        BAR 3 
00000000
        BAR 4 
00002001
        BAR 5 
00000000
        CIS 
00000000
        boot ROM 
80140000
        reserved 
@34 = 00000048
        
reserved @38 00000000
        interrupt 
= 00000109
ok


and /pci/pci/pci1002,AAB0@0,1:

ok cd pci1002,AAB0@0,1
ok dump
-pciconfig
Package 0xFC5B6F8
        host bridge 
0
        bus 
1
        device 
0
        
function = 1
        header type 
0
        
class code 040300
        revision id 
00
        vendor id 
1002
        device id 
AAB0
        subsystem vendor id 
1043
        subsystem device id 
AAB0
        command 
0000
        status 
0010 [FAST CAP]
        
latency 00
        BIST 
80
        cache 
00
        BAR 0 
80160004
        BAR 1 
00000000
        BAR 2 
00000000
        BAR 3 
00000000
        BAR 4 
00000000
        BAR 5 
00000000
        CIS 
00000000
        boot ROM 
00000000
        reserved 
@34 = 00000048
        
reserved @38 00000000
        interrupt 
= 00000209
ok

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Quite a regular
Quite a regular


@balaton

One thing to note is that I do not experience any freeze. And I don't have that patch applied. Maybe because I'm running on an Intel platform.

It's just slow.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Quite a regular
Quite a regular


@geennaam
On pegasos2 ultimately everything uses the ISA IRQ 9 and PCI INT pins are handled within PCI bus emulation so they are also shared. The pci.1 and pci.0 are separate buses so they have different PCI bus emulation but I think they PCI interrupts are connected to vt8231 PINT inpits which is then uses the PCI interrupt handler of the PCI bus the VT8231 is connected to that is pci.1 even for devices on pci.0 which may or may not be a problem. I also don't fully understand how this works in QEMU and this may have problems. I had may patch originally track each interrupt source separately but testing by Martin found it made no difference regarding freeze so that maybe caused by something else.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Quite a regular
Quite a regular


@MartinW
You'd need GNU make, maybe try gmake if make is a BSD make, I may be using some GNU extensions. For the library that's probably 64 bit but BBoot is 32 bit so needs corresponding libgcc. In makefile I have: powerpc64-linux-gnu-gcc -print-file-name=32 because in /usr/lib/gcc I have a libgcc.a for 64bit but there's a subdir called 32 with 32 bit versions of the same. If your distro packages it differently you may need to adjust it or it may have a different package for powerpc-linux-gnu-gcc instead of powerpc64 that contains the 32 bit version.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Quite a regular
Quite a regular


@geennaam
Good to hear it works. Having BBoot output from where it works would still be good to at least know what settings work and what don't.
The problem with resetting the card is independent of AmigaOS or BBoot or any of my code so can't help with that but I guess this may have something to do with the VGA part of the card being used by something. You should make sure your BIOS does not try to use the card and no driver is loaded for it in Linux. There were some mentions of vga arbitration and some patches needed for ATI cards somewhere but I may be completely wrong about this so try to search for and check info on this. The same problem happens when someone passes through GPU for Windows guest so I think there's some info on that somewhere.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


That's not the entire issue though - there's a message lost in the wilds of this thread somewhere. The RX driver doesn't correctly ACK with a 1 or a 0 as it should do once it has serviced the interrupt. That may not be exactly correct, but something like that.

But yes, I saw the same behaviour with the RX cards.


Amiga x5040 ı 16GB ı RX580
GB-A1000 060@100,
A1200 PiStorm32-Lite CM4
Go to top


Re: Pegasos2 with RadeonHD/RX via bridge
Not too shy to talk
Not too shy to talk


@kas1e
Every PCI-PCIe bridge is in real PCIe x1.
Even if it has ×16 mechanical connector, electrically it is only x1. So you can connect x1 extender to x16 bridge connector with no slowdown.

And powered PCIe x1 - PCIe x16 adapter ( for minig rigs as geennam suggested ) is simple serial lines extension, totally passive. You not see it in Ranger.

AmigaOS3: Amiga 1200
AmigaOS4: Micro A1-C, AmigaOne XE, Pegasos II, Sam440ep, Sam440ep-flex, AmigaOne X1000
MorphOS: Efika 5200b, Pegasos I, Pegasos II, Powerbook, Mac Mini, iMac, Powermac Quad
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Quite a regular
Quite a regular


@MartinW

Quote:

Yes, unusably slow but AFAIK Hans is potentially looking into the shared interrupt support so I'm guessing if that happens then it would help, if not fix it.


I have my RX on the AGP bus. As far as I can tell it has its own interrupt.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@geennaam

Yes, unusably slow but AFAIK Hans is potentially looking into the shared interrupt support so I'm guessing if that happens then it would help, if not fix it.

You also have the problem of having to reboot the host which if you think about it isn't unreasonable behaviour as a reset of the card either via reboot or shutdown would always happen on real hardware.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Quite a regular
Quite a regular


@MartinW

The performance is slow on your RX cards as well?

I didn't apply the interrupt patch. So just a clean build of the QEMU master sources

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@balaton

I installed a Debian VM, installed the packages and the linker doesn't like the version of the library. I've tried Ubuntu, Arch, Debian - I can only guess (and it is a guess) that the version of GCC is too new?

I also had a quick go under AOS4 but that just throws makefile errors which I've got when I've tried to compile anything so far (something about invalid separator). I need to look at that independently to this.

skipping incompatible /usr/lib/gcc-cross/powerpc64-linux-gnu/12/libgcc.a when searching for -lgcc


Amiga x5040 ı 16GB ı RX580
GB-A1000 060@100,
A1200 PiStorm32-Lite CM4
Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Not too shy to talk
Not too shy to talk


@geennaam

The previous error you showed is what happens on a card that doesn't release everything properly on QEmu shutdown. I've found that the RX cards do that, especially if the emulator doesn't shut down properly using the power off option in AOS4. You have to reboot the host.

Go to top



TopTop
« 1 ... 377 378 379 (380) 381 382 383 ... 7270 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project