From: Arkadiusz Miskiewicz <a.miskiewicz@gmail.com>
To: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Jesse Barnes <jbarnes@virtuousgeek.org>
Subject: Re: 2.6.29 git master and PAT problems
Date: Tue, 7 Apr 2009 11:12:28 +0200 [thread overview]
Message-ID: <200904071112.28949.a.miskiewicz@gmail.com> (raw)
In-Reply-To: <1239058353.4529.7124.camel@localhost.localdomain>
On Tuesday 07 of April 2009, Pallipadi, Venkatesh wrote:
> On Thu, 2009-04-02 at 00:12 -0700, Arkadiusz Miskiewicz wrote:
> > On Thursday 02 of April 2009, Pallipadi, Venkatesh wrote:
> > > On Mon, Mar 30, 2009 at 05:28:15PM -0700, Pallipadi, Venkatesh wrote:
> > > > On Mon, Mar 30, 2009 at 03:31:09PM -0700, Arkadiusz Miskiewicz wrote:
> > > > > On Monday 30 of March 2009, Pallipadi, Venkatesh wrote:
> > > > >
> > > > > More info follows. Now I've switched to
> > > > > e1c502482853f84606928f5a2f2eb6da1993cda1 which contains latest drm
> > > > > fixes and now I get much lower numbers of PAT errors but still.
> > > > >
> > > > > > On Mon, 2009-03-30 at 14:31 -0700, Arkadiusz Miskiewicz wrote:
> > > > > > > On Monday 30 of March 2009, Pallipadi, Venkatesh wrote:
> > > > > > > > Patch here should get rid of these errors.
> > > > > > > >
> > > > > > > > http://marc.info/?l=linux-kernel&m=123788806506230&w=2
> > > > > > > >
> > > > > > > > The patch is in tip and on its way to upstream.
> > > > > > >
> > > > > > > The problem is that kernel I'm running already contains this
> > > > > > > patch (it's merged already). Other ideas?
> > > > > > >
> > > > > > > ratelimiting that error is good IMO anyway.
> > > > > >
> > > > > > Rate limiting will just work around the problem here. Ideally we
> > > > > > should never see these errors. So, it will be better if we can
> > > > > > narrow down on the bug resulting in these error messages.
> > > > >
> > > > > Of course it's better. I'm saying that when these messages "fire"
> > > > > then it's hard to do anything else on the system for a while until
> > > > > these stop.
> > > > >
> > > > > > Can you please send me the output of
> > > > > > # cat /debug/x86/pat_memtype_list
> > > > > > with debugfs mounted.
> > > > > > and
> > > > > > # cat /proc/mtrr
> > > >
> > > > There seems to be two different problems here.
> > > > - We should not have that many single page ranges reserved. That will
> > > > cause a performance problem with drm even without the "freeing
> > > > invalid type" error. - "freeing invalid type" error itself. Seems to
> > > > be caused due to some unbalanced free along the drm path. We tried to
> > > > find anything obvious in the code that may be causing problem here.
> > > > But, haven't found anything so far. Will try to reproduce the problem
> > > > internally and debug it further.
> > >
> > > OK. I think we have root caused the thinko that was resulting in
> > > "freeing invalid type" error. Can you try the below test
> > > patch. Patch is not final version and may need some cleanup.
> >
> > Was testing on linus git as of today +
> > [PATCH] x86, PAT: Remove duplicate memtype reserve in pci mmap
> > + patch from this thread.
> >
> > It doesn't fix the problem. At least I'm able to reproduce "Freeint
> > invalid memtype" by just running http://www.tremulous.net/ game. It also
> > happened when watching youtube with opera. _Maybe_ things are little
> > better because number of "freeing invalid memtype" messages is much lower
> > than before but there is posibility that I simply didn't trigger it
> > fully.
>
> Arkadiusz,
>
> I was finally able to reproduce the problem of "freeing invalid memtype"
> with upstream git kernel (commit 0221c81b1b) + latest xf86 intel driver.
> But, with upstream + the patch I had sent you earlier in this thread
> (http://marc.info/?l=linux-kernel&m=123863345520617&w=2) I don't see
> those freeing invalid memtype errors anymore.
>
> Can you please double check with current git and that patch and let me
> know if you are still seeing the problem.
Latest linus tree + that patch (it's really applied here), xserver 1.6, libdrm
from git master, intel driver from git master, previously mesa 7.4 (and 7.5
snap currently), tremolous.net 1.1.0 game (tremolous-smp binary), GM45 gpu.
To reproduce I just need to run tremolous-smp and connect to some map. When
map finishes loading I instantly get:
1 [ 132.341378] tremulous-smp:5554 freeing invalid memtype d570d000-
d570e000
1 [ 132.341394] tremulous-smp:5554 freeing invalid memtype d570e000-
d570f000
1 [ 132.341409] tremulous-smp:5554 freeing invalid memtype d570f000-
d5710000
1 [ 139.323677] X:5238 freeing invalid memtype d6168000-d6169000
1 [ 139.323698] X:5238 freeing invalid memtype d6169000-d616a000
1 [ 139.323722] X:5238 freeing invalid memtype d616a000-d616b000
1 [ 139.323742] X:5238 freeing invalid memtype d616b000-d616c000
$ dmesg|grep "freeing invalid" | wc -l
6643
> Thanks,
> Venki
--
Arkadiusz Miśkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/
next prev parent reply other threads:[~2009-04-07 9:14 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-30 21:17 2.6.29 git master and PAT problems Arkadiusz Miskiewicz
2009-03-30 21:22 ` Pallipadi, Venkatesh
2009-03-30 21:31 ` Arkadiusz Miskiewicz
2009-03-30 21:45 ` Pallipadi, Venkatesh
2009-03-30 22:31 ` Arkadiusz Miskiewicz
2009-03-30 23:25 ` Arkadiusz Miskiewicz
2009-03-31 0:21 ` Pallipadi, Venkatesh
2009-03-31 7:44 ` Arkadiusz Miskiewicz
2009-03-31 20:45 ` Yinghai Lu
2009-04-01 12:10 ` Arkadiusz Miskiewicz
2009-03-31 23:21 ` Pallipadi, Venkatesh
2009-04-01 10:23 ` Arkadiusz Miskiewicz
2009-04-01 23:04 ` Pallipadi, Venkatesh
2009-04-02 6:40 ` Arkadiusz Miskiewicz
2009-03-31 0:28 ` Pallipadi, Venkatesh
2009-04-02 0:49 ` Pallipadi, Venkatesh
2009-04-03 9:53 ` Alessandro Suardi
2009-04-03 13:59 ` Pallipadi, Venkatesh
2009-04-06 15:37 ` Alessandro Suardi
2009-04-06 18:40 ` Pallipadi, Venkatesh
[not found] ` <200904020912.23071.a.miskiewicz@gmail.com>
2009-04-06 22:52 ` Pallipadi, Venkatesh
2009-04-07 9:12 ` Arkadiusz Miskiewicz [this message]
2009-04-08 1:30 ` Pallipadi, Venkatesh
2009-04-08 7:28 ` Arkadiusz Miskiewicz
2009-04-08 8:17 ` Ingo Molnar
2009-04-08 22:37 ` Pallipadi, Venkatesh
2009-04-15 17:45 ` Arkadiusz Miskiewicz
2009-04-15 18:12 ` Pallipadi, Venkatesh
2009-04-16 22:47 ` [tip:x86/urgent] x86, PAT: Remove page granularity tracking for vm_insert_pfn maps tip-bot for Pallipadi, Venkatesh
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=200904071112.28949.a.miskiewicz@gmail.com \
--to=a.miskiewicz@gmail.com \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=suresh.b.siddha@intel.com \
--cc=venkatesh.pallipadi@intel.com \
/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