From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylvain BERTRAND Subject: radeon pm bug? Date: Wed, 1 May 2013 01:22:11 +0200 Message-ID: <20130430232211.GA717@freedom> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtpauth-vit.online.net (smtpauth-vit.online.net [88.190.253.76]) by gabe.freedesktop.org (Postfix) with ESMTP id B835CE5FD2 for ; Tue, 30 Apr 2013 16:22:13 -0700 (PDT) Received: from [88.188.175.165] (helo=localhost) by smtpauth-vit.online.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1UXL6V-0008SM-31 for dri-devel@lists.freedesktop.org; Wed, 01 May 2013 02:41:03 +0200 Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org 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, -- Sylvain