RE: statusCRC error

First the irql getting reported is after it was trying to access invalid
address. One of the system routines brings it up to be ready for a possible
crash dump if I could recall correctly. And of course you can find that out
using disassembly window.

My best bet is that probably the sync object is not properly initialized. Is
there by any chance the event object is set in the user mode ?, then
reference problem might be another thing to look at.

-pro

----- Original Message -----
From: “Peter Wieland”
To: “Windows System Software Devs Interest List”
Subject: RE: [ntdev] map registers
Date: Thu, 6 Jan 2005 15:53:56 -0800

>
>
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of VF
> > Sent: Thursday, January 06, 2005 10:38 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] map registers
> >
> > Thus spake Peter Wieland :
> >
> > > Reserving the memory or using AWE won’t work in all situations,
> > since > neither is going to guarantee you get memory that your
> > controller can > read. The only component that really knows what
> > memory windows your
> >
> > Yes, I know. But it should work, because there are no different
> > memory types in the system, all of the system memory is
> > accessible through DMA.
>
> So as long as it’s only ever going to run on this one computer I guess
> you’re fine. Personally I’d feel pretty unsafe taking that bet.
>
> > Does anybody know the UserPfnArray structure?
> > Maybe I allocate the buffer with this function, then map the
> > pages with MmMapIoSpace. Or is this a bad idea?
>
> It’s a bad idea.
>
> >
> > > However if you’re going to try and go down this route, perhaps
> > you > should instead look at MmAllocatePagesForMdl. You could do
> > this to > build multiple MDLs containing physical pages but using
> > no virtual > address mappings.
> >
> > I’ll try this too… Thanks.
> >
> > > So how are you filling this 1GB buffer with data? Is there
> > another > controller that’s going to be writing into it? Or are
> > you copying > data to it from other source.
> >
> > No, a little user program provides the data. (From files on
> > CD/HDD, but the data goes through a couple of conversions, for
> > example, Dolby) Then the driver copies it to the DMA buffer.
>
> Explain again why you’re composing the data in kernel mode? Offhand it
> seems like you could compose it in big user-mode buffers (where address
> space is readily available) and call WriteFile to issue asynchronous
> writes to your driver. The driver requests a scatter-gather list for
> the buffer, then puts those into the big ring of disjoint addresses that
> your controller is reading from.
>
> You’ve already decided to assume that all the memory in your system is
> addressible by your controller, so there won’t be any expensive DMA
> mapping done and you should get very good throughput.
>
> >
> > > -p
> >
> > – Valenta Ferenc Visit me at http://ludens.elte.h u/~vf/
> > This advertising space is for sale
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@windows.microsoft.com To unsubscribe send a blank email
> > to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com


_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

This email trail might be a real CRC problem :-). I did shoot this last
night on ntfsd on a completely different subject (thd ). Howcome it is here
?

-pro

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ramesh K
Sent: Thursday, January 06, 2005 10:03 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] statusCRC error

First the irql getting reported is after it was trying to access invalid
address. One of the system routines brings it up to be ready for a possible
crash dump if I could recall correctly. And of course you can find that out
using disassembly window.

My best bet is that probably the sync object is not properly initialized. Is
there by any chance the event object is set in the user mode ?, then
reference problem might be another thing to look at.

-pro

----- Original Message -----
From: “Peter Wieland”
To: “Windows System Software Devs Interest List”
Subject: RE: [ntdev] map registers
Date: Thu, 6 Jan 2005 15:53:56 -0800

>
>
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of VF
> > Sent: Thursday, January 06, 2005 10:38 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] map registers
> >
> > Thus spake Peter Wieland :
> >
> > > Reserving the memory or using AWE won’t work in all situations,
> > since > neither is going to guarantee you get memory that your
> > controller can > read. The only component that really knows what
> > memory windows your
> >
> > Yes, I know. But it should work, because there are no different
> > memory types in the system, all of the system memory is
> > accessible through DMA.
>
> So as long as it’s only ever going to run on this one computer I guess
> you’re fine. Personally I’d feel pretty unsafe taking that bet.
>
> > Does anybody know the UserPfnArray structure?
> > Maybe I allocate the buffer with this function, then map the
> > pages with MmMapIoSpace. Or is this a bad idea?
>
> It’s a bad idea.
>
> >
> > > However if you’re going to try and go down this route, perhaps
> > you > should instead look at MmAllocatePagesForMdl. You could do
> > this to > build multiple MDLs containing physical pages but using
> > no virtual > address mappings.
> >
> > I’ll try this too… Thanks.
> >
> > > So how are you filling this 1GB buffer with data? Is there
> > another > controller that’s going to be writing into it? Or are
> > you copying > data to it from other source.
> >
> > No, a little user program provides the data. (From files on
> > CD/HDD, but the data goes through a couple of conversions, for
> > example, Dolby) Then the driver copies it to the DMA buffer.
>
> Explain again why you’re composing the data in kernel mode? Offhand it
> seems like you could compose it in big user-mode buffers (where address
> space is readily available) and call WriteFile to issue asynchronous
> writes to your driver. The driver requests a scatter-gather list for
> the buffer, then puts those into the big ring of disjoint addresses that
> your controller is reading from.
>
> You’ve already decided to assume that all the memory in your system is
> addressible by your controller, so there won’t be any expensive DMA
> mapping done and you should get very good throughput.
>
> >
> > > -p
> >
> > – Valenta Ferenc Visit me at http://ludens.elte.h
u/~vf/
> > This advertising space is for sale
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@windows.microsoft.com To unsubscribe send a blank email
> > to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com


