{"id":2607,"date":"2021-07-16T17:33:28","date_gmt":"2021-07-16T17:33:28","guid":{"rendered":"https:\/\/hauweele.net\/~gawen\/blog\/?p=2607"},"modified":"2022-03-12T19:21:37","modified_gmt":"2022-03-12T19:21:37","slug":"amd-renoir-gpu-on-freebsd-13","status":"publish","type":"post","link":"https:\/\/hauweele.net\/~gawen\/blog\/?p=2607","title":{"rendered":"AMD Renoir GPU on FreeBSD 13"},"content":{"rendered":"<h2>UPDATE: <strong><a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=2648\">github branch available (2022-03-12)<\/a><\/strong><\/h2>\n<p>You if have a laptop running one of the latest AMD Ryzen 5 (such as the ThinkPad T14 AMD) with integrated Radeon graphic on FreeBSD 13, you probably struggled to get the GPU running and finally gave up to use the generic <a href=\"https:\/\/www.freebsd.org\/cgi\/man.cgi?query=scfb&amp;sektion=4&amp;manpath=freebsd-release-ports\">scfb<\/a> frame buffer device instead. It is non accelerated, you cannot access any external port nor adjust the brightness, but it&#8217;s usable.<\/p>\n<p>Now I&#8217;ve some good news for you! After randomly searching the <a href=\"https:\/\/forums.freebsd.org\/threads\/amd-r7-4700h-trouble-starting-x-no-devices-connected-no-screens-found.80736\/#post-515717\">FreeBSD forums<\/a> I found a post that was referring to a <i>work-in-progress<\/i> branch of <a href=\"https:\/\/github.com\/freebsd\/drm-kmod\">drm-kmod<\/a> that should support the latest AMD Renoir GPU. This branch is now named <a href=\"https:\/\/github.com\/freebsd\/drm-kmod\/tree\/5.5-stable\">5.5-stable<\/a>. After some modifications I was able to compile it on FreeBSD 13.0-RELEASE-p3 and got it to run on the GENERIC kernel.<\/p>\n<p>Acceleration and the external ports work well. I even managed to get a 3 screen setup working through one of those USB-C docking station.<\/p>\n<div id=\"attachment_2608\" style=\"width: 594px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/hauweele.net\/~gawen\/blog\/wp-content\/uploads\/2021\/07\/amdgpu-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2608\" class=\"wp-image-2608 size-large\" src=\"https:\/\/hauweele.net\/~gawen\/blog\/wp-content\/uploads\/2021\/07\/amdgpu-1024x768.jpg\" alt=\"\" width=\"584\" height=\"438\" srcset=\"https:\/\/hauweele.net\/~gawen\/blog\/wp-content\/uploads\/2021\/07\/amdgpu-1024x768.jpg 1024w, https:\/\/hauweele.net\/~gawen\/blog\/wp-content\/uploads\/2021\/07\/amdgpu-300x225.jpg 300w, https:\/\/hauweele.net\/~gawen\/blog\/wp-content\/uploads\/2021\/07\/amdgpu-768x576.jpg 768w, https:\/\/hauweele.net\/~gawen\/blog\/wp-content\/uploads\/2021\/07\/amdgpu-1536x1152.jpg 1536w, https:\/\/hauweele.net\/~gawen\/blog\/wp-content\/uploads\/2021\/07\/amdgpu-2048x1536.jpg 2048w, https:\/\/hauweele.net\/~gawen\/blog\/wp-content\/uploads\/2021\/07\/amdgpu-400x300.jpg 400w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><p id=\"caption-attachment-2608\" class=\"wp-caption-text\">Only one cable connected to the laptop that carries the power supply, audio, external mouse, two screens, external HDD, floppy drive and more. Now, this is what I call <i>&#8220;Universal Serial Bus&#8221;<\/i>.<\/p><\/div>\n<p>Patching the drm-kmod 5.5-stable branch to compile on 13.0-RELEASE was pretty straightforward too. A missing function here, a different signature there, some missing constants. A lot easier than other things I&#8217;ve been trying to port from 12 to 13.<\/p>\n<p>Since I&#8217;ve also been able to install a modern TeX Live environment (the 2015 version from the port tree is getting rather outdated), I can now again use FreeBSD as my main working Operating System. Yahoo!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>UPDATE: github branch available (2022-03-12) You if have a laptop running one of the latest AMD Ryzen 5 (such as the ThinkPad T14 AMD) with integrated Radeon graphic on FreeBSD 13, you probably struggled to get the GPU running and &hellip; <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=2607\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[1112,1114,389,1106,1113,1115],"class_list":["post-2607","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-amd","tag-amdgpu","tag-freebsd","tag-gpu","tag-renoir","tag-ryzen"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2607"}],"version-history":[{"count":0,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2607\/revisions"}],"wp:attachment":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}