From: Brian Yip <itsbriany@gmail.com>
To: christian.koenig@amd.com
Cc: ray.huang@amd.com, Jerry.Zhang@amd.com, airlied@linux.ie,
daniel@ffwll.ch, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, Brian Yip <itsbriany@gmail.com>
Subject: [PATCH v2 0/2] drm/ttm: Cleanup state in global ttm structures
Date: Tue, 16 Apr 2019 01:50:33 +0000 [thread overview]
Message-ID: <20190416015035.1435-1-itsbriany@gmail.com> (raw)
State in global ttm structures was not properly reset on cleanup.
In the scenario where multiple drm drivers are loaded and the first one
fails to initialize, there is an attempt to reset the global state in
the ttm structures. However, there were some attributes which were not
properly reset during this process. This resulted in a crash and
false positive kobj initialization warnings during subsequent initialization
of these global structures.
Fix the crash and false positive kobj initialization warnings.
---
Changes in v2:
State in global ttm structures is reset by means of zeroing memory
in global structure initialization functions rather than checking
reference counters in their corresponding release functions.
Brian Yip (2):
drm/ttm: Reset ttm_mem_global when initialized
drm/ttm: Reset ttm_bo_glob when initialized
drivers/gpu/drm/ttm/ttm_bo.c | 6 +++++-
drivers/gpu/drm/ttm/ttm_memory.c | 2 ++
2 files changed, 7 insertions(+), 1 deletion(-)
--
2.20.1
next reply other threads:[~2019-04-16 1:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-16 1:50 Brian Yip [this message]
2019-04-16 1:50 ` [PATCH v2 1/2] drm/ttm: Reset ttm_mem_global when initialized Brian Yip
2019-04-16 1:50 ` [PATCH v2 2/2] drm/ttm: Reset ttm_bo_glob " Brian Yip
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=20190416015035.1435-1-itsbriany@gmail.com \
--to=itsbriany@gmail.com \
--cc=Jerry.Zhang@amd.com \
--cc=airlied@linux.ie \
--cc=christian.koenig@amd.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ray.huang@amd.com \
/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