Skip to contentSkip to conversation

radeon pm bug?

DISCUSSION Sylvain BERTRAND 2 participants 2 messages Apr 30, 2013 – May 1, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

In radeon_atombios.c file, radeon_atombios_parse_power_table_6 function, the power state is selected using the state array index:

power_state = (union pplib_power_state *)&state_array->states[i];

The state array has variable sized states which size should be computed as said in the atombios.h file, definition of ATOM_PPLIB_STATE_V2 struct.

Bug?

regards,

Signature · 1 line
Sylvain
#1 lore raw
Quoted 5 lines · Sylvain BERTRAND

Hi,

In radeon_atombios.c file, radeon_atombios_parse_power_table_6 function, the power state is selected using the state array index:

Quoted 7 lines

power_state = (union pplib_power_state *)&state_array->states[i];

The state array has variable sized states which size should be computed as said in the atombios.h file, definition of ATOM_PPLIB_STATE_V2 struct.

Bug?

Yeah, I looks like a bug. I'll fix it up.

Alex

Quoted 9 lines

regards,

--
Sylvain
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel