commit c228139d65457bc29c033627c12c76c6197eb05e
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sat Oct 12 12:54:20 2024 -0700

    xf86-video-mga 2.1.0
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 3279df42ed7231d2ed6d2328c66c1e080ad49f39
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Jul 14 13:22:13 2024 -0700

    Fix 2 -Wcalloc-transposed-args warnings
    
    From gcc 14.1:
    
    mga_dri.c: In function ‘MGADRIScreenInit’:
    mga_dri.c:757:40: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
      757 |    pMGADRI = (MGADRIPtr)calloc( sizeof(MGADRIRec), 1 );
          |                                        ^~~~~~~~~
    mga_dri.c:757:40: note: earlier argument should specify number of elements, later size of each element
    mga_dri.c:767:22: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
      767 |       calloc( sizeof(MGADRIServerPrivateRec), 1 );
          |                      ^~~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/-/merge_requests/12>

commit 66ee371516c48c30b67684317a8e3c24ba7f1f4e
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Tue May 14 18:17:54 2024 -0700

    Assume the Xserver provides xf86ModeBandwidth now
    
    It was added by xorg/xserver@1768af38c737f4c14d32f587b51a8ec3d3d6ed5f
    which was included in the xserver 1.10 release, which is now less than
    our minimum required, so we don't need to check for it and provide a
    fallback any longer.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/-/merge_requests/11>

commit af09c0ca1fe1687e5d455103fff781caf8dd9e21
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Tue May 14 16:16:50 2024 -0700

    Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)
    
    Already effectively required by use of XNFcallocarray() introduced in
    xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015.
    
    Allows dropping remnants of code for XAA and pre-pciaccess X servers
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/-/merge_requests/11>

commit e7329f46343ce750e9ee8ae333047a4452d551fc
Author: Enrico Weigelt, metux IT consult <info@metux.net>
Date:   Wed May 8 16:04:16 2024 +0200

    use XNFcallocarray() instead of xnfcalloc macro
    
    xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve
    any practical purpose, so it can go away once all drivers stopped using it.
    
    Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
    Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/-/merge_requests/9>

