From: Thomas Richter <thor@math.tu-berlin.de>
To: intel-gfx@lists.freedesktop.org, Daniel Vetter <daniel@ffwll.ch>
Subject: Watermark computation on i830 - potential bug?
Date: Sat, 16 Nov 2013 21:57:43 +0100 [thread overview]
Message-ID: <5287DC47.3050708@math.tu-berlin.de> (raw)
In-Reply-To: <10422_1384614100_528788D4_10422_10146_1_1384614124-3929-1-git-send-email-daniel.vetter@ffwll.ch>
Hi Daniel, dear intel experts,
as reported yesterday, the watermark levels - the values of the FW_BLC
register are completely off on my R31. This renders the display unusable
after Daniel's patch from Friday, both the internal and the external.
The fwater_lo values for planes A and B need to be *at least* 6, while
the current algorithm sets them to one. Thus, the display flickers (now
constantly) because the watermark values are wrong.
I now checked the code in intel_pm.c and I wonder how that actually
works. The display becomes in my experiments *more stable* if I increase
the watermark register value (i.e. FW_BLC), thus higher values refer to
a higher watermark, i.e. the chipset starts fetching data earlier. So
far my observation.
However, the way how intel_calculate_wm is written, it subtracts the
number of necessary entries from the fifo size, and thus is written
under the assumption that the FIFO drains in the direction of increasing
entries. Thus, for the model used in intel_calculate_wm, *higher values*
indicate a *lower watermark*, i.e. would instruct the
DMA engine to fetch data later.
This is in contradiction to my observation where higher values indicate
an *earlier* (and not a later) fetch.
Thus, is the definition of the FW_BLC register possibly simply wrong? Or
is the subtraction in intel_calculate_wm possibly wrong?
Thanks,
Thomas
next parent reply other threads:[~2013-11-16 20:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <10422_1384614100_528788D4_10422_10146_1_1384614124-3929-1-git-send-email-daniel.vetter@ffwll.ch>
2013-11-16 20:57 ` Thomas Richter [this message]
2013-11-17 11:19 ` Watermark computation on i830 - potential bug? Daniel Vetter
[not found] ` <10422_1384687168_5288A640_10422_14582_1_CAKMK7uGa4=Qr=7Z8SQMJm1XpORSVbgPtSXBhZhbjL9K1oA=z6Q@mail.gmail.com>
2013-11-17 11:48 ` Thomas Richter
2013-11-17 15:52 ` Daniel Vetter
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=5287DC47.3050708@math.tu-berlin.de \
--to=thor@math.tu-berlin.de \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@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 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.