diff --git a/roles/40cu/tasks/main.yml b/roles/40cu/tasks/main.yml new file mode 100644 index 0000000..65795d0 --- /dev/null +++ b/roles/40cu/tasks/main.yml @@ -0,0 +1,20 @@ +# The custom `linux-cachyos-bc250` brings in the 40CU patch +- name: Enable the 40 CU unlock + become: true + ansible.builtin.copy: + content: "options amdgpu bc250_cc_write_mode=3\n" + dest: /etc/modprobe.d/bc250-40cu.conf + mode: '0644' + register: cu40_conf + +- name: Rebuild initramfs + become: true + ansible.builtin.command: limine-mkinitcpio + when: cu40_conf.changed + changed_when: true + +- name: Reboot to reinitialise amdgpu + become: true + ansible.builtin.reboot: + reboot_timeout: 600 + when: cu40_conf.changed diff --git a/site.yml b/site.yml index c07388c..2a74199 100644 --- a/site.yml +++ b/site.yml @@ -11,3 +11,5 @@ role: gpu_governor - name: Install Mesa role: mesa + - name: Enable 40CU + role: 40cu