2006-03-18 Benjamin Herrenschmidt * src/radeon_driver.c: (RADEONRestoreMemMapRegisters), (RADEONRestoreCrtcRegisters), (RADEONRestoreCrtc2Registers): * src/radeon_reg.h: Clear the offsets when updating the memory map instead of when enabling the CRTCs and try to make that code more reliable. Doesn't disable the CRTCs beforehand. 2006-03-18 Roland Scheidegger * src/radeon_dri.c: (RADEONDRIGetVersion): * src/radeon_driver.c: (RADEONGetAccessibleVRAM): * man/radeon_reg.h: * src/radeon_video.c: Fix various small cosmetic issues. Change a driver message, get the order right for requesting drm versions, replace the use of some numbers with the respective macro defines in radeon_video.c, and add some more macro defines. None of that really matters. 2006-03-17 Benjamin Herrenschmidt * src/radeon_driver.c: (RADEONGetAccessibleVRAM), (RADEONPreInitVRAM): Add missing return statement (the driver would not start randomly), add RV410 to the list of new generation cards for the memory map setup and fix a bogus message. 2006-03-16 Benjamin Herrenschmidt * src/radeon_driver.c: (RADEONInitCrtcRegisters), (RADEONInitCrtc2Registers), (RADEONDoAdjustFrame): Fix incorrect CRTC2_OFFSET values when using old-style dual head (not MergedFB). Fixes Xinerama for me. 2006-03-16 Benjamin Herrenschmidt * src/radeon_driver.c: (RADEONWaitForVerticalSync), (RADEONWaitForVerticalSync2), (RADEONLoadPalette), (RADEONScreenInit), (RADEONRestoreMemMapRegisters), (RADEONRestoreCrtcRegisters), (RADEONRestoreCrtc2Registers), (RADEONDoAdjustFrame), (RADEONCloseScreen): * src/radeon_reg.h: Add various workarounds that seem to fix some remaning lockup scenarios I'm experiencing with the driver when setting the memory map. Some of the magic delays are a bit dodgy but they seem to work, I suppose I can't do better now without help from ATI. Also removed some really too noisy debug messages. 2006-03-15 Benjamin Herrenschmidt * src/radeon.h: * src/radeon_dri.c: (RADEONDRIScreenInit), (RADEONDRIDoCloseScreen), (RADEONDRIFinishScreenInit), (RADEONDRIStop), (RADEONDRICloseScreen): * src/radeon_driver.c: (RADEONCloseScreen): Fix various issues with DRI & server recycle by putting DRICloseSreen in the normal CloseScreen callback chain at a spot that matches the call to DRIFinishScreenInit in order to unwrap at the right time. 2006-03-15 Luc Verhaegen * configure.ac: * src/Makefile.am: * src/radeon_cursor.c: (RADEONUseHWCursor): * src/radeon_dga.c: (RADEON_BlitRect): * src/radeon_driver.c: (RADEONPreInitAccel), (RADEONScreenInit): Add some autoconf to keep this driver from building EXA when a slightly older server with older exa is installed. The way in which this problem was treated by the actually related developers explains a lot about this driver. 2006-03-13 Benjamin Herrenschmidt * src/radeon_video.c: (RADEONSetTransform): Fix typo in the function setting the color space transformation factors for old radeon 2006-03-13 Benjamin Herrenschmidt * src/radeon_driver.c: (RADEONPreInitVRAM), (RADEONPreInitChipType), (RADEONPreInit): Earliest fix introduced a bug due to another chicken & egg problem in card detection. Now split PreInitConfig into PreInitChipType and PreInitVRAM so that PreInitDRI can be done just in between. Restores proper AGPx4 functionality (when enabled) 2006-03-12 Benjamin Herrenschmidt * src/ati.h: * src/r128_dri.c: * src/r128_driver.c: * src/r128_probe.c: * src/radeon_driver.c: * src/radeon_mm_i2c.c: * src/radeon_probe.c: * src/radeon_video.c: * src/radeon_vip.c: * src/atipciids.h: Stop using xf86PciInfo.h, instead use a local copy of the PCI IDs we need in atipciids.h so we can update the ATI driver independently of the server when new chips are added 2006-03-10 Alan Coopersmith * src/radeon_driver.c: Add #ifdef XF86DRI guards around references to info->allowPageFlip and info->depthMoves, since they are only defined if building with DRI. 2006-03-10 Roland Scheidegger * man/radeon.man: * src/radeon_driver.c: (RADEONSetupMemXAA_DRI), (RADEONScreenInit): Use "FBTexPercent" option for XAA too (only for increasing memory reserved for textures). 2006-03-10 Benjamin Herrenschmidt * src/radeon.h: * src/radeon_dri.c: (RADEONDRIGartHeapInit), (RADEONDRIGetVersion), (RADEONDRIScreenInit), (RADEONDRIInitPageFlip), (RADEONDRIResume), (RADEONDRIAllocatePCIGARTTable): * src/radeon_driver.c: (RADEONInitMemoryMap), (RADEONGetAccessibleVRAM), (RADEONPreInitConfig), (RADEONPreInitDRI), (RADEONPreInitColorTiling), (RADEONPreInit), (RADEONScreenInit), (RADEONRestoreMode): More memory map fixes !!! This time, we add a way to get the DRM kernel module version early, in order to properly limit the framebuffer size when a module that doesn't support the new map is loaded. That will improve backward compatibility. I also made the minimum required kernel module version 1.3 which hopefully shouldn't be a problem for anybody, and cleaned up the ordering in which we test for DRM version to enable features 2006-03-09 Michel Dänzer * src/radeon_driver.c: (RADEONGetClockInfo), (RADEONGetVRamType), (RADEONPreInitConfig): Bugzilla #5766 Patch #4636 - Acknowledge that RN50 only has one CRTC, and use this to distinguish it from RV100. - Fix detection of RN50 memory type and bus width. - Model RN50 memory bandwidth limits by capping the pixel clock range based on memory clock, bpp and memory bus width. (ATI Technologies Inc.) 2006-03-03 Michel Dänzer * man/radeon.man: * src/radeon_driver.c: (RADEONScreenInit): * src/radeon_exa.c: (RADEONSetupMemEXA): Add Option "FBTexPercent" to override the amount of video RAM reserved for OpenGL textures with EXA. 2006-03-02 Benjamin Herrenschmidt * src/radeon_driver.c: (RADEONPreInitConfig): Fix the fix ... I didn't interpret PciInfo->size properly and forgot that the function works in Kb not bytes... Ooops. 2006-03-02 Benjamin Herrenschmidt * src/radeon_driver.c: (RADEONInitMemoryMap), (RADEONPreInitConfig): Extend the alignement workaround to post-rv280 chips as well (thanks Hui) and also limit the CPU accessible memory to the size of the PCI BAR size (yeah, it was passed to the driver, I just got blind for a while it seems) 2006-03-01 Benjamin Herrenschmidt * src/radeon_driver.c: (RADEONInitMemoryMap), (RADEONPreInitConfig): Workaround for rv280 bug which needs the framebuffer memory mapping to be aligned to its own size. Also add back limit of 128Mb of mapped fb space for now until I fully sort out what's up with dual function cards. I would really need to access the PCI BAR sizes here but that information seem to be missing from the PCI info passed to the driver. 2006-02-27 Roland Scheidegger * src/atichip.h: * src/atichip.c: * src/radeon_chipset.h: Add the newly added (and tons of previously forgotten ones) pci ids to the ati wrapper too (probably not required for it to work as everything should default to radeon anyway there). 2006-02-26 Benjamin Herrenschmidt * src/radeon.h: * src/radeon_dri.c: (RADEONDRIFinishScreenInit), (RADEONDRIInitPageFlip): * src/radeon_driver.c: (RADEONScreenInit): Fix page flipping with XAA. The new code ended up calling ShadowFBInit() before XAAInit(), which breaks ShadowFB. 2006-02-24 Roland Scheidegger * src/radeon.h: * src/radeon_chipset.h: * src/radeon_driver.c: * src/radeon_probe.c: Add pci ids known to exist (see #4284 for instance). There are still entries which probably don't really exist (cancelled cards and such), leave them as-is. Fix the name of some entries, mostly based on the .inf file of the newest catalyst driver. Use own family id for rv410 and rs400, though there is no different code (yet?). 2006-02-17 Benjamin Herrenschmidt * src/radeon.h: * src/radeon_common.h: * src/radeon_commonfuncs.c: (RADEONWaitForIdle): * src/radeon_cursor.c: (RADEONCursorAllocEXA), (RADEONSetCursorColors), (RADEONSetCursorPosition), (RADEONLoadCursorImage), (RADEONHideCursor), (RADEONShowCursor), (RADEONLoadCursorARGB), (RADEONCursorInit): * src/radeon_dri.c: (RADEONDRIScreenInit), (RADEONDRIFinishScreenInit), (RADEONDRICloseScreen), (RADEONDRIRefreshArea): * src/radeon_driver.c: (RADEONMapFB), (RADEONInitMemMapRegisters), (RADEONInitMemoryMap), (RADEONGetAccessibleVRAM), (RADEONPreInitConfig), (RADEONLoadPalette), (RADEONBlockHandler), (RADEONScreenInit), (RADEONRestoreMemMapRegisters), (RADEONAdjustMemMapRegisters), (RADEONRestoreSurfaces), (RADEONSaveSurfaces), (RADEONChangeSurfaces), (RADEONRestoreMode), (RADEONSaveMemMapRegisters), (RADEONSaveMode), (RADEONSave), (RADEONInitDispBandwidth), (RADEONInitPLLRegisters), (RADEONInitPLL2Registers), (RADEONInit), (RADEONModeInit), (RADEONSaveScreen), (RADEONSwitchMode), (RADEONDoAdjustFrame), (RADEONAdjustFrame), (RADEONEnterVT), (RADEONLeaveVT), (RADEONCloseScreen), (RADEONDisplayPowerManagementSet): * src/radeon_reg.h: * src/radeon_render.c: (RADEONSetupRenderByteswap): Memory map and misc fixes. This completely reworks the way the driver detects available & accessible video memory and initializes the card internal memory map. Along the way, I re-ordered some of the stuffs in pre-init in order to remove some dodgy codepath, fixed various init, exit and vt switch issues, and overall made the driver more robust. The full memory map fix requires an updated DRM. The X driver no longer tries to position the AGP aperture, this becomes entirely DRM responsibility. 2006-02-16 Benjamin Herrenschmidt * src/radeon_accel.c: (RADEONEngineRestore): The engine setup would trigger a bogus line write before the proper addresses are setup, thus causing the card to try to bus master over the system bus to some stale location (usually 0 but could depend on whatever was used before X). Remove that useless init bit, and always setup some good enough engine source & destination pointers in case we have some other spurrious engine activity going on. 2006-02-13 Benjamin Herrenschmidt * src/radeon_exa_render.c: (R100TextureSetup), (R200TextureSetup): Fix EXA acceleration of textures with byteswap or tiling From John Clemens 2006-02-06 Eric Anholt * src/radeon_exa_render.c: Fix a copy'n'paste-o in the EXA render implementation that resulted in [ax]8b8g8r8 pict formats not being supported on r200, but no other issues. 2006-01-19 Daniel Stone * src/radeon_driver.c: Bug #5656: Set all Radeon XPRESS 200 R[CS]4xx-based chips to have IsIGP = 1, fixing modesetting issues. 2006-01-12 Alan Coopersmith * src/theatre200_module.c (theatre200VersRec): * src/theatre_detect_module.c (theatre_detectVersRec): XF86_VERSION_CURRENT -> XORG_VERSION_CURRENT 2006-01-12 Alan Coopersmith * src/radeon_driver.c (RADEONPreInitModes): When failing to parse MetaModes, reset CRT2pScrn to NULL after free'ing it so we don't crash when trying to use it later (such as in RADEONFreeRec). 2006-01-08 Adam Jackson * src/radeon.h: Bug #5523: Make radeon compile without USE_XAA. (Tilman Sauerbeck) 2005-12-20 Kevin E. Martin * configure.ac: Update package version for X11R7 release. 2005-12-19 Alan Coopersmith * README.ati.sgml: * man/radeon.man: Typo fixes, mailing list & url updates, and other changes to prepare for X11R6.9 & 7.0 releases. 2005-12-15 Alan Coopersmith * man/r128.man: Bugzilla #5238 Patch #3978 r128 man page dualhead note update (Alex Deucher) 2005-12-14 Kevin E. Martin * configure.ac: * src/r128_version.h: * src/radeon_version.h: Update package version number for final X11R7 release candidate. Bump driver version number. 2005-12-14 Adam Jackson * src/r128_accel.c: * src/r128_driver.c: * src/radeon_driver.c: * src/radeon_probe.c: Bug #1760: Fix ati wrapper multihead to be dlloader friendly. 2005-12-08 Kevin E. Martin * src/Makefile.am: Add configure options to allow hard-coded paths to be changed. 2005-12-06 Kevin E. Martin * man/Makefile.am: Change *man_SOURCES ==> *man_PRE to fix autotools warnings. 2005-12-03 Kevin E. Martin * configure.ac: Update package version number for X11R7 RC3 release. 2005-12-01 Kevin E. Martin * configure.ac: Remove extraneous AC_MSG_RESULT. 2005-11-20 Adam Jackson * configure.ac: Bump libdrm dep to 2.0. 2005-11-29 Adam Jackson * configure.ac: Only build dlloader modules by default. 2005-11-09 Kevin E. Martin * configure.ac: Update package version number for X11R7 RC2 release. 2005-11-01 Kevin E. Martin * configure.ac: Update pkgcheck depedencies to work with separate build roots. 2005-10-20 Donnie Berkholz * configure.ac: Bug #4831 . Check for x86_64 in addition to amd64 in host_cpu.