We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6c3a6b commit c110ee6Copy full SHA for c110ee6
1 file changed
drivers/gpu/drm/asahi/gpu.rs
@@ -32,7 +32,7 @@ use kernel::{
32
33
use crate::alloc::Allocator;
34
use crate::debug::*;
35
-use crate::driver::{AsahiDevRef, AsahiDevice};
+use crate::driver::{AsahiDevRef, AsahiDevice, AsahiDriver};
36
use crate::fw::channels::{ChannelErrorType, PipeType};
37
use crate::fw::types::{U32, U64};
38
use crate::{
@@ -955,7 +955,7 @@ impl GpuManager::ver {
955
956
/// Fetch the GPU MMU fault information from the hardware registers.
957
fn get_fault_info(&self) -> Option<regs::FaultInfo> {
958
- let data = self.dev.data();
+ let data = unsafe { &<KBox<AsahiDriver>>::borrow(self.dev.as_ref().get_drvdata()).data };
959
960
let res = &data.resources;
961
0 commit comments