My Project
Public Attributes | List of all members
kbase_pm_device_data Struct Reference

#include <mali_kbase_defs.h>

Public Attributes

struct mutex lock
 
int active_count
 
bool suspending
 
wait_queue_head_t zero_active_count_wait
 
u64 debug_core_mask [BASE_JM_MAX_NR_SLOTS]
 
u64 debug_core_mask_all
 
int(* callback_power_runtime_init )(struct kbase_device *kbdev)
 
void(* callback_power_runtime_term )(struct kbase_device *kbdev)
 
u32 dvfs_period
 
ktime_t gpu_poweroff_time
 
int poweroff_shader_ticks
 
int poweroff_gpu_ticks
 
struct kbase_pm_backend_data backend
 

Detailed Description

Data stored per device for power management.

This structure contains data for the power management framework. There is one instance of this structure per device in the system.

Member Data Documentation

◆ active_count

int kbase_pm_device_data::active_count

The reference count of active contexts on this device.

◆ callback_power_runtime_init

int(* kbase_pm_device_data::callback_power_runtime_init) (struct kbase_device *kbdev)

Callback for initializing the runtime power management.

Parameters
kbdevThe kbase device
Returns
0 on success, else error code

◆ callback_power_runtime_term

void(* kbase_pm_device_data::callback_power_runtime_term) (struct kbase_device *kbdev)

Callback for terminating the runtime power management.

Parameters
kbdevThe kbase device

◆ debug_core_mask

u64 kbase_pm_device_data::debug_core_mask[BASE_JM_MAX_NR_SLOTS]

Bit masks identifying the available shader cores that are specified via sysfs. One mask per job slot.

◆ lock

struct mutex kbase_pm_device_data::lock

The lock protecting Power Management structures accessed outside of IRQ.

This lock must also be held whenever the GPU is being powered on or off.

◆ suspending

bool kbase_pm_device_data::suspending

Flag indicating suspending/suspended


The documentation for this struct was generated from the following file: