Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 302882 Details for
Bug 440384
PATCH: Any opengl use hardfreezes machine i386, intel 82865G
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
PATCH: Any opengl use hardfreezes machine i386, intel 82865G
modesetting-drm-i915-no-vblank-null-deref-panic.patch (text/plain), 2.37 KB, created by
Hans de Goede
on 2008-04-18 13:19:48 UTC
(
hide
)
Description:
PATCH: Any opengl use hardfreezes machine i386, intel 82865G
Filename:
MIME Type:
Creator:
Hans de Goede
Created:
2008-04-18 13:19:48 UTC
Size:
2.37 KB
patch
obsolete
>The problem is that i915_vblank_tasklet() looks at vbl_swap->minor->master to >get a pointer to its private driver data, however, vbl_swap points to an entry >of the vbl_swaps list, and the only place where entries get added to this list >is i915_vblank_swap() and that doesn't fill the minor member of the vbl_swap >struct. > >This is not really a problem as the private driver data is already available in >i915_vblank_tasklet(), so the attached patch removes the minor field from the >vbl_swap struct, and stops setting master_priv to >vbl_swap->minor->master->driver_priv, which isn't needed anways as its >already initialized and pointing to the master driver private data. > >The patch also moves the initialization of sarea_priv and pitchropcpp higher as >gcc is rightfully complaining they can be used uninitialized here. > >Signed-of-by: Hans de Goede <j.w.r.degoede@hhs.nl> >--- linux-2.6.24.i386/drivers/char/drm/i915_irq.c.orig 2008-04-18 12:02:05.000000000 +0200 >+++ linux-2.6.24.i386/drivers/char/drm/i915_irq.c 2008-04-18 14:46:14.000000000 +0200 >@@ -116,13 +116,14 @@ static void i915_vblank_tasklet(struct d > unsigned counter[2] = { atomic_read(&dev->vbl_received), > atomic_read(&dev->vbl_received2) }; > struct drm_drawable_info *drw; >- struct drm_i915_sarea *sarea_priv; >+ struct drm_i915_sarea *sarea_priv = master_priv->sarea_priv; > u32 cpp = dev_priv->cpp, offsets[3]; > u32 cmd = (cpp == 4) ? (XY_SRC_COPY_BLT_CMD | > XY_SRC_COPY_BLT_WRITE_ALPHA | > XY_SRC_COPY_BLT_WRITE_RGB) > : XY_SRC_COPY_BLT_CMD; >- u32 pitchropcpp; >+ u32 pitchropcpp = (sarea_priv->pitch * cpp) | (0xcc << 16) | >+ (cpp << 23) | (1 << 24); > RING_LOCALS; > > DRM_DEBUG("\n"); >@@ -147,12 +148,6 @@ static void i915_vblank_tasklet(struct d > if ((counter[pipe] - vbl_swap->sequence) > (1<<23)) > continue; > >- master_priv = vbl_swap->minor->master->driver_priv; >- sarea_priv = master_priv->sarea_priv; >- >- pitchropcpp = (sarea_priv->pitch * cpp) | (0xcc << 16) | >- (cpp << 23) | (1 << 24); >- > list_del(list); > dev_priv->swaps_pending--; > >--- linux-2.6.24.i386/drivers/char/drm/i915_drv.h~ 2008-04-18 14:56:20.000000000 +0200 >+++ linux-2.6.24.i386/drivers/char/drm/i915_drv.h 2008-04-18 14:56:20.000000000 +0200 >@@ -86,7 +86,6 @@ typedef struct _drm_i915_vbl_swap { > unsigned int plane; > unsigned int sequence; > int flip; >- struct drm_minor *minor; > } drm_i915_vbl_swap_t; > > struct drm_i915_master_private {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 440384
:
300201
|
300202
|
300203
| 302882