From: Greg KH <gregkh@linuxfoundation.org>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: stable@vger.kernel.org,
"Christian König" <christian.koenig@amd.com>,
"Dave Airlie" <airlied@redhat.com>
Subject: Re: [PATCH 4.9,4.14] drm/ttm/nouveau: don't call tt destroy callback on alloc failure.
Date: Mon, 24 Jan 2022 16:39:26 +0100 [thread overview]
Message-ID: <Ye7ILinO8nBVjy/9@kroah.com> (raw)
In-Reply-To: <Ye7HB4Zsdbdwgt4T@decadent.org.uk>
On Mon, Jan 24, 2022 at 04:34:31PM +0100, Ben Hutchings wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> commit 5de5b6ecf97a021f29403aa272cb4e03318ef586 upstream.
>
> This is confusing, and from my reading of all the drivers only
> nouveau got this right.
>
> Just make the API act under driver control of it's own allocation
> failing, and don't call destroy, if the page table fails to
> create there is nothing to cleanup here.
>
> (I'm willing to believe I've missed something here, so please
> review deeply).
>
> Reviewed-by: Christian König <christian.koenig@amd.com>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> Link: https://patchwork.freedesktop.org/patch/msgid/20200728041736.20689-1-airlied@gmail.com
> [bwh: Backported to 4.14:
> - Drop change in ttm_sg_tt_init()
> - Adjust context]
> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> ---
> drivers/gpu/drm/nouveau/nouveau_sgdma.c | 9 +++------
> drivers/gpu/drm/ttm/ttm_tt.c | 2 --
> 2 files changed, 3 insertions(+), 8 deletions(-)
Now queued up, thanks for the backport!
greg k-h
prev parent reply other threads:[~2022-01-24 15:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 15:34 [PATCH 4.9,4.14] drm/ttm/nouveau: don't call tt destroy callback on alloc failure Ben Hutchings
2022-01-24 15:39 ` Greg KH [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=Ye7ILinO8nBVjy/9@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=airlied@redhat.com \
--cc=ben@decadent.org.uk \
--cc=christian.koenig@amd.com \
--cc=stable@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