From: Thomas Hellstrom <thomas@shipmail.org>
To: Gerd Hoffmann <kraxel@redhat.com>, dri-devel@lists.freedesktop.org
Cc: ckoenig.leichtzumerken@gmail.com, tzimmermann@suse.de,
daniel@ffwll.ch, bskeggs@redhat.com,
VMware Graphics <linux-graphics-maintainer@vmware.com>,
Thomas Hellstrom <thellstrom@vmware.com>,
David Airlie <airlied@linux.ie>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4 12/17] drm/vmwgfx: switch driver from bo->resv to bo->base.resv
Date: Sat, 3 Aug 2019 21:10:34 +0200 [thread overview]
Message-ID: <37ef501f-a962-bead-35bd-5f7e9e3fb38e@shipmail.org> (raw)
In-Reply-To: <20190802052247.18427-13-kraxel@redhat.com>
Still doesn't like this very much, but anyway
Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
On 8/2/19 7:22 AM, Gerd Hoffmann wrote:
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
> drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 4 ++--
> drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 8 ++++----
> drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c | 4 ++--
> drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 6 +++---
> 4 files changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c b/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
> index fc6673cde289..917eeb793585 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
> @@ -459,9 +459,9 @@ int vmw_bo_cpu_blit(struct ttm_buffer_object *dst,
>
> /* Buffer objects need to be either pinned or reserved: */
> if (!(dst->mem.placement & TTM_PL_FLAG_NO_EVICT))
> - lockdep_assert_held(&dst->resv->lock.base);
> + lockdep_assert_held(&dst->base.resv->lock.base);
> if (!(src->mem.placement & TTM_PL_FLAG_NO_EVICT))
> - lockdep_assert_held(&src->resv->lock.base);
> + lockdep_assert_held(&src->base.resv->lock.base);
>
> if (dst->ttm->state == tt_unpopulated) {
> ret = dst->ttm->bdev->driver->ttm_tt_populate(dst->ttm, &ctx);
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
> index 0d9478d2e700..4a38ab0733c4 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
> @@ -342,7 +342,7 @@ void vmw_bo_pin_reserved(struct vmw_buffer_object *vbo, bool pin)
> uint32_t old_mem_type = bo->mem.mem_type;
> int ret;
>
> - lockdep_assert_held(&bo->resv->lock.base);
> + lockdep_assert_held(&bo->base.resv->lock.base);
>
> if (pin) {
> if (vbo->pin_count++ > 0)
> @@ -690,7 +690,7 @@ static int vmw_user_bo_synccpu_grab(struct vmw_user_buffer_object *user_bo,
> long lret;
>
> lret = reservation_object_wait_timeout_rcu
> - (bo->resv, true, true,
> + (bo->base.resv, true, true,
> nonblock ? 0 : MAX_SCHEDULE_TIMEOUT);
> if (!lret)
> return -EBUSY;
> @@ -1007,10 +1007,10 @@ void vmw_bo_fence_single(struct ttm_buffer_object *bo,
>
> if (fence == NULL) {
> vmw_execbuf_fence_commands(NULL, dev_priv, &fence, NULL);
> - reservation_object_add_excl_fence(bo->resv, &fence->base);
> + reservation_object_add_excl_fence(bo->base.resv, &fence->base);
> dma_fence_put(&fence->base);
> } else
> - reservation_object_add_excl_fence(bo->resv, &fence->base);
> + reservation_object_add_excl_fence(bo->base.resv, &fence->base);
> }
>
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c
> index b4f6e1217c9d..e142714f132c 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c
> @@ -169,7 +169,7 @@ static int vmw_cotable_unscrub(struct vmw_resource *res)
> } *cmd;
>
> WARN_ON_ONCE(bo->mem.mem_type != VMW_PL_MOB);
> - lockdep_assert_held(&bo->resv->lock.base);
> + lockdep_assert_held(&bo->base.resv->lock.base);
>
> cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd));
> if (!cmd)
> @@ -311,7 +311,7 @@ static int vmw_cotable_unbind(struct vmw_resource *res,
> return 0;
>
> WARN_ON_ONCE(bo->mem.mem_type != VMW_PL_MOB);
> - lockdep_assert_held(&bo->resv->lock.base);
> + lockdep_assert_held(&bo->base.resv->lock.base);
>
> mutex_lock(&dev_priv->binding_mutex);
> if (!vcotbl->scrubbed)
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
> index 1d38a8b2f2ec..ccd7f758bf8c 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
> @@ -402,14 +402,14 @@ void vmw_resource_unreserve(struct vmw_resource *res,
>
> if (switch_backup && new_backup != res->backup) {
> if (res->backup) {
> - lockdep_assert_held(&res->backup->base.resv->lock.base);
> + lockdep_assert_held(&res->backup->base.base.resv->lock.base);
> list_del_init(&res->mob_head);
> vmw_bo_unreference(&res->backup);
> }
>
> if (new_backup) {
> res->backup = vmw_bo_reference(new_backup);
> - lockdep_assert_held(&new_backup->base.resv->lock.base);
> + lockdep_assert_held(&new_backup->base.base.resv->lock.base);
> list_add_tail(&res->mob_head, &new_backup->res_list);
> } else {
> res->backup = NULL;
> @@ -691,7 +691,7 @@ void vmw_resource_unbind_list(struct vmw_buffer_object *vbo)
> .num_shared = 0
> };
>
> - lockdep_assert_held(&vbo->base.resv->lock.base);
> + lockdep_assert_held(&vbo->base.base.resv->lock.base);
> list_for_each_entry_safe(res, next, &vbo->res_list, mob_head) {
> if (!res->func->unbind)
> continue;
next prev parent reply other threads:[~2019-08-03 19:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190802052247.18427-1-kraxel@redhat.com>
2019-08-02 5:22 ` [PATCH v4 01/17] drm/ttm: add gem base object Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 02/17] drm/vram: use embedded gem object Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 03/17] drm/qxl: " Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 04/17] drm/radeon: " Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 05/17] drm/amdgpu: " Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 06/17] drm/nouveau: " Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 07/17] drm/ttm: use gem reservation object Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 08/17] drm/ttm: use gem vma_node Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 09/17] drm/ttm: set both resv and base.resv pointers Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 10/17] drm/ttm: switch ttm core from bo->resv to bo->base.resv Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 11/17] drm/radeon: switch driver " Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 12/17] drm/vmwgfx: " Gerd Hoffmann
2019-08-03 19:10 ` Thomas Hellstrom [this message]
2019-08-02 5:22 ` [PATCH v4 13/17] drm/amdgpu: " Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 14/17] drm/nouveau: " Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 15/17] drm/qxl: " Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 16/17] drm/virtio: " Gerd Hoffmann
2019-08-02 5:22 ` [PATCH v4 17/17] drm/ttm: drop ttm_buffer_object->resv Gerd Hoffmann
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=37ef501f-a962-bead-35bd-5f7e9e3fb38e@shipmail.org \
--to=thomas@shipmail.org \
--cc=airlied@linux.ie \
--cc=bskeggs@redhat.com \
--cc=ckoenig.leichtzumerken@gmail.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=kraxel@redhat.com \
--cc=linux-graphics-maintainer@vmware.com \
--cc=linux-kernel@vger.kernel.org \
--cc=thellstrom@vmware.com \
--cc=tzimmermann@suse.de \
/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®