mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matt Heler <lkml@lpbproductions.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: "Bill Rugolsky Jr." <brugolsky@telemetry-investments.com>,
	linux-kernel@vger.kernel.org,
	"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>
Subject: Re: [PATCH][INCOMPLETE] sata_nv: merge ADMA support
Date: Sun, 26 Mar 2006 20:14:35 -0500	[thread overview]
Message-ID: <200603262014.35466.lkml@lpbproductions.com> (raw)
In-Reply-To: <441F56AD.8020001@garzik.org>

Hey Jeff,

Using Bill's original patch I was able to boot up perfectly with adma support 
enabled on my workstation. Even after several stress tests ( 
tar -cf /dev/null . , and dd if=/dev/sda of=/dev/null ), everything seems to 
be a-ok. However when I tried the sata_nv.c file that you sent to Bill, I 
kept on getting hardlocks, and thus was unable to stress test your version. 

Also for note, I heve not received any of the timeout problems reported by 
Bill. Nor have I had any latency problems with adma enabled.

Matt Heler

On Monday 20 March 2006 8:28 pm, Jeff Garzik wrote:
> Bill Rugolsky Jr. wrote:
> > On Sat, Mar 18, 2006 at 03:56:28AM -0500, Jeff Garzik wrote:
> >>OK, can you try the attached sata_nv.c?  Does it perform to the level
> >>that yours does?
> >
> > Yes, the results are approximately the same.  Booting from port 0 (sda)
> > with ADMA enabled still results in timeouts on port 3 (sdc) while
> > running tars on the RAID1 array on ports 2&3.
>
> Thanks a lot for testing.
>
> I've stored the sata_nv updates I sent you in the 'nv-adma' branch of
> git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git
>
> > ata4: command 0x25 timeout, stat 0x50
> > ata4: command 0x25 timeout, stat 0x50
> > (           xterm-3349 |#0): new 355 us maximum-latency wakeup.
> > (      watchdog/0-4    |#0): new 468 us maximum-latency wakeup.
> > ata4: command 0x35 timeout, stat 0x50
> > ata4: command 0x35 timeout, stat 0x50
> > ata4: command 0x35 timeout, stat 0x50
> > ata4: command 0x35 timeout, stat 0x50
> > ata4: command 0x35 timeout, stat 0x50
> > ata4: command 0x35 timeout, stat 0x50
> >
> > After a while, syncing the filesystems hangs the sync process, though
> > the system continues to function, and I can log in on another VC.
>
> hmmm.  Sounds like some attention should be paid to the error handling
> portion of the code.
>
> > The good news: no long latencies from the status inb() during the
> > period that it is functional! :-p
>
> heh :)
>
> Dumb question, to be certain that I understood your first paragraph:
> you do indeed see at least -some- success talking to devices on port 1,
> 2, 3... ?  i.e. not just port 0 works?
>
> > Booting without ADMA gives the usual stable behavior, with the long
> > latencies from the status inb().
>
> Weird.  Well, now that we appear to have narrowed the non-ADMA case down
> to inb(), I'm going to punt this one as not-my-problem ;-)
>
> > I was a little disconcerted when I saw this this in the trace with ADMA
> > disabled,
> >
> >    tar-21466 0dnh. 3979us : nv_check_hotplug_adma (nv_interrupt)
> >
> > until I realized that this
> >
> >         if (!adma_enabled && host_desc->host_type == ADMA)
> >                 host_desc->host_type--;
> >
> > only alters the outcome of the "host_desc->host_type == ADMA" test, but
> > still uses the ADMA-based hotplug functions.
>
> Yep.  That's part of my general plan to eliminate all the
>
> 	if (adma)
> 		foo
> 	else
> 		bar
>
> type code in favor to create separate ADMA and non-ADMA hooks.
> Particularly in the key hot paths, sata_nv should avoid asking "are we
> ADMA?" all the time.
>
> 	Jeff
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

  parent reply	other threads:[~2006-03-27  1:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17 23:23 Bill Rugolsky Jr.
2006-03-18  0:56 ` Jeff Garzik
2006-03-18  8:06   ` Bill Rugolsky Jr.
2006-03-18  8:56     ` Jeff Garzik
2006-03-19 23:23       ` Bill Rugolsky Jr.
2006-03-21  1:28         ` Jeff Garzik
2006-03-21 12:48           ` Bill Rugolsky Jr.
2006-03-27  1:14           ` Matt Heler [this message]
2006-03-27 16:08             ` Bill Rugolsky Jr.
2006-03-27 21:46               ` Matt Heler
2006-03-27 22:00                 ` Matt Heler
2006-03-30  1:23                   ` Alexander Samad
2006-06-07 22:09               ` Dan Carpenter
2006-06-09 15:32                 ` Bill Rugolsky Jr.

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=200603262014.35466.lkml@lpbproductions.com \
    --to=lkml@lpbproductions.com \
    --cc=brugolsky@telemetry-investments.com \
    --cc=jeff@garzik.org \
    --cc=linux-ide@vger.kernel.org \
    --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®