From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 66932] Screen corruption on Cayman with dpm enabled Date: Wed, 17 Jul 2013 17:55:43 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1070591741==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 0196DE64C5 for ; Wed, 17 Jul 2013 10:55:42 -0700 (PDT) In-Reply-To: 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 --===============1070591741== Content-Type: multipart/alternative; boundary="1374083742.55bAd11.9451"; charset="us-ascii" --1374083742.55bAd11.9451 Date: Wed, 17 Jul 2013 17:55:42 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=66932 --- Comment #21 from Alex Deucher --- (In reply to comment #19) > I wasn't very clear in my #12 comment, but what I was trying to say it is > something fishy about "reg_block->asRegIndexBuf". It is defined in > atombios.h as: > ATOM_MEMORY_SETTING_DATA_BLOCK asRegDataBuf[1]; > It's a variably sized array and the size varies depending on the system. The size of that array is defined by usRegIndexTblSize. Hence the calculation to determine the number of elements: num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) / sizeof(ATOM_INIT_REG_INDEX_FORMAT)) - 1; -- You are receiving this mail because: You are the assignee for the bug. --1374083742.55bAd11.9451 Date: Wed, 17 Jul 2013 17:55:42 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 21 on bug 66932 from
(In reply to comment #19)
> I wasn't very clear in my #12 comment, but what I was trying to say it is
> something fishy about "reg_block->asRegIndexBuf". It is defined in
> atombios.h as:
> ATOM_MEMORY_SETTING_DATA_BLOCK  asRegDataBuf[1];
>

It's a variably sized array and the size varies depending on the system.  The
size of that array is defined by usRegIndexTblSize.  Hence the calculation to
determine the number of elements:

num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) /
sizeof(ATOM_INIT_REG_INDEX_FORMAT)) - 1;


You are receiving this mail because:
  • You are the assignee for the bug.
--1374083742.55bAd11.9451-- --===============1070591741== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1070591741==--