xen / dom0 radeon.audio=1

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sivel27

xen / dom0 radeon.audio=1

Post by sivel27 »

hello all,

i followed the fantastic guide by powerhouse >> [url]http://forums.linuxmint.com/viewtopic.php?t=112013&f=42[/url] to setup vga passthrough, and it worked flawlessly !
i am only having 1 real issues:

amd radeon 6570 dom0 no hdmi sound. i tried installing the fglrx driver, but black screen in xen,
and fglrx working in non xen boot.

i edited grub to include radeon.audio=1 , updated it, and still no sound.

specs :
lm14
ati 6570 dom0
ati 7850 domU

like i said, xen boot works great for domU -- no problems there. just the sound on dom0.

if you need more info, i will gladly supply it.

thanks,
mike
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sivel27

Re: xen / dom0 radeon.audio=1

Post by sivel27 »

Code: Select all

inxi -Fxi
System:    Host: htpc Kernel: 3.5.0-17-generic x86_64 (64 bit, gcc: 4.7.2) Console: tty 4 Distro: Linux Mint 14 Nadia
Machine:   Mobo: MSI model: 970A-G46 (MS-7693) version: 2.0 Bios: American Megatrends version: V2.5 date: 07/16/2013
CPU:       Single core AMD Phenom II X6 1055T (-UP-) cache: 512 KB flags: (lm nx sse sse2 sse3 sse4a) bmips: 6860.35 
           Clock Speeds: 1: 3430.176 MHz 2: 3430.176 MHz 3: 3430.176 MHz 4: 3430.176 MHz 5: 3430.176 MHz 6: 3430.176 MHz
Graphics:  Card-1: Advanced Micro Devices [AMD] nee ATI Turks [Radeon HD 6570] bus-ID: 01:00.0 
           Card-2: Advanced Micro Devices [AMD] nee ATI PITCAIRN PRO [Radeon HD 7800 Series] bus-ID: 02:00.0 
           X.org: 1.13.0 drivers: ati,radeon (unloaded: fbdev,vesa) tty size: 137x24 Advanced Data: N/A out of X
Audio:     Card-1: Advanced Micro Devices [AMD] nee ATI Device aab0 driver: pciback bus-ID: 02:00.1 Sound: ALSA ver: 1.0.25
           Card-2: Advanced Micro Devices [AMD] nee ATI Turks/Whistler HDMI Audio [Radeon HD 6000 Series] driver: snd_hda_intel bus-ID: 01:00.1
           Card-3: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) driver: snd_hda_intel bus-ID: 00:14.2
Network:   Card: Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller 
           driver: r8169 ver: 2.3LK-NAPI port: c000 bus-ID: 05:00.0
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: d4:3d:7e:ea:35:ec
           WAN IP: 98.213.135.136 IF: vif1.0 ip: N/A ip-v6: fe80::fcff:ffff:feff:ffff 
           IF: eth0 ip: N/A ip-v6: N/A IF: xenbr0 ip: 10.10.10.7 ip-v6: fe80::d63d:7eff:feea:35ec 
           IF: virbr0 ip: 192.168.122.1 ip-v6: N/A 
Drives:    HDD Total Size: 3250.7GB (0.5% used) 1: id: /dev/sda model: TOSHIBA_MK2565GS size: 250.1GB 
           2: id: /dev/sdb model: ST3000DM001 size: 3000.6GB 
Partition: ID: / size: 15G used: 4.4G (31%) fs: ext4 ID: /boot size: 960M used: 30M (4%) fs: ext2 
           ID: /home size: 35G used: 9.6G (30%) fs: ext4 ID: swap-1 size: 5.37GB used: 0.00GB (0%) fs: swap 
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 0.0C mobo: N/A gpu: 64.0 
           Fan Speeds (in rpm): cpu: N/A 
Info:      Processes: 191 Uptime: 28 min Memory: 559.0/1678.1MB Runlevel: 2 Gcc sys: 4.7.2 Client: Shell inxi: 1.8.4
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

Re: xen / dom0 radeon.audio=1

Post by powerhouse »

Hello sivel27,

I saw you post in my how-to and checked for other posts, this is how I found this. Don't be shy to use my how-to thread to link to questions or issues.

Now a personal favor: Can you check out my request here [url]http://forums.linuxmint.com/viewtopic.php?f=29&t=112951[/url] and if you agree with it post a comment?

Now to your issues:

