Driver devmap() failure

Hi all,
Platform: Solaris 10 x86 3/05 (no patches) on a dual-Xeon motherboard. Driver is based on Phil Brown's "base" driver (thanks Phil!) with some input from his "fb" driver. Sun's "Writing Device Drivers" has helped tremendously, but all is not happy...
I'm trying to write a driver for a device that presents a single PCI memory-mapped space of length 0x400 bytes. My driver seems to pick up all the right information from the system and I can access the memory via read() and write(). However, if my test application tries to mmap() the device's address space, it fails with errno == ENXIO. I've traced it down to the driver's devmap() at the point I call devmap_devmem_setup(). This little bundle of joy returns the oh-so-descriptive "-1", which the man page helpfully says "An error occurred". Wow, any more info and my head will explode.
I'm thinking that the problem is somehow related to the length passed to mmap() (and ultimately to devmap_devmem_setup() after rounding up to a page boundary). The system knows that the address space is 0x400 bytes (based on calls to ddi_dev_regsize()), but the rounding rules seem to force the issue that devmap_devmem_setup() should get the page length, not the 0x400.
The offset passed to devmap_devmem_setup() is 0x0, as it should be for this exercise. The man page indicates that rnumber should be 0 for a single register set, so I'm sending in 0 even though the actual register number for the address space is 1 (go figure). The device access attributes are as follows:
DDI_DEVICE_ATTR_V0,
DDI_STRUCTURE_LE_ACC,
DDI_STRICTORDER_ACC
All this seems as if it should work (it looks much like Phil's fb driver and what's presented in Writing Device Drivers), but I get popped at the devmap_devmem_setup(). I've tried everything I can think of and I don't know what else to do with this.
Please help!
Thanks,
Dave

@korki777,
Go to Control Panel -> System -> Hardware -> Devices Manager
Click with right button of Your mouse on each yellow sign and choose properties. Then go to bottom details and paste here device id. This way we will know what it is.
** Say thanks by clicking the "Thumb up" icon which is on the left. **
** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

