From: Dmitry Dmitriev <dimondmm@yandex.ru>
To: chris@chris-wilson.co.uk, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, airlied@linux.ie
Subject: PROBLEM: Possible problem in i915_dma_cleanup function in i915_dma.c module
Date: Thu, 04 Aug 2011 15:02:57 +0400 [thread overview]
Message-ID: <365371312455777@web44.yandex.ru> (raw)
Hello!
This problem is found in 3.0 kernel.
In i915_dma_cleanup function(drivers/gpu/drm/i915/i915_dma.c module) I found following:
135static int i915_dma_cleanup(struct drm_device * dev)
136{
.......
152 /* Clear the HWS virtual address at teardown */
153 if (I915_NEED_GFX_HWS(dev))
154 i915_free_hws(dev);
.......
157}
2102int i915_driver_unload(struct drm_device *dev)
2103{
........
2174 if (!I915_NEED_GFX_HWS(dev))
2175 i915_free_hws(dev);
........
2190}
I.e. in one case i915_free_hws function is called when (I915_NEED_GFX_HWS(dev)) condition is true(i915_dma_cleanup), but in other case it called when (!I915_NEED_GFX_HWS(dev)) condition is true(in i915_driver_unload function). This is intentional?
Corresponding init function is called only when (!I915_NEED_GFX_HWS(dev)) condition is true(in i915_driver_load function). Therefore I guess that if condition is wrong in i915_dma_cleanup function.
Thanks,
Dmitry
reply other threads:[~2011-08-04 11:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=365371312455777@web44.yandex.ru \
--to=dimondmm@yandex.ru \
--cc=airlied@linux.ie \
--cc=chris@chris-wilson.co.uk \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®