File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
drivers/platform/x86/amd/pmf Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,11 @@ int apmf_get_auto_mode_def(struct amd_pmf_dev *pdev, struct apmf_auto_mode *data
166
166
return apmf_if_call_store_buffer (pdev , APMF_FUNC_AUTO_MODE , data , sizeof (* data ));
167
167
}
168
168
169
+ int apmf_get_sbios_requests_v2 (struct amd_pmf_dev * pdev , struct apmf_sbios_req_v2 * req )
170
+ {
171
+ return apmf_if_call_store_buffer (pdev , APMF_FUNC_SBIOS_REQUESTS , req , sizeof (* req ));
172
+ }
173
+
169
174
int apmf_get_sbios_requests (struct amd_pmf_dev * pdev , struct apmf_sbios_req * req )
170
175
{
171
176
return apmf_if_call_store_buffer (pdev , APMF_FUNC_SBIOS_REQUESTS ,
Original file line number Diff line number Diff line change @@ -120,6 +120,18 @@ struct apmf_sbios_req {
120
120
u8 skin_temp_hs2 ;
121
121
} __packed ;
122
122
123
+ struct apmf_sbios_req_v2 {
124
+ u16 size ;
125
+ u32 pending_req ;
126
+ u8 rsd ;
127
+ u32 ppt_pmf ;
128
+ u32 ppt_pmf_apu_only ;
129
+ u32 stt_min_limit ;
130
+ u8 skin_temp_apu ;
131
+ u8 skin_temp_hs2 ;
132
+ u32 custom_policy [10 ];
133
+ } __packed ;
134
+
123
135
struct apmf_fan_idx {
124
136
u16 size ;
125
137
u8 fan_ctl_mode ;
@@ -621,6 +633,7 @@ void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev);
621
633
void amd_pmf_deinit_auto_mode (struct amd_pmf_dev * dev );
622
634
void amd_pmf_trans_automode (struct amd_pmf_dev * dev , int socket_power , ktime_t time_elapsed_ms );
623
635
int apmf_get_sbios_requests (struct amd_pmf_dev * pdev , struct apmf_sbios_req * req );
636
+ int apmf_get_sbios_requests_v2 (struct amd_pmf_dev * pdev , struct apmf_sbios_req_v2 * req );
624
637
625
638
void amd_pmf_update_2_cql (struct amd_pmf_dev * dev , bool is_cql_event );
626
639
int amd_pmf_reset_amt (struct amd_pmf_dev * dev );
You can’t perform that action at this time.
0 commit comments