From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 61182] r600g causes KWin crashes with kernel 3.8
Date: Sun, 21 Apr 2013 01:55:33 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0000144581=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 4DC24E607D
for ;
Sat, 20 Apr 2013 18:55:33 -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
--===============0000144581==
Content-Type: multipart/alternative; boundary="1366509333.efBC6f23.31873"; charset="us-ascii"
--1366509333.efBC6f23.31873
Date: Sun, 21 Apr 2013 01:55:33 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=61182
--- Comment #34 from D. Hugh Redelmeier ---
Thanks, Alex, for the clear restatement.
Naively, I think of two C/UNIX conventions. For allocations that can either
succeed or fail, typically the result is a pointer which is NULL for failure --
eg. malloc(3)). For allocations that can partially succeed, the result is the
amount successfully processed (think write(2) which returns the length actually
transferred).
It seems to me that for allocating address space in the VRAM window
(aperture?), success can partial, and anything that deals with that window
needs to be aware that accessing some object may require piecewise operations,
punctuated by adjustment of the mapping.
In other words, this case doesn't sound pathological; it should be handled as a
normal case.
I'm not saying that comment #29 is wrong. I'm saying that the existing code
ought to have been written to handle this case. Clearly one solution is to
replace the code as suggested. But fixing the code ought to be feasible too.
Are there other lurking bugs where code assumes addressability?
I reiterate: I'm not knowledgeable about modern video architectures or about X
server architectures.
Footnote: Why do I think that VRAM windows cannot always map the whole VRAM?
Because video cards now routinely have gigabytes of VRAM and 32-bit address
spaces for x86 machines cannot spare enough to allocate for that much VRAM
(ignoring PAE).
--
You are receiving this mail because:
You are the assignee for the bug.
--1366509333.efBC6f23.31873
Date: Sun, 21 Apr 2013 01:55:33 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 34
on bug 61182
from D. Hugh Redelmeier
Thanks, Alex, for the clear restatement.
Naively, I think of two C/UNIX conventions. For allocations that can either
succeed or fail, typically the result is a pointer which is NULL for failure --
eg. malloc(3)). For allocations that can partially succeed, the result is the
amount successfully processed (think write(2) which returns the length actually
transferred).
It seems to me that for allocating address space in the VRAM window
(aperture?), success can partial, and anything that deals with that window
needs to be aware that accessing some object may require piecewise operations,
punctuated by adjustment of the mapping.
In other words, this case doesn't sound pathological; it should be handled as a
normal case.
I'm not saying that comment #29 is wrong. I'm saying that the existing code
ought to have been written to handle this case. Clearly one solution is to
replace the code as suggested. But fixing the code ought to be feasible too.
Are there other lurking bugs where code assumes addressability?
I reiterate: I'm not knowledgeable about modern video architectures or about X
server architectures.
Footnote: Why do I think that VRAM windows cannot always map the whole VRAM?
Because video cards now routinely have gigabytes of VRAM and 32-bit address
spaces for x86 machines cannot spare enough to allocate for that much VRAM
(ignoring PAE).
You are receiving this mail because:
- You are the assignee for the bug.
--1366509333.efBC6f23.31873--
--===============0000144581==
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
--===============0000144581==--