Similar Messages

  • Windows 7 x64 driver installiation failure for 621...

    Hi,
    I've just installed PC Suite (freshly downloaded) on my Win7 x64 system and it will not install the drivers for my Nokia Navigator 6210.
    It just says driver installiation failure when i try to install it. I've tried restarting my PC and phone. I've been into device manager andunder wireless communication devices it has nokia 6210 navigator USB phone parent with an exclamation mark next to it and the device status says "Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or damaged. (Code 19)"
    ive tried uninstalling the drivers from the device manager window and installing from windows update, which does install drivers, instructs my to restart my PC and after i do it shows the same error in Device manager again.
    PC Suite says i have a 32 bit system but the only version of PC Suite i found was a x86 and x64 bit combined package.
    Here is some info about my system;
    What version of Windows is being used? 7 x64
    What Service Pack is installed? RC
    What version of PC Suite is installed? 7.1.40.1
    What is the connection method, cable, bluetooth or IR? Cable
    PC Connectivity Solution:
    Version 9.44.0.3
    Nokia Connectivity Cable Driver:
    Version 7.1.22.0
    Operating system:
    32-bit Edition
    Language: English
    Language for non-Unicode programs: English
    Detected Internet browsers:
    - Microsoft Internet Explorer 8.0
    - Mozilla Firefox 3.5 (Default browser)
    Detected Bluetooth stacks:
    - Microsoft (Version: 6.1.7600, Build: 16385)

    Hi austempest
    I just tried a quick check at the Windows 7 Compatibility Center  (http://bit.ly/4uZDu2 ) for “PC Suite,” and the search came back that the Sony Ericksson PC Suite isn’t compatible.  There was no tangible return for “Nokia PC Suite,” but I’m beginning to think that perhaps you could try either installing the entire Suite in compatibility mode, or at least try installing the driver in compatibility mode.
    Here are a couple of procedures:
    Installing Software in Compatibility Mode--  http://bit.ly/aSO7U
    Installing hardware in Compatibility Mode--  http://bit.ly/B0tCG
    Hope this helps
    Geoff V
    Windows 7 Client Team

  • Pavillion dv6000: "Device driver" install failure for DVD/CD drive

    The laptop does not install the DVD/CD drive anymore.  Message says the driver for this device failed to install. It is not assigned a drive letter in Win Explorer. Device Manager shows the drive as recognized, but has the yellow triangle/exclamation point...Properties says driver is missing or corrupt.  Needless to say, I know of no "driver" for a CD drive (in modern machines, at least), and nothing related shows up in the driver list on HP webstie for this laptop. I did reinstall the chipset drivers as well as some other driver updates; no change.  Re-seating the drive didn't help.
    I also replaced the original drive with another, and got the same result...driver install failure.
    Any solutions?
    Thanks

    Yes you need to remove upper and lower filters from the registry. Microsoft has a KnowledgeBase article about it with an autofix, but I have had better luck manually editing the registry:
    MS KB

  • Create Driver Store Failure

    Hi,
    I get this error in iManager, when creating the driverstore:
    Error: Create Driver Store Failure
    Driver Store could not be configured: Request (SERVER_ERROR) - bad status
    code (0x500)
    iPrint Lib Error: 0x1000001
    IPP Error: 0x500
    Apache error.log:
    [Thu Sep 20 16:49:39 2007] [warn] mod_ipp: Error performing operation
    IDS_DELETE_CONFIG: /opt/novell/iprint/bin/iprintcnfg program returned an
    error
    [Thu Sep 20 16:49:39 2007] [warn] mod_ipp: Error returned: 0x500
    [Thu Sep 20 16:49:39 2007] [warn] mod_ipp: Error performing operation
    IDS_WRITE_CONFIG_FILE: /opt/novell/iprint/bin/iprintcnfg program returned an
    error
    [Thu Sep 20 16:49:39 2007] [warn] mod_ipp: Error returned: 0x500
    [Thu Sep 20 16:49:39 2007] [warn] IPP Operation error=500, operation=401C
    It is not the Problem shown in TID 3023179.

    Hi,
    try restarting the iPrint daemons - it worked for me.
    Walter
    >>> michael.wagmeister<[email protected]> schrieb
    am
    Sonntag, 03. Februar 2008 um 15:16 in Nachricht
    <[email protected]>:
    > Hi,
    >
    > I get this error in iManager, when creating the driverstore:
    >
    > Error: Create Driver Store Failure
    >
    > Driver Store could not be configured: Request (SERVER_ERROR) - badstatus
    > code (0x500)
    > iPrint Lib Error: 0x1000001
    > IPP Error: 0x500
    >
    >
    > Apache error.log:
    >
    > [Thu Sep 20 16:49:39 2007] [warn] mod_ipp: Error performing operation
    > IDS_DELETE_CONFIG: /opt/novell/iprint/bin/iprintcnfg program returnedan
    > error
    > [Thu Sep 20 16:49:39 2007] [warn] mod_ipp: Error returned: 0x500
    > [Thu Sep 20 16:49:39 2007] [warn] mod_ipp: Error performing operation
    > IDS_WRITE_CONFIG_FILE: /opt/novell/iprint/bin/iprintcnfg programreturned
    > an
    > error
    > [Thu Sep 20 16:49:39 2007] [warn] mod_ipp: Error returned: 0x500
    > [Thu Sep 20 16:49:39 2007] [warn] IPP Operation error=500,operation=401C
    >
    >
    > It is not the Problem shown in TID 3023179.--
    >
    michael.wagmeister----------------------------------------------------------
    --------------michael.wag
    > meister's Profile: http://forums.novell.com/member.php?userid=3874View
    > this thread: http://forums.novell.com/showthread.php?t=310321

  • Print Driver Isolation: What exactly constitues a printer driver instability, failure or bad driver?

    Server OS: Windows 2008 R2 Standard
    The Microsoft PDI blogs and HP PDI Documentation detail PDI prevents a printer driver instability, failure or bad driver problem.
    What exactly constitues a printer driver instability, failure or bad driver? They're rather vague terms. Is it specifically poorly coded drivers, drivers causing problems that are "by design" etc...
    Could someone please explain how PDI knows this?
    OR
    Is it simply a case of using PDI to proxy off print jobs to an isolated host process keeps it separate from the main Spool process and therefore the theory being drivers that cause a problem (any problem?) cannot interfere with the main Spool process?
    Thanks
    Alex

    Thanks for this.
    The reason I ask as we're finding PDI doesn't always prevent the Spooler service from breaking. Specifically hitting 100% CPU usuage and causing the Print Server to grind to a halt.
    (namely another thread here:
    https://social.technet.microsoft.com/Forums/en-US/ea562bee-6356-49c3-ad1f-e86944a30d25/windows-2008-r2-standard-spoolsvexe-process-hitting-100-cpu-usage).
    This is presuming the issue is the print driver that has been coded using "poor coding guidelines" of course. Hence the question.
    "If you would like to debug a few failures, I can point to several scenarios to easily kill the process."
    How do you mean?
    Thanks

  • SMART Hard Drive Imminent failure

    Hi, today when I woke up and started my computer it started up with an error message stating that my hard drive was in for imminent failure. I'm not sure exactly how this has happened. I've never dropped my computer, and it has always been sitting on my desk and has rarely left it. I'm not sure exactly what this means, and it keeps telling me to back it up. 
    I have a HDX16t HP laptop bought around July of 2009. Also one thing to note is that I also have had issues with my battery, in the sense that my computer cannot run on battery or it will shut off. My laptop came like that and I've been meaning to get it fixed but just haven't had the time. 
    Any kind of information will be great. And please let me know whether or not I should take it into some kind of computer repair shop or anything, or if this is something I can fix on my own.
    Thanks!!

    Hi, backup your data as some as possible.
    Contact HP as your laptop is still under warranty.
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • HP Envy Hard Drive Imminent Failure message

    I've been getting this error when I turn on my laptop. It reads "SMART Hard Drive detects imminent failure. To ensure no data loss, backup contents and contact HP"
    I've run the Hard Drive Self Test and it has failed that along with most of the other tests on the list that pops up. My laptop still works fine but I was curious as to if I should get my hard drive replaced and how to go about doing that? My warranty expired at the end of December, though the first instance of  this happened before December. I forgot about it since I usually never turn off my laptop. 
    I've been trying to find out if I could purchase an extended warrantee or another method to get it fixed and replaced through HP. Any help would be appreciated. 
    I have a HP Envy 14-1154ca Beats edition. 

    This is a warning message stating that the hard drive would die soon. Please the backup of all your personal data as the system is currently working fine. Refer the following weblink for more information:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00480479&cc=us&dlc=en&lc=en
    You cannot buy an extended warranty when there is a hardware failure on the unit. I would recommend you just buy another hard drive and then think of buying an extended warranty from HP.
    I am an HP employee.
    Regards,
    Vidya
    Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
    ***Click on "Thumbs up" button to the bottom right side of my post to say thanks!***

  • What is the proceedure for replacing a hard drive (after failure) for RAID 5 with IX4-300D?

    I have the IX4-300D with 4 hard drives (identical Seagate drives) using RAID 5.
    Someday a hard drive will fail and I and I have to replace it. I read through the users manual briefly and I didn't see any documentation on how to perform a hard drive replacement and not lose any data.
    So here are my questions:
    1) I know per the instructions that Lenovo prefers using identical hard drives. Let's say in 2 years, 1 hard drive fails. Most likely, the same model Seagate hard drive will not be available. So will using a replacement hard drive by the same manufacturer with similar specifications work?
    2) Will the front panel (or the software) tell me which hard drive has failed?
    3) What is the proceedure for replacing a hard drive after a failure occurs? I read that the IX4-300D is not hot-swappable. So do I just power the IX4-300D down, replace the hard drive, and turn it back on?
    Solved!
    Go to Solution.

    Hi exceptionalht,
    It is best to replace the hard drive with one that is the same manufacturer, rotational speed, and capacity, so it does not have to be exactly the same model.
    The front panel should show which drive has failed. If not you can check the web interface to find out.
    That is the basic procedure for replacing a hard drive. You can see a more detailed instructions here: Installing hard drives in an ix4-300d 
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • Possible Drive Controller Failure? Would like more informed opinions please

    I normally work on PC's but had a client approach me to work on a MacBook. It's a Core 2 Duo Intel hardware etc..He complained of dead battery, DVD stuck in drive, and no boot. The unit will power on with the AC adaptor plugged in and will boot to a Mac OSX install disk. Initially when I got it I booted to a Tiger install disk and ran disk utility. Found a 160GB drive that had 2 volumes on it. 1 was mountable, the other not. Tried running repair and verify on both the drive and the volume. Error I got referenced an underlying failure. I figured drive was dead or on the way. Booted into single user mode and played with some Unix commands. Still could not mount drive. So..I popped the 160GB out and popped in a 60GB known good HDD. I formatted the 60GB on my PC with NTFS. Booted to Tiger disk..Not recognized. Hmm...Used MacDrive 8 to format disk to HFS+ on my PC and popper it back in. Still doesd not recognize. Drive Utility does not even see the drive. Nor does System Profiler. At this point I just would like to know if I am looking at a failed drive controller (it is STA) or what. The DVD is not hanging off the SATA controller. It is ATA and I am not sure if the board has a dedicated chip for ATA or if it hanhgs off the SouthBridge. Any help or insight would be greatly appreciated...

    Just an idea: If you can group - on the screen - the components that "come and go", then you might be able to position them in an individual panel, and make that alternatively visible and invisible. That would eliminate doing a whole lot of monkeying with component locations at runtime.

  • Internal Hard Drive Boot  Failure leaves external drives locked

    My three week old Mac Pro decided not to restart this morning. It's a long story, but after consulting with Apple Support I had to do a clean install. After restoring my system I discovered that two of my external My Book drives are now locked. These came from my old PPC setup. They mount on the desktop, but I can't open the drives. Permissions are set to custom and a little lock appears on the drive icon. Two other drives, a Maxtor and Acomdata are not affected. It's the same with either FireWire or USB. The support specialist said it's because those drives use Apple Partition Map (APM) instead of GUID. I can read the drives if I log on as Root Administrator, but I can't write to them nor change permissions. This was not an issue up until today's failure. The support spec. basically said that I would have to reformat. These are my media backup drives and I'll have to purchase an additional 1 TB to temporarily move the data. Does anyone know about this issue of APM vs GUID? Thanks.

    Search is indeed my friend. I found this thread which solved my problem
    http://discussions.apple.com/thread.jspa?messageID=7453782&#7453782

  • HLK Test Suite - Printer Driver Test Failures

    Hi,
    I'm trying to run HLK Certification tests for our Printer Driver.  The driver was recently certified for Windows 8.1/2012 Server R2 successfully using Microsoft's HCK2.1 Suite.
    Using the new HLK for Window 10 Tech Preview, I am seeing quite a few failures.  These include:
    1)  "Zero files are copied when Trying to Copy From Path "\\ZTHLK10.qaefi.com\tests\AMD64\print\INFGate\INFGate.exe"....Failing the Task" or "Error: Copying File "C:\hlk\JobsWorkingDir\Tasks\WTTJobRun9803FEBE-06D4-E411-80C1-044B80808003\PTConform.xml.trace"
    Fails"
    It look like the Suite cannot locate it's own files.  For the first example above, I could manually change the path in the test parameters but is that what I'm expected to do?  Shouldn't the Suite know where the tests are located?  I don't
    know about the second issue.  I installed the suite using default settings.
    2)  There are 5 new tests for Mobile Printing.  Does anyone know where I can find guidelines for printer drivers?  I am guessing that our driver needs updates to support Mobile printing but I have not been able to find any documentation.
    Thanks!
    Al

    Hi Alan,
    According to your description, I suggest to contact Windows Hardware Testing and Certification Forum for further help:
    http://social.msdn.microsoft.com/Forums/en-US/whck/threads
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and
    other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • MacPro 1.1 drive SMART failure, need 500GB replacement -- any advice?

    My internal 500GB SATA (Seagate) give SMART status failures since this morning, so I need to replace it a.s.a.p.
    What drive is advisable?
    I want to replace it with another 500GB drive.
    For me drive speed AND read/write noise/loudness are important.
    Any suggestions what to buy?
    Is a faster drive (10k/15k rpm) gonna make my Mac Pro a lot faster or is it waste of money?

    Really...! surprised.
    Let me post some numbers though you can find benchmark and reviews - and I like to see how Barefeats rates drives.
    http://barefeats.com/hard103.html
    http://www.geek.com/articles/chips/review-western-digital-velociraptor-wd3000glf s-hard-drive-20080721/
    http://www.tomshardware.com/reviews/HDD-SATA-VelociRaptor,1914-9.html
    http://www.barefeats.com/harper14.html
    http://www.barefeats.com/hard112.html
    HD Tune: WDC WD1500HLFS-01G6U0 Benchmark
    Transfer Rate Minimum : 74.4 MB/sec
    Transfer Rate Maximum : 121.9 MB/sec
    Transfer Rate Average : 101.7 MB/sec
    Access Time : 7.2 ms
    Burst Rate : 123.7 MB/sec
    CPU Usage : -1.0%
    WDC WD6400AAKS-00A7B0 Benchmark
    Transfer Rate Minimum : 59.1 MB/sec
    Transfer Rate Maximum : 118.4 MB/sec
    Transfer Rate Average : 97.0 MB/sec
    Access Time : 12.8 ms
    Burst Rate : 130.9 MB/sec
    CPU Usage : -1.0%
    Amazon 300GB $229
    http://www.amazon.com/exec/obidos/tg/detail/-/B001FBH0HE/
    Once a week? the 150GB will drop to $159:
    http://www.amazon.com/exec/obidos/tg/detail/-/B001EQQW1A/
    Caviar Blue 640 $68 today:
    http://www.amazon.com/Western-Digital-Caviar-Drive-WD6400AAKS/dp/B0017XUX7O/
    and everytime I wait and hold, the price goes back up the next day!
    Take a look, maybe stripe two, or just get the 150GB model. And maybe 640GB for your non-OS data.
    And if you want a 1TB WD Black $95 to replace the Baraccuda:
    http://www.amazon.com/Western-Digital-Caviar-Black-WD1001FALS/dp/B001C271MA/

  • 2011 imacs multiple hard drive sensor failures

    I work at a call center where we have over 200 2011 imacs.  Lately, they have been coming up with the ? on the folder (hard drive issue).  The drive cannot be seen in disk utility and when running a diagnostic on it, the error code that comes up mentions the hard drive temperature sensor failure.
    So far, in the last 3 weeks, we've had at LEAST 12 machines go down with this.  The machines we have are the 500gb drives -- not the 1T with the recall.  Is  anyone out there having this same issue? 
    Also -- do you know of some kind of bug/script, etc that might cause this?
    Usually, it happens logging onto the Open Directory Domain -- they are able to put a password in, then, the screen flashes white and when it comes back up, has the folder with the question mark on it.
    Outside of sending them in for repairs -- any ideas?
    Thanks.

    This topic is interesting because it may indicate a general problem on some Mid 2011 iMacs.
    Unfortunately, when the question mark appears at startup, the hard drive is damaged, and more when Apple Hardware Test reports a problem with the hard drive fan sensor. There isn't any other solution different to take the Mac to an Apple Store or reseller to get the hard drive replaced.
    I haven't noticed problems with Mid 2011 iMacs hard drives looking here. Maybe one user may come here with a Mid 2011 iMac and report the same problem, but I haven't heard anything about a generalized problem. My advice is that all people with problems with their Mid 2011 iMacs hard drives call Apple, so they can take note of the problem and launch a replacement program, if Apple considers this necessary

  • HP Hard Drive Diagnostic Failure Code VC7C3D-6NF7NV-MFPWWJ-60SJ03 -- What does it mean?

       Hello,   I recently used HP diagnostics (freshly updated) to run an extended diagnostic on the hard drive (Samsung/Seagate ST500LM012). The diagnostic failed within the first minute with the following failure code:   Failure Code: VC7C3D-6NF7NV-MFPWWJ-60SJ03   What actions should this failure code be prompting?   I did a search on the web for this rather elaborate failure code, but the search returned nothing. The system boots and runs with no problems, but the hard drive does have some bad blocks that have been recently picked up by "chkdsk /r" and added to the bad cluster file. A lot of device resets were being being logged to the Windows Event Log, issued by "amdsata" to the hard drive (/Device/Raid0), but since upgrading the amdsata driver to the most recent version from AMD's web site a day ago, the errors have stopped. So far as I can tell, everything else seems to be in order.   Any help from someone at HP (who can hopefully look up the failure code) would be very much appreciated.   Thanks,   EAT

    the meanings to those codes are not made public and only Apple certified technicians have access to them.

  • Hard drive and dvd drive - simultaneous failure

    Hi
    I'm running a 2yr 8 month old PowerPC. G4 1.67ghz with 2gb RAM. Until today, it's been pretty much faultless. I have had issues in the past related to installing updates from Mac. ie. on two separate occasions I took updates only to find that the machine wouldn't re-boot. Issues were resolved using install disks, disk warrior and/or repeated booting.
    Anyway - today:
    I installed the update (Security Update 2008-003 (power PC)). Restarted and all was fine. Sometime later, after considerable use, the machine went to sleep. When I tried to wake it it wouldn't do anything. Eventually a blank grey screen came up with the file icon which alternately flashed a question mark and the finder icon.
    I looked on these boards for suggestions. The best one seemed to be boot from the install disks. Unfortunately there is already an audio disk in the drive. I looked for suggestions to eject but none worked. Eventually, I plugged in my bootable clone of my harddrive. The machine took matters into its own hands and booted from it.
    Once up and running I ran disk utility to check the status of the internal drive. It doesn't come up in the display. Nor does it show on the desktop or the in the finder. Which suggests to me that it's died.
    I then looked to see if I could eject the cd from the DVD drive. i found no icon for the cd on the desktop or in the finder. I checked the "about this mac page" and it tells me "No burning device was found." This in turn suggests that the DVD burner has failed along with the hard drive.
    My immediate thought would be that both parts have just reached the end of their time and given up the ghost. I'm a bit surprised/suspicious though that they seem to have done so in the same moment. And on the day that I downloaded a Security Update.
    Has anyone had a similar problem, if so what did you do? Can anyone suggest anything I may not have thought of to find my missing HD and DVD burner? Would I be best off going to the Mac store in London? Ultimately, is replacing them myself a realistic proposition?
    Help appreciated.
    Ewan

    Thanks Arnie
    Have been thinking along those lines. Especially as, when I boot the machine from the external drive, I can hear the DVD drive whirring. So it's clearly not completely dead.
    e

