Adjust policy for memory display on APUs (#1967)
* Read the ids_flags when fetching GPU info The ids_flags contains the flags that can help identify if a GPU is a dGPU or an APU. * Show correct memory pool for APUs The kernel policy for APUs will be to choose the bigger pool of memory (GTT or VRAM) for KFD work. Adjust the policy for the monitor and default commands to show the right memory pool when using an APU.
This commit is contained in:
committed by
GitHub
parent
879d010974
commit
73778bf83c
@@ -1156,7 +1156,8 @@ pub struct AmdsmiAsicInfoT {
|
||||
pub num_of_compute_units: u32,
|
||||
pub target_graphics_version: u64,
|
||||
pub subsystem_id: u32,
|
||||
pub reserved: [u32; 21usize],
|
||||
pub flags: u64,
|
||||
pub reserved: [u32; 19usize],
|
||||
}
|
||||
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
|
||||
const _: () = {
|
||||
|
||||
Reference in New Issue
Block a user