All of lore.kernel.org
 help / color / mirror / Atom feed
* How to enable Radeon Pro Duo with mesa
       [not found] ` <EB021AE3BDDC1742A899855D00BABEB0010451CE-0LhPdUyVHB9548jd+VSckwK1hpo4iccwjNknBlVQO8k@public.gmane.org>
@ 2018-03-14  9:41   ` Lvzhihong (ReJohn)
       [not found]     ` <E7DD0E9246072C4A9CA8F1C79F816696018E7743-k9ZYk3Ba6VKEZbDCDsDlKQK1hpo4iccwjNknBlVQO8k@public.gmane.org>
  2018-08-17  8:06     ` 答复: " sunnanyong
  0 siblings, 2 replies; 7+ messages in thread
From: Lvzhihong (ReJohn) @ 2018-03-14  9:41 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: sunnanyong


[-- Attachment #1.1: Type: text/plain, Size: 1779 bytes --]

Hi All ,
Does mesa support Radeon Pro Duo? I don't know how to configure xorg.conf to use two WX7100 card of DUO , and now I can only use the first card of DUO.
Installed software packages: xserver-xorg  xfce4  xinit
Mesa version: 17.2.8  kernel version: 4.15

Pci information:
000d:31:00.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI Express Gen 3 (8.0 GT/s) Switch (rev ca)
000d:32:08.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI Express Gen 3 (8.0 GT/s) Switch (rev ca)
000d:32:10.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI Express Gen 3 (8.0 GT/s) Switch (rev ca)
000d:33:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon Pro WX 7100]
000d:33:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aaf0
000d:34:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon Pro WX 7100]

My xorg.conf:
Section "Device"
       Identifier "AMD"
       Driver "amdgpu"
       BusID "pci:51@13:00:00"
EndSection
Section "Monitor"
        Identifier "monitor0"
        Option "enable" "true"
EndSection
Section "Screen"
        Identifier "screen0"
        Device "AMD"
        Monitor "monitor0"
        DefaultDepth 24
        SubSection "Display"
                Depth 24
        EndSubSection
EndSection

I use "startx" to start desktop , and only the first WX7100(PCI Bus ID: 000d:33:00.0) being used , the second WX7100(PCI Bus ID: 000d:34:00.0) has no load .
         Even if I set BusID as "pci:52@13:00:00" (the second WX7100), it still only the first WX7100 being used.

      So , How to enable Radeon Pro Duo with opensource driver , does my xorg.conf is wrong or mesa doesn't support Radeon Pro Duo?



[-- Attachment #1.2: Type: text/html, Size: 8091 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to enable Radeon Pro Duo with mesa
       [not found]     ` <E7DD0E9246072C4A9CA8F1C79F816696018E7743-k9ZYk3Ba6VKEZbDCDsDlKQK1hpo4iccwjNknBlVQO8k@public.gmane.org>
@ 2018-03-14 13:38       ` Alex Deucher
  2018-04-09  2:31       ` Oops in 4.16 kernel amdgpu driver sunnanyong
  1 sibling, 0 replies; 7+ messages in thread
From: Alex Deucher @ 2018-03-14 13:38 UTC (permalink / raw)
  To: Lvzhihong (ReJohn); +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, sunnanyong

On Wed, Mar 14, 2018 at 5:41 AM, Lvzhihong (ReJohn)
<lvzhihong1@huawei.com> wrote:
> Hi All ,
>
> Does mesa support Radeon Pro Duo? I don’t know how to configure xorg.conf to
> use two WX7100 card of DUO , and now I can only use the first card of DUO.

What are you trying to do?  A large desktop spread across both chips?
Use the chips independently?  There is no support for crossfire on
Linux.  If you want to use a desktop across multiple chips or select
which chip is used for rendering, you can use xrandr and the prime
support in X:
https://wiki.archlinux.org/index.php/PRIME

Alex


>
> Installed software packages: xserver-xorg  xfce4  xinit
>
> Mesa version: 17.2.8  kernel version: 4.15
>
>
>
> Pci information:
>
> 000d:31:00.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI
> Express Gen 3 (8.0 GT/s) Switch (rev ca)
>
> 000d:32:08.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI
> Express Gen 3 (8.0 GT/s) Switch (rev ca)
>
> 000d:32:10.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI
> Express Gen 3 (8.0 GT/s) Switch (rev ca)
>
> 000d:33:00.0 VGA compatible controller: Advanced Micro Devices, Inc.
> [AMD/ATI] Ellesmere [Radeon Pro WX 7100]
>
> 000d:33:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device
> aaf0
>
> 000d:34:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI]
> Ellesmere [Radeon Pro WX 7100]
>
>
>
> My xorg.conf:
>
> Section "Device"
>
>        Identifier "AMD"
>
>        Driver "amdgpu"
>
>        BusID "pci:51@13:00:00"
>
> EndSection
>
> Section "Monitor"
>
>         Identifier "monitor0"
>
>         Option "enable" "true"
>
> EndSection
>
> Section "Screen"
>
>         Identifier "screen0"
>
>         Device "AMD"
>
>         Monitor "monitor0"
>
>         DefaultDepth 24
>
>         SubSection "Display"
>
>                 Depth 24
>
>         EndSubSection
>
> EndSection
>
>
>
> I use “startx” to start desktop , and only the first WX7100(PCI Bus ID:
> 000d:33:00.0) being used , the second WX7100(PCI Bus ID: 000d:34:00.0) has
> no load .
>
>          Even if I set BusID as "pci:52@13:00:00" (the second WX7100), it
> still only the first WX7100 being used.
>
>
>
>       So , How to enable Radeon Pro Duo with opensource driver , does my
> xorg.conf is wrong or mesa doesn’t support Radeon Pro Duo?
>
>
>
>
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Oops in 4.16 kernel amdgpu driver
       [not found]     ` <E7DD0E9246072C4A9CA8F1C79F816696018E7743-k9ZYk3Ba6VKEZbDCDsDlKQK1hpo4iccwjNknBlVQO8k@public.gmane.org>
  2018-03-14 13:38       ` Alex Deucher
@ 2018-04-09  2:31       ` sunnanyong
  1 sibling, 0 replies; 7+ messages in thread
From: sunnanyong @ 2018-04-09  2:31 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 4855 bytes --]

