xorgでdrm-54-kmod → drm-510-kmodに変更
graphics/drm-54-kmodがなくなり、graphics/drm-510-kmodのみとなったので設定を少し書き換え。
■環境
・FreeBSD 13.1-RELEASE-p2 amd64
・Graphics Radeon RX 5500XT(navi14)
■必要なソフトなど
・pkg install drm-kmod
■設定
---
drm-54-kmodで使用していたもの。
/usr/local/etc/X11/xorg.conf.d/10-amdgpu.conf
01: Section "OutputClass"
02: Identifier "Card0"
03: MatchDriver "amdgpu"
04: EndSection
[EOF]
---
drm-510-kmodでの設定がわからなかったときに使用していたもの。
シングルモニタでとりあえず使用可能なもの。
/usr/local/etc/X11/xorg.conf.d/10-amdgpu.conf
01: Section "OutputClass"
02: Identifier "Card0"
03: Driver "scfb"
04: EndSection
[EOF]
---
drm-510-kmodを使用したAMD Radeon RX 5500XTでの現在のセッティング。
AccelMethodがsnaで動かなければ、安定性のあるexaを使う。
/usr/local/etc/X11/xorg.conf.d/10-amdgpu.conf
01: Section "Device"
02: Identifier "Card0"
03: Driver "modesetting"
04: BusID "PCI:1:0:0"
05: Option "DRI" "3"
06: Option "AccelMethod" "uxa"
07: EndSection
[EOF]
---
drm-510-kmodを使用したThinkpad X220 (SandyBridge Core i5-2520M Intel HD Graphics 3000)現在のセッティング。
AccelMethodがsnaで動かなければ、安定性のあるuxaを使う。
/usr/local/etc/X11/xorg.conf.d/10-intelgpu.conf
01: Section "Device"
02: Identifier "Card0"
03: Driver "modesetting"
04: BusID "PCI:1:0:0"
05: Option "DRI" "3"
06: Option "AccelMethod" "uxa"
07: EndSection
[EOF]
使用するBusIDはpciconf -lvで設定する。(以下はAMD Radeon RX 5500XTの場合)
fbsd@:~ % pciconf -lv | grep -A4 vga
vgapci0@pci0:1:0:0: class=0x030000 rev=0xc5 hdr=0x00 vendor=0x1002 device=0x7340 subvendor=0x1458 subdevice=0x2319
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 14 [Radeon RX 5500/5500M / Pro 5500M]'
class = display
subclass = VGA
fbsd@:~ %
■結果
graphics/glx-utilsでインストールされるglxgearsコマンドでは結構出る
fbsd@:~ % glxgears
232 frames in 5.1 seconds = 45.756 FPS
235 frames in 5.2 seconds = 45.411 FPS
197 frames in 5.3 seconds = 36.827 FPS
137 frames in 5.2 seconds = 26.329 FPS
257 frames in 5.1 seconds = 50.646 FPS
210 frames in 5.7 seconds = 36.823 FPS
211 frames in 5.4 seconds = 38.915 FPS
173 frames in 5.0 seconds = 34.311 FPS
195 frames in 5.7 seconds = 34.070 FPS
181 frames in 5.3 seconds = 34.249 FPS
137 frames in 5.0 seconds = 27.268 FPS
148 frames in 5.4 seconds = 27.466 FPS
■更新
2022/10/29 設定内容誤りを修正
2022/09/19 初版
■環境
・FreeBSD 13.1-RELEASE-p2 amd64
・Graphics Radeon RX 5500XT(navi14)
■必要なソフトなど
・pkg install drm-kmod
■設定
---
drm-54-kmodで使用していたもの。
/usr/local/etc/X11/xorg.conf.d/10-amdgpu.conf
01: Section "OutputClass"
02: Identifier "Card0"
03: MatchDriver "amdgpu"
04: EndSection
[EOF]
---
drm-510-kmodでの設定がわからなかったときに使用していたもの。
シングルモニタでとりあえず使用可能なもの。
/usr/local/etc/X11/xorg.conf.d/10-amdgpu.conf
01: Section "OutputClass"
02: Identifier "Card0"
03: Driver "scfb"
04: EndSection
[EOF]
---
drm-510-kmodを使用したAMD Radeon RX 5500XTでの現在のセッティング。
AccelMethodがsnaで動かなければ、安定性のあるexaを使う。
/usr/local/etc/X11/xorg.conf.d/10-amdgpu.conf
01: Section "Device"
02: Identifier "Card0"
03: Driver "modesetting"
04: BusID "PCI:1:0:0"
05: Option "DRI" "3"
06: Option "AccelMethod" "uxa"
07: EndSection
[EOF]
---
drm-510-kmodを使用したThinkpad X220 (SandyBridge Core i5-2520M Intel HD Graphics 3000)現在のセッティング。
AccelMethodがsnaで動かなければ、安定性のあるuxaを使う。
/usr/local/etc/X11/xorg.conf.d/10-intelgpu.conf
01: Section "Device"
02: Identifier "Card0"
03: Driver "modesetting"
04: BusID "PCI:1:0:0"
05: Option "DRI" "3"
06: Option "AccelMethod" "uxa"
07: EndSection
[EOF]
使用するBusIDはpciconf -lvで設定する。(以下はAMD Radeon RX 5500XTの場合)
fbsd@:~ % pciconf -lv | grep -A4 vga
vgapci0@pci0:1:0:0: class=0x030000 rev=0xc5 hdr=0x00 vendor=0x1002 device=0x7340 subvendor=0x1458 subdevice=0x2319
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 14 [Radeon RX 5500/5500M / Pro 5500M]'
class = display
subclass = VGA
fbsd@:~ %
■結果
graphics/glx-utilsでインストールされるglxgearsコマンドでは結構出る
fbsd@:~ % glxgears
232 frames in 5.1 seconds = 45.756 FPS
235 frames in 5.2 seconds = 45.411 FPS
197 frames in 5.3 seconds = 36.827 FPS
137 frames in 5.2 seconds = 26.329 FPS
257 frames in 5.1 seconds = 50.646 FPS
210 frames in 5.7 seconds = 36.823 FPS
211 frames in 5.4 seconds = 38.915 FPS
173 frames in 5.0 seconds = 34.311 FPS
195 frames in 5.7 seconds = 34.070 FPS
181 frames in 5.3 seconds = 34.249 FPS
137 frames in 5.0 seconds = 27.268 FPS
148 frames in 5.4 seconds = 27.466 FPS
■更新
2022/10/29 設定内容誤りを修正
2022/09/19 初版
コメント
コメントを投稿