kernel-testers.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Meyer <thomas-VsYtu1Qij5c@public.gmane.org>
To: Jesse Barnes <jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org>
Cc: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>,
	Linux Kernel Mailing List
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Kernel Testers List
	<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org>
Subject: Re: [Bug #14670] i915: playing video via XVideo extension makes the screen flicker
Date: Wed, 13 Jan 2010 22:48:40 +0100	[thread overview]
Message-ID: <1263419320.2250.6.camel@localhost.localdomain> (raw)
In-Reply-To: <20100112095702.4b22fcc1@jbarnes-piketon>

Am Dienstag, den 12.01.2010, 09:57 -0800 schrieb Jesse Barnes:
> On Tue, 12 Jan 2010 18:43:09 +0100
> Thomas Meyer <thomas-VsYtu1Qij5c@public.gmane.org> wrote:
> 
> > Am Montag, den 11.01.2010, 11:19 -0800 schrieb Jesse Barnes:
> > > On Mon, 11 Jan 2010 20:03:57 +0100
> > > Thomas Meyer <thomas-VsYtu1Qij5c@public.gmane.org> wrote:
> > > 
> > > > 
> > > > 
> > > > Am 11.01.2010 um 17:55 schrieb Jesse Barnes
> > > > <jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org>:
> > > > 
> > > > > On Mon, 11 Jan 2010 17:53:04 +0100
> > > > > Thomas Meyer <thomas-VsYtu1Qij5c@public.gmane.org> wrote:
> > > > >
> > > > >> Am Sonntag, den 10.01.2010, 23:56 +0100 schrieb Rafael J.
> > > > >> Wysocki:
> > > > >>> This message has been generated automatically as a part of a
> > > > >>> report of regressions introduced between 2.6.31 and 2.6.32.
> > > > >>>
> > > > >>> The following bug entry is on the current list of known
> > > > >>> regressions introduced between 2.6.31 and 2.6.32.  Please
> > > > >>> verify if it still should be listed and let me know (either
> > > > >>> way).
> > > > >>>
> > > > >>
> > > > >> Yes, still should be listed.
> > > > >>
> > > > >> Problem still exists in 2.6.32.3 and 2.6.33-rc3-00097-g2c1f189,
> > > > >> that contains
> > > > >> this commit:
> > > > >> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cda9d05c499093c67b4a376a15009923acc2127a
> > > > >>
> > > > >> The above commit removes the render reclock support, that
> > > > >> ought to fix a common kind of problem encountered on i915
> > > > >> hardware, but not on my machine.
> > > > >>
> > > > >> Still need to boot with "nomodeset" to have a workable system.
> > > > >
> > > > > Does this patch prevent the flicker?
> > > > 
> > > > By the way: how often and in what interval is the function   
> > > > intel_lvds_detect called?
> > > > 
> > > > How long will/can the function acpi_lid_open take to complete?
> > > > Maybe some acpi interpretation takes really long? Is this
> > > > possible?
> > > > 
> > > > Would this explain the flickering?
> > > 
> > > It should only be called when a client requests the connection
> > > status (e.g. xrandr or the GNOME display applet).
> > 
> > how to check how often this function is called and it's duration? is
> > the function tracer capable of this?
> 
> Yeah, the function tracer should be able to do it (though I don't know
> how to use it offhand, maybe through the perf tool?).  Or you could
> just add some DRM_ERROR lines. :)


After recompiling the kernel without optimize for size I could use the
function graph tracer and set the function to "intel_lvds_detect".

Here is an example of the output:

 0)   0.365 us    |                up();
 0)   1.092 us    |              }
 0)   1.824 us    |            }
 0)   2.486 us    |          }
 0)   0.376 us    |          kfree();
 0) ! 9759.012 us |        }
 0) ! 9759.813 us |      }
 0) ! 9761.096 us |    }
 0) ! 9764.483 us |  }
 0)               |  intel_lvds_detect() {
 0)               |    acpi_lid_open() {
 0)               |      acpi_evaluate_integer() {
 0)               |        acpi_evaluate_object() {
 0)               |          acpi_os_allocate_zeroed() {
 0)               |            __kmalloc() {
 0)   0.366 us    |              get_slab();
 0)   0.336 us    |              _cond_resched();
 0)   0.396 us    |              memset();
 0)   2.796 us    |            }
 0)   3.447 us    |          }
 0)   0.531 us    |          acpi_ns_validate_handle();

