From: Gérard Roudier <groudier@club-internet.fr>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Jeff Garzik <jgarzik@mandrakesoft.com>,
Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: st corruption with 2.4.3-pre4
Date: Tue, 20 Mar 2001 20:50:58 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.10.10103202029370.1698-100000@linux.local> (raw)
In-Reply-To: <Pine.LNX.4.05.10103202024310.4053-100000@callisto.of.borg>
On Tue, 20 Mar 2001, Geert Uytterhoeven wrote:
> On Tue, 20 Mar 2001, Geert Uytterhoeven wrote:
> > On Mon, 19 Mar 2001, Jeff Garzik wrote:
> > > Is the corruption reproducible? If so, does the corruption go away if
> >
> > Yes, it is reproducible. In all my tests, I tarred 16 files of 16 MB each to
> > tape (I used a new one).
> > - test 1: 4 files with failed md5sum (no further investigation on type of
> > corruption)
> > - test 2: 7 files with failed md5sum, 7 blocks of 32 consecutive bytes were
> > corrupted, all starting at an offset of the form 32*x+1.
> > - test 3: 7 files with failed md5sum, 7 blocks of 32 consecutive bytes were
> > corrupted, all starting at an offset of the form 32*x+1.
> >
> > The files seem to be corrupted during writing only, as reading always gives the
> > exact same (corrupted) data back.
> >
> > Copying files from the disk on the MESH to a disk on the Sym53c875 (which also
> > has the tape drive) shows no corruption.
>
> I did some more tests:
> - The problem also occurs when tarring up files from a disk on the Sym53c875.
> - The corrupted data always occurs at offset 32*x (the `+1' above was caused
> by hexdump, starting counting at 1).
> - The 32 bytes of corrupted data at offset 32*x are always a copy of the data
> at offset 32*x-10240.
> - Since 10240 is the default blocksize of tar (bug in tar?), I made a tarball
> on disk instead of on tape, but no corruption.
> - 32 is the size of a cacheline on PPC. Is there a missing cacheflush
> somewhere in the Sym53c875 driver? But then it should happen on disk as
> well?
The only PCI transaction that requires the cache line size to be correctly
configured is PCI WRITE and INVALIDATE. This transaction may be used by
the 875 only for data read from a SCSI device and DMAed to memory.
Note that the controller may use optimized PCI transactions only if the
cache line size is configured in its PCI device configuration space.
Otherwise only normal PCI memory read and PCI memory write transactions
will be used.
Could you check if the cache line size is configured for your 875?
Let me imagine it is so. Btw, I may be wasting my time if it is not ...
Then the 875 may also use PCI read multiple transactions and/or PCI read
line transactions when reading data from memory. If the corruption is due
to the use of these transactions, the the PCI-HOST bridges may well be the
culprit, in my opinion.
Anyway, since the sym53c8xx driver does not try to change the configured
cache line size on PPC, I would suggest to try again the same tests with
the cache line size set to zero for the 875. You may hack the driver code
or the PPC pci code if needed, for example, for value zero to be written
in the proper place in the PCI configuration space of the 875.
Gérard.
next prev parent reply other threads:[~2001-03-20 22:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3AB63F5F.B7C3E71A@mandrakesoft.com>
2001-03-20 9:03 ` Geert Uytterhoeven
2001-03-20 19:29 ` Geert Uytterhoeven
2001-03-20 19:50 ` Gérard Roudier [this message]
2001-03-21 7:19 ` Geert Uytterhoeven
2001-03-22 18:51 ` Geert Uytterhoeven
2001-04-05 18:48 ` Geert Uytterhoeven
2001-04-05 19:37 ` Geert Uytterhoeven
2001-04-06 17:09 ` Gérard Roudier
2001-04-06 7:29 ` Stefano Coluccini
2001-04-06 7:47 ` Geert Uytterhoeven
2001-04-06 14:31 ` Gérard Roudier
2001-04-06 17:20 ` Gérard Roudier
2001-03-20 20:13 ` Problems with SCSI controller !!! Mircea Ciocan
2001-03-19 17:10 st corruption with 2.4.3-pre4 Geert Uytterhoeven
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=Pine.LNX.4.10.10103202029370.1698-100000@linux.local \
--to=groudier@club-internet.fr \
--cc=geert@linux-m68k.org \
--cc=jgarzik@mandrakesoft.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®