Skip to content

Commit

Permalink
feat: numerous i915 additions
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-zlobintsev committed Jan 11, 2025
1 parent 543265d commit c5d2996
Show file tree
Hide file tree
Showing 66 changed files with 409 additions and 101 deletions.
3 changes: 2 additions & 1 deletion lact-daemon/src/server/gpu_controller/amd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,12 @@ impl AmdGpuController {
.context("GPU has no hardware monitor")
}

fn get_current_gfxclk(&self) -> Option<u16> {
fn get_current_gfxclk(&self) -> Option<u64> {
self.drm_handle
.as_ref()
.and_then(|drm_handle| drm_handle.get_gpu_metrics().ok())
.and_then(|metrics| metrics.get_current_gfxclk())
.map(u64::from)
}

fn get_full_vbios_version(&self) -> Option<String> {
Expand Down
Loading

0 comments on commit c5d2996

Please # to comment.