commit 0d0ae3fd54746ed9bed8ca96269e182187176dc8
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Jan 7 10:09:13 2024 -0800

    Fix warning: declaration of ‘ulIndex’ shadows a previous local [-Wshadow]
    
    mga_g450pll.c: In function ‘MGAG450SetPLLFreq’:
    mga_g450pll.c:326:11: warning: declaration of ‘ulIndex’ shadows a previous local [-Wshadow]
      326 |       int ulIndex;
          |           ^~~~~~~
    mga_g450pll.c:312:11: note: shadowed declaration is here
      312 |    CARD32 ulIndex;
          |           ^~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 3bc8e3b57e0a8e1fb437b3bdd3e9d479f43afc06
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Jan 7 10:02:57 2024 -0800

    Fix 3 -Wmissing-prototypes warnings
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 09df931ce68c0a19e14da60e28fd4fa3b675de9e
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Jan 7 10:00:19 2024 -0800

    Add X.Org's standard C warning flags to AM_CFLAGS
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 14e430cab961dbe02ece71e6475aacd6f257ecee
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Jan 7 09:57:42 2024 -0800

    Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
    
    AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008,
    so it's time to rely on it.
    
    Clears autoconf warnings:
    
    configure.ac:45: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
    configure.ac:45: You should run autoupdate.
    aclocal.m4:3515: AC_PROG_LIBTOOL is expanded from...
    configure.ac:45: the top level
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 58fae3137c5ccd80ea1cb56685cc3e6c6d92bcf6
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Oct 1 11:17:31 2023 -0700

    gitlab CI: ensure libtool is installed in build container
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 951fa4d49c28f069e5a29ed407c8ec8dd678b4cd
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Fri Apr 28 16:26:38 2023 -0700

    Fix -Wold-style-declaration warnings
    
    mga_dac3026.c:77:1: warning: ‘static’ is not at beginning of declaration
     [-Wold-style-declaration]
     const static unsigned char MGADACregs[] = {
     ^~~~~
    mga_dac3026.c:103:1: warning: ‘static’ is not at beginning of declaration
     [-Wold-style-declaration]
     const static unsigned char MGADACbpp8[DACREGSIZE] = {
     ^~~~~
    mga_dac3026.c:108:1: warning: ‘static’ is not at beginning of declaration
     [-Wold-style-declaration]
     const static unsigned char MGADACbpp16[DACREGSIZE] = {
     ^~~~~
    mga_dac3026.c:124:1: warning: ‘static’ is not at beginning of declaration
     [-Wold-style-declaration]
     const static unsigned char MGADACbpp24[DACREGSIZE] = {
     ^~~~~
    mga_dac3026.c:129:1: warning: ‘static’ is not at beginning of declaration
     [-Wold-style-declaration]
     const static unsigned char MGADACbpp32[DACREGSIZE] = {
     ^~~~~
    mga_dacG.c: In function ‘MGAGInit’:
    mga_dacG.c:1118:2: warning: ‘static’ is not at beginning of declaration
     [-Wold-style-declaration]
      const static unsigned char initDAC[] = {
      ^~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 32d6cc797103fbfa663b86718decebbb8d0fefcc
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sat Feb 25 09:11:41 2023 -0800

    Remove "All rights reserved" from Oracle copyright notices
    
    Oracle no longer includes this term in our copyright & license notices.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit e7fa8055eab58fd056d371d2e61f6ec670b23d3c
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Thu Jul 28 17:30:21 2022 -0700

    gitlab CI: stop requiring Signed-off-by in commits
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 37bf1be0fbaed7578f91485a00d37db3f1c84fe3
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Jul 10 17:11:22 2022 -0700

    xf86-video-mga 2.0.1
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 638653561df767b052e372821ffd51c457591202
Author: Raphael Isemann <teemperor@gmail.com>
Date:   Wed Apr 13 12:14:46 2022 +0200

    Fix uninitialized read in MGAEnableSecondOutPut
    
    `MGAGRestore` allocated `ModeInfo` without initializing its memory and then
    passes it into `MGAEnableSecondOutPut` via `MGAEnableSecondOutPut(pScrn, &ModeInfo);`.
    
    `MGAEnableSecondOutPut` then reads the unitialized memory in the line
    `if ( !(pModeInfo->flSignalMode & POS_HSYNC) )`.
    
    This patch just zeroes the memory to prevent those branches to be randomly
    taken.
    
    Signed-off-by: Raphael Isemann <teemperor@gmail.com>

commit a6ab1e08ee8c5a6dfaebe8fc331bd0811ab8d13f
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sat Jan 22 13:06:47 2022 -0800

    gitlab CI: add a basic build test
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 1e4dbef654bd31f5706b4b860f6b34c7e5e5f440
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sat Jan 22 13:05:35 2022 -0800

    Fix spelling/wording issues
    
    Found by using:
        codespell --builtin clear,rare,usage,informal,code,names
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit f74f0504156f2504294cdd9c7f068ab4745a5c4e
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sat Jan 22 12:57:58 2022 -0800

    Build xz tarballs instead of bzip2
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit f227f2f286123a9ca64b567783825a2c18b87971
Author: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date:   Sat May 4 20:43:26 2019 +0200

    configure.ac: fix cross-compilation
    
    AC_CHECK_FILE can't be used when cross-compiling
    
    [Retrieved from:
    https://git.buildroot.net/buildroot/tree/package/x11r7/xdriver_xf86-video-mga/0001-misc-fixes.patch]
    Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

commit 924c310dfecbfb916f0e81c03f1142a401bed056
Author: Kevin Brace <kevinbrace@gmx.com>
Date:   Fri Dec 7 16:43:46 2018 -0800

    Version bumped to Version 2.0.0
    
    Signed-off-by: Kevin Brace <kevinbrace@gmx.com>

commit ada903eea2e138643faa721f37737ed885363bf7
Author: Kevin Brace <kevinbrace@gmx.com>
Date:   Fri Dec 7 16:21:44 2018 -0800

    Version bumped to Version 1.6.901
    
    Signed-off-by: Kevin Brace <kevinbrace@gmx.com>

commit 54f0f0723d4291a23a2f1c10fcf33560f9a4340a
Author: Kevin Brace <kevinbrace@gmx.com>
Date:   Thu Dec 6 20:49:31 2018 -0800

    Remove last remnants of old Matrox HAL
    
    Apparently, commit 94bbeb132c7eda912d1b402a1a91ca7cbbf5e6a1
    missed removing a few more files related to old Matrox HAL.
    
    Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit b293b0956d518b2cc3833d0d2d846301fe35c0a0
Author: Kevin Brace <kevinbrace@gmx.com>
Date:   Thu Nov 29 10:41:23 2018 -0800

    Version bumped to Version 1.6.900
    
    Signed-off-by: Kevin Brace <kevinbrace@gmx.com>

commit c5d295f06c83ba69811c17880e033cbd0fdb52b1
Author: Henry Zhao <henry.zhao@oracle.com>
Date:   Mon Nov 26 13:15:24 2018 -0800

    Write 8 bits instead of 32 to MGAREG_CACHEFLUSH
    
    Fixes misaligned address crash when EXA is enabled on Solaris SPARC
    (Oracle Bug id 22993744)
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 11abbd45e0c93b672a7e8d5730560a6b351c7a9b
Author: Matthieu Herrb <matthieu@herrb.eu>
Date:   Mon Nov 26 21:12:05 2018 +0100

    Use fabs() to compute absolute value of floating point number.
    
    Fixes a warning from clang and looks like it was a real bug.
    
    Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 4ce40b932cdced590af1c32f6f491f63e9a247dd
Author: Kevin Brace <kevinbrace@gmx.com>
Date:   Mon Nov 26 11:03:39 2018 -0800

    Suppression of a compilation error when XAA is not in use
    
    Signed-off-by: Kevin Brace <kevinbrace@gmx.com>

commit 4017c6e91f8938f1f1617e53e30ee1d3d10d490c
Author: Kevin Brace <kevinbrace@gmx.com>
Date:   Mon Nov 26 11:02:30 2018 -0800

    Convert most HAVE_XAA_H conditional compilation labels to USE_XAA
    
    Signed-off-by: Kevin Brace <kevinbrace@gmx.com>

commit c5922dcc3ff26c9b1291e90ecedee35f97bc51c8
Author: Kevin Brace <kevinbrace@gmx.com>
Date:   Mon Nov 26 11:01:33 2018 -0800

    Eliminate set but unused variables
    
    Signed-off-by: Kevin Brace <kevinbrace@gmx.com>

commit 8db8f6b3f323a9d9cd934172c9f4d4a93a6b7394
Author: Kevin Brace <kevinbrace@gmx.com>
Date:   Mon Nov 26 11:00:32 2018 -0800

    Eliminate unused variables
    
    Care had to be taken to properly handle XAA usage situation
    
    Signed-off-by: Kevin Brace <kevinbrace@gmx.com>

commit 94c70f888b3e3b1e4c9f324f188279f276c9cbbd
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Nov 25 14:31:30 2018 -0800

    Update configure.ac bug URL for gitlab migration
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit a939aa56b3af4418d0c026a3775fde7288b0cca7
Author: Mikulas Patocka <mikulas@twibright.com>
Date:   Tue Nov 20 08:41:14 2018 -0800

    mga_drv: fix image corruption due to memcpy reordering
    
    The memcpy specification doesn't specify how the destination is written -
    and on glibc 2.19 memcpy is doing some bytewise writes with the rep stosb
    instruction. These bytewise writes confuse the hardware (because it
    expects 32-bit writes) and result in image corruption.
    
    This patch replaces memcpy with explicit writes, so that the sequential
    write order and 32-bit write size is guaranteed. We use the "volatile"
    attribute to make sure that compiler optimizations won't cause write
    reordering. When reading the memory, we use a structure with "packed"
    attribute to avoid unaligned traps on RISC machines.
    
    Tested-by: Kevin Brace <kevinbrace@gmx.com>
    Signed-off-by: Mikulas Patocka <mikulas@twibright.com>

commit 0f4883f0b8ebfd105d5cee93841bc69f0f2b60b7
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Nov 18 13:25:33 2018 -0800

    Update README for gitlab migration
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 34f37fe119f07e1e7b79964de08ac601a0753a7f
Author: Nicolas Kaiser <nikai@nikai.net>
Date:   Sun May 29 11:36:11 2011 +0200

    fix typo in MGADRIMoveBuffersXAA()
    
    Fix typo in MGADRIMoveBuffersXAA().
    
    Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
    Reviewed-by: Cyril Brulebois <kibi@debian.org>

commit 31544d805f99da54d5d3c658ccc137813dbde52b
Author: Mikulas Patocka <mikulas@twibright.com>
Date:   Tue Feb 13 01:43:13 2018 +0100

    mga_drv: use exa by default
    
    If the Xserver doesn't support XAA, we must turn EXA on by default -
    otherwise we end up with no acceleration at all.
    
    Reviewed-by: Matt Turner <mattst88@gmail.com>
    Signed-off-by: Mikulas Patocka <mikulas@twibright.com>

commit 97c801e49251ffedf0eebd0563c737318433f114
Author: Mikulas Patocka <mikulas@twibright.com>
Date:   Tue Feb 13 01:42:41 2018 +0100

    mga_drv: fix warning
    
    Fix warnings in the MGA driver. There's no functional change.
    
    Reviewed-by: Matt Turner <mattst88@gmail.com>
    Signed-off-by: Mikulas Patocka <mikulas@twibright.com>

commit 767c19e7142da1060586b1ff2b5e7253b6d6276b
Author: Mikulas Patocka <mikulas@twibright.com>
Date:   Tue Feb 13 01:42:27 2018 +0100

    mga_drv: fix structure definition
    
    Fix missing entry in structure definition.
    
    Reviewed-by: Matt Turner <mattst88@gmail.com>
    Signed-off-by: Mikulas Patocka <mikulas@twibright.com>

commit b9aab0dcb171ab936a8581d8287aac3a90652a09
Author: Mikulas Patocka <mikulas@twibright.com>
Date:   Tue Feb 13 01:42:08 2018 +0100

    mga_drv: fix a typo
    
    Fix a typo that causes dynamic symbol lookup failure and xserver crash.
    
    Reviewed-by: Matt Turner <mattst88@gmail.com>
    Signed-off-by: Mikulas Patocka <mikulas@twibright.com>

commit 2998868964b2f3a56b6759fd8dc4462d812dbe1a
Author: Emil Velikov <emil.velikov@collabora.com>
Date:   Mon Jul 17 11:05:57 2017 +0100

    xf86-video-mga: remove the GlxSetVisualConfigs stub and friends
    
    The function was an empty since 2008 at least. Remove it alongside the
    unused GLX visuals code.
    
    With this all the GL/GLX dependencies in the driver are gone.
    
    Cc: Mathieu Larouche <mathieu.larouche@matrox.com>
    Cc: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
    ---
    There's a GLX reference in mga_ucode.h - a file which was seemingly
    never used since day 1. I'm not going to bother with that, since I've
    taken enough of a diversion already ;-)

commit 42fabf69c33d0e803eb661cc06217611bc3c9048
Author: Mathieu Larouche <mathieu.larouche@matrox.com>
Date:   Tue Jun 13 13:43:45 2017 -0400

    xf86-video-mga: Fix to always set HiPri for G200e4 V2
    
      - Changed the HiPri value for G200e4 to always be 0.
      - Added Bandwith limitation to block resolution above 1920x1200x60Hz
    
      - (V2): Pulled out ulMemoryBandwidth of condition so it's always initialized
            as reviewed by : Stefan Dirsch <sndirsch@suse.de>
    
    Reviewed-by: Samer El-Haj-Mahmoud <smahmoud@lenovo.com>

commit e55abc95c2b7f7cb8de73e1e21688fb5b5c08d5c
Author: Mathieu Larouche <mathieu.larouche@matrox.com>
Date:   Tue Feb 7 11:12:14 2017 -0500

    xf86-video-mga: Add support for a new G200eH3 device
    
    - Added support for the new deviceID for G200eH3
    - Added PLL algorithm for the G200eH3
    - Removed the bandwidth limitation for the G200eH3
    
    Signed-off-by: Mathieu Larouche <mathieu.larouche@matrox.com>
    Reviewed-by: Dave Airlie <airlied@redhat.com>

commit 2ccc50072ccb70411e5e32644e74ef7c6b33f628
Author: Mihail Konev <k.mvc@ya.ru>
Date:   Thu Jan 26 14:00:22 2017 +1000

    autogen: add default patch prefix
    
    Signed-off-by: Mihail Konev <k.mvc@ya.ru>

commit b9f57d1717fe9035d354b47e877ae110546d6f28
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Mon Mar 9 12:00:52 2015 +0000

    autogen.sh: use quoted string variables
    
    Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
    fall-outs, when they contain space.
    
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

commit 0b8e81d2a435e190e1a1b81e776423d255b4cb9a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Tue Jan 24 10:32:07 2017 +1000

    autogen.sh: use exec instead of waiting for configure to finish
    
    Syncs the invocation of configure with the one from the server.
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
    Reviewed-by: Emil Velikov <emil.velikov@collabora.com>

commit 7407e79cd62f7209a5fe0265882d0ee3d0007196
Author: Colin Walters <walters@verbum.org>
Date:   Wed Jan 4 17:37:06 2012 -0500

    autogen.sh: Implement GNOME Build API
    
    http://people.gnome.org/~walters/docs/build-api.txt
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit 9ae2ad4ee9b0a9ad64fec0f88b68886d7b0b8663
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Thu Jan 26 11:18:06 2017 +1000

    configure: Drop AM_MAINTAINER_MODE
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

commit 979e0e73eb3424b6a97746e29c8b4a5b7e86196e
Author: Matt Turner <mattst88@gmail.com>
Date:   Tue Jan 17 14:40:48 2017 -0800

    xf86-video-mga 1.6.5
    
    Signed-off-by: Matt Turner <mattst88@gmail.com>

commit fc5d7acc23fcec9d87ca26fadf466fcf107671c0
Author: Mathieu Larouche <mathieu.larouche@matrox.com>
Date:   Wed Jul 20 09:18:49 2016 -0400

    xf86-video-mga: Add support for the new G200e chipset -- V2
    
    - Added PLL algorithm for a new rev of G200e
    - Removed the bandwidth limitation for the new G200e
    
    Fixes : https://bugs.freedesktop.org/show_bug.cgi?id=92540
    
    Change from V1 :
    - Make sure we don't cause issue on previous chips. (Dave Airlie review)
    
    Signed-off-by: Mathieu Larouche <mathieu.larouche@matrox.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit 12781f2e3deb7f6d86fde53134384996a6004894
Author: Mathieu Larouche <mathieu.larouche@matrox.com>
Date:   Fri Jun 17 10:52:42 2016 -0400

    xf86-video-mga: Add support for a new G200eW3 chipset
    
    - Added support for the new deviceID for G200eW3
    - Added PLL algorithm for the G200eW3
    - Added some initialization code for G200eW3
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=92541
    
    Signed-off-by: Mathieu Larouche <mathieu.larouche@matrox.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit df094bfffe4ef097bfd9a569f2d2e35649c1a3c7
Author: Adam Jackson <ajax@redhat.com>
Date:   Tue Jul 19 10:03:56 2016 -0400

    Adapt Block/WakeupHandler signature for ABI 23
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit 72a8b5ef0bcb08d4cde7b329a13a59db35342f58
Author: Thomas Klausner <wiz@NetBSD.org>
Date:   Mon Feb 23 13:26:14 2015 +0100

    Use correct type in function call.
    
    Fixes
    passing argument 2 of 'pci_device_cfg_read_u32' from incompatible pointer type
    pciaccess.h:153:5: note: expected '__uint32_t *' but argument is of type 'CARD32 *'
    
    Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
    Reviewed-by: Connor Behan <connor.behan@gmail.com>

commit f1e6c73be073c8816319104b2fde329bc286f5ec
Author: Connor Behan <connor.behan@gmail.com>
Date:   Mon Aug 24 13:48:29 2015 -0400

    Composite fixup
    
    A driver like this that tries to composite a lot will definitely need to
    avoid crashing for solid pictures.
    
    Signed-off-by: Connor Behan <connor.behan@gmail.com>

commit e6770f7cc11800ab6cc2e88790f357189de7ce32
Author: Connor Behan <connor.behan@gmail.com>
Date:   Mon Aug 24 11:48:16 2015 -0400

    Remove DownloadFromScreen
    
    This hook was broken and did the same thing as a software fallback.
    
    Signed-off-by: Connor Behan <connor.behan@gmail.com>

commit 04432b9c1db255e8e3d39a924f8803f83c407acc
Author: Adam Jackson <ajax@redhat.com>
Date:   Tue May 5 11:05:44 2015 -0400

    Enable write-combining on the framebuffer BAR
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit da1223394ac9b6f3974b0b2570cbf46a2425fc11
Author: Matthew Rezny <matthew@reztek.cz>
Date:   Sun Jun 21 19:50:43 2015 +0200

    MGA DDX: make it possible to find EXA support
    
    Newer versions of the xserver stricter requirements on header order
    which caused the configure tests for EXA support to erroneously fail.
    Since XAA was already removed from an earlier version of xserver, the
    configure failure meant no acceleration was possible. Patch configure
    tests similar to r128.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>

commit 8ed77eb7920f375e9490a31f907eccb02fb123cd
Author: Matt Turner <mattst88@gmail.com>
Date:   Thu Feb 19 13:39:18 2015 -0800

    xf86-video-mga 1.6.4

commit 132dee029e36c9a91a85f178885e94a9f9b5ee37
Author: Adam Jackson <ajax@redhat.com>
Date:   Tue Jul 29 14:35:46 2014 -0400

    undef DISABLE_VGA_IO
    
    Dead conditional ever since m12n, must not be needed.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit cf46b1017a2663c59f07abd417573b9580f0145f
Author: Adam Jackson <ajax@redhat.com>
Date:   Tue Jul 29 09:14:15 2014 -0400

    dri: Stop (uselessly) initializing the ValidateTree hooks
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit 1a5bc65f27e76263818a44ddbc4197f6083077cf
Author: Adam Jackson <ajax@redhat.com>
Date:   Thu May 22 12:48:27 2014 -0400

    man: Don't mention the HAL
    
    I mentioned it once, but I think I got away with it all right.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit d2c65c24e94dca1e8fb16c851d0e2fe41bf5d1c6
Author: Mikulas Patocka <mpatocka@redhat.com>
Date:   Thu Mar 13 23:17:52 2014 -0400

    fix a type in previous lockup in the mga driver fix
    
    Oh, I had a typo in that patch - so please commit this to fix it.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit 0789f3f2799e6497e9e2e7488da679c03b7fa468
Author: Mikulas Patocka <mpatocka@redhat.com>
Date:   Thu Mar 13 18:25:56 2014 -0400

    xf86-video-mga: fix a lockup in the mga driver
    
    I've had a Xserver lockup in the mga driver, examining it with gdb showed
    this obviously broken loop:
            count = INREG(MGAREG_VCOUNT) + 2;
            while(INREG(MGAREG_VCOUNT) < count);
    
    It reads the line counter and waits until the counter advances by two. The
    cause of the lockup is this - if the kernel reschedules the Xorg process
    and lets it run in such a moment when INREG(MGAREG_VCOUNT) returns the
    maximum (or maximum minus 1) line count, the loop never exits.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit 62ba63f687d7b99aff7c88ffd2774f15a2471ce0
Author: Mikulas Patocka <mpatocka@redhat.com>
Date:   Fri Jan 17 16:04:26 2014 -0500

    xf86-video-mga: set the pan_ctl register
    
    On my Matrox G550 most videomodes in Xorg didn't work. I found out that it
    works if Xorg pixel clock is similar to the pixel clock set on framebuffer
    console.
    
    Further analysis showed that the Linux framebuffer driver sets the pan_ctl
    register (the register 0xa2) according to the pixel clock, the Xorg driver
    doesn't set it.
    
    I copied the code to set the pan_ctl register from the Linux kernel to the
    Xorg driver, and most videomodes in Xorg work.
    
    The pan_ctl register is required for both analog and digital output.
    
    The pan_ctl register is saved and restored, this is required so that we
    restore text-mode screen or Linux framebuffer correctly.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit f647727a2c1d4c2a9261c411cd3df71c3c9f0c06
Author: Dave Airlie <airlied@redhat.com>
Date:   Thu Dec 5 12:09:27 2013 +1000

    mga: bump release to 1.6.3

commit 55525bdfc00b0b746401f6ea6ed289048e9d06eb
Author: Dave Airlie <airlied@redhat.com>
Date:   Thu Dec 5 11:51:39 2013 +1000

    mga: fix XAA runtime
    
    XAA->USE_XAA add USE_XAA.
    
    Tested-by: Avengence on #xorg-devel
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit 6aa94687233f55a8044efe83cac82b04ab19609f
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Nov 17 10:27:42 2013 -0800

    Remove mga_esc.c vestigal stub
    
    Previously contained MGA HAL code, was left an empty shell by the
    removal of USEMGAHAL in commit 94bbeb132c7eda.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>

commit e9109a0b04695d6971c94abe271dda2dc1a5e886
Author: Tormod Volden <debian.tormod@gmail.com>
Date:   Thu Oct 31 22:48:18 2013 +0100

    mga: Use exaGetPixmapFirstPixel() instead of devPrivate.ptr
    
    Signed-off-by: Tormod Volden <debian.tormod@gmail.com>

commit a77b9c5143591672fbe56f4428ced439c1f4d0f3
Author: Egbert Eich <eich@freedesktop.org>
Date:   Mon Jul 29 13:02:21 2013 +0200

    Disable HW cursor by default on G200 server chips
    
    Disable HW cursor by default on G200 server chips as these chips a
    re often used with a remote graphics link which cannot display
    the HW cursor.
    This can be overridden by a config option.
    Most desktops today use ARGB cursors anyhow which are not
    supported by this driver anyhow. Thus the performance penalty
    should be irrelevant.
    
    Signed-off-by: Egbert Eich <eich@freedesktop.org>

commit dba8778b9214dc3794198029fc6d59b3e97700d4
Author: Egbert Eich <eich@freedesktop.org>
Date:   Mon Jul 29 13:01:45 2013 +0200

    Restructure code to make it more readable
    
    With the previous structure it wasn't immediately clear when SecondCrtc
    and HWCursor were set to which value. Make the code more readable.
    
    Signed-off-by: Egbert Eich <eich@freedesktop.org>

commit cbcee5de1ba02c8a58bae932a0cb98093dccefd9
Author: Tormod Volden <debian.tormod@gmail.com>
Date:   Thu Oct 17 22:01:20 2013 +0200

    Fix dual head crash without XAA
    
    https://launchpad.net/bugs/1180986
    
    Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
    Reviewed-by: Robert Jacobs <robert.n.jacobs@gmail.com>
    Tested-by: Robert Jacobs <robert.n.jacobs@gmail.com>

commit 15815c8612694a89d0d8593b3e603fdcdeacdd05
Author: Andy MacLean <andy-ub1@themacleans.org.uk>
Date:   Thu Oct 17 19:51:36 2013 +0200

    Unbreak dual head (xinerama)
    
    This patch has been used in Debian, Ubuntu and Gentoo for years.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=18472
    https://launchpad.net/bugs/292214
    https://bugs.gentoo.org/show_bug.cgi?id=265100
    
    Signed-off-by: Andy MacLean <andy-ub1@themacleans.org.uk>
    Reviewed-by: Cyril Brulebois <kibi@debian.org>
    Reviewed-by: Robert Jacobs <robert.n.jacobs@gmail.com>
    Tested-by: Robert Jacobs <robert.n.jacobs@gmail.com>

commit 12af175fee1d3f6f17f8391ec642d904deca3783
Author: Egbert Eich <eich@freedesktop.org>
Date:   Tue Jun 7 19:31:16 2011 +0200

    Disable Linear Expansion on BE
    
    Linear Expansion doesn't work on BE as the bit order in
    a word is reversed. ScreenToScreenColorExpansion allows
    to adjust the bit order in a byte, still the bytes have
    the wrong order.
    
    Reviewed-by:  <wharms@bfs.de>
    Signed-off-by: Egbert Eich <eich@freedesktop.org>

commit 49381ff2c3aa98be5bb84494b2ad3f81a0d31bcc
Author: Julien Cristau <jcristau@debian.org>
Date:   Mon Jan 7 23:04:36 2013 +0100

    Restrict kernel driver matching to g200 server chips
    
    Otherwise we might catch devices handled by matroxfb, not the mgag200
    kms driver.
    
    Debian bug#697532
    
    Reported-by: olafBuddenhagen@gmx.net
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Julien Cristau <jcristau@debian.org>

commit fcd27b2b4ab2a181d5263296e71cda2d8772ba2d
Author: Dave Airlie <airlied@redhat.com>
Date:   Fri Sep 28 11:36:44 2012 +1000

    mga: bump release to 1.6.2

commit 29de36da0ed031815bd302f55f2ef5cc0cce6cc6
Author: Dave Airlie <airlied@redhat.com>
Date:   Fri Sep 28 10:54:00 2012 +1000

    mga: bring dri1 back to life.
    
    we need to at least setup the memory manager bits so dri1 clients
    get a backbuffer. this at least gets gears working again without XAA.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit e777a2845bfeefad386db35d694e4b1cd74a0dd5
Author: Dave Airlie <airlied@redhat.com>
Date:   Wed Sep 26 15:18:44 2012 +1000

    mga: add stub storm functions if not using XAA
    
    If we aren't using XAA just add stub storm init/sync functions.
    
    This lets the driver load yay.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit 220e06fefe77175d9827954e61549eadda245d9a
Author: Adam Jackson <ajax@redhat.com>
Date:   Tue Sep 25 08:54:42 2012 -0400

    Remove mibstore.h
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit cd41eacaeabf8227197d605b055713ca654633d5
Author: Dave Airlie <airlied@redhat.com>
Date:   Tue Jul 17 16:05:09 2012 +1000

    xf86-video-mga: bump to version 1.6.1
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit f11a407ceb0857bb0d33811511117b490a8ae6ee
Author: Dave Airlie <airlied@gmail.com>
Date:   Sun Jul 15 19:41:28 2012 +1000

    mga: fix after XAA removal
    
    Fix mga build after XAA removal.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit fa0f3092ed38ce71ba9f65156bde306eb63feaf8
Author: Dave Airlie <airlied@redhat.com>
Date:   Mon Jul 2 12:08:05 2012 +0100

    mga: bump to 1.6.0
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit 7b6dcc4d5768cc8d17a1f664155ebdc8ca8c042e
Author: Dave Airlie <airlied@redhat.com>
Date:   Wed Jun 6 09:23:31 2012 +0100

    mga: port to new compat API.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit 0cb8ba6dc5e7bf4179174f9f17e211df7d89bd41
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Wed May 23 23:40:32 2012 -0700

    Add const qualifier to char *from in MGAdoDDC
    
    Only used to store arguments to pass as printf %s strings to xf86DrvMsg
    
    Fixes gcc warnings:
    mga_driver.c: In function 'MGAdoDDC':
    mga_driver.c:1338:7: warning: assignment discards qualifiers from pointer target type
    mga_driver.c:1343:11: warning: assignment discards qualifiers from pointer target type
    mga_driver.c:1351:8: warning: assignment discards qualifiers from pointer target type
    mga_driver.c:1359:8: warning: assignment discards qualifiers from pointer target type
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Dave Airlie <airlied@redhat.com>

commit 3d9631b819c5c6f64ebf9bda8aab93e1cc7f391f
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Wed May 23 23:34:07 2012 -0700

    Move PCI vendor/device id defines into mga.h instead of using xf86PciInfo.h
    
    Silences deprecation warnings from xf86PciInfo.h in current Xorg servers
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Dave Airlie <airlied@redhat.com>

commit 0af7dba78559ce82b4c3eed0862415efcde51863
Author: Dave Airlie <airlied@redhat.com>
Date:   Thu May 17 10:19:21 2012 +0100

    mga: don't bind to device if there is a kernel driver
    
    this should only pick up KMS drivers and not old drm drivers.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

commit 3991971c23ebe596742c004b1e583dfb1aa14ec4
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Fri Mar 23 19:02:40 2012 -0700

    xf86-video-mga 1.5.0
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 4c4beaf628c9c5dd531605e40696ed31db0e97b8
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Wed Jan 4 15:15:07 2012 +1000

    Untangle XF86DRI from the driver-specific DRI define
    
    XF86DRI is defined by xorg-server.h, so --disable-dri in the driver
    itself does exactly nothing other than not fill in the CFLAGS
    and thus stop the driver from compiling.
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

commit 9223c44a731f48c66c226eb88dcb6f9d574cb599
Author: Julien Cristau <jcristau@debian.org>
Date:   Tue Jan 3 23:35:18 2012 +0100

    When we can't load the xaa or exa modules, use shadowfb instead
    
    Signed-off-by: Julien Cristau <jcristau@debian.org>

commit cc9d2e808de20723c9035952242d966455d583b7
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Wed Dec 28 19:44:40 2011 -0800

    Check MGAAllocAdaptor() for memory allocation failure
    
    If it couldn't allocate memory, don't attempt to write a bunch of values
    to the NULL pointer before returning it, but just pass the NULL along
    right away.
    
    Resolves parfait warnings of the form:
    
    Error: Null pointer dereference (CWE 476)
       Write to null pointer 'adapt'
            at line 322 of src/mga_video.c in function 'MGASetupImageVideoTexture'.
              Function 'MGAAllocAdaptor' may return constant 'NULL' at line 237, called at line 320.
              Null pointer introduced at line 237 in function 'MGAAllocAdaptor'.
    
    repeated for every line writing to the adapt pointer in each function.
    
    [ This bug was found by the Parfait 0.4.2 bug checking tool.
      For more information see http://labs.oracle.com/projects/parfait/ ]
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Mark Kettenis <kettenis@openbsd.org>

commit 644ba5d11049e63ea61b5cc4fb889b0f840965ff
Author: Christian Toutant <ctoutant@matrox.com>
[--snip--]
