Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
115 user(s) are online (77 user(s) are browsing Forums)

Members: 0
Guests: 115

more...

Headlines

Forum Index


Board index » All Posts (geennaam)




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


@MartinW

You can solve the networking issue by using the RTL driver on the Pegasos OS4.1 install CD.

Go to top


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


@balaton

Quote:
Does that mean when using this with 9250 on vfio-pci without x-vga=on you see output in the emulated VGA?



Yes, see #429 But only the smartfirmware output.

Go to top


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


@MartinW

This means that you can run AmigaOS4 on an emulated Pegasos2 with SM501 GPU emulation.


Edited by geennaam on 2023/7/3 20:02:54
Go to top


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


@balaton

Ah, my mistake. The first one. Corrected the commandlines.


Edited by geennaam on 2023/6/29 15:33:49
Edited by geennaam on 2023/6/29 15:34:53
Edited by geennaam on 2023/7/3 20:03:20
Go to top


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


@MartinW

First of all: Welcome

Depends on the emulated machine. Because its limited by the x86 emulation inside the firmware/bios

AmigaOS4 itself can handle the RX580 just fine with the RadeonRX driver from enhancer.

But for now the emulated pegasos2 cannot handle such a card with its bios.

Best chance is Radeon is Radeon 9200pro/50

When the sam460 target is more mature then is should be able to handle at least a Radeon HD cards up to r7 280.

See here for a list of supported cards Radeon HD cards: http://hdrlab.org.nz/projects/amiga-o ... r-hardware-compatibility/

Go to top


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


@balaton

Quote:
to my understanding the above setup now works with MorophOS passing through the 9250 but does not get picture with AmigaOS.


Not quite correct.
I do get an image for AmigaOS.
The AmigaOS4.1 boot logo shows up fine. (This might be a simple framebuffer?)
The workbench screen (desktop) is corrupted and has rendering issues. Probably because memory allocations are wrong and that it uses 2D GPU accelerations which do not work correctly.

So both MorphOS and amigaOS show pixels on the screen. MorphOS output is fine. AmigaOS4 is not.

Also AmigaOS4 doesn't show an image on the DVI output. Only on the VGA output. MotphOS can handle both outputs.
I's sure that the OS4 driver can handle DVI, becausye it works for the same card in my sam440.

Go to top


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


Edit: removed to avoid confusion. This methods only works on older Linux distros and pre 6.0 kernels


Edited by geennaam on 2023/6/29 15:06:15
Edited by geennaam on 2023/6/29 15:08:08
Edited by geennaam on 2023/6/29 15:08:46
Edited by geennaam on 2023/6/29 15:11:12
Edited by geennaam on 2023/6/29 15:25:05
Edited by geennaam on 2023/6/29 15:56:09
Edited by geennaam on 2023/7/3 19:00:51
Go to top


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


@joerg

Yes, that was a reply on the question if my GFX card works at all.
But this was also verfied with MorphOS and passthrough afterwards.

Now with VFIO correctly configured, the second GFX isn't touched anymore by the host OS. QEMU resets the GPU on startup. The guest machine firmware and guest OS have to handle the GPU setup on their own.

Go to top


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


@joerg

The whole idea of VFIO-PCI is that the host OS doesn't setup anything. As far as I know, QEMU even resets the PCI hardware at startup of emulation. Hence the message on the QEMU monitor output that it QEMU failed to change the power state of the card to D0.

(qemuqemu-system-ppcvfioUnable to power on devicestuck in D3

Go to top


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


@Hans

Yes, I do get pixels on the screen.

Boot image looks fine. Icons look fine most of time. But everything else is not ok.


Edited by geennaam on 2023/6/29 10:06:51
Go to top


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


@Hans

Quote:
The old Radeon cards have registers that control byte-swapping for VRAM accesses over PCI. The atiradeon.chip sets the byte-swapping registers for the entire VRAM to based on the pixel format of the bitmap that's currently being accessed.


I am talking about access to registers themselves. Not about moving gfx data. So if those registers accesses are big endian instead of little endian then the configuration will be bogus.

Go to top


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


@balaton

If you see a difference in byte-swap behavior then this is something that is definitly worth investigating.


Edited by geennaam on 2023/7/3 20:00:04
Go to top


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


@batalon

-d guest_errors results in huge log files. 350k lines of which 314k are caused by smartfirmware.

MorposOS results in a logfile of 600k+ lines.


You'll only find something when you know what you're looking for.

Go to top


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


@balaton

The issue is not something unimplemented.


Edited by geennaam on 2023/7/3 19:58:54
Go to top


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


@balaton

Yes, I know. I was specifically talking about this piece of code in your post:
static void warn_swap_bit(uint64_t val)
{
    if ((
val 0x3000000ULL) >> 24 != 1) {
        
qemu_log_mask(LOG_UNIMP"%s: Data swap not implemented"
        
__func__);
    }
}


I can't answer any questions about the gfx drivers. This is only something that Hans would know.

Go to top


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


@balaton

You've actually asked the question about byte swapping before: https://www.mail-archive.com/qemu-devel@nongnu.org/msg842954.html

It seems that your post the Marvell Discovery II supports the byte swapping engine. But that its not implemented in qemu.
I cannot find a datasheet. So I can't check it for you. What I do know is that the P5020 in the X5000 contains a 32bit byte swapping engine on its PCIe controllers and this one is activated for BAR read/writes when you go through the OS4 API. For direct access, you'll need to swap yourself. I use this feature in my drivers because it's convenient. So I guess that others do so as well.

Go to top


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


@Maijestro

Yes, that would be preferrable.

The SAM460LE is basically only the SoC. And the datasheet is available.

Internal busses are a bit confusing though.

Go to top


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


Managed to completely brick my Ubuntu install while trying to load the vfio drivers before Radeon drivers.

So I have to reinstall. Now the Ubuntu installer didn't like my Radeon 9250. It made both gfx card outputs flicker on and off while showing no image. Installing with safe graphics mode works. But this means that only the main gpu is enabled.

Edit1: Never mind. Install completed and both cards show the Ubuntu desktop.
But the mouse pointer is very sluggish on the 9250 screen. Seems like some acceleration is missing

Go to top


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


@balaton


I've never build a Linux kernel before so that might take a while to figure out

Not sure what blacklisting is supposed to help. Pass-through of a Radeon 9250 currently works for MorphOS. The issue seems to be related to the AmigaOS driver.
But I can give it a try in a couple of days.

Radeon HD and RX do not correctly configure in SmartFirmware. This is to be expected because of its age. Both MorphOS and AmnigaOS4 can't handle a non-configured gfx card.


Edited by geennaam on 2023/7/3 19:56:42
Go to top


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


@balaton

And for the sake of completeness

Morphos 3.18 with Radeon 9250

info mtree:
(qemuinfo mtree
address
-spacevfio-pci
  0000000000000000
-ffffffffffffffff (prio 0i/o): bus master container
    0000000000000000
-ffffffffffffffff (prio 0i/o): alias bus master @system 0000000000000000-ffffffffffffffff

address
-spacertl8139


info qtree
(qemuinfo qtree
bus
main-system-bus
  type System
  dev
ps2-mouseid ""
    
gpio-out "" 1
  dev
ps2-kbdid ""
    
gpio-out "" 1
  dev
mv64361-pcihostid ""
    
index (0x1)
    
x-config-reg-migration-enabled true
    0010000


Edited by geennaam on 2023/7/3 19:54:39
Go to top



TopTop
« 1 ... 12 13 14 (15) 16 17 18 ... 35 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project