public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: martin@dalecki.de
Cc: Stephen Lord <lord@sgi.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: A new ide warning message
Date: Fri, 2 Aug 2002 14:30:55 +0200	[thread overview]
Message-ID: <20020802123055.GQ3010@suse.de> (raw)
In-Reply-To: <3D4A771A.9020308@evision.ag>

On Fri, Aug 02 2002, Marcin Dalecki wrote:
> U?ytkownik Stephen Lord napisa?:
> >On Fri, 2002-08-02 at 06:48, Marcin Dalecki wrote:
> >
> >>Uz.ytkownik Jens Axboe napisa?:
> >>
> >>>On Fri, Aug 02 2002, Stephen Lord wrote:
> >>>
> >>>
> >>>>In 2.5.30 I started getting these warning messages out ide during
> >>>>the mount of an XFS filesystem:
> >>>>
> >>>>ide-dma: received 1 phys segments, build 2
> >>>>
> >>>>Can anyone translate that into English please.
> >>>
> >>>
> >>>Well I added that message when switching to the 2.5 style request
> >>>mapping functions, and I think the message is perfectly clear :-). Never
> >>>the less, it means that a segment that came into the ide layer with an
> >>>advertised size of 1 segment was returned from blk_rq_map_sg() as having
> >>>_two_. This can be a problem with dynamically allocated sg table (not
> >>>that ide uses those, but still).
> >>>
> >>>It's a bug and usually a critical one when this happens. I'd be inclined
> >>>to think that Adam's changes in this path are to blame for this error.
> >>
> >>Carefull carefull. it can be that the generic BIO code doesn't honour
> >>the limits Adam was setting properly. And it can be of course
> >>as well the XFS doesn't cooperate properly with those limits as well,
> >>since ther kernel appears to be patched to support them.
> >>
> >
> >
> >Well, this is happening when reading the log up from disk during
> >mount, we will be asking for somewhere around 32K of data at a
> >time, but it might not be well aligned. I will instrument it and
> >report back - will be a few hours, the box is at work and I just
> >tripped it up in some other code, I cannot reset it from here.
> >
> >
> >>It would be helpfull as well to know on which brand of host controller 
> >>chip this was found. In esp. trm290 maybe?
> >
> >
> >Since it is down I cannot give you the ide boot messages right now,
> >but it is a Tyan Tiger BX motherboard using the built in IDE chipset,
> >so pretty generic stuff.
> OK. Could you then deliberately change the following in ide/main.c
> 
> +	/* Most controllers cannot do transfers across 64kB boundaries.
> +	   trm290 can do transfers within a 4GB boundary, so it changes
> +	   this mask accordingly. */
> +	ch->seg_boundary_mask = 0xffff;
> +
> +	/* Some chipsets (cs5530, any others?) think a 64kB transfer
> +	   is 0 byte transfer, so set the limit one sector smaller.
> +	   In the future, we may default to 64kB transfers and let
> +	   invidual chipsets with this problem change ch->max_segment_size. 
> */
> +	ch->max_segment_size = (1<<16) - 512;
> 
> 
> I would in esp. like to see the result of setting  ch->max_segment_size 
> = (1 << 15).

This might not be such a good idea, since the limit-bio-size etc stuff
isn't in yet, depending on _exactly_ how big the bio's xfs are building
are. If they are max 8 pages (I seem to recall so), then yeah the above
test would be nice to see. If they are bigger than 8 pages, then the
above would be a meaningless test.

I'll hack up a rq_dump() function to slap in pcidma.c as well.

-- 
Jens Axboe


  reply	other threads:[~2002-08-02 12:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-02 11:34 A new ide warning message Stephen Lord
2002-08-02 11:38 ` Marcin Dalecki
2002-08-02 11:53   ` Jens Axboe
2002-08-02 11:59     ` Jens Axboe
2002-08-02 13:47       ` Bartlomiej Zolnierkiewicz
2002-08-02 14:20         ` Jens Axboe
2002-08-02 16:01           ` Bartlomiej Zolnierkiewicz
2002-08-02 16:11             ` Jens Axboe
2002-08-03 18:41         ` Marcin Dalecki
2002-08-02 11:47 ` Jens Axboe
2002-08-02 11:48   ` Marcin Dalecki
2002-08-02 11:55     ` Jens Axboe
2002-08-02 12:05     ` Stephen Lord
2002-08-02 12:12       ` Marcin Dalecki
2002-08-02 12:30         ` Jens Axboe [this message]
2002-08-02 12:31           ` Marcin Dalecki
2002-08-02 12:41             ` Jens Axboe
2002-08-02 13:50               ` Steve Lord
2002-08-02 18:34                 ` Bartlomiej Zolnierkiewicz
  -- strict thread matches above, loose matches on Subject: below --
2002-08-03  3:28 Adam J. Richter
2002-08-03  3:32 Adam J. Richter

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=20020802123055.GQ3010@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lord@sgi.com \
    --cc=martin@dalecki.de \
    /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