home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / DAMEM.FAX < prev    next >
Text File  |  1994-12-03  |  10KB  |  244 lines

  1. -SYS3176, HANGS, TSRs: EMS CONFLICTS-    7/18/94
  2.  
  3.        FILE:   OSDAMEM.FAX  - 6/03/94
  4.  
  5.        TITLE:  940603 SYS3176, HANGS, OS/2 2.x EXPANDED MEMORY (EMS)
  6.                       CONFLICTS WITH DOS APPLICATIONS RUNNING IN A
  7.                       VIRTUAL DOS MACHINE (VDM)
  8.  
  9.        DESCRIPTION OF SYMPTOMS:
  10.                DOS applications running in a VDM may have problems
  11.                with expanded memory conflicts (EMS), SYS3176, and
  12.                session locks up.
  13.  
  14.  
  15.        DETAILS OF RESOLUTION:
  16.  
  17.        Many DOS applications, TSRs, or loading device drivers high,
  18.        use Expanded Memory (EMS) when loading.  Some examples of DOS
  19.        applications are spreadsheets, wordprocesssors, databases,
  20.        desktop publishing, and CAD systems.  Several problems 'may'
  21.        occur if EMS is not detected:
  22.  
  23.        1.  SYS3176 error.
  24.  
  25.        2.  The VDM session locks up when starting up the application.
  26.  
  27.        3.  When starting up the application in a VDM, a flash of text
  28.            relating to an adapter conflict appears before it closes
  29.            and goes back to the OS/2 desktop.  It goes by so fast, you
  30.            can hardly see it.
  31.  
  32.  
  33.            -- TSR (Terminate-and-Stay-Resident)
  34.  
  35.               A VDM will close when it detects the TSR terminating,
  36.               in which case, there is no chance for it to become
  37.               resident.  In order to load a TSR you must make a
  38.               Desktop Program Object from the Templates Folder.  On
  39.               the Program page of the Settings Notebook, enter an
  40.               "*" in the Path and File Name field if it does not
  41.                already exist.  Fill in the Parameters field with a
  42.               "/K" followed by the path and program name of the TSR.
  43.               Example:
  44.  
  45.  
  46.                        "/K C:\FT\FTTERM.BAT"
  47.  
  48.               See Vol.  2, Page 200 of the IBM Redbooks for more
  49.               information.
  50.  
  51.  
  52.        4.  Very little expanded memory shows up in the application no
  53.            matter what changes were made to the DOS Settings.
  54.  
  55.           In order to configure EMS support for the OS/2 Virtual DOS
  56.           Machine (VDM), a contiguous 64KB block of RAM is used as
  57.           the EMS Page Frame and must be available wit the Upper
  58.           Memory Block (UMB) between 640KB and 1MB.  That
  59.           address range is between C0000-CFFFF which is exactly
  60.           64KB of memory.
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.           We recommend remapping to the D0000-DFFFF range all adapter
  68.           cards whose ROM and RAM addesses are mapped between the
  69.           C0000-CFFFF range.  The most common adapter cards are
  70.           video, network, modem, and emulation.  Many IBM and
  71.           OEM systems have their Token Ring Adapter cards
  72.           mapped to the C0000-CFFFF region.
  73.  
  74.  
  75.  
  76.        ******   ADDITIONAL INFORMATION FOR EMS MEMORY  ******
  77.  
  78.  
  79.        EMS MEMORY AND CONFLICTS WITH ADAPTER MEMORY
  80.  
  81.  
  82.        Expanded Memory uses memory addresses that sometimes conflict
  83.        with adapters.  EMS needs 64k of contiguous space before it
  84.        can install.  The more adapters you have, the more likely the
  85.        conflict.  Network, disk, and 3270 adapters usually have
  86.        memory present which can prevent EMS activation.
  87.  
  88.        If you have used a EMS emulator before, you are probably aware
  89.        of these conflicts and know some techniques to fix it.  Under
  90.        OS/2 these techniques are slightly different.
  91.  
  92.        There are two techniques to stop the conflict.  The first is
  93.        to use the INCLUDE property ("MEM_INCLUDE_REGIONS").  With
  94.        this property, you can disable the adapter memory for only
  95.        that session and allow EMS to use it instead.
  96.  
  97.        EXAMPLE:
  98.  
  99.        If you have a 3270 adapter, and already have OS/2 Comm Manager
  100.        support, you will not need to use the 3270 memory in a DOS
  101.        session.  To disable the memory in a DOS session, you will
  102.        need to find the address of the 3270 adapter.  This can be
  103.        accomplished by using the reference diskettes on PS/2's.  Once
  104.        the address is known, specify the range in the INCLUDE
  105.        property.  Most IBM 3270 adapters will start at CE000 (0XCE00
  106.        absolute).  The property should be set to:
  107.  
  108.                           CE000-CFFFF
  109.  
  110.        This will allow EMS to use this memory if there is enough
  111.        memory near this range.
  112.  
  113.  
  114.        The second technique is to change the addresses of the
  115.        adapters with the reference diskette.
  116.  
  117.        Example:
  118.  
  119.        On a PS/2 Model 80 ESDI with both a Token Ring and 3270
  120.        adapter, it would be necessary to change the defaults to allow
  121.        EMS to be enabled.
  122.  
  123.  
  124.  
  125.  
  126.  
  127.        Note:  The '0x' prefix on numbers means that it is
  128.        hexadecimal.
  129.  
  130.        Address Use           Address Name    Length (in KBytes)
  131.        ------------          ------------    ------------------
  132.        VGA (Video)           0xA0000-0xBFFFF        128K
  133.        Not in Use            0xC0000-0xC7FFF         32K (Free)
  134.        ESDI Adapter (Disk)   0xC8000-0xCBFFF         16K
  135.        IBM Token Ring ROM    0xCC000-0xCDFFF          8K
  136.        IBM 3270 Adapter      0xCE000-0xCFFFF          8K
  137.        Not in Use            0xD0000-0xD7FFF         32K (Free)
  138.        IBM Token Ring RAM    0xD8000-0xDBFFF         16K
  139.        Not in Use            0xDC000-0xDFFFF         16K (Free)
  140.        PS/2 ROM              0xE0000-0xFFFFF         128K
  141.  
  142.        If you want to use a DOS network redirector and a DOS 3270
  143.        driver in the same session with EMS memory, you would need to
  144.        re-arrange the addresses of the adapters the allow a 64K sized
  145.        window into the range from 0xA0000 to 0xFFFFF.  Since we need
  146.        both VGA and PS/2 ROM, the range will have to be between
  147.        0xC0000 and 0xDFFFF.
  148.  
  149.        There is a total of 80K free in that range, it just is not
  150.        contiguous.  Our goal is to make it contiguous.
  151.  
  152.        Use the PS/2 Reference diskette to change the addresses of the
  153.        adapters.  In this case, it would be best to move the adapters
  154.        from the 0xC0000-0xCFFFF range into the 0xD0000-0xDFFFF range.
  155.  
  156.                       Move ESDI ROM       to 0xD0000
  157.                       Move Token-Ring ROM to 0xD4000
  158.                       Move 3270 RAM       to 0xD6000
  159.  
  160.        The new map would look like:
  161.  
  162.        Address Use        Address Name    Length (in KBytes)
  163.        ------------       ------------    ------------------
  164.        VGA                0xA0000-0xBFFFF       128K
  165.        EMS Memory         0xC0000-0xCFFFF        64K (EMS Range)
  166.        ESDI Adapter       0xD0000-0xD3FFF        16K
  167.        IBM Token Ring ROM 0xD4000-0xD5FFF         8K
  168.        IBM 3270 Adapter   0xD6000-0xD7FFF         8K
  169.        IBM Token Ring RAM 0xD8000-0xDBFFF        16K
  170.        Not in Use         0xDC000-0xDFFFF        16K (Free)
  171.        PS/2 ROM           0xE0000-0xFFFFF       128K
  172.  
  173.  
  174.        The memory not in use for EMS could be used by the XMS Upper
  175.        Memory Blocks.  In this case, the 16K could be used by OS/2
  176.        DOS to load a device driver or TSR high.
  177.  
  178.  
  179.  
  180.  
  181.  
  182.                  *** TO RECONFIGURE THE MEMORY REMAPPING ***
  183.                              ON VARIOUS MACHINES
  184.  
  185.  
  186.        IBM SYSTEMS
  187.  
  188.        Some of the IBM hardware systems:  56 SLC, 57 SLC, 56 SLC2, 57
  189.        SLC2, 76, 77, and 90, have a built in utility program in which
  190.        a backup Reference diskette can be created.  The diagnostics
  191.        to reconfigure the register addresses can be run from the hard
  192.        drive.  We have found that most of these systems have their
  193.        video adapter cards mapped to the C0000-CFFFF region.
  194.  
  195.        -- To start the Utility Program from the hard drive:  Turn on
  196.           the computer and allow the self-tests to finish, press and
  197.           hold down the Ctrl-Alt-Del keys, then release the keys.
  198.           Watch the cursor closely, and when it moves to the
  199.           top-right corner of the screen, press and hold the
  200.           Ctrl-Alt-Ins keys, then release the keys.  (See IBM
  201.           Reference Diskette Instructions below).
  202.  
  203.        IBM VALUE POINT
  204.  
  205.        These systems have their video addresses mapped to the
  206.        A0000-AFFFF range.  These also have to start the utility
  207.        program from the hard drive.  (See instructions from IBM
  208.        Preloads above.)
  209.  
  210.        OTHER IBM PS/2 MICRO CHANNEL SYSTEMS
  211.  
  212.        A Reference Diskette is supplied with each system.  Boot the
  213.        diskette from Drive A. (See IBM Reference Diskette
  214.        Instructions below).
  215.  
  216.        IBM REFERENCE DISKETTE INSTRUCTIONS
  217.  
  218.        When the IBM logo appears, press Enter, select "Set
  219.        Configuration", then "Change Configuration", Select the slot
  220.        and location of the adapter card that is mapped to the
  221.        C0000-CFFFF range and with the 'PF6 Key' toggle up or down to
  222.        a free D0000-DFFFF memory range address.  Press PF10 to Save
  223.        the configuration.  Reboot the machine.  Your goal is to free
  224.        the C0000-CFFFF address range by moving adapter ROM and RAM
  225.        addresses to the D0000-DFFFF range.
  226.  
  227.        EISA / ISA BUS ARCHITECTURE SYSTEMS
  228.  
  229.        Many of these systems have a built in Diagnostics Setup and
  230.        Configuration file.  After a cold boot, the screen will
  231.        display a sequence of keys to press to bring up the Setup.
  232.        Some systems allow only viewing and some allow viewing and
  233.        reconfiguring.  Quite a few adapter cards can only be
  234.        reconfigured by resetting dip switches on the card.  Refer to
  235.        the manufacturer's documentation that came with the card,
  236.        and/or to contact the Point-of-Sale Vendor where you purchased
  237.        the system.
  238.  
  239.  
  240.        Report by:  OS/2 Dosap Anaylst Team - 06/94
  241.                    IBM - Boca Raton, Florida
  242.  
  243. 12/31/99
  244.