[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-kern
Subject:    Re: missing bus_dmamap_unload() in mpt_timeout()?
From:       Manuel Bouyer <bouyer () antioche ! eu ! org>
Date:       2013-11-24 20:46:41
Message-ID: 20131124204641.GA12967 () asim ! lip6 ! fr
[Download RAW message or body]

On Sun, Nov 24, 2013 at 07:29:25PM +0100, Edgar Fuß wrote:
> > You shouln't bus_dmamap_unload() before stopping the IOC.
> Thanks.
> 
> Well, in my case, it's not going to matter because I will, on timeout, 
> restart the IOC anyway.
> But if I could get away without restarting the IOC, what am I supposed to do? 
> I can't know whether the IOC thinks its still processing the command, can I?

No you can't. that's why you have to reset it.
Otherwise, the command descriptor you're going to free may be used by
something else, and the IOC may either read nonsense from it, or corrupt
existing data here.

> Can I instruct the IOC to stop processing this particular command?

AFAIK no.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic