From: Alex Williamson <alex.williamson@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "open list:VFIO MEDIATED DEVICE DRIVERS" <kvm@vger.kernel.org>,
airlied@linux.ie, daniel.vetter@ffwll.ch,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
Kirti Wankhede <kwankhede@nvidia.com>,
linux-next@vger.kernel.org, christian.koenig@amd.com
Subject: Re: [PATCH 1/2] sample/mdev/mbochs: remove mbochs_kmap_atomic_dmabuf
Date: Tue, 26 Jun 2018 15:16:19 +0800 [thread overview]
Message-ID: <20180626151619.13d4c214@t450s.home> (raw)
In-Reply-To: <20180625064453.19768-1-kraxel@redhat.com>
On Mon, 25 Jun 2018 08:44:51 +0200
Gerd Hoffmann <kraxel@redhat.com> wrote:
> Atomic mapping interface for dmabufs will be removed.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Fixes: f664a5269542 ("dma-buf: remove kmap_atomic interface")
Though really the above commit needs to be updated to include this fix
to preserve bisection since the mbochs sample driver is already
upstream, suggests we only compile tested removing kmap_atomic without
looking for other users. drm folks, please update. Thanks,
Alex
> ---
> samples/vfio-mdev/mbochs.c | 10 ----------
> 1 file changed, 10 deletions(-)
>
> diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c
> index 2960e26c6e..aa25cda21d 100644
> --- a/samples/vfio-mdev/mbochs.c
> +++ b/samples/vfio-mdev/mbochs.c
> @@ -803,15 +803,6 @@ static void mbochs_release_dmabuf(struct dma_buf *buf)
> mutex_unlock(&mdev_state->ops_lock);
> }
>
> -static void *mbochs_kmap_atomic_dmabuf(struct dma_buf *buf,
> - unsigned long page_num)
> -{
> - struct mbochs_dmabuf *dmabuf = buf->priv;
> - struct page *page = dmabuf->pages[page_num];
> -
> - return kmap_atomic(page);
> -}
> -
> static void *mbochs_kmap_dmabuf(struct dma_buf *buf, unsigned long page_num)
> {
> struct mbochs_dmabuf *dmabuf = buf->priv;
> @@ -824,7 +815,6 @@ static struct dma_buf_ops mbochs_dmabuf_ops = {
> .map_dma_buf = mbochs_map_dmabuf,
> .unmap_dma_buf = mbochs_unmap_dmabuf,
> .release = mbochs_release_dmabuf,
> - .map_atomic = mbochs_kmap_atomic_dmabuf,
> .map = mbochs_kmap_dmabuf,
> .mmap = mbochs_mmap_dmabuf,
> };
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2018-06-26 7:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-25 6:44 [PATCH 1/2] sample/mdev/mbochs: remove mbochs_kmap_atomic_dmabuf Gerd Hoffmann
2018-06-25 6:44 ` [PATCH 2/2] sample/mdev/mbochs: add mbochs_kunmap_dmabuf Gerd Hoffmann
2018-06-26 7:20 ` Alex Williamson
2018-06-26 7:32 ` Gerd Hoffmann
2018-06-27 1:55 ` Alex Williamson
2018-06-25 15:43 ` [PATCH 1/2] sample/mdev/mbochs: remove mbochs_kmap_atomic_dmabuf Koenig, Christian
2018-06-26 7:16 ` Alex Williamson [this message]
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=20180626151619.13d4c214@t450s.home \
--to=alex.williamson@redhat.com \
--cc=airlied@linux.ie \
--cc=christian.koenig@amd.com \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kwankhede@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@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