From: flyingfly on


"Satya" wrote:

> >Is it SCSIPORT!ScsiPortFdoDispatch or hal!KfLowerIrql? Or maybe there
> >are still problems with my driver code?
>
> I would guess there are issues in the driver code. Perhaps the memory you
> think you own is freed and claimed by someone else and they are scribbling in
> the same area ?

But I didn't own the memory. I just use Srb->Databuffer which points to the
data buffer for DMA data transmission, the system or upper driver allocated
it for me and I fill in the data buffer with correct data.
All the other operations before and after my StartIo routine are transparent
to me and I can do nothing to affect them.
From: Maxim S. Shatskih on
> But I didn't own the memory. I just use Srb->Databuffer which points to the

Have you set ->MapBuffers to TRUE in port config info?

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: flyingfly on
Yes, I did it. MapBuffers and NeedPhysicalAddresses are all set to TURE.

Not all the READ and WRITE commands ended up in a wrong result.
Just the 4 continous READ following 4 WRITE commands failed.

And I'm still very curious why the address at Srb->DataBuffer and the
translated physical address are not page aligned...
Can this be the reason of the failure?

"Maxim S. Shatskih" wrote:

> > But I didn't own the memory. I just use Srb->Databuffer which points to the
>
> Have you set ->MapBuffers to TRUE in port config info?
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
> maxim(a)storagecraft.com
> http://www.storagecraft.com
>
> .
>
From: flyingfly on
Can u help me to figure it out?

I'm really trapped by this problem.

Thank you and much appreciate!

"Maxim S. Shatskih" wrote:

> > But I didn't own the memory. I just use Srb->Databuffer which points to the
>
> Have you set ->MapBuffers to TRUE in port config info?
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
> maxim(a)storagecraft.com
> http://www.storagecraft.com
>
> .
>