Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU ROM passthrough fixes #1

Open
wants to merge 2 commits into
base: devel-4.8
Choose a base branch
from

Conversation

dlitz
Copy link

@dlitz dlitz commented Jan 12, 2017

With this, I can attach a Radeon HD 6870 GPU to a HVM running Debian and play OpenArena on it. It's delicate and there are still other bugs, but I got it working.

These patches also work against the stable-4.4 (v4.4.38-11) kernel.

git-apply is stricter than GNU patch; aborted with a fatal error

Signed-off-by: Dwayne Litzenberger <[email protected]>
Newer AMD GPUs store their initialization routines as bytecode on the
ROM.  This fixes the following initialization error inside the VM when
doing PCI passthrough:

    radeon 0000:00:05.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff
    radeon 0000:00:05.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff
    [drm:radeon_get_bios [radeon]] *ERROR* Unable to locate a BIOS ROM
    radeon 0000:00:05.0: Fatal error during GPU init

Signed-off-by: Dwayne Litzenberger <[email protected]>
@marmarek
Copy link
Owner

I'd like to see a feedback on the second patch from xen-pciback maintainer - please send it first to [email protected].

marmarek pushed a commit that referenced this pull request May 25, 2017
Sync config + few bugfixes
@marmarek
Copy link
Owner

marmarek commented Dec 3, 2018

@dlitz I've sent the patches to ML: https://lists.xenproject.org/archives/html/xen-devel/2018-12/msg00063.html
There are some questions about it, are you still around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants