<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Ack-by: Monk.Liu <monk.liu@amd.com><br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Christian König <deathsimple@vodafone.de><br>
<b>Sent:</b> Tuesday, August 8, 2017 4:14:46 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org; Dave Airlie; Gerd Hoffmann<br>
<b>Subject:</b> Re: [PATCH 2/7] drm/qxl: fix incorrect use of the lru_lock</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi guys,<br>
<br>
can I get an rb or at least an Acked-by for that one?<br>
<br>
The code was obviously copied over from radeon where it wasn't correct <br>
in the first place.<br>
<br>
Thanks,<br>
Christian.<br>
<br>
Am 07.08.2017 um 17:48 schrieb Christian König:<br>
> From: Christian König <christian.koenig@amd.com><br>
><br>
> The BO manager has its own lock and doesn't use the lru_lock.<br>
><br>
> Signed-off-by: Christian König <christian.koenig@amd.com><br>
> ---<br>
>   drivers/gpu/drm/qxl/qxl_ttm.c | 13 ++++---------<br>
>   1 file changed, 4 insertions(+), 9 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c<br>
> index 0fdedee..07dc08d 100644<br>
> --- a/drivers/gpu/drm/qxl/qxl_ttm.c<br>
> +++ b/drivers/gpu/drm/qxl/qxl_ttm.c<br>
> @@ -454,15 +454,10 @@ void qxl_ttm_fini(struct qxl_device *qdev)<br>
>   static int qxl_mm_dump_table(struct seq_file *m, void *data)<br>
>   {<br>
>        struct drm_info_node *node = (struct drm_info_node *)m->private;<br>
> -     struct drm_mm *mm = (struct drm_mm *)node->info_ent->data;<br>
> -     struct drm_device *dev = node->minor->dev;<br>
> -     struct qxl_device *rdev = dev->dev_private;<br>
> -     struct ttm_bo_global *glob = rdev->mman.bdev.glob;<br>
> +     struct ttm_mem_type_manager *man = node->info_ent->data;<br>
>        struct drm_printer p = drm_seq_file_printer(m);<br>
>   <br>
> -     spin_lock(&glob->lru_lock);<br>
> -     drm_mm_print(mm, &p);<br>
> -     spin_unlock(&glob->lru_lock);<br>
> +     man->func->debug(man, &p);<br>
>        return 0;<br>
>   }<br>
>   #endif<br>
> @@ -483,9 +478,9 @@ int qxl_ttm_debugfs_init(struct qxl_device *qdev)<br>
>                qxl_mem_types_list[i].show = &qxl_mm_dump_table;<br>
>                qxl_mem_types_list[i].driver_features = 0;<br>
>                if (i == 0)<br>
> -                     qxl_mem_types_list[i].data = qdev->mman.bdev.man[TTM_PL_VRAM].priv;<br>
> +                     qxl_mem_types_list[i].data = &qdev->mman.bdev.man[TTM_PL_VRAM];<br>
>                else<br>
> -                     qxl_mem_types_list[i].data = qdev->mman.bdev.man[TTM_PL_PRIV].priv;<br>
> +                     qxl_mem_types_list[i].data = &qdev->mman.bdev.man[TTM_PL_PRIV];<br>
>   <br>
>        }<br>
>        return qxl_debugfs_add_files(qdev, qxl_mem_types_list, i);<br>
<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font>
</body>
</html>