Hi All ,
      Sometimes it happens Oops in linux kernel 4.16.0 AMDGPU driver, and it nerver happen in 4.15 kernel.
Software environment:Ubuntu17.10 + newest stable kernel 4.16.0 + mesa v17.2.8
GPU: Radeon Pro WX5100      CPU: arm64
Here is the calltrace:
.
Apr  8 14:56:01 ubuntu kernel: [30040.729903] ------------[ cut here ]------------
Apr  8 14:56:01 ubuntu kernel: [30040.729914] kernel BUG at drivers/dma-buf/reservation.c:234!
Apr  8 14:56:01 ubuntu kernel: [30040.729926] Internal error: Oops - BUG: 0 [#1] SMP
Apr  8 14:56:01 ubuntu kernel: [30040.729932] Modules linked in: xt_nat xt_tcpudp veth ipt_MASQUERADE nf_nat_masquerade_ipv4 xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack br_netfilter bridge stp llc overlay snd_hda_codec_hdmi binfmt_misc nls_iso8859_1 snd_hda_intel snd_hda_codec joydev input_leds snd_hda_core snd_hwdep snd_pcm snd_timer snd soundcore ipmi_ssif shpchp ipmi_si ipmi_devintf ipmi_msghandler ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_decompress zstd_compress xxhash raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 multipath linear dm_mirror dm_region_hash dm_log raid0 ses enclosure hid_generic
Apr  8 14:56:01 ubuntu kernel: [30040.730037]  usbhid hid marvell amdgpu chash gpu_sched hibmc_drm i2c_algo_bit aes_ce_blk ttm aes_ce_cipher crc32_ce crct10dif_ce drm_kms_helper ghash_ce sha2_ce syscopyarea sha256_arm64 sysfillrect sysimgblt sha1_ce fb_sys_fops drm mpt3sas hisi_sas_v2_hw hisi_sas_main raid_class libsas ehci_platform hns_dsaf scsi_transport_sas hns_enet_drv hns_mdio hnae aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64
Apr  8 14:56:01 ubuntu kernel: [30040.730094] CPU: 41 PID: 59025 Comm: amdgpu_cs:0 Tainted: G        W        4.16.0 #2
Apr  8 14:56:01 ubuntu kernel: [30040.730097] Hardware name: Huawei Taishan 2280 /BC11SPCD, BIOS 1.37 11/21/2017
Apr  8 14:56:01 ubuntu kernel: [30040.730100] pstate: 60400005 (nZCv daif +PAN -UAO)
Apr  8 14:56:01 ubuntu kernel: [30040.730118] pc : reservation_object_add_shared_fence+0x348/0x3b8
Apr  8 14:56:01 ubuntu kernel: [30040.730147] lr : ttm_eu_fence_buffer_objects+0x5c/0xd8 [ttm]
Apr  8 14:56:01 ubuntu kernel: [30040.730148] sp : ffff00003aae39d0
Apr  8 14:56:01 ubuntu kernel: [30040.730150] x29: ffff00003aae39d0 x28: 0000000000000000
Apr  8 14:56:01 ubuntu kernel: [30040.730154] x27: ffff809c85067c60 x26: ffff80af5e89abb8
Apr  8 14:56:01 ubuntu kernel: [30040.730158] x25: ffff809c92bb5060 x24: ffff802e08141220
Apr  8 14:56:01 ubuntu kernel: [30040.730162] x23: ffff802fb55ea000 x22: ffff809c92bb5060
Apr  8 14:56:01 ubuntu kernel: [30040.730165] x21: 0000000000000000 x20: ffff80ad27471c00
Apr  8 14:56:01 ubuntu kernel: [30040.730169] x19: ffff00003aae3b70 x18: 0000fffd38040948
Apr  8 14:56:01 ubuntu kernel: [30040.730172] x17: 0000000000000000 x16: ffff809e434b8f00
Apr  8 14:56:01 ubuntu kernel: [30040.730176] x15: 0000fffd38040940 x14: ffff809f97332600
Apr  8 14:56:01 ubuntu kernel: [30040.730179] x13: ffff809c92bb4e60 x12: 0000000000000016
Apr  8 14:56:01 ubuntu kernel: [30040.730183] x11: 0000000000000000 x10: 0000000000000040
Apr  8 14:56:01 ubuntu kernel: [30040.730186] x9 : 0000000000000000 x8 : ffff809c92bb5100
Apr  8 14:56:01 ubuntu kernel: [30040.730190] x7 : 00000000000000b8 x6 : 0000000000000001
Apr  8 14:56:01 ubuntu kernel: [30040.730193] x5 : 0000000000000003 x4 : 0000000000000002
Apr  8 14:56:01 ubuntu kernel: [30040.730196] x3 : ffff809b77ead88c x2 : 0000000000000001
Apr  8 14:56:01 ubuntu kernel: [30040.730200] x1 : 0000000000000008 x0 : 0000000000000008
Apr  8 14:56:01 ubuntu kernel: [30040.730205] Process amdgpu_cs:0 (pid: 59025, stack limit = 0x00000000469f89e7)
Apr  8 14:56:01 ubuntu kernel: [30040.730208] Call trace:
Apr  8 14:56:01 ubuntu kernel: [30040.730212]  reservation_object_add_shared_fence+0x348/0x3b8
Apr  8 14:56:01 ubuntu kernel: [30040.730225]  ttm_eu_fence_buffer_objects+0x5c/0xd8 [ttm]
Apr  8 14:56:01 ubuntu kernel: [30040.730482]  amdgpu_cs_ioctl+0x14f8/0x19f8 [amdgpu]
Apr  8 14:56:01 ubuntu kernel: [30040.730533]  drm_ioctl_kernel+0x70/0xd8 [drm]
Apr  8 14:56:01 ubuntu kernel: [30040.730578]  drm_ioctl+0x1d4/0x428 [drm]
Apr  8 14:56:01 ubuntu kernel: [30040.730771]  amdgpu_drm_ioctl+0x58/0x98 [amdgpu]
Apr  8 14:56:01 ubuntu kernel: [30040.730779]  do_vfs_ioctl+0xc4/0xb50
Apr  8 14:56:01 ubuntu kernel: [30040.730782]  SyS_ioctl+0x8c/0xa8
Apr  8 14:56:01 ubuntu kernel: [30040.730787]  el0_svc_naked+0x30/0x34
Apr  8 14:56:01 ubuntu kernel: [30040.730793] Code: 17ffff6e f9000bb3 a902dfb6 f90027ba (d4210000)
Apr  8 14:56:01 ubuntu kernel: [30040.730797] ---[ end trace 07398b112d335fc8 ]---


[-- Attachment #1.2: Type: text/html, Size: 11326 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* 答复: Oops in 4.16 kernel amdgpu driver
  2018-03-14  9:41   ` How to enable Radeon Pro Duo with mesa Lvzhihong (ReJohn)
       [not found]     ` <E7DD0E9246072C4A9CA8F1C79F816696018E7743-k9ZYk3Ba6VKEZbDCDsDlKQK1hpo4iccwjNknBlVQO8k@public.gmane.org>
@ 2018-08-17  8:06     ` sunnanyong
       [not found]       ` <EB021AE3BDDC1742A899855D00BABEB0010853E4-c7WhUCh6H2dYbA1SvqXW6AK1hpo4iccwjNknBlVQO8k@public.gmane.org>
  1 sibling, 1 reply; 7+ messages in thread
From: sunnanyong @ 2018-08-17  8:06 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Baixin (BX)


[-- Attachment #1.1: Type: text/plain, Size: 241 bytes --]

Hi All ,
Is there a way to limit how much VRAM the application can use?
I want to allocate vram averagely for each application, how to realize this?
OS: Ubuntu17.10
GPU driver: mesa17.2.8
GPU: Radeon pro wx5100

Please help, thanks!

[-- Attachment #1.2: Type: text/html, Size: 3535 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 答复: Oops in 4.16 kernel amdgpu driver
       [not found]       ` <EB021AE3BDDC1742A899855D00BABEB0010853E4-c7WhUCh6H2dYbA1SvqXW6AK1hpo4iccwjNknBlVQO8k@public.gmane.org>
@ 2018-08-17 17:46         ` Christian König
  0 siblings, 0 replies; 7+ messages in thread
From: Christian König @ 2018-08-17 17:46 UTC (permalink / raw)
  To: sunnanyong, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Baixin (BX)

Hi,

no that isn't possible at the moment. Could probably be implemented 
using cgroups.

Regards,
Christian.

Am 17.08.2018 um 10:06 schrieb sunnanyong:
>
> Hi All ,
>
> Is there a way to limit how much VRAM the application can use?
>
> I want to allocate vram averagely for each application, how to realize 
> this?
>
> OS: Ubuntu17.10
>
> GPU driver: mesa17.2.8
>
> GPU: Radeon pro wx5100
>
> Please help, thanks!
>
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to enable Radeon Pro Duo with mesa
       [not found] ` <E7DD0E9246072C4A9CA8F1C79F816696018E7B51-k9ZYk3Ba6VKEZbDCDsDlKQK1hpo4iccwjNknBlVQO8k@public.gmane.org>
@ 2018-03-15  8:23   ` Christian König
  0 siblings, 0 replies; 7+ messages in thread
From: Christian König @ 2018-03-15  8:23 UTC (permalink / raw)
  To: Lvzhihong (ReJohn), Alex Deucher
  Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, sunnanyong

Am 15.03.2018 um 08:09 schrieb Lvzhihong (ReJohn):
>> What are you trying to do?  A large desktop spread across both chips?
>> Use the chips independently?  There is no support for crossfire on Linux.  If you want to use a desktop across multiple chips or select which chip is used for rendering, you can use xrandr and the prime support in X:
>> https://wiki.archlinux.org/index.php/PRIME
> I want to select one chip to render for my application. And now I know how to select which chip: after set env DRI_PRIME=1 , the second chip will be used. But there is another problem: the second chip's performance is very bad , only 1/4 of the first chip.
>
> xrandr --listproviders:
> Providers: number : 2
> Provider 0: id: 0x7f cap: 0x9, Source Output, Sink Offload crtcs: 6 outputs: 4 associated providers: 1 name:AMD Radeon (TM) Pro WX 7100 Graphics @ pci:000d:33:00.0 Provider 1: id: 0x45 cap: 0x6, Sink Output, Source Offload crtcs: 6 outputs: 0 associated providers: 1 name:AMD Radeon (TM) Pro WX 7100 Graphics @ pci:000d:34:00.0
>
> Here is the results of running glxgears:
> DRI_PRIME=1 vblank_mode=0  glxgears
> ATTENTION: default value of option vblank_mode overridden by environment.
> 5486 frames in 5.0 seconds = 1097.200 FPS
>
> DRI_PRIME=0 vblank_mode=0  glxgears
> ATTENTION: default value of option vblank_mode overridden by environment.
> 19846 frames in 5.0 seconds = 3969.058 FPS
>
> How to resolve this?

This is expected. glxgears is not a real GPU benchmark, but rather a CPU 
benchmark of how fast we can page flip when vblank is disabled.

Since doing the rendering on one GPU and presenting it on another GPU is 
more work this will result in much lower fps.

Try something real and compare the numbers.

Regards,
Christian.

>
>
>> On Wed, Mar 14, 2018 at 5:41 AM, Lvzhihong (ReJohn) <lvzhihong1@huawei.com> wrote:
>> Hi All ,
>>
>> Does mesa support Radeon Pro Duo? I don’t know how to configure
>> xorg.conf to use two WX7100 card of DUO , and now I can only use the first card of DUO.
>>
>> What are you trying to do?  A large desktop spread across both chips?
>> Use the chips independently?  There is no support for crossfire on Linux.  If you want to use a desktop across multiple chips or select which chip is used for rendering, you can use xrandr and the prime support in X:
>> https://wiki.archlinux.org/index.php/PRIME
>>
>> Alex
>
>> Installed software packages: xserver-xorg  xfce4  xinit
>>
>> Mesa version: 17.2.8  kernel version: 4.15
>>
>>
>>
>> Pci information:
>>
>> 000d:31:00.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port
>> PCI Express Gen 3 (8.0 GT/s) Switch (rev ca)
>>
>> 000d:32:08.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port
>> PCI Express Gen 3 (8.0 GT/s) Switch (rev ca)
>>
>> 000d:32:10.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port
>> PCI Express Gen 3 (8.0 GT/s) Switch (rev ca)
>>
>> 000d:33:00.0 VGA compatible controller: Advanced Micro Devices, Inc.
>> [AMD/ATI] Ellesmere [Radeon Pro WX 7100]
>>
>> 000d:33:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI]
>> Device
>> aaf0
>>
>> 000d:34:00.0 Display controller: Advanced Micro Devices, Inc.
>> [AMD/ATI] Ellesmere [Radeon Pro WX 7100]
>>
>>
>>
>> My xorg.conf:
>>
>> Section "Device"
>>
>>         Identifier "AMD"
>>
>>         Driver "amdgpu"
>>
>>         BusID "pci:51@13:00:00"
>>
>> EndSection
>>
>> Section "Monitor"
>>
>>          Identifier "monitor0"
>>
>>          Option "enable" "true"
>>
>> EndSection
>>
>> Section "Screen"
>>
>>          Identifier "screen0"
>>
>>          Device "AMD"
>>
>>          Monitor "monitor0"
>>
>>          DefaultDepth 24
>>
>>          SubSection "Display"
>>
>>                  Depth 24
>>
>>          EndSubSection
>>
>> EndSection
>>
>>
>>
>> I use “startx” to start desktop , and only the first WX7100(PCI Bus ID:
>> 000d:33:00.0) being used , the second WX7100(PCI Bus ID: 000d:34:00.0)
>> has no load .
>>
>>           Even if I set BusID as "pci:52@13:00:00" (the second WX7100),
>> it still only the first WX7100 being used.
>>
>>
>>
>>        So , How to enable Radeon Pro Duo with opensource driver , does
>> my xorg.conf is wrong or mesa doesn’t support Radeon Pro Duo?
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* re: How to enable Radeon Pro Duo with mesa
@ 2018-03-15  7:09 Lvzhihong (ReJohn)
       [not found] ` <E7DD0E9246072C4A9CA8F1C79F816696018E7B51-k9ZYk3Ba6VKEZbDCDsDlKQK1hpo4iccwjNknBlVQO8k@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Lvzhihong (ReJohn) @ 2018-03-15  7:09 UTC (permalink / raw)
  To: Alex Deucher; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, sunnanyong

> What are you trying to do?  A large desktop spread across both chips?
> Use the chips independently?  There is no support for crossfire on Linux.  If you want to use a desktop across multiple chips or select which chip is used for rendering, you can use xrandr and the prime support in X:
> https://wiki.archlinux.org/index.php/PRIME

I want to select one chip to render for my application. And now I know how to select which chip: after set env DRI_PRIME=1 , the second chip will be used. But there is another problem: the second chip's performance is very bad , only 1/4 of the first chip. 

xrandr --listproviders:
Providers: number : 2
Provider 0: id: 0x7f cap: 0x9, Source Output, Sink Offload crtcs: 6 outputs: 4 associated providers: 1 name:AMD Radeon (TM) Pro WX 7100 Graphics @ pci:000d:33:00.0 Provider 1: id: 0x45 cap: 0x6, Sink Output, Source Offload crtcs: 6 outputs: 0 associated providers: 1 name:AMD Radeon (TM) Pro WX 7100 Graphics @ pci:000d:34:00.0

Here is the results of running glxgears: 
DRI_PRIME=1 vblank_mode=0  glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
5486 frames in 5.0 seconds = 1097.200 FPS

DRI_PRIME=0 vblank_mode=0  glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
19846 frames in 5.0 seconds = 3969.058 FPS

How to resolve this?


> On Wed, Mar 14, 2018 at 5:41 AM, Lvzhihong (ReJohn) <lvzhihong1@huawei.com> wrote:
> Hi All ,
>
> Does mesa support Radeon Pro Duo? I don’t know how to configure 
> xorg.conf to use two WX7100 card of DUO , and now I can only use the first card of DUO.
>
> What are you trying to do?  A large desktop spread across both chips?
> Use the chips independently?  There is no support for crossfire on Linux.  If you want to use a desktop across multiple chips or select which chip is used for rendering, you can use xrandr and the prime support in X:
> https://wiki.archlinux.org/index.php/PRIME
>
> Alex


>
> Installed software packages: xserver-xorg  xfce4  xinit
>
> Mesa version: 17.2.8  kernel version: 4.15
>
>
>
> Pci information:
>
> 000d:31:00.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port 
> PCI Express Gen 3 (8.0 GT/s) Switch (rev ca)
>
> 000d:32:08.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port 
> PCI Express Gen 3 (8.0 GT/s) Switch (rev ca)
>
> 000d:32:10.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port 
> PCI Express Gen 3 (8.0 GT/s) Switch (rev ca)
>
> 000d:33:00.0 VGA compatible controller: Advanced Micro Devices, Inc.
> [AMD/ATI] Ellesmere [Radeon Pro WX 7100]
>
> 000d:33:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] 
> Device
> aaf0
>
> 000d:34:00.0 Display controller: Advanced Micro Devices, Inc. 
> [AMD/ATI] Ellesmere [Radeon Pro WX 7100]
>
>
>
> My xorg.conf:
>
> Section "Device"
>
>        Identifier "AMD"
>
>        Driver "amdgpu"
>
>        BusID "pci:51@13:00:00"
>
> EndSection
>
> Section "Monitor"
>
>         Identifier "monitor0"
>
>         Option "enable" "true"
>
> EndSection
>
> Section "Screen"
>
>         Identifier "screen0"
>
>         Device "AMD"
>
>         Monitor "monitor0"
>
>         DefaultDepth 24
>
>         SubSection "Display"
>
>                 Depth 24
>
>         EndSubSection
>
> EndSection
>
>
>
> I use “startx” to start desktop , and only the first WX7100(PCI Bus ID:
> 000d:33:00.0) being used , the second WX7100(PCI Bus ID: 000d:34:00.0) 
> has no load .
>
>          Even if I set BusID as "pci:52@13:00:00" (the second WX7100), 
> it still only the first WX7100 being used.
>
>
>
>       So , How to enable Radeon Pro Duo with opensource driver , does 
> my xorg.conf is wrong or mesa doesn’t support Radeon Pro Duo?
>
>
>
>
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-17 17:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <EB021AE3BDDC1742A899855D00BABEB0010451CE@DGGEMM506-MBX.china.huawei.com>
     [not found] ` <EB021AE3BDDC1742A899855D00BABEB0010451CE-0LhPdUyVHB9548jd+VSckwK1hpo4iccwjNknBlVQO8k@public.gmane.org>
2018-03-14  9:41   ` How to enable Radeon Pro Duo with mesa Lvzhihong (ReJohn)
     [not found]     ` <E7DD0E9246072C4A9CA8F1C79F816696018E7743-k9ZYk3Ba6VKEZbDCDsDlKQK1hpo4iccwjNknBlVQO8k@public.gmane.org>
2018-03-14 13:38       ` Alex Deucher
2018-04-09  2:31       ` Oops in 4.16 kernel amdgpu driver sunnanyong
2018-08-17  8:06     ` 答复: " sunnanyong
     [not found]       ` <EB021AE3BDDC1742A899855D00BABEB0010853E4-c7WhUCh6H2dYbA1SvqXW6AK1hpo4iccwjNknBlVQO8k@public.gmane.org>
2018-08-17 17:46         ` Christian König
2018-03-15  7:09 How to enable Radeon Pro Duo with mesa Lvzhihong (ReJohn)
     [not found] ` <E7DD0E9246072C4A9CA8F1C79F816696018E7B51-k9ZYk3Ba6VKEZbDCDsDlKQK1hpo4iccwjNknBlVQO8k@public.gmane.org>
2018-03-15  8:23   ` Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.