From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>, mingo@chiara.elte.hu
Subject: Re: Startup IPI (was: Re: test13-pre3)
Date: Wed, 20 Dec 2000 20:29:13 MET-1 [thread overview]
Message-ID: <103B2E14508A@vcnet.vc.cvut.cz> (raw)
On 20 Dec 00 at 19:52, Maciej W. Rozycki wrote:
> > it kills machine; only problem is that 0x1300 wr-rd cycles to VGA apperture
> > take 3.48ms, and this does not correspond with needed 200us udelay.
>
> Hmm, how do you calculate the time? Assuming AGP4x runs at 133MHz and a
> read or write cycle lasts for a single clock tick (I don't know exact AGP
> specs -- please correct me if I'm wrong), I find 0x1300 cycles to finish
> in about 73usecs. The loop execution overhead may double the result and
> it will still fit within 300usecs.
It is easy:
int mfd;
volatile unsigned long* memory;
int i;
mfd = open("/dev/mem", O_RDWR);
memory = mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, mfd, 0x000B8000);
close(mfd);
for (i = 0; i < 0x1300 * 1000; i++) {
*memory = i;
*memory;
}
munmap(memory, 4096);
/usr/bin/time says that program runs for 3.40 - 3.56secs, so after dividing
by 1000 I get 3.4ms... Maybe I should complain to VIA or to Matrox that
it is piece of crap ?
> > Without VIA datasheet I cannot try to disable some PCI features to find
> > which one is culprit, so I'm sorry.
>
> But you may complain to the manufacturer and/or change hardware. I'm
> still uncertain the delay should stay in...
My order was simple: no rambus memory, dual PIII at least on 800MHz
and UDMA66. Yes, maybe I should buy ServerWorks instead of VIA, but
I hoped...
Best regards,
Petr Vandrovec
vandrove@vc.cvut.cz
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2000-12-20 20:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-20 20:29 Petr Vandrovec [this message]
2000-12-21 11:54 ` Startup IPI (was: Re: test13-pre3) Maciej W. Rozycki
-- strict thread matches above, loose matches on Subject: below --
2000-12-19 21:18 Petr Vandrovec
2000-12-20 18:52 ` Maciej W. Rozycki
2000-12-19 18:49 Petr Vandrovec
2000-12-19 20:36 ` ferret
2000-12-20 3:37 ` ferret
2000-12-19 18:03 Petr Vandrovec
2000-12-19 18:27 ` Alan Cox
2000-12-19 0:33 Petr Vandrovec
2000-12-18 23:51 ` Alan Cox
2000-12-19 5:59 ` ferret
2000-12-19 18:30 ` Maciej W. Rozycki
2000-12-18 19:19 Petr Vandrovec
2000-12-18 18:44 ` Maciej W. Rozycki
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=103B2E14508A@vcnet.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=macro@ds2.pg.gda.pl \
--cc=mingo@chiara.elte.hu \
/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.