_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
?SRC=lycos10


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Sorry Prokash,

Wrong thread, the wrong message.

Sorry for the inconvenience caused.

Ramesh

----- Original Message -----
From: “Prokash Sinha”
To: “Windows System Software Devs Interest List”
Subject: RE: [ntdev] statusCRC error
Date: Fri, 7 Jan 2005 08:20:04 -0800

>
> This email trail might be a real CRC problem :-). I did shoot this last
> night on ntfsd on a completely different subject (thd ). Howcome it is here
> ?
>
> -pro
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Ramesh K
> Sent: Thursday, January 06, 2005 10:03 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] statusCRC error
>
>
> First the irql getting reported is after it was trying to access invalid
> address. One of the system routines brings it up to be ready for a possible
> crash dump if I could recall correctly. And of course you can find that out
> using disassembly window.
>
> My best bet is that probably the sync object is not properly initialized. Is
> there by any chance the event object is set in the user mode ?, then
> reference problem might be another thing to look at.
>
> -pro
>
> ----- Original Message -----
> From: “Peter Wieland”
> To: “Windows System Software Devs Interest List”
> Subject: RE: [ntdev] map registers
> Date: Thu, 6 Jan 2005 15:53:56 -0800
>
> >
> >
> >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of VF
> > > Sent: Thursday, January 06, 2005 10:38 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re:[ntdev] map registers
> > >
> > > Thus spake Peter Wieland :
> > >
> > > > Reserving the memory or using AWE won’t work in all situations,
> > > since > neither is going to guarantee you get memory that your
> > > controller can > read. The only component that really knows what
> > > memory windows your
> > >
> > > Yes, I know. But it should work, because there are no different
> > > memory types in the system, all of the system memory is
> > > accessible through DMA.
> >
> > So as long as it’s only ever going to run on this one computer I guess
> > you’re fine. Personally I’d feel pretty unsafe taking that bet.
> >
> > > Does anybody know the UserPfnArray structure?
> > > Maybe I allocate the buffer with this function, then map the
> > > pages with MmMapIoSpace. Or is this a bad idea?
> >
> > It’s a bad idea.
> >
> > >
> > > > However if you’re going to try and go down this route, perhaps
> > > you > should instead look at MmAllocatePagesForMdl. You could do
> > > this to > build multiple MDLs containing physical pages but using
> > > no virtual > address mappings.
> > >
> > > I’ll try this too… Thanks.
> > >
> > > > So how are you filling this 1GB buffer with data? Is there
> > > another > controller that’s going to be writing into it? Or are
> > > you copying > data to it from other source.
> > >
> > > No, a little user program provides the data. (From files on
> > > CD/HDD, but the data goes through a couple of conversions, for
> > > example, Dolby) Then the driver copies it to the DMA buffer.
> >
> > Explain again why you’re composing the data in kernel mode? Offhand it
> > seems like you could compose it in big user-mode buffers (where address
> > space is readily available) and call WriteFile to issue asynchronous
> > writes to your driver. The driver requests a scatter-gather list for
> > the buffer, then puts those into the big ring of disjoint addresses that
> > your controller is reading from.
> >
> > You’ve already decided to assume that all the memory in your system is
> > addressible by your controller, so there won’t be any expensive DMA
> > mapping done and you should get very good throughput.
> >
> > >
> > > > -p
> > >
> > > – Valenta Ferenc Visit me at http://ludens.elte.h
> u/~vf/
> > > This advertising space is for sale
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as:
> > > xxxxx@windows.microsoft.com To unsubscribe send a blank email
> > > to xxxxx@lists.osr.com
> > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> –
>
> Find what you are looking for with the Lycos Yellow Pages
> http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
> ?SRC=lycos10
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@lycos.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com



Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10