So the call to "intel_lvds_detect" seems to take around 10000us, i.e.
10ms (I guess this is long), thanks to heavy ACPI interpretation.

So the question still is: Why is the drm_ioctl (that in turn calls
intel_lvds_detect) called so often by Xorg?

greets
thomas


  parent reply	other threads:[~2010-01-13 21:48 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-10 22:45 2.6.33-rc3-git3: Reported regressions 2.6.31 -> 2.6.32 Rafael J. Wysocki
2010-01-10 22:46 ` [Bug #14297] console resume broken since ba15ab0e8d Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14417] [Regression] Wireless driver iwlagn+iwlcore doesn't work after resume (needs reloading) Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14298] warning at manage.c:361 (set_irq_wake), matrix-keypad related? Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14406] uvcvideo stopped work on Toshiba Rafael J. Wysocki
2010-01-11 15:30   ` Oliver Neukum
2010-01-10 22:56 ` [Bug #14376] Kernel NULL pointer dereference/ kvm subsystem Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14426] CE: hpet increasing min_delta_ns flood Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14483] Interrupts enabled after irqrouter_resume - iMac9,1 Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14442] resume after hibernate: /dev/sdb drops and returns as /dev/sde Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14482] kernel BUG at fs/dcache.c:670 +lvm +md +ext3 Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14624] ath9k: BUG kmalloc-8192: Poison overwritten Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14621] specjbb2005 and aim7 regression with 2.6.32-rc kernels Rafael J. Wysocki
2010-01-11  7:05   ` Mike Galbraith
2010-01-10 22:56 ` [Bug #14504] intermittent hibernation problem again Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14625] Commit d451564 breaks ARM Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14487] PANIC: early exception 08 rip 246:10 error ffffffff810251b5 cr2 0 Rafael J. Wysocki
2010-01-11 13:56   ` Justin P. Mattock
2010-01-11 19:42     ` Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14656] Oops at __rmqueue+0x98 with 2.6.32-rc6 Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14667] bisected 2.6.32 EC regression - Temperatures not correctly detected after suspend - Dell Studio XPS 16 laptop Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14657] perf subsystem breakage in 2.6.32-rc7 Rafael J. Wysocki
2010-01-10 23:20   ` Arjan van de Ven
     [not found]     ` <20100110152037.1d59d7cd-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2010-01-11 19:46       ` Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14695] regression in karmic thermal control Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14742] 2.6.32 new menu idle governor causes very high CPU temp Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14670] i915: playing video via XVideo extension makes the screen flicker Rafael J. Wysocki
2010-01-11 16:53   ` Thomas Meyer
2010-01-11 16:55     ` Jesse Barnes
2010-01-11 18:05       ` Thomas Meyer
     [not found]       ` <8B599161-2977-4A43-B88F-36E87AFCF4EA@m3y3r.de>
