* Commit 9b8c4a0b215e603497daebe8ecbc9b1f0f035808 broken X11 pointer
@ 2010-06-04 7:53 Jeff Chua
2010-06-04 18:02 ` Nick Bowler
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Chua @ 2010-06-04 7:53 UTC (permalink / raw)
To: Chris Wilson, Eric Anholt, Linus Torvalds, Linux Kernel
The following commit broke X11 mouse pointer. Symptom is "mouse pointer"
on X11 cannot change "shape" when positioned to the frames of xterm
window.
Reverting it makes it work again.
Running on X.Org X Server 1.8.99. Xterm 258. Lenovo X201s.
Thanks,
Jeff
commit 9b8c4a0b215e603497daebe8ecbc9b1f0f035808
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Thu May 27 14:21:01 2010 +0100
drm/i915: Avoid moving from CPU domain during pwrite
We can avoid an early clflush when pwriting if we use the current CPU
write domain rather than moving the object to the GTT domain for the
purposes of the pwrite. This has the advantage of not flushing the
presumably hot data that we want to upload into the bo, and of ascribing
the clflush to the execution when profiling.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 42866c0..4590c78 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -971,7 +971,8 @@ i915_gem_pwrite_ioctl(struct drm_device *dev, void *data,
if (obj_priv->phys_obj)
ret = i915_gem_phys_pwrite(dev, obj, args, file_priv);
else if (obj_priv->tiling_mode == I915_TILING_NONE &&
- dev->gtt_total != 0) {
+ dev->gtt_total != 0 &&
+ obj->write_domain != I915_GEM_DOMAIN_CPU) {
ret = i915_gem_gtt_pwrite_fast(dev, obj, args, file_priv);
if (ret == -EFAULT) {
ret = i915_gem_gtt_pwrite_slow(dev, obj, args,
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: Commit 9b8c4a0b215e603497daebe8ecbc9b1f0f035808 broken X11 pointer
2010-06-04 7:53 Commit 9b8c4a0b215e603497daebe8ecbc9b1f0f035808 broken X11 pointer Jeff Chua
@ 2010-06-04 18:02 ` Nick Bowler
2010-06-04 18:26 ` Jeff Chua
0 siblings, 1 reply; 3+ messages in thread
From: Nick Bowler @ 2010-06-04 18:02 UTC (permalink / raw)
To: Jeff Chua; +Cc: Chris Wilson, Eric Anholt, Linus Torvalds, Linux Kernel
On 15:53 Fri 04 Jun , Jeff Chua wrote:
> The following commit broke X11 mouse pointer. Symptom is "mouse pointer"
> on X11 cannot change "shape" when positioned to the frames of xterm
> window.
>
> Reverting it makes it work again.
>
> commit 9b8c4a0b215e603497daebe8ecbc9b1f0f035808
Should be fixed by the patch attached to this bug:
https://bugs.freedesktop.org/show_bug.cgi?id=28335
--
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Commit 9b8c4a0b215e603497daebe8ecbc9b1f0f035808 broken X11 pointer
2010-06-04 18:02 ` Nick Bowler
@ 2010-06-04 18:26 ` Jeff Chua
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Chua @ 2010-06-04 18:26 UTC (permalink / raw)
To: Jeff Chua, Chris Wilson, Eric Anholt, Linus Torvalds,
Linux Kernel
On Sat, Jun 5, 2010 at 2:02 AM, Nick Bowler <nbowler@elliptictech.com> wrote:
> On 15:53 Fri 04 Jun , Jeff Chua wrote:
>> The following commit broke X11 mouse pointer. Symptom is "mouse pointer"
>> on X11 cannot change "shape" when positioned to the frames of xterm
>> window.
>>
>> Reverting it makes it work again.
>>
>> commit 9b8c4a0b215e603497daebe8ecbc9b1f0f035808
>
> Should be fixed by the patch attached to this bug:
>
> https://bugs.freedesktop.org/show_bug.cgi?id=28335
Nick,
Thanks again for the pointer! And yes, the patch fixes the problem.
However, it hasn't make its way to Linus's tree yet.
Thanks,
Jeff.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-04 18:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-04 7:53 Commit 9b8c4a0b215e603497daebe8ecbc9b1f0f035808 broken X11 pointer Jeff Chua
2010-06-04 18:02 ` Nick Bowler
2010-06-04 18:26 ` Jeff Chua
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.