From: Frediano Ziglio <fziglio@redhat.com>
To: Josh Boyer <jwboyer@fedoraproject.org>
Cc: spice-devel@lists.freedesktop.org, Dave Airlie <airlied@linux.ie>,
DRI mailing list <dri-devel@lists.freedesktop.org>,
Dave Airlie <airlied@redhat.com>,
"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 00/11] Miscellaneous stability patches
Date: Wed, 27 May 2015 09:28:36 -0400 (EDT) [thread overview]
Message-ID: <52443504.5205248.1432733316214.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CA+5PVA4M7346C1JJOe8cHsoRbDt05vO6292E3OkRTtfNvCQvRQ@mail.gmail.com>
>
> On Wed, May 27, 2015 at 8:47 AM, Josh Boyer <jwboyer@fedoraproject.org>
> wrote:
> > On Wed, May 27, 2015 at 6:03 AM, Frediano Ziglio <fziglio@redhat.com>
> > wrote:
> >> This set of patches mainly contains fix for some memory issues
> >> using quite aggressively surfaces and other minor problems like
> >> images going black after a while.
> >>
> >> Frediano Ziglio (11):
> >> Do not cause spice-server to clean our objects
> >> Do not leak memory if qxl_release_list_add fails
> >> Fix print statement not using uninitialized variable
> >> Avoid double free on error
> >> Handle all errors in qxl_surface_evict
> >> Fix return for qxl_release_alloc
> >> Handle correctly failures in qxl_alloc_relase_reserved
> >> Remove format string errors
> >> Move main reference counter to GEM object instead of TTM ones
> >> Simplify cleaning qxl processing command
> >> Propagate correctly errors from qxlhw_handle_to_bo
> >>
> >> qxl/qxl_cmd.c | 11 ++++++-----
> >> qxl/qxl_display.c | 2 +-
> >> qxl/qxl_drv.h | 2 +-
> >> qxl/qxl_gem.c | 10 ++++++++--
> >> qxl/qxl_ioctl.c | 46 +++++++++++++++++-----------------------------
> >> qxl/qxl_object.c | 11 ++++-------
> >> qxl/qxl_release.c | 13 +++++++++----
> >> 7 files changed, 46 insertions(+), 49 deletions(-)
> >
> > The strip level on these patches is rather odd. Normally one would
> > see a strip level of 1 at the top of the kernel dir. E.g.
> >
> > drivers/gpu/drm/qxl/qxl_gem.c
> >
> > in the diffstat, etc.
>
> (Sorry for the double reply.)
>
> Also, are any of these commits something that should be queued for
> stable kernel releases? There are a handful that look like they
> should be to me.
>
> josh
>
Hi,
no problem for double reply.
I was using a different repository with only QXL driver. I tested and all patches apply and compile perfectly even with Linus master branch.
About which patches should be applied surely (attempting to put a priority)
- "Move main reference counter to GEM object instead of TTM ones" this can causes memory corruption even not wanting to;
- "Avoid double free on error" this can be cause leaks in kernel if user space wants, mitigated by the fact that usually DRM inodes are owned by root;
- "Handle all errors in qxl_surface_evict" could cause corruption too, not really probable but taking into account that Xorg implementation use a lot signals is not so impossible;
- "Handle correctly failures in qxl_alloc_relase_reserved", "Do not leak memory if qxl_release_list_add fails" just cause leaks on situation where memory is already REALLY low, can be omitted;
- "Fix print statement not using uninitialized variable", "Remove format string errors" should just print garbage and debugging is disabled by default, not necessary.
Frediano
next prev parent reply other threads:[~2015-05-27 13:28 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 10:03 [PATCH 00/11] Miscellaneous stability patches Frediano Ziglio
2015-05-27 10:03 ` [PATCH 01/11] Do not cause spice-server to clean our objects Frediano Ziglio
2015-05-28 3:08 ` [Spice-devel] " Dave Airlie
2015-05-27 10:03 ` [PATCH 02/11] Do not leak memory if qxl_release_list_add fails Frediano Ziglio
2015-05-28 3:09 ` [Spice-devel] " Dave Airlie
2015-05-27 10:03 ` [PATCH 03/11] Fix print statement not using uninitialized variable Frediano Ziglio
2015-05-28 3:10 ` [Spice-devel] " Dave Airlie
2015-05-27 10:03 ` [PATCH 04/11] Avoid double free on error Frediano Ziglio
2015-05-28 3:11 ` [Spice-devel] " Dave Airlie
2015-05-27 10:04 ` [PATCH 05/11] Handle all errors in qxl_surface_evict Frediano Ziglio
2015-05-28 3:16 ` [Spice-devel] " Dave Airlie
2015-05-27 10:04 ` [PATCH 06/11] Fix return for qxl_release_alloc Frediano Ziglio
2015-05-28 3:17 ` [Spice-devel] " Dave Airlie
2015-05-27 10:04 ` [PATCH 07/11] Handle correctly failures in qxl_alloc_relase_reserved Frediano Ziglio
2015-05-28 3:20 ` [Spice-devel] " Dave Airlie
2015-05-27 10:04 ` [PATCH 08/11] Remove format string errors Frediano Ziglio
2015-05-28 3:20 ` [Spice-devel] " Dave Airlie
2015-05-27 10:04 ` [PATCH 09/11] Move main reference counter to GEM object instead of TTM ones Frediano Ziglio
2015-05-28 3:31 ` [Spice-devel] " Dave Airlie
2015-05-29 11:11 ` Frediano Ziglio
2015-05-27 10:04 ` [PATCH 10/11] Simplify cleaning qxl processing command Frediano Ziglio
2015-05-28 3:32 ` [Spice-devel] " Dave Airlie
2015-05-27 10:04 ` [PATCH 11/11] Propagate correctly errors from qxlhw_handle_to_bo Frediano Ziglio
2015-05-28 3:33 ` [Spice-devel] " Dave Airlie
2015-05-27 12:47 ` [PATCH 00/11] Miscellaneous stability patches Josh Boyer
2015-05-27 12:49 ` Josh Boyer
2015-05-27 13:28 ` Frediano Ziglio [this message]
2015-05-28 3:07 ` [Spice-devel] " Dave Airlie
2015-05-28 14:10 ` Frediano Ziglio
2015-05-29 5:48 ` Frans Klaver
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=52443504.5205248.1432733316214.JavaMail.zimbra@redhat.com \
--to=fziglio@redhat.com \
--cc=airlied@linux.ie \
--cc=airlied@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jwboyer@fedoraproject.org \
--cc=linux-kernel@vger.kernel.org \
--cc=spice-devel@lists.freedesktop.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;
as well as URLs for NNTP newsgroup(s).