2010-01-11 19:19         ` Jesse Barnes
2010-01-11 20:28           ` Rafael J. Wysocki
2010-01-12 17:43           ` Thomas Meyer
     [not found]             ` <1263318189.3284.2.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-01-12 17:57               ` Jesse Barnes
2010-01-13 21:06                 ` Thomas Meyer
2010-01-13 21:48                 ` Thomas Meyer [this message]
2010-01-10 22:56 ` [Bug #14782] Suspend hangs Lenovo SL300 after gdm login Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14747] bisected 2.6.32 regression: synaptics touchpad doesn't work Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14748] e1000e NIC not working after reboot Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14817] When is system under load, then freeze/HD fail Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14868] flood of "don't try to register things with the same name in the same directory." on upgrade to 2.6.32 Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14783] Unhandled IRQ on Thinkpad R61i: "irq 16: nobody cared" Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14841] unable to enumerate USB device on port X after suspend/resume Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14891] Deadlock regression related to NFS root Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14889] System wakeup by time not working anymore Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14894] pohmelfs: NULL pointer dereference Rafael J. Wysocki
2010-01-10 23:23   ` Evgeniy Polyakov
     [not found]     ` <20100110232306.GA16962-i6C2adt8DTjR7s880joybQ@public.gmane.org>
2010-01-11 19:50       ` Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14892] intel, KMS, suspend2ram resume, screen black Rafael J. Wysocki
2010-01-13  6:03   ` Norbert Preining
2010-01-13 21:53     ` Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14886] Asus P2B-DS not detected as SMP moterboard Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14897] i915: Commit 0e442c60 causes flickering Rafael J. Wysocki
2010-01-11  5:22   ` David John
     [not found]     ` <4B4AB589.7080004-XRr60H37pjdAfugRpC6u6w@public.gmane.org>
2010-01-11 19:52       ` Rafael J. Wysocki
2010-01-12 18:14         ` Jesse Barnes
2010-01-13  8:06           ` David John
2010-01-10 22:56 ` [Bug #14898] ksoftirqd problem Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14895] BUG in kernel 2.6.32 when using luks encrypted root and RAID0 Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14896] REGRESSION for RT2561/RT61 in 2.6.32, related to power saving Rafael J. Wysocki
2010-01-11 14:58   ` Alan Stern
     [not found]     ` <Pine.LNX.4.44L0.1001110957440.2873-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-01-11 19:51       ` Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14933] OOM killer unexpectedly called Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14903] Kernel panic - not syncing: Attempted to kill init! Rafael J. Wysocki
2010-01-13  2:55   ` Américo Wang
     [not found]     ` <2375c9f91001121855j2884e594nd6f9801231c1bb83-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-13 21:54       ` Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14922] 2.6.32 seemed to have broken nVidia MCP7A sata controller Rafael J. Wysocki
2010-01-10 23:17   ` Robert Hancock
2010-01-11 19:54     ` Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14943] nfs regression? Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14970] IBM Trackpoint Device changed - Scrolling doesn't work Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #14939] drm: random hang with i915 Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #15042] socket(PF_INET6 hangs when ipv6 not yet initialized Rafael J. Wysocki
2010-01-10 22:56 ` [Bug #15040] High cpu temperature with 2.6.32 Rafael J. Wysocki
2010-01-11 12:49 ` 2.6.33-rc3-git3: Reported regressions 2.6.31 -> 2.6.32 Rafał Miłecki
     [not found]   ` <b170af451001110449w134af1f9we804205a5febcaca-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-11 19:56     ` Rafael J. Wysocki
2010-01-11 15:15 ` [linux-pm] " Alan Stern
     [not found]   ` <Pine.LNX.4.44L0.1001111008080.2873-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-01-11 16:47     ` Clemens Fruhwirth
2010-01-11 19:58     ` Rafael J. Wysocki
2010-01-12 17:39 ` Johannes Engel
     [not found]   ` <4B4CB3B5.3060900-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2010-01-12 22:02     ` Rafael J. Wysocki
  -- strict thread matches above, loose matches on Subject: below --
2010-02-01  0:38 2.6.33-rc6: " Rafael J. Wysocki
2010-02-01  0:43 ` [Bug #14670] i915: playing video via XVideo extension makes the screen flicker Rafael J. Wysocki
2010-02-05 18:49   ` Jesse Barnes
2010-01-24 22:15 2.6.33-rc5: Reported regressions 2.6.31 -> 2.6.32 Rafael J. Wysocki
2010-01-24 22:22 ` [Bug #14670] i915: playing video via XVideo extension makes the screen flicker Rafael J. Wysocki
2010-01-27 17:59   ` Jesse Barnes
2010-01-27 22:12     ` Thomas Meyer
2009-12-29 15:26 2.6.33-rc2: Reported regressions 2.6.31 -> 2.6.32 Rafael J. Wysocki
2009-12-29 15:28 ` [Bug #14670] i915: playing video via XVideo extension makes the screen flicker Rafael J. Wysocki
2009-12-29 21:02   ` Thomas Meyer
     [not found]     ` <1262120568.3523.4.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-12-29 22:38       ` Rafael J. Wysocki

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=1263419320.2250.6.camel@localhost.localdomain \
    --to=thomas-vsytu1qij5c@public.gmane.org \
    --cc=eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org \
    --cc=jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org \
    --cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=rjw-KKrjLPT3xs0@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 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).