From: Francisco Jerez <currojerez-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
To: Chris Ball <cjb-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>
Cc: David Airlie <airlied-cv59FeDIM0c@public.gmane.org>,
kgdb-bugreport-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
Jesse Barnes <jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org>,
Jason Wessel
<jason.wessel-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
Subject: Re: [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS.
Date: Thu, 26 Aug 2010 18:55:41 +0200 [thread overview]
Message-ID: <87aao99uuq.fsf@riseup.net> (raw)
In-Reply-To: <m3k4nhqcia.fsf_-_-0VGQAjvlmrQzNDMTQreKSUB+6BGkLq7r@public.gmane.org> (Chris Ball's message of "Mon, 23 Aug 2010 16:50:53 -0400")
[-- Attachment #1.1.1: Type: text/plain, Size: 2819 bytes --]
Chris Ball <cjb-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org> writes:
> Hi Francisco,
>
> > There is a problem with this on pre-nv20 cards. Fbcon
> > acceleration won't work properly with IRQs disabled because you
> > miss the context switching interrupts: You'll get a locked up
> > fbcon if you hit sysrq-g when there's some process using the GPU.
> >
> > I'd suggest disabling acceleration while in debug mode
> > (e.g. using nouveau_fbcon_save_disable_accel()). That aside the
> > patch looks good to me.
>
> Thanks very much for this. Here's a (only compile-tested) patch for
> this, on top of jwessel's current kgdb-next branch. Jason, would you
> mind testing on pre-nv20 and applying?
>
Thanks, it looks OK to me, and I just tested it successfully on
nv11. You can have my "Acked-by" on both nouveau patches if you need it.
> Thanks,
>
> - Chris.
>
>
> From: Chris Ball <cjb-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>
> Subject: [PATCH] drm/nouveau/kms: Avoid a hang entering KDB with VT accel on.
>
> Francisco Jerez advises that pre-nv20 cards would hang if we entered
> kdb with accel on and IRQs disabled, so we now disable accel before
> entering kdb and re-enable it on the way back out.
>
> Signed-off-by: Chris Ball <cjb-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>
> Cc: Francisco Jerez <currojerez-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
> Cc: Jason Wessel <jason.wessel-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
> ---
> drivers/gpu/drm/nouveau/nv04_crtc.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpu/drm/nouveau/nv04_crtc.c b/drivers/gpu/drm/nouveau/nv04_crtc.c
> index fb669dd..427f90e 100644
> --- a/drivers/gpu/drm/nouveau/nv04_crtc.c
> +++ b/drivers/gpu/drm/nouveau/nv04_crtc.c
> @@ -31,10 +31,11 @@
> #include "nouveau_connector.h"
> #include "nouveau_crtc.h"
> #include "nouveau_fb.h"
> #include "nouveau_hw.h"
> #include "nvreg.h"
> +#include "nouveau_fbcon.h"
>
> static int
> nv04_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
> struct drm_framebuffer *old_fb);
>
> @@ -858,10 +859,18 @@ nv04_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
> static int
> nv04_crtc_mode_set_base_atomic(struct drm_crtc *crtc,
> struct drm_framebuffer *fb,
> int x, int y, int enter)
> {
> + struct drm_nouveau_private *dev_priv = crtc->dev->dev_private;
> + struct drm_device *dev = dev_priv->dev;
> +
> + if (enter)
> + nouveau_fbcon_save_disable_accel(dev);
> + else
> + nouveau_fbcon_restore_accel(dev);
> +
> return nv04_crtc_do_mode_set_base(crtc, fb, x, y, true);
> }
>
> static void nv04_cursor_upload(struct drm_device *dev, struct nouveau_bo *src,
> struct nouveau_bo *dst)
[-- Attachment #1.2: Type: application/pgp-signature, Size: 229 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
next prev parent reply other threads:[~2010-08-26 16:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m3iq9yqd7w.fsf@pullcord.laptop.org>
[not found] ` <4C5ACF3F.8050409@windriver.com>
[not found] ` <m3hbj0fju3.fsf_-_@pullcord.laptop.org>
2010-08-19 17:55 ` [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS Chris Ball
[not found] ` <m3aaoimqrp.fsf_-_-0VGQAjvlmrQzNDMTQreKSUB+6BGkLq7r@public.gmane.org>
2010-08-21 2:22 ` Francisco Jerez
2010-08-23 20:50 ` Chris Ball
[not found] ` <m3k4nhqcia.fsf_-_-0VGQAjvlmrQzNDMTQreKSUB+6BGkLq7r@public.gmane.org>
2010-08-26 16:55 ` Francisco Jerez [this message]
2010-09-26 11:20 ` Jason Wessel
2010-09-01 9:56 ` Maxim Levitsky
2010-09-01 11:35 ` [Nouveau] " Jason Wessel
2010-09-02 10:46 ` Maxim Levitsky
2010-09-22 1:42 ` Maxim Levitsky
2010-09-22 14:03 ` Maxim Levitsky
2010-09-22 14:06 ` Maxim Levitsky
2010-09-22 17:07 ` Maxim Levitsky
2010-09-24 20:50 ` Maxim Levitsky
2010-09-24 20:58 ` Jason Wessel
2010-09-25 0:14 ` Maxim Levitsky
2010-09-25 4:08 ` Dmitry Torokhov
2010-10-05 20:56 ` Jason Wessel
2010-10-14 2:34 ` Maxim Levitsky
2010-10-20 16:01 ` sysrq filter and stuck keys [ was Re: [Nouveau] [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS.] Jason Wessel
2010-10-23 2:29 ` Maxim Levitsky
2010-10-27 12:51 ` Jason Wessel
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=87aao99uuq.fsf@riseup.net \
--to=currojerez-sgozh3hwpm2stnjn9+bgxg@public.gmane.org \
--cc=airlied-cv59FeDIM0c@public.gmane.org \
--cc=cjb-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org \
--cc=jason.wessel-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org \
--cc=jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org \
--cc=kgdb-bugreport-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.