mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
lib: rename some power well bit names
I did the same change in the Kernel a few months ago. This should help not getting confused about which bit does what. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
@@ -2857,12 +2857,12 @@ static uint32_t power_well_get(void)
|
||||
if (!IS_HASWELL(devid))
|
||||
return 0;
|
||||
|
||||
ret = INREG(HSW_PWR_WELL_CTL4) & HSW_PWR_WELL_ENABLE;
|
||||
ret = INREG(HSW_PWR_WELL_CTL4) & HSW_PWR_WELL_ENABLE_REQUEST;
|
||||
|
||||
OUTREG(HSW_PWR_WELL_CTL4, HSW_PWR_WELL_ENABLE);
|
||||
OUTREG(HSW_PWR_WELL_CTL4, HSW_PWR_WELL_ENABLE_REQUEST);
|
||||
|
||||
for (i = 0; i < 20; i++) {
|
||||
if (INREG(HSW_PWR_WELL_CTL4) & HSW_PWR_WELL_STATE)
|
||||
if (INREG(HSW_PWR_WELL_CTL4) & HSW_PWR_WELL_STATE_ENABLED)
|
||||
break;
|
||||
usleep(1000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user