Maybe you are looking for

  • How to Open a rar file with downloaded software

    I was bothering this forum yesterday trying to find some way to get a file opened that I had downloaded. Today I discovered that my problem was that "rar" files need their own software to enable them to be opened....So I downloaded the software UnRar

  • ALE configuration automatic SO creation

    ABAP Experts, I have ECC PO and as of now user creates manual sales order in other R/3 4.7 which is time consuming, less accurate and erroneous process. I got to know something on ALE configuration where user creates PO in ECC, automatically SO creat

  • Make an if statement generic

    Hi, I have to use if statement three times for three different jComboBoxes. I was wondering if there was a way I could achieve this so I do I have to repeat my if statement 3 times. Could I use a loop?? or since the if statement is small how could I

  • How do I get Photoshop Elements12 to recognize my printer/scanner?

    I have Photoshop Elements6 and just upgraded to 12... but 12 doesn't 'see' my scanner, the import option is grayed out... I just downloaded new drivers for my printer, but that didn't seem to help.    Anyway, I can get my money back for this worthles

  • Flash CS3 Crashes on Publish

    Anyone else getting crashes with their Adobe apps in OS X 10.5.6? Illustrator CS3 just crashed on me when trying to open a PDF and Flash is crashing on me, inconsistently, when I try to publish. I can open the same file and publish sometimes, sometim