Re: WinXPSP2, Intel Core2Duo, Kernel drivers



Hi Calvin

It has little to do with whether it's supported or unsupported. Human beings
are extremely creative when it comes to making bugs. I figure it's because
we are not being fully debugged.

Well, you can think of my examples as of ones of the bugs if you wish -
no matter how you call them, these are the examples of doing something
you are not supposed to do, which may have undesirable effects (unless
you are 100% sure you know what you are doing)


Testing driver on UP thoroughly is a must IMO.

Certainly, the more thorougly your driver is tested, the better it is
for you. However, it does not mean that your driver has to be "non-SMP
aware" one. In actuality, the very fact that driver is "non-SMP aware"
one somehow implies that it does something it is not supposed to...


Anton Bassov

Calvin Guan wrote:
It has little to do with whether it's supported or unsupported. Human beings
are extremely creative when it comes to making bugs. I figure it's because
we are not being fully debugged.

Testing driver on UP thoroughly is a must IMO.

--
Calvin Guan (DDK MVP)
Sr. Staff Engineer
NetXtreme Vista/Longhorn Server Miniport
Broadcom Corporation
Connecting Everything(r)

<soviet_bloke@xxxxxxxxxxx> wrote in message
news:1157605339.245398.35080@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Calvin

once the driver works fine on SMP machine, it
automatically implies it will work fine on UP one as well.

Believe it or not, this is not true.

My statement is based upon the "bold" assumption that the driver in
question relies only upon the "supported" stuff. Certainly, if it, say,
uses SYNCH_LEVEL directly (i.e. does something that drivers are not
supposed to do), then it may work fine on MP kernel and fail on UP one
- on UP kernel SYNCH_LEVEL equals DISPATCH_LEVEL, although on MP one it
equals CLOCK2_LEVEL. Similarly, if it uses KeQueryPerformanceCounter()
in order to measure the elapsed time(again, something drivers are not
supposed to do), implications may be quite different for UP and MP
kernels. However, as long as it plays by the rules, my statement
holds....



Anton Bassov

Calvin Guan wrote:
<soviet_bloke@xxxxxxxxxxx> wrote in message
news:1157600038.483526.248840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In fact, it just does not make sense to write "non-SMP aware" drivers,
in the first place

well said.

once the driver works fine on SMP machine, it
automatically implies it will work fine on UP one as well.

Believe it or not, this is not true.

--
Calvin Guan (DDK MVP)
Sr. Staff Engineer
NetXtreme Vista/Longhorn Server Miniport
Broadcom Corporation
Connecting Everything(r)


.



Relevant Pages

  • Re: WinXPSP2, Intel Core2Duo, Kernel drivers
    ... Testing driver on UP thoroughly is a must IMO. ... Calvin Guan ... automatically implies it will work fine on UP one as well. ... - on UP kernel SYNCH_LEVEL equals DISPATCH_LEVEL, ...
    (microsoft.public.development.device.drivers)
  • Re: 2.6.30-rc4 kernel
    ... I think there may be a problem with the 2.6.30 kernel that is ... # Generic Driver Options ... # PCI IDE chipsets support ... # Other IDE chipsets support ...
    (Linux-Kernel)
  • 2.6.30-rc4 kernel
    ... kernel panic - not syncing: ... # Generic Driver Options ... # PCI IDE chipsets support ... # Other IDE chipsets support ...
    (Linux-Kernel)
  • [PATCH 18-rc2] Fix typos in /Documentation : N-P
    ... Again, if you're not gonna do synchronization with disk drives (dang, ... -the kernel. ... There are two options specific to PSX driver portion. ... The driver uses the settings from the EEPROM set in the SCSI BIOS ...
    (Linux-Kernel)
  • two scary syslog kernel messages
    ... Sep 20 03:46:06 marvin kernel: kernel BUG at mm/rmap.c:482! ... ACPI: Local APIC address 0xfee00000 ... Allocating PCI resources starting at 80000000 ... ** driver failed to call pci_enable_device. ...
    (Debian-User)

Loading