Re: could WDM sample code: selsusp work on any platform?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On 28 Aug, 18:46, "Doron Holan [MSFT]" <dor...@xxxxxxxxxxxxxxxxxxxx>
wrote:
just b/c you move to KMDF does not mean you through away alot of your code.
i know alot of companies with drivers that have 100 of thousands of lines of
source that have easily  moved to kmdf.  KMDF changes how the driver
initially processes incoming io, the way you handle an isr or dpc or compute
the answer does not change at all.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.

"matt_sykes" <zzeb...@xxxxxxxxxxx> wrote in message

news:53afb65b-d3c8-4f7c-b3e1-2752e11016e6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 27 Aug, 19:48, "Doron Holan [MSFT]" <dor...@xxxxxxxxxxxxxxxxxxxx>
wrote:





you are right. usbsamp is a replacement for bulkusb.
src\kmdf\osrusbfx2\sys\final shows how to enable USB SS. When starting
from
scratch, esp for usb SS, i see really no point in going to WDM. usb SS is
a
pia to get right and the sample that you start from will be outdated by
the
time you release. at least with KMDF, if we find bugs in the
implemenation,
you pick up the fixes for free in the next minor version release

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no
rights.

"matt_sykes" <zzeb...@xxxxxxxxxxx> wrote in message

news:5c5c3a37-43a5-49bf-85ae-547730495a31@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 26 Aug, 21:03, "Doron Holan [MSFT]" <dor...@xxxxxxxxxxxxxxxxxxxx>
wrote:

you do NOT want to use this sample, it is full of bugs. Get the latest
WDK
(6001) and use the KMDF usbsamp sample. KMDF's implementation of usb
selective suspend is much more robust.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no
rights.

"bluestar" <bluestar8...@xxxxxxxxx> wrote in message

news:b7d548cf-a54e-4963-945b-4e2762e02496@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I found the WDM sample code: selsusp and it will work well when the
device plug-in.
But I have some question if anyone know, please tell me.

(1) can this sample code work on XP-64, Vista 32/64 and Vista SP1
32/64?
(2) If can't work, how to fix it to match all platforms or any sample
to replace it?
(3) If the hardware is ok, does this sample code pass WHQL?

Thanks for your kindly answer.- Hide quoted text -

- Show quoted text -

6001.18000 must be old since the usbsamp it contains doesnt do sel
susp.

But the question was how to implement sel susp in a WDM driver, so
refering him to a KMDF source isnt very helpful even if it is in the
latest 6001 ddk.

Rather than develop KMDF Microsoft would have done better to have
doecumented WDM properly, suplied some propper sample code, and taken
the bugs out of the system components that cause such headaches for
driver developers.

So, apart from Walter Oneys Generic.sys code, IS there any decent
sample WDM sel susp code available?- Hide quoted text -

- Show quoted text -

SS is a pain, but should one be forced to move to KMDF just to
implemet it?    How about the developement time this forces on
companies that have vast libraries of WDM code going back to NT 4 who
now might want to add SS?  You are saying they must re-write the
entire driver!

IMO, Walter Oneys sample code for SS is the best to follow, with the
exception that it doesnt work with usbccgp.sys.- Hide quoted text -

- Show quoted text -

I must admit I havent looked at KMDF in much detail but if one can
just change the interface of the driver then perhaps it does offer
some advantages. Does it also run on XP (I seem to recall from
somewhere that it does)?



.



Relevant Pages

  • Re: could WDM sample code: selsusp work on any platform?
    ... Please do not send e-mail directly to this alias. ... newsgroup purposes only. ... source that have easily moved to kmdf. ... KMDF changes how the driver ...
    (microsoft.public.development.device.drivers)
  • Re: could WDM sample code: selsusp work on any platform?
    ... i know alot of companies with drivers that have 100 of thousands of lines of source that have easily moved to kmdf. ... KMDF changes how the driver initially processes incoming io, the way you handle an isr or dpc or compute the answer does not change at all. ... Please do not send e-mail directly to this alias. ... scratch, esp for usb SS, i see really no point in going to WDM. ...
    (microsoft.public.development.device.drivers)
  • Re: help to handle IRP_MN_STOP_DEVICE and IRP_MN_START_DEVICE in Usb device?
    ... Please do not send e-mail directly to this alias. ... It seems that it won't work correctly in my driver, ... KMDF driver. ... Is modem pausing for any next IRP? ...
    (microsoft.public.development.device.drivers)
  • Re: STATUS_INVALID_PARAMETER returned by WdfUsbTargetDeviceSelectC
    ... make sure that you have symbols for both KMDF and your driver inyour symbol ... Please do not send e-mail directly to this alias. ... I read your blog titled "How can I view the KMDF log for my driver?" ... rewritten USB stack in Vista, device must return a proper value before ...
    (microsoft.public.development.device.drivers)
  • Re: WDFQUEUEs REQUIRE DISPATCH_LEVEL operation on X64/AMD64 platf
    ... there is no difference in the KMDF code for WDFIOQUEUE for x32 and x64, it is all exactly the same. ... perhaps some of the coding patterns have different perf implications between the 2, but the framework does not have any special code between these platforms. ... Our application using the driver, on our system, is designed ... If I do not raise the execution level prior to ...
    (microsoft.public.development.device.drivers)