1. fglrx blackscreen: I had a similar issue when I first installed Xen with LM 13 or 14. I believe it may have to do with blacklisting the radeon driver (in my case it was the nouveau driver for my Nvidia Quadro card). I have revised my how-to to bind the second graphics card (the one you want to pass through) using initramfs-tools.
Another common blackscreen problem with fglrx is the graphics mode setting - try the nomodeset command (see below). You can combine blacklisting and the nomodeset command inside the /etc/default/grub file as follows:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="radeon.blacklist=1 quiet splash nomodeset"
followed by:

Code: Select all

sudo update-grub
To do this you can boot the non-Xen kernel.

2. About the HDMI sound: I have not much experience with HDMI sound, but I would try to get the fglrx driver running under Xen. I gather from your post that fglrx and sound are working when you boot the non-Xen kernel.
So, I suggest trying the above method of "nomodeset" and blacklisting the open-source driver with "radeon.blacklist=1".
Alternatively to "nomodeset" you can also try:

Code: Select all

GRUB_CMDLINE_XEN="iommu=1 dom0_mem=2048M radeon.modeset=0"
P.S.: Change the dom0_mem= amount to what you need.

Please tell me if and what method worked. If nothing works, please post the output of:

Code: Select all

lsmod
as well as

Code: Select all

lspci -v | grep -A 10 VGA
both run as NON-root, i.e. regular user!
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
sivel27

Re: xen / dom0 radeon.audio=1

Post by sivel27 »

ok,

first off thanks for responding ! i did all of the above, here is the output :

Code: Select all

 sivel@htpc ~ $ lspci -v | grep -A 10 VGA
	Flags: bus master, VGA palette snoop, 66MHz, medium devsel, latency 64
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=64

00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller (prog-if 10 [OHCI])
	Subsystem: Micro-Star International Co., Ltd. Device 7693
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18
	Memory at feb06000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci_hcd

