PCI mapping on x86

I am writing a nexus driver. One thing I need to do is find the available PCI space not allocated by the BIOS or Solaris and be able to map it.
I am taking a look at the Solaris 10 source code. I have not found yet a way to find the unused avaliable PCI space.
Any help appreciated?

Hi,
if this is Form based application then use FRD trace and you can get all sqls happening in it. Or if it is Web based then use CUSTOM_INIT_SQL profile to set trace for a user and get all sql associated with activity. This will give you all tables required.
regards
Pravin

Similar Messages

  • HP Compaq 615 | no pwm-capable sensor modules | fans at max speed

    Hi,
    I have installed archlinux on an old HP Compaq 615 laptop, everything is working fine, but I have problems with the fan speed. After installing lm_sensors, configuring the sensors with sensors_detect resulted in this:
    Now follows a summary of the probes I have just done.
    Just press ENTER to continue:
    Driver `k10temp' (autoloaded):
    * Chip `AMD Family 11h thermal sensors' (confidence: 9)
    Driver `to-be-written':
    * Bus `SMBus PIIX4 adapter at 0b00'
    Busdriver `i2c_piix4', I2C address 0x4c
    Chip `SMSC EMC1402' (confidence: 6)
    Driver `adm1021':
    * Bus `SMBus PIIX4 adapter at 0b00'
    Busdriver `i2c_piix4', I2C address 0x4e
    Chip `Maxim MAX1617' (confidence: 3)
    Note: there is no driver for SMSC EMC1402 yet.
    Check http://www.lm-sensors.org/wiki/Devices for updates.
    Running pwmconfig leads to the error:
    /usr/bin/pwmconfig: There are no pwm-capable sensor modules installed
    If I execute sensors, I get this:
    k10temp-pci-00c3
    Adapter: PCI adapter
    temp1: +51.4°C (high = +70.0°C)
    (crit = +100.0°C, hyst = +95.0°C)
    max1617-i2c-5-4e
    Adapter: SMBus PIIX4 adapter at 0b00
    temp1: +0.0°C (low = +0.0°C, high = +0.0°C)
    temp2: +51.0°C (low = +45.0°C, high = +60.0°C)
    The fans are blowing at max speed, and the sensors are not providing information on fanspeed. I have found multiple threads on this topic, and tried the following:
    Turning OFF/ON the option "Fan always on while on AC power" .
    Passing the parameter "acpi_enforce_resources=lax" to the kernel via GRUB.
    That didn't help. If I list the modules and search for k10
    lsmod | grep k10
    k10temp 12588 0
    hwmon 12930 3 k10temp,adm1021,radeon
    It seems that k10temp is loaded and used to show the sensor temperatures.  On the fancontrol page of the ArchWiki, there were tips on increasing fan_div, but the problem was for me to find the chipset name.
    The reported chipset `adm-1021` is not available in `/etc/sensors3.conf`, only `adm-1025`. Also, what's up with
    Driver `to-be-written':
    result of `sensors-detect`? Is there any way to stop the fans from blowing at full speed for HP Compaq 615?

    I just tried turning ACPI off, by passing `acpi=off` kernel parameter in the /etc/defaults/grub:
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="acpi=off"
    The fans were dead afterwards, but as the warning on the Acpi Modules Wiki Site states
    2. "Easy" Put acpi=off in the kernel line in your bootloader's configuration file, but that will kill all ACPI functionality like battery charging and power saving.
    killing all ACPI functionality for HP Compaq has left me without the synaptics touchpad and the keyboard. I found on the Ubuntu Community Wiki - Boot Options that `noacpi` shuold be equivalent to `acpi=off`. That sounded weird, so I checked The Kernel Documentation:
    acpi=        [HW,ACPI,X86]
                Advanced Configuration and Power Interface
                Format: { force | off | strict | noirq | rsdt }
                force -- enable ACPI if default was off
                off -- disable ACPI if default was on
                noirq -- do not use ACPI for IRQ routing
                strict -- Be less tolerant of platforms that are not
                    strictly ACPI specification compliant.
                rsdt -- prefer RSDT over (default) XSDT
                copy_dsdt -- copy DSDT to memory
                See also Documentation/power/runtime_pm.txt, pci=noacpi
    noacpi        [X86] Do not use ACPI for IRQ routing
                    or for PCI scanning.
    Seeing that the options are in fact different, I tried the `noacpi` thinking that "disabling the use of ACPI for IRQ routing or for PCI scanning" ( I have no clue what that means ) might just do the trick. So back to `/etc/default/grub`
    GRUB_CMDLINE_LINUX_DEFAULT="noacpi"
    I updated the grub.cfg with
    grub-mkconfig -o /boot/grub/grub.cfg
    and removed:  acpid, Cpu Frequency Scaling, and I cleaned up `mkinitcpio.conf` of everything :
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run last, so it may be used to
    # override the actual binaries included by a given hook
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect block filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev block filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev block mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev block lvm2 filesystems"
    ## NOTE: If you have /usr on a separate partition, you MUST include the
    # usr, fsck and shutdown hooks.
    HOOKS="base udev autodetect modconf block filesystems keyboard fsck"
    # COMPRESSION
    # Use this to compress the initramfs image. By default, gzip compression
    # is used. Use 'cat' to create an uncompressed image.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    #COMPRESSION="lz4"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    rebuilt the kernel with `mkinitcpio -p linux` and rebooted. It seems to be working. What I don't know is why. Anyway, I wanted to post this in case someone comes across the same problem with HP Compaq <615> k10temp driver.  I still get the error
    /usr/bin/pwmconfig: There are no pwm-capable sensor modules installed
    so I can only guess that for this specific laptop, there is an IRQ problem, and using `noacpi` solves it. This is the 6th time I've rebooted without hearing the fans at max, when I use the machine, the fan speed is adjusted for the tempereature, even without pwmconfig/fancontrol. My guess is that BIOS is doing it, if someone knows more about this stuff, I would like to hear abuot it. I'll use the machine for the next few days, if the fans behave properly, I'll mark the thread solved.

  • PCI I/O Port, IRQ, DMA problem in  Solaris 9 x86

    H, I am writing a PCI RADI card driver. I have a problem about the PCI resource.
    After Solaris system call my driver's attach routine, and my driver map the PCI resource
    (I/O port, DMA, PCI) success. How do I to verify that the mapping is correct?
    Is there any superuser command to show the mapping resource?
    Or I can write code to display these resource in my driver?
    Do anyone have sample code?
    Regards,
    Roger

    Your update_drv command looks ok.
    AFAIR, update_drv was a new feature for one of the S9 update
    releases. I'm not sure if it was present in the first S9 release, and if
    it supports all of the update_drv features from S10.
    Maybe the S9-x86 patch 118462-01 helps.
    If it still doesn't work with that patch applied, just add the new
    driver binding to the /etc/driver_aliases file and reboot:
    skge "pci1558,700"

  • Problem with obj\x86\Debug\Bing.Maps\Themes\Generic.xbf

    Hi, I updated an app I had from windows 8 to windows 8.1, I updated the bing map sdk to 8.1 so I could use the latest dll's, but since then, randomly sometimes appears the next message:
    It disappears when you clean the solution and you reload it again, but anytime soon, it appears again. It doesn't seem to follow any pattern, I tried to uninstall and install it again, but nothing seems to solve the problem. It's very annoying because sometimes
    it appears every 5 minutes, and I waste lot of time cleaning and rebuilding the solution... any clues ? Thanks!
    Fernando Urkijo Cereceda

    To solve this problem do this steps
    1-in your project search for files name "Generic.xbf"
    2- copy one of these files that will appear in search result to this  this path
    obj\x86\Debug\Bing.Maps\Themes\
    in your project then build your app  again
    see this video explain more
    https://www.youtube.com/watch?v=Go704egNJqs

  • Solaris 10 x86 goes to reboot mode after installing Sun x4 PCIe Quad card

    I have an x4200 server installed with solaris 10 x86 11/06 OS. After installing the OS it comes up fine.
    Now, When I install an SUN x4 PCIe Quad Gigabit Ethernet card on PCI slot 0 and on the power up server does not comes up. It gpes into the reboot mode.
    bash-3.00# uname -a
    SunOS server1-1 5.10 Generic_118855-33 i86pc i386 i86pc
    Does any one has face this issue..

    Solution found:
    First tried to login using "console login" when solaris booted up, before the desktop login window appeared. Then, run command "kdmconfig", changed the video device to X86 VESA compatible device, which is from the x86 driver and porting kit for solaris, then test/save and exit. After that, reboot the system. Now it is working, not perfect though (due to my old monitor) :)-

  • PLZ. HELP !!!  ---  HOW TO Configure my "Internal PCI MODEM" in Sol9-X86.

    Hi Folks!!
    I am Karthi from India and have recently purchased Solaris 9 for X86 Platform.
    I am really at a loss as to how to configure my Connexant-based Internal PCI MODEM.
    Will Solaris 9 recognise my Connexant-based MODEM from an Indian company or do I have to purchase any other "Solaris 9 supported MODEM Chipsets"?
    Can you please help me out by giving any weblink or brief steps to go about it.
    I will be grateful to you and advance thanks to whoever is willing to help this helpless amateur.
    Bye and have a nice day!!!
    Karthi Shanmugam
    [email protected]

    Ok here is a brief answer to your question if it is a Linux HCL modem then you can search on google or check out http://www.linuxant.com/drivers/ for information.
    If it is a winmodem then you pretty much have a worthless modem for running any type of Unix/Linux. However you should be able to buy a Serial Modem for around $30-$50 USD that is compatible with almost anything since they have been around forever and use a different communication scheme than PCI.

  • Sun FastEthernet PCI with MII and x86 Hardware

    Hello
    I have two Sun FastEthernet PCI cards, each with one RJ45 port and a port labeled "MII". Would I be able to use these cards in a PC (Dell Precision 7xx) or x86 hardware in general?
    Thanks
    Matt

    Find the barcode paper sticker on the NIC and read the numbers. Report back here with what you find. That will be the actual part number of the product, in a format of something like
    501-XXXXyyyyWe would be interested in only the first seven digits.
    I vaguely remember that MS Operating Systems (at least from Win9x through WinXP) should recognize it natively from its chipset manufacturer. You wouldn't damage anything by just installing it to a PCI slot and booting your system. Your mileage may vary.
    I'm guessing you may find it to be this *<--link*
    (Ignore the `notes` on that web page, and the embedded URL's are broken as well. It's not a Sun Microsystems web site.)

  • Realtek PCIe GBE network card driver for Solaris10 x86

    Hi Gurus,
    My laptop has a Realtek PCIe GBE network card but I could not find the driver for Solaris10 x86 anywhere, can anybody help me with this issue?
    Thanks

    how about this?
    http://homepage2.nifty.com/mrym3/taiyodo/eng/
    other google hits indicate that there is a realtek driver in OpenSolaris.

  • NI PCIE 6259 Register Map

    I need to write a custom driver for this board. Does anyone know where I can get a regsiter map?

    I had already downloaded DDK and found the Register Map document. At a minumum this is what I need but I thought the information was on the little light side. It would be nice to have some descriptions for the registers and their bit fields. Also, the "M Series Register Map" is a Preliminary document. Any idea when the next version will be available?
    I did not find any information about board specific Register Maps so I assume that this map is good for all 'M' Series boards.
    I was hoping to find something like the "PCI E Series Register-Level Programmer Manual" at: http://digital.ni.com/manuals.nsf/websearch/5978CE4A83119E50862566FA0075F424 .
    Reading through the posts it seems that there is a lot of differences between the 'E' and 'M' series mulit-function DAQs so
    Thank you for the reply.

  • Mapping framebuffer of a pci card..

    Hi all,
    How can i map the framebuffer of a pci card.. ie my pci card base address
    is 0x40000000 as seen from my pentium pc while running NT.. how do i get
    this information in solaris? and how do i map it into my driver so that i
    can update the contents in my frame buffer..
    do i have to write a conf file for my driver for doing these things.. ie
    the driver just maps the framebuffer thats all it has to do... can i use a
    pseudo driver for this purpose?. any help in this area is really appreciated..
    I am using solaris 7 on an intel pc..
    pls help!!
    thanks in advance
    azad

    The 5500, 6500, and Twentieth Anniversary Mac use the same logic board, and have many components in common. If the board you require is the one (similar to a 6500) that has two PCI slots and a Comm-II slot, the one from a 6500 will work, and is claimed to be in-stock at this used computer vendor in the US:
    http://www2.sunrem.com/sun02.w?cat=Power%20Macintosh%206500%2F300
    look down the list for part number 922-2958, for US$20.77.
    If it uses the single PCI slot connector, that is likely to be the one from the 5500, part number 922-2292 in stock for $24.92 on this page:
    http://www2.sunrem.com/sun02.w?cat=Power%20Macintosh%205500%2F250
    Web searches for those part numbers sometimes turn up additional vendors.
    One important note. The connectors on the 6500 board have an offset of at least 1/4 inch to accommodate its thicker backpanel. The traces on the 5500 board go straight up the board from one connector to the other (no offset), because its backpanel is only stamped sheet metal.

  • AXI memory mapped to PCI Express BAR0 size in Root Complex

    I am using AXI memory mapped to PCI express (2.5) IP as a Root complex in my design.
    I have selected the maximum BAR0 Size as 2 GB under PCIE:BARS and AXI-PCIe BAR translation as 0x00000000.
    I want to access a memory in the host side of the Root complex using an endpoint.
    When I tried to access the address more than 0x7FFF_FFFF from the endpoint in my testbench, the transaction is getting lost in the PCIe section of the IP. I don't see any AXI transaction in the output of the AXI.
    Any transaction from the endpoint to address less than 0x80000000 goes through.
    Is this a limitation in the IP?
    What is the solution if we want to access 4GB of memory from the endpoint thorugh the Root complex?

    Hi Suresh,
    This is a known issue with the core.  This is targeted for fix in the next Vivado release, where you will either have the option of selecting a 4G BAR for the RP, or masking out the RP BAR altogether, which will allow the full 4G memory space to accept requests from the downstream devices.  

  • Need internal register info and map for PCI-6036E

    I'm going to be using NI-PCI-6036E Data Acquisition cards using a hard real time extension package for Windows. As a result, we will have to write a driver for the 6036E cards to access them in real time. Consequently, I need a map of and information on the internal registers e.g. a programming model. and the PCI vendor ID and device ID

    I would definitely recommend that you download our Measurement Hardware Driver Development Kit (DDK). This is a free download from our website, and can be found at www.ni.com or at the following direct link.
    NI Measurement Hardware DDK (Driver Development Kit)
    http://sine.ni.com/apps/we/nioc.vp?cid=11737〈=US
    This kit provides development tools and a register-level programming interface for NI data acquisition hardware. This works with E Series devices, including the 6036E.
    For questions specific to the DDK, please leverage the discussion forum catageory "Driver Development Kit (DDK)."
    Best Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • PCI register mapping

    Hi all,
    I have a device as for which I am trying to do a IO_MAPPED driver.
    I am doing on my Ultra60 the following code:
    size_t memory_size;
    for( i=0; i<6; i++ )
    ddi_dev_regsize(dip, i, &memory_size);
    result = ddi_regs_map_setup(dip, i,
    &drx->ioBase.address, 0, mem_size,
    &devAttr, &drx->ioBase.handle);
    printf("ddi_regs_map_setup(,%d,,,0x%X,,)
    returned %d\n", i, mem_size, result );
    if (result == DDI_SUCCESS)
    ddi_regs_map_free(&drx->ioBase.handle);
    On the Ultra60, the reg sizes are:
    ddi_regs_map_setup(,0,,,0x0,,) returned 0
    ddi_regs_map_setup(,1,,,0x100,,) returned 0
    ddi_regs_map_setup(,2,,,0x1000,,) returned -7
    ddi_regs_map_setup(,3,,,0x100,,) returned 0
    ddi_regs_map_setup(,4,,,0x1000,,) returned -7
    ddi_regs_map_setup(,5,,,0x0,,) returned -6
    My question is, if I want to map more than 0x200 sized device memory, how do i do it? Because rnumber 1 & 3 will allow me to map registers of sizes 0x100 each only!
    or am i understanding this wrong?
    any help appreciated!
    Thanks!

    Hi,
    to be a bit more specific:
    you shouldnt have to do any direct mapping of addresses yourself. both the register space, AND the io space of a PCI card should be accessible through
    ddi_regs_map_setup.
    If you download my PCIbase.tar from
    http://www.bolthole.com/solaris/#drivers
    it will give you a helper script called printregs,
    which will show you which register set gets mapped to which address space.
    It's always the same,for the same card. So if printregs says that the iospace memory you care about is in register set 3, then you can pretty much always use
    ddi_regs_map_setup(dip, 3, ....) to map in that space.

  • Solaris 10 x86 (6/06) doesn't recognize Intel PRO 1000 PCI Express Gigabit

    Hi dear all!
    Have problem with onboard Intel Dual port ( Intel 82563EB ) Gigabit Controller on supermicro 5000P(Blackford) chipset's board
    X7DB8R-8 under Solaris 10 x86 6/06.
    Solaris 10 doesn't recognize this onboard controllers.
    And drivers on Intel & Sun web sites aren't available.
    In what way can I make work these onboard network cards under Solaris 10?
    Thanks all in advance who responds.

    HI Sam,
    No at this time, i haven't issue for this problème.
    But, i try intel card soon with a mac pro.
    The xserve detecte the card, but not recognize the drivers for it.
    maybe one day, i have good new.
    Manuel

  • Vantec PCIe SATA controller, Solaris x86

    I've searched all the online resources I can find, and don't see an answer to this. Is there a driver for this SATA controller for Sol. x86, and if so, where would I find it?
    Output of uname -X:
    System = SunOS
    Node = p810
    Release = 5.10
    KernelID = Generic_139556-08
    Machine = i86pc
    BusType = <unknown>
    Serial = <unknown>
    Users = <unknown>
    OEM# = 0
    Origin# = 1
    NumCPU = 4
    Card is a Vantec UGT-IS100R, you can see more about it here:
    http://www.tigerdirect.com/applications/SearchTools/item-details.asp?Sku=V13-2602
    PC is not COTS but homebuilt from various components. Motherboard is Asus M2N68-AM SE2. The card has one hard drive attached, a Western Digital Caviar, 1 TB. The card's a RAID controller, but with one disk it's obviously not doing any RAID stuff, and it recognizes the drive as a non-RAID device.
    Boot drive is a 320 GB SATA connected directly to the motherboard (not to the Vantec). Windows 7, Slackware 12.2, and Solaris all installed just fine; Win7 and Slack recognize the Vantec and attached drive with no problems. Solaris seems to be working well in all other respects.
    Thanks!
    Phil

    A little progress, and some more information.
    1) I had downloaded Solaris 10 longer ago than I thought; I now have the latest-n-greatest (10/09). Output of uname -v is Generic_141445-09. This upgrade eliminated a message I was getting during boot with the older version:
    ahci_port_reset port 1 the device hardware has been initialized and the power-up diagnostics failed
    2) The Vantec card uses the JMicron 363 chip. After doing more web surfing, I found this thread relating to JMicron and OpenSolaris:
    http://opensolaris.org/jive/thread.jspa?messageID=376370
    Essentially I'm getting the same results as the OP in that thread, except that prtconf already shows my card in AHCI mode. cfgadm -la shows the controller there; cfgadm -c configure results in "failed" status for the controller; and no matter what I can't get it to recognize the attached hard drive.
    I don't want to upgrade the card's firmware; having that drive available under Solaris isn't as important as having the card and drive work under Win7 and Slackware, so if I just have to live without it I will. So ... any other ideas? Thanks!
    Phil

Maybe you are looking for

  • Can't send or receive SMS text

    Purchased a Curve on Tuesday and simply extended my current plan which includes texting. My Blackberry tells me I've sent SMS (check mark shows) but no one receives them, and I am not receiving their texts in return. Any help is greatly appreciated!

  • Regarding BW cubes for CS (Customer Service) module

    Hi Experts, I need information regarding BW CUBES, REPORTS AND DATASOURCE for Customer Service(CS) module. Thanks in Advance HR

  • HT204088 How do you know your history

    Hey I wanted to know what I ordered ?

  • Covert symbols to HTML in "Code view"

    Hello, is where any way to find and convert symbols to HTML in Adobe Dreamweaver CC while in "Code view" ? Example: search in open document for & and covert to & I know if you paste text in "Design view" it auto converts to special HTML entry, but ho

  • Installation says not support on this architecture

    I am trying to install creative suite 5 design premium and it tells me that it can't open application because it's not supported on this architecture.  I am running osx 10.5.8 on a Mac G5.  I was told to uninstall my previous CS3 but it is still show