From: Grant Grundler <grundler@parisc-linux.org>
To: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Cc: linux-parisc@vger.kernel.org
Subject: Re: HPMC in lba_pat_out8 on rp3440
Date: Mon, 1 Nov 2010 23:32:24 -0600 [thread overview]
Message-ID: <20101102053224.GB14166@lackof.org> (raw)
In-Reply-To: <20101031194623.GA8288@hiauly1.hia.nrc.ca>
On Sun, Oct 31, 2010 at 03:46:26PM -0400, John David Anglin wrote:
> On Sun, 31 Oct 2010, John David Anglin wrote:
>
> > On Sun, 31 Oct 2010, John David Anglin wrote:
> >
> > > Attached hpmc dumps. It appears that struct pci_hba_data *l is
> > > causes the hpmc. Maybe defining some of the DEBUG_LBA* macros
> > > would provide more info.
>
> Attached console output with debug macros enabled. Also, attached
> new hpmc dump as this one seems different.
This is definitely a different problem.
This one is easy to explain.
> [ 0.000000] Linux version 2.6.36+ (dave@mx3210) (gcc version 4.3.5 (GCC) ) #4 SMP Sun Oct 31 14:51:20 EDT 2010
...
> [ 0.000000] Determining PDC firmware type: 64 bit PAT.
...
> [ 0.256000] Found devices:
...
> [ 0.324000] 13. Mercury PCI Bridge at 0xfffffffffed2e000 [0/7] { 13, 0x0, 0x783, 0x0000a }
...
> [ 4.800000] Mercury version TR3.2 (0x32) found at 0xfffffffffed2e000
...
> [ 4.852000] mercury_cfg_read(0+ 0) -> 0xffffffff
> [ 4.852000] mercury_cfg_read(800+ 0) -> 0x1290103c
http://pci-ids.ucw.cz/read/PC/103c
Auxiliary Diva Serial Port
...
> [ 4.892000] mercury_cfg_read(800+ 4) -> 0x146
> [ 4.892000] mercury_cfg_write(800+ 4) <- 0x144 (c)
> [ 4.896000] mercury_cfg_read(800+10) -> 0x0
> [ 4.896000] mercury_cfg_write(800+10) <- 0xffffffff (c)
> [ 4.904000] mercury_cfg_read(800+10) -> 0x0
> [ 4.904000] mercury_cfg_write(800+10) <- 0x0 (c)
> [ 4.904000] mercury_cfg_write(800+ 4) <- 0x146 (c)
Size BAR 0 (offset 0x10)
...
> [ 5.124000] mercury_cfg_read(900+ 0) -> 0x1048103c
Diva Serial [GSP] Multiport UART
> [ 5.124000] mercury_cfg_read(900+ e) -> 0x80
> [ 5.124000] mercury_cfg_read(900+ 6) -> 0x290
> [ 5.128000] mercury_cfg_read(900+34) -> 0x48
> [ 5.128000] mercury_cfg_read(900+48) -> 0x1
> [ 5.136000] mercury_cfg_read(900+49) -> 0x0
> [ 5.136000] mercury_cfg_read(900+ 8) -> 0x7000203
> [ 5.144000] mercury_cfg_read(900+ 6) -> 0x290
> [ 5.144000] mercury_cfg_read(900+34) -> 0x48
> [ 5.152000] mercury_cfg_read(900+48) -> 0x1
> [ 5.152000] mercury_cfg_read(900+49) -> 0x0
> [ 5.152000] mercury_cfg_read(900+3d) -> 0x1
> [ 5.160000] mercury_cfg_read(900+3c) -> 0x0
> [ 5.160000] mercury_cfg_read(900+ 4) -> 0x142
> [ 5.164000] mercury_cfg_write(900+ 4) <- 0x140 (c)
You just shot yourself in the foot. :)
IIRC we just disabled MMIO in order to size the BAR.
So any accesses to that register will cause an HPMC.
hth,
grant
next prev parent reply other threads:[~2010-11-02 5:32 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-31 17:40 HPMC in lba_pat_out8 on rp3440 John David Anglin
2010-10-31 18:02 ` John David Anglin
2010-10-31 19:46 ` John David Anglin
2010-11-02 5:32 ` Grant Grundler [this message]
2010-11-02 5:00 ` Grant Grundler
2010-11-02 6:26 ` Grant Grundler
2010-11-02 14:24 ` John David Anglin
2010-11-02 14:38 ` James Bottomley
2010-11-03 3:19 ` John David Anglin
2010-11-04 15:35 ` Grant Grundler
2010-11-07 19:31 ` John David Anglin
2010-11-10 3:35 ` John David Anglin
2010-11-14 23:42 ` John David Anglin
2010-11-15 2:14 ` John David Anglin
2010-11-16 22:51 ` John David Anglin
2010-11-17 2:21 ` John David Anglin
2010-11-17 5:22 ` Grant Grundler
2010-11-17 5:26 ` Kyle McMartin
2010-11-17 5:42 ` Grant Grundler
2010-11-17 14:38 ` John David Anglin
2010-11-17 15:33 ` Kyle McMartin
2010-11-17 17:45 ` Thibaut VARÈNE
2010-11-17 15:38 ` James Bottomley
2010-11-17 16:03 ` John David Anglin
2010-11-20 21:01 ` John David Anglin
2010-11-21 15:38 ` John David Anglin
2010-11-23 0:51 ` John David Anglin
2010-11-18 15:08 ` John David Anglin
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=20101102053224.GB14166@lackof.org \
--to=grundler@parisc-linux.org \
--cc=dave.anglin@nrc-cnrc.gc.ca \
--cc=linux-parisc@vger.kernel.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