00:15.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
--
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Turks [Radeon HD 6570] (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. Device 2502
	Flags: bus master, fast devsel, latency 0, IRQ 10
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Memory at fea20000 (64-bit, non-prefetchable) [size=128K]
	I/O ports at e000 [size=256]
	Expansion ROM at fea00000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel modules: radeon

01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Turks/Whistler HDMI Audio [Radeon HD 6000 Series]
--
02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI PITCAIRN PRO [Radeon HD 7800 Series] (prog-if 00 [VGA controller])
	Subsystem: PC Partner Limited Device e221
	Flags: bus master, fast devsel, latency 0, IRQ 28
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	Memory at fe900000 (64-bit, non-prefetchable) [size=256K]
	I/O ports at d000 [size=256]
	Expansion ROM at fe940000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: pciback
	Kernel modules: radeon

..and from lsmod :

Code: Select all

 
sivel@htpc ~ $ lsmod
Module                  Size  Used by
xen_gntdev             17794  0 
xen_evtchn             13084  1 
xenfs                  12978  1 
xen_privcmd            13220  15 xenfs
ip6table_filter        12815  0 
ip6_tables             27502  1 ip6table_filter
ebtable_nat            12807  0 
ebtables               30940  1 ebtable_nat
ipt_MASQUERADE         12759  3 
iptable_nat            12909  1 
nf_nat_ipv4            13316  1 iptable_nat
nf_nat                 26158  3 ipt_MASQUERADE,iptable_nat,nf_nat_ipv4
nf_conntrack_ipv4      14538  2 
nf_defrag_ipv4         12729  1 nf_conntrack_ipv4
xt_state               12578  1 
nf_conntrack           90457  6 ipt_MASQUERADE,iptable_nat,nf_nat_ipv4,nf_nat,nf_conntrack_ipv4,xt_state
ipt_REJECT             12576  2 
xt_CHECKSUM            12549  1 
iptable_mangle         12734  1 
xt_tcpudp              12603  5 
iptable_filter         12810  1 
ip_tables              27472  3 iptable_nat,iptable_mangle,iptable_filter
x_tables               29938  11 ip6table_filter,ip6_tables,ebtables,ipt_MASQUERADE,xt_state,ipt_REJECT,xt_CHECKSUM,iptable_mangle,xt_tcpudp,iptable_filter,ip_tables
bridge                110202  0 
stp                    12976  1 bridge
llc                    14597  2 bridge,stp
rfcomm                 47852  0 
bnep                   18258  2 
parport_pc             32866  0 
bluetooth             253156  10 rfcomm,bnep
ppdev                  17106  0 
nfsd                  287137  2 
nfs_acl                12883  1 nfsd
auth_rpcgss            58791  1 nfsd
xpad                   18181  0 
snd_hda_codec_hdmi     41552  1 
nfs                   187684  0 
snd_hda_codec_realtek    56056  1 
snd_hda_intel          48664  5 
snd_hda_codec         194680  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
ff_memless             13097  1 xpad
joydev                 17613  0 
fscache                57914  1 nfs
dm_multipath           23275  0 
snd_hwdep              13613  1 snd_hda_codec
snd_pcm               107180  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq_midi           13324  0 
binfmt_misc            17508  1 
snd_rawmidi            30416  1 snd_seq_midi
edac_core              62953  0 
lockd                  94789  2 nfsd,nfs
sp5100_tco             13870  0 
edac_mce_amd           22792  0 
psmouse               102030  0 
k10temp                13173  0 
i2c_piix4              13459  0 
snd_seq_midi_event     14899  1 snd_seq_midi
mxm_wmi                13021  0 
sunrpc                278177  6 nfsd,nfs_acl,auth_rpcgss,nfs,lockd
scsi_dh                14873  1 dm_multipath
snd_seq                66061  2 snd_seq_midi,snd_seq_midi_event
serio_raw              13253  0 
snd_timer              29989  2 snd_pcm,snd_seq
microcode              22923  0 
mac_hid                13253  0 
snd_seq_device         14497  3 snd_seq_midi,snd_rawmidi,snd_seq
snd                    73821  21 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq_midi,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore              12680  1 snd
wmi                    19256  1 mxm_wmi
snd_page_alloc         18798  2 snd_hda_intel,snd_pcm
ext2                   73755  1 
lp                     17799  0 
parport                42466  3 parport_pc,ppdev,lp
hid_generic            12548  0 
hid_logitech_dj        18631  0 
usbhid                 47196  0 
hid                   105557  3 hid_generic,hid_logitech_dj,usbhid
r8169                  68812  0 
ahci                   30063  4 
libahci                32088  1 ahci
xen_pciback            52614  0 
i am in fact able to boot into xen mode with sound ! thank you. the only issue is that when playing a movie, it is "laggy".
esp. when making fullscreen . i also cannot adjust the amdccle display properties to make the display fit my screen. i.e -
black bars on all four sides.

thanks again,
mike
powerhouse
Level 6
Level 6
Posts: 1144
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

Re: xen / dom0 radeon.audio=1

Post by powerhouse »

I see the radeon module used for the graphics cards. When you successfully install the proprietary AMD driver, it should look like that:

Code: Select all

~ $ lspci -v | grep -A 10 VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770 GHz Edition] (prog-if 00 [VGA controller])
	Subsystem: PC Partner Limited / Sapphire Technology Device e244
	Flags: bus master, fast devsel, latency 0, IRQ 196
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	Memory at fa800000 (64-bit, non-prefetchable) [size=256K]
	I/O ports at e000 [size=256]
	Expansion ROM at fa840000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: fglrx_pci

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
--
02:00.0 VGA compatible controller: NVIDIA Corporation GF106GL [Quadro 2000] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: NVIDIA Corporation Device 084a
	Flags: fast devsel, IRQ 40
	Memory at f8000000 (32-bit, non-prefetchable) [disabled] [size=32M]
	Memory at d0000000 (64-bit, prefetchable) [disabled] [size=128M]
	Memory at d8000000 (64-bit, prefetchable) [disabled] [size=64M]
	I/O ports at d000 [disabled] [size=128]
	Expansion ROM at fa000000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: pciback
Note the fglrx_pci driver used for the dom0 card.

By the way, I don't see any radeon or fglrx driver in lsmod ???

Have you installed fglrx (AMD proprietary) while running Xen? You can user the drivers utility/gui. To do so you first have to remove the fglrx driver (if you installed it) and use the radeon driver. Again, you can use the driver utility. Boot into non-Xen kernel, remove the fglrx, then reboot into Xen using the radeon driver. Under Xen, select the fglrx driver in the driver utility. It should automatically blacklist the radeon driver. After that, reboot.

Hope this works for you too.

Note: I have moved to Linux Mint 16 and Xen 4.3 - see my revised how-to. It's better, but there is a downside to it: the supplied AMD driver - 13.101 - sucks.

Good that you got sound working. How?
Subjects of interest: Linux, vfio passthrough virtualization, photography
See my blog on virtualization, including tutorials: https://www.heiko-sieger.info/category/ ... alization/
Locked

Return to “Other topics”