From 8c032e3c2ae543b8b40bcd07f9e4b2d583d7e37a Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 20 Jun 2025 05:01:50 -0700 Subject: [PATCH] add: si-cik-amdgpu (#5583) (#5589) * add: si-cik-amdgpu * fix: This is noarch (cherry picked from commit 0f5e5154bdee60c0991879bf0cd4be1a9b65a629) Co-authored-by: Gilver --- anda/system/si-cik-amdgpu/anda.hcl | 6 +++ anda/system/si-cik-amdgpu/si-cik-amdgpu.spec | 52 ++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 anda/system/si-cik-amdgpu/anda.hcl create mode 100644 anda/system/si-cik-amdgpu/si-cik-amdgpu.spec diff --git a/anda/system/si-cik-amdgpu/anda.hcl b/anda/system/si-cik-amdgpu/anda.hcl new file mode 100644 index 0000000000..a0b3834e72 --- /dev/null +++ b/anda/system/si-cik-amdgpu/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "si-cik-amdgpu.spec" + } +} diff --git a/anda/system/si-cik-amdgpu/si-cik-amdgpu.spec b/anda/system/si-cik-amdgpu/si-cik-amdgpu.spec new file mode 100644 index 0000000000..fba10fafc4 --- /dev/null +++ b/anda/system/si-cik-amdgpu/si-cik-amdgpu.spec @@ -0,0 +1,52 @@ +%global commit c0c7df418d9d5eb499b72f738fa4c9c4ee7fcbc6 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit_date 20250620 + +Name: si-cik-amdgpu +Version: 0^%{commit_date}git.%{shortcommit} +Release: 1%{?dist} +Summary: Modprobe config to enable the amdgpu drivers on Southern Islands (SI) and CIK (Sea Islands) +License: GPL-3.0-only +URL: https://github.com/terrapkg/pkg-si-cik-amdgpu +Source0: %{url}/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz +BuildRequires: systemd-rpm-macros +Requires(post): dracut +Requires(postun): dracut +BuildArch: noarch +Packager: Gilver E. + +%description +%{summary}. + +Forcing these generations of cards to use the amdgpu driver generally improves performance, especially for gaming. + +DISCLAIMER: +Using the amdgpu driver with SI and CIK GPUs is NOT officially supported. +You SHOULD NOT report any issues with doing so to AMD or Mesa. + +Using this driver with these GPUs is known in some cases to cause a higher power draw. +If this is not a potential tradeoff you are comfortable with, please do not use this config. + +%prep +%autosetup -n pkg-%{name}-%{commit} + +%build +# [Crickets chirping] + +%install +install -Dm644 amdgpu.conf -t %{buildroot}%{_modprobedir} + +%post +dracut -f --regenerate-all + +%postun +dracut -f --regenerate-all + +%files +%doc README.md +%license LICENSE +%{_modprobedir}/amdgpu.conf + +%changelog +* Fri Jun 20 2025 Gilver E. - 0^20250620git.c0c7df4-1 +- Initial package