From: Roberto Oppedisano <roberto.oppedisano@infracom.it>
To: Dave Airlie <airlied@linux.ie>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Roberto Oppedisano <roppedisano@infracomspa.it>,
LKML <linux-kernel@vger.kernel.org>,
dri-devel@lists.sourceforge.net
Subject: Re: [PATCH] rate limit drm:radeon_cp_idle/reset errors
Date: Tue, 09 Sep 2008 12:08:43 +0200 [thread overview]
Message-ID: <48C64B2B.6060808@infracom.it> (raw)
In-Reply-To: <alpine.DEB.0.82.0809090914300.1221@skynet.skynet.ie>
Dave Airlie ha scritto, Il 09/09/2008 10.15:
>>>>> Sep 6 10:24:31 poppero1 kernel: [ 186.138774] [drm:radeon_cp_start] *ERROR* radeon_cp_start called without lock held, held 0 owner f726bc80 f68f6840
>>>>> Sep 6 10:24:31 poppero1 kernel: [ 186.138968] [drm:radeon_cp_idle] *ERROR* radeon_cp_idle called without lock held, held 0 owner f726bc80 f68f6840
>>>>> Sep 6 10:24:31 poppero1 kernel: [ 186.139214] [drm:radeon_cp_reset] *ERROR* radeon_cp_reset called without lock held, held 0 owner f726bc80 f68f6840
>>>>> Sep 6 10:24:31 poppero1 kernel: [ 186.139408] [drm:radeon_cp_start] *ERROR* radeon_cp_start called without lock held, held 0 owner f726bc80 f68f6840
>>>>> Sep 6 10:24:31 poppero1 kernel: [ 186.139601] [drm:radeon_cp_idle] *ERROR* radeon_cp_idle called without lock held, held 0 owner f726bc80 f68f6840
>>>>> Sep 6 10:24:31 poppero1 kernel: [ 186.139866] [drm:radeon_cp_reset] *ERROR* radeon_cp_reset called without lock held, held 0 owner f726bc80 f68f6840
>>>>> Sep 6 10:24:31 poppero1 kernel: [ 186.140072] [drm:radeon_cp_start] *ERROR* radeon_cp_start called without lock held, held 0 owner f726bc80 f68f6840
>>>>> Sep 6 10:24:31 poppero1 kernel: [ 186.140467] [drm:radeon_cp_idle] *ERROR* radeon_cp_idle called without lock held, held 0 owner f726bc80 f68f6840
>>>>> Sep 6 10:24:36 poppero1 kernel: [ 191.139019] __ratelimit: 253431 callbacks suppressed
>>>>> Sep 6 10:24:36 poppero1 kernel: [ 191.139030] [drm:radeon_cp_reset] *ERROR* radeon_cp_reset called without lock held, held 0 owner f726bc80 f68f6840
>>>>> Sep 6 10:24:36 poppero1 kernel: [ 191.139314] [drm:radeon_cp_start] *ERROR* radeon_cp_start called without lock held, held 0 owner f726bc80 f68f6840
>>>>>
>>>>> Also if it doesn't solve a bug I think it may still be worth applying it.
>>>>> Patch is against current git.
>>>>>
>>>>> Signed-off-by: Roberto Oppedisano <roberto.oppedisano@infracom.it>
>>>>>
>>>>> diff --git a/include/drm/drmP.h b/include/drm/drmP.h
>>>>> index 1c1b13e..1107361 100644
>>>>> --- a/include/drm/drmP.h
>>>>> +++ b/include/drm/drmP.h
>>>>> @@ -162,7 +162,8 @@ struct drm_device;
>>>>> * \param arg arguments
>>>>> */
>>>>> #define DRM_ERROR(fmt, arg...) \
>>>>> - printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* " fmt , __func__ , ##arg)
>>>>> + if (printk_ratelimit()) \
>>>>> + printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* " fmt , __func__ , ##arg)
>>>>>
>>>>> /**
>>>>> * Memory error output.
>>>>>
>>>> Which kernel version(s)?
>>> This is against vanilla current git.
>>>
>>> Linux poppero1 2.6.27-rc5-00000-g7686ad5-dirty #1 PREEMPT Sun Sep 7 08:47:08 CEST 2008 i686 GNU/Linux
>>>
>> Thanks. I should have asked earlier: was 2.6.26 OK? Any other kernels
>> tested?
>
> This looks like a userspace problem, some app is accessing the drm file
> descriptror without holding the drm lock, this is very illegal.
>
> Its probably a race between the X server and the AIGLX driver.
>
> Dave.
I also think it's a userspace problem. I found it while playing with
KDE4.1 kwin/Compiz, less than a month ago, always running on a current
vanilla git kernel: I noticed the syslog storm only recently (my bad,
because judging from the disk light I think it has always been there).
If you think it's useful I can do some test with older kernels (will
take some time btw).
R
next prev parent reply other threads:[~2008-09-09 10:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-06 9:19 [PATCH] rate limit drm:radeon_cp_idle/reset errors Roberto Oppedisano
2008-09-09 4:08 ` Andrew Morton
2008-09-09 7:37 ` Roberto Oppedisano
2008-09-09 8:12 ` Andrew Morton
2008-09-09 8:15 ` Dave Airlie
2008-09-09 10:08 ` Roberto Oppedisano [this message]
2009-07-30 9:00 ` drm:radeon_cp_idle/reset error storm, console lockup (-rc4 git) Andreas Mohr
2009-07-30 9:10 ` Andreas Mohr
2009-07-30 9:21 ` Dave Airlie
2009-07-30 9:36 ` Andreas Mohr
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=48C64B2B.6060808@infracom.it \
--to=roberto.oppedisano@infracom.it \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=dri-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=roppedisano@infracomspa.it \
/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.