Home | History | Annotate | only in /src/sys/external/bsd/drm/dist/shared-core
History log of /src/sys/external/bsd/drm/dist/shared-core
RevisionDateAuthorComments
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file Makefile.am was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file Makefile.am was added on branch mjf-devfs2 on 2008-09-28 10:40:40 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file Makefile.am was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file Makefile.am was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.2 20-Jun-2009  mrg some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)

no functional changes intended.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:40 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file drm_internal.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file drm_internal.h was added on branch mjf-devfs2 on 2008-09-28 10:40:40 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file drm_internal.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file drm_internal.h was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.1 19-Jun-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jun-2009  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.10;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1.10.2 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.10.1 19-Jun-2009  matt file drm_mode.h was added on branch matt-nb5-mips64 on 2010-04-21 00:28:00 +0000
 1.1.1.1.4.2 18-Jul-2009  yamt sync with head.
 1.1.1.1.4.1 19-Jun-2009  yamt file drm_mode.h was added on branch yamt-nfs-mp on 2009-07-18 14:53:16 +0000
 1.1.1.1.2.2 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.2.1 19-Jun-2009  snj file drm_mode.h was added on branch netbsd-5 on 2009-06-20 23:42:53 +0000
 1.4 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.3 11-Jun-2012  tsutsui branches: 1.3.38; 1.3.40;
Make i915drm work on Atom N4xx/D410/D510 + GMA3150 integrated graphic devices.

Patch is taken from FreeBSD:
http://www.freebsd.org/cgi/query-pr.cgi?pr=143427
and tested on MSI U135DX running NetBSD/i386 6.0_BETA2 with this patch.

Should be pulled up to netbsd-6.
 1.2 19-Jun-2009  mrg branches: 1.2.12; 1.2.18;
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.3 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.2 19-Jul-2008  mrg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.10; 1.1.1.2.14; 1.1.1.2.18; 1.1.1.2.20;
import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.2.18.2 04-May-2009  yamt sync with head.
 1.1.1.2.18.1 19-Jul-2008  yamt file drm_pciids.txt was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.2.6.1 19-Jul-2008  mjf file drm_pciids.txt was added on branch mjf-devfs2 on 2008-09-28 10:40:40 +0000
 1.1.1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.2.4.1 19-Jul-2008  wrstuden file drm_pciids.txt was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.2.2.1 19-Jul-2008  simonb file drm_pciids.txt was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.2.18.1 13-Jun-2012  riz Pull up following revision(s) (requested by tsutsui in ticket #334):
sys/external/bsd/drm/dist/shared-core/i915_drv.h: revision 1.5
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h: revision 1.8
sys/external/bsd/drm/dist/shared-core/drm_pciids.txt: revision 1.3
sys/external/bsd/drm/dist/shared-core/i915_reg.h: revision 1.2
Make i915drm work on Atom N4xx/D410/D510 + GMA3150 integrated graphic devices.
Patch is taken from FreeBSD:
http://www.freebsd.org/cgi/query-pr.cgi?pr=143427
and tested on MSI U135DX running NetBSD/i386 6.0_BETA2 with this patch.
Should be pulled up to netbsd-6.
 1.2.12.1 30-Oct-2012  yamt sync with head
 1.3.40.1 10-Jun-2019  christos Sync with HEAD
 1.3.38.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file drm_sarea.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file drm_sarea.h was added on branch mjf-devfs2 on 2008-09-28 10:40:40 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file drm_sarea.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file drm_sarea.h was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.3 12-Sep-2009  drochner fix some confusion between highest DMA address and the boundary not to
be crossed in a transfer,
back out previous fixes which only added to the confusion
 1.2 10-Sep-2009  christos PR/42041: Jasper Wallace: Stopgap fix for kernel assert
("(boundary & (boundary - 1)) == 0") triggers with i915drm in recent -5 kernel

Read the comment in the code for a detailed explanation. This should be fixed
properly in the i386 bus code, but it is too intrusive to do for -5.
XXX: pullup for 5.x
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.4 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.3 25-Jul-2008  mrg branches: 1.1.1.3.2; 1.1.1.3.4; 1.1.1.3.6; 1.1.1.3.10; 1.1.1.3.14; 1.1.1.3.18; 1.1.1.3.20;
import mesa-drm git from change 2580a065d81be645a14af1e91b8441f7e72fcbe4.
this pulls in a few vblank fixes.
 1.1.1.2 19-Jul-2008  mrg import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.3.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.3.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.3.18.2 04-May-2009  yamt sync with head.
 1.1.1.3.18.1 25-Jul-2008  yamt file i915_dma.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.3.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.3.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.3.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.3.6.1 25-Jul-2008  mjf file i915_dma.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.3.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.3.4.1 25-Jul-2008  wrstuden file i915_dma.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.3.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.3.2.1 25-Jul-2008  simonb file i915_dma.c was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.2 24-Feb-2011  mrg change "int pipe" into "unsigned int pipe".
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.2.4.1 05-Mar-2011  rmind sync with head
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file i915_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file i915_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file i915_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file i915_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.6 05-Sep-2014  matt Rename enum pipe to enum pipe so it won't conflcit with struct pipe.
 1.5 11-Jun-2012  tsutsui branches: 1.5.2;
Make i915drm work on Atom N4xx/D410/D510 + GMA3150 integrated graphic devices.

Patch is taken from FreeBSD:
http://www.freebsd.org/cgi/query-pr.cgi?pr=143427
and tested on MSI U135DX running NetBSD/i386 6.0_BETA2 with this patch.

Should be pulled up to netbsd-6.
 1.4 24-Feb-2011  mrg branches: 1.4.4; 1.4.10;
change "int pipe" into "unsigned int pipe".
 1.3 24-Feb-2011  mrg convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.2 21-Jan-2011  dyoung unifdef -U__linux__ -U__FreeBSD__. No functional change intended.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.4 19-Jun-2009  mrg branches: 1.1.1.4.4; 1.1.1.4.6; 1.1.1.4.8;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.3 25-Jul-2008  mrg branches: 1.1.1.3.2; 1.1.1.3.4; 1.1.1.3.6; 1.1.1.3.10; 1.1.1.3.14; 1.1.1.3.18; 1.1.1.3.20;
import mesa-drm git from change 2580a065d81be645a14af1e91b8441f7e72fcbe4.
this pulls in a few vblank fixes.
 1.1.1.2 19-Jul-2008  mrg import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.4.8.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.4.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.1.1.4.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.4.4.1 05-Mar-2011  rmind sync with head
 1.1.1.3.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.3.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.3.18.2 04-May-2009  yamt sync with head.
 1.1.1.3.18.1 25-Jul-2008  yamt file i915_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.3.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.3.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.3.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.3.6.1 25-Jul-2008  mjf file i915_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.3.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.3.4.1 25-Jul-2008  wrstuden file i915_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.3.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.3.2.1 25-Jul-2008  simonb file i915_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.4.10.1 13-Jun-2012  riz Pull up following revision(s) (requested by tsutsui in ticket #334):
sys/external/bsd/drm/dist/shared-core/i915_drv.h: revision 1.5
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h: revision 1.8
sys/external/bsd/drm/dist/shared-core/drm_pciids.txt: revision 1.3
sys/external/bsd/drm/dist/shared-core/i915_reg.h: revision 1.2
Make i915drm work on Atom N4xx/D410/D510 + GMA3150 integrated graphic devices.
Patch is taken from FreeBSD:
http://www.freebsd.org/cgi/query-pr.cgi?pr=143427
and tested on MSI U135DX running NetBSD/i386 6.0_BETA2 with this patch.
Should be pulled up to netbsd-6.
 1.4.4.1 30-Oct-2012  yamt sync with head
 1.5.2.1 03-Dec-2017  jdolecek update from HEAD
 1.5 24-Feb-2011  mrg change "int pipe" into "unsigned int pipe".
 1.4 24-Feb-2011  mrg convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.3 19-Jun-2009  mrg branches: 1.3.4; 1.3.6; 1.3.8;
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.2 23-Sep-2008  dholland branches: 1.2.2; 1.2.6; 1.2.10; 1.2.14; 1.2.16;
fix typo in comment
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.4 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.3 25-Jul-2008  mrg branches: 1.1.1.3.2; 1.1.1.3.4;
import mesa-drm git from change 2580a065d81be645a14af1e91b8441f7e72fcbe4.
this pulls in a few vblank fixes.
 1.1.1.2 19-Jul-2008  mrg import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.3.4.3 10-Oct-2008  skrll Sync with HEAD.
 1.1.1.3.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.3.4.1 25-Jul-2008  wrstuden file i915_irq.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.3.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.3.2.1 25-Jul-2008  simonb file i915_irq.c was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.2.16.1 21-Apr-2010  matt sync to netbsd-5
 1.2.14.3 18-Jul-2009  yamt sync with head.
 1.2.14.2 04-May-2009  yamt sync with head.
 1.2.14.1 23-Sep-2008  yamt file i915_irq.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.2.10.1 23-Jul-2009  jym Sync with HEAD.
 1.2.6.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.2.2.2 28-Sep-2008  mjf Sync with HEAD.
 1.2.2.1 23-Sep-2008  mjf file i915_irq.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.3.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.3.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.4.1 05-Mar-2011  rmind sync with head
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file i915_mem.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file i915_mem.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file i915_mem.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file i915_mem.c was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.2 11-Jun-2012  tsutsui Make i915drm work on Atom N4xx/D410/D510 + GMA3150 integrated graphic devices.

Patch is taken from FreeBSD:
http://www.freebsd.org/cgi/query-pr.cgi?pr=143427
and tested on MSI U135DX running NetBSD/i386 6.0_BETA2 with this patch.

Should be pulled up to netbsd-6.
 1.1 19-Jun-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jun-2009  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.10; 1.1.1.1.18; 1.1.1.1.24;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1.24.1 13-Jun-2012  riz Pull up following revision(s) (requested by tsutsui in ticket #334):
sys/external/bsd/drm/dist/shared-core/i915_drv.h: revision 1.5
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h: revision 1.8
sys/external/bsd/drm/dist/shared-core/drm_pciids.txt: revision 1.3
sys/external/bsd/drm/dist/shared-core/i915_reg.h: revision 1.2
Make i915drm work on Atom N4xx/D410/D510 + GMA3150 integrated graphic devices.
Patch is taken from FreeBSD:
http://www.freebsd.org/cgi/query-pr.cgi?pr=143427
and tested on MSI U135DX running NetBSD/i386 6.0_BETA2 with this patch.
Should be pulled up to netbsd-6.
 1.1.1.1.18.1 30-Oct-2012  yamt sync with head
 1.1.1.1.10.2 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.10.1 19-Jun-2009  matt file i915_reg.h was added on branch matt-nb5-mips64 on 2010-04-21 00:28:00 +0000
 1.1.1.1.4.2 18-Jul-2009  yamt sync with head.
 1.1.1.1.4.1 19-Jun-2009  yamt file i915_reg.h was added on branch yamt-nfs-mp on 2009-07-18 14:53:17 +0000
 1.1.1.1.2.2 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.2.1 19-Jun-2009  snj file i915_reg.h was added on branch netbsd-5 on 2009-06-20 23:42:53 +0000
 1.7 05-Sep-2014  matt Rename enum pipe to enum pipe so it won't conflcit with struct pipe.
 1.6 11-Dec-2012  msaitoh Fix wrong reference to dev_priv->saveSWF1. It was clearly wrong.
 1.5 20-Jun-2009  mrg branches: 1.5.12; 1.5.18; 1.5.22; 1.5.24;
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)

no functional changes intended.
 1.4 19-Jun-2009  mrg merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.3 19-Jul-2008  mrg branches: 1.3.2; 1.3.4; 1.3.6; 1.3.10; 1.3.14; 1.3.16; 1.3.18; 1.3.20;
fix a merge error
 1.2 19-Jul-2008  mrg pull over many many changes from netbsd-current sys/dev/{,pci/}drm/.
make the mesa-drm style Makefile's actually run on netbsd (but i doubt
they work yet.)

this still has a lot to go. it doesn't work yet, but it's getting
close.

most of this is from other authors than myself: yorrick, drochner,
jared, bjs, all contributed a lot more than i have so far, but there's
a bunch of clean up from myself in here as well.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jul-2008  mrg import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.3.20.1 21-Apr-2010  matt sync to netbsd-5
 1.3.18.3 18-Jul-2009  yamt sync with head.
 1.3.18.2 04-May-2009  yamt sync with head.
 1.3.18.1 19-Jul-2008  yamt file i915_suspend.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.3.16.1 13-Jan-2013  bouyer Pull up following revision(s) (requested by msaitoh in ticket #1831):
sys/external/bsd/drm/dist/shared-core/i915_suspend.c: revision 1.6
Fix wrong reference to dev_priv->saveSWF1. It was clearly wrong.
 1.3.14.1 23-Jul-2009  jym Sync with HEAD.
 1.3.10.2 13-Jan-2013  bouyer Pull up following revision(s) (requested by msaitoh in ticket #1831):
sys/external/bsd/drm/dist/shared-core/i915_suspend.c: revision 1.6
Fix wrong reference to dev_priv->saveSWF1. It was clearly wrong.
 1.3.10.1 20-Jun-2009  snj branches: 1.3.10.1.2; 1.3.10.1.6;
Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.3.10.1.6.1 13-Jan-2013  bouyer Pull up following revision(s) (requested by msaitoh in ticket #1831):
sys/external/bsd/drm/dist/shared-core/i915_suspend.c: revision 1.6
Fix wrong reference to dev_priv->saveSWF1. It was clearly wrong.
 1.3.10.1.2.1 13-Jan-2013  bouyer Pull up following revision(s) (requested by msaitoh in ticket #1831):
sys/external/bsd/drm/dist/shared-core/i915_suspend.c: revision 1.6
Fix wrong reference to dev_priv->saveSWF1. It was clearly wrong.
 1.3.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.3.6.1 19-Jul-2008  mjf file i915_suspend.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.3.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.3.4.1 19-Jul-2008  wrstuden file i915_suspend.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.3.2.2 28-Jul-2008  simonb Sync with head.
 1.3.2.1 19-Jul-2008  simonb file i915_suspend.c was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.5.24.1 05-Jan-2013  riz Pull up following revision(s) (requested by msaitoh in ticket #762):
sys/external/bsd/drm/dist/shared-core/i915_suspend.c: revision 1.6
Fix wrong reference to dev_priv->saveSWF1. It was clearly wrong.
 1.5.22.2 03-Dec-2017  jdolecek update from HEAD
 1.5.22.1 25-Feb-2013  tls resync with head
 1.5.18.1 05-Jan-2013  riz Pull up following revision(s) (requested by msaitoh in ticket #762):
sys/external/bsd/drm/dist/shared-core/i915_suspend.c: revision 1.6
Fix wrong reference to dev_priv->saveSWF1. It was clearly wrong.
 1.5.12.1 16-Jan-2013  yamt sync with (a bit old) head
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file imagine_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:31 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file imagine_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file imagine_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file imagine_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.5 14-Sep-2013  joerg Mark mach64_set_dma_eol as unused.
 1.4 12-Sep-2009  drochner branches: 1.4.12; 1.4.22; 1.4.26;
fix some confusion between highest DMA address and the boundary not to
be crossed in a transfer,
back out previous fixes which only added to the confusion
 1.3 10-Sep-2009  christos PR/42041: Jasper Wallace: Stopgap fix for kernel assert
("(boundary & (boundary - 1)) == 0") triggers with i915drm in recent -5 kernel

Read the comment in the code for a detailed explanation. This should be fixed
properly in the i386 bus code, but it is too intrusive to do for -5.
XXX: pullup for 5.x
 1.2 23-Jun-2009  mrg add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.

use pci_find_device() to kill the one XXX rafal left.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mach64_dma.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.2 24-Jun-2009  snj Pull up following revision(s) (requested by mrg in ticket #830):
sys/external/bsd/drm/dist/bsd-core/mach64_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/mga_drv.c: revision 1.5
sys/external/bsd/drm/dist/bsd-core/r128_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/savage_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/sis_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/tdfx_drv.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/mach64_dma.c: revision 1.2
sys/external/bsd/drm/dist/shared-core/mach64_drv.h: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_bci.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_state.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/sis_ds.c: revision 1.4
add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.
use pci_find_device() to kill the one XXX rafal left.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mach64_dma.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mach64_dma.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mach64_dma.c was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.4.26.1 18-May-2014  rmind sync with head
 1.4.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.12.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mach64_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mach64_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mach64_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mach64_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.6 17-Oct-2013  christos define a new macro that does not declare variables used in output.
 1.5 24-Feb-2011  mrg branches: 1.5.4; 1.5.14; 1.5.18;
convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.4 23-Jun-2009  mrg branches: 1.4.4; 1.4.6; 1.4.8;
add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.

use pci_find_device() to kill the one XXX rafal left.
 1.3 19-Jun-2009  mrg merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.2 19-Jul-2008  mrg branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.18; 1.2.20;
XXX rename some macro internal variable names to not clash with users.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.2.18.3 18-Jul-2009  yamt sync with head.
 1.2.18.2 04-May-2009  yamt sync with head.
 1.2.18.1 19-Jul-2008  yamt file mach64_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.2.10.2 24-Jun-2009  snj Pull up following revision(s) (requested by mrg in ticket #830):
sys/external/bsd/drm/dist/bsd-core/mach64_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/mga_drv.c: revision 1.5
sys/external/bsd/drm/dist/bsd-core/r128_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/savage_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/sis_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/tdfx_drv.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/mach64_dma.c: revision 1.2
sys/external/bsd/drm/dist/shared-core/mach64_drv.h: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_bci.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_state.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/sis_ds.c: revision 1.4
add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.
use pci_find_device() to kill the one XXX rafal left.
 1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.2.6.1 19-Jul-2008  mjf file mach64_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2.4.1 19-Jul-2008  wrstuden file mach64_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.2.2.1 19-Jul-2008  simonb file mach64_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.4.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.4.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.4.1 05-Mar-2011  rmind sync with head
 1.5.18.1 18-May-2014  rmind sync with head
 1.5.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2 24-Feb-2011  mrg convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.2.4.1 05-Mar-2011  rmind sync with head
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mach64_irq.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mach64_irq.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mach64_irq.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mach64_irq.c was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.2 17-Oct-2013  christos define a new macro that does not declare variables used in output.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.36; 1.1.1.1.46; 1.1.1.1.52;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.52.1 18-May-2014  rmind sync with head
 1.1.1.1.46.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.1.1.36.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mach64_state.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mach64_state.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mach64_state.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:49 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mach64_state.c was added on branch simonb-wapbl on 2008-07-28 14:37:30 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mga_dma.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mga_dma.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mga_dma.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mga_dma.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mga_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mga_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mga_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mga_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.5 25-May-2011  christos more wrong formats.
 1.4 25-May-2011  christos fix printf formats.
 1.3 24-May-2011  joerg Use some format specifiers that actually exist
 1.2 24-Feb-2011  mrg convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.24; 1.1.1.1.30; 1.1.1.1.32;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.32.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.1.30.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.1.24.2 31-May-2011  rmind sync with head
 1.1.1.1.24.1 05-Mar-2011  rmind sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mga_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mga_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mga_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mga_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 24-Feb-2011  mrg convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.2.4.1 05-Mar-2011  rmind sync with head
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mga_irq.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mga_irq.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mga_irq.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mga_irq.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 17-Oct-2013  christos remove unused variables
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.36; 1.1.1.1.46; 1.1.1.1.52;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.52.1 18-May-2014  rmind sync with head
 1.1.1.1.46.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.1.1.36.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mga_state.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mga_state.c was added on branch mjf-devfs2 on 2008-09-28 10:40:41 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mga_state.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mga_state.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mga_ucode.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mga_ucode.h was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mga_ucode.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mga_ucode.h was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file mga_warp.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file mga_warp.c was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file mga_warp.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file mga_warp.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nouveau_dma.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nouveau_dma.c was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nouveau_dma.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nouveau_dma.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nouveau_dma.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nouveau_dma.h was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nouveau_dma.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nouveau_dma.h was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.3 19-Jun-2009  mrg branches: 1.1.1.3.62; 1.1.1.3.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.2 19-Jul-2008  mrg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.10; 1.1.1.2.14; 1.1.1.2.18; 1.1.1.2.20;
import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.3.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.3.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.2.18.2 04-May-2009  yamt sync with head.
 1.1.1.2.18.1 19-Jul-2008  yamt file nouveau_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.2.6.1 19-Jul-2008  mjf file nouveau_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.2.4.1 19-Jul-2008  wrstuden file nouveau_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.2.2.1 19-Jul-2008  simonb file nouveau_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.3 19-Jun-2009  mrg branches: 1.1.1.3.62; 1.1.1.3.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.2 19-Jul-2008  mrg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.10; 1.1.1.2.14; 1.1.1.2.18; 1.1.1.2.20;
import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.3.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.3.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.2.18.2 04-May-2009  yamt sync with head.
 1.1.1.2.18.1 19-Jul-2008  yamt file nouveau_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.2.6.1 19-Jul-2008  mjf file nouveau_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.2.4.1 19-Jul-2008  wrstuden file nouveau_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.2.2.1 19-Jul-2008  simonb file nouveau_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.3 19-Jun-2009  mrg branches: 1.1.1.3.62; 1.1.1.3.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.2 19-Jul-2008  mrg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.10; 1.1.1.2.14; 1.1.1.2.18; 1.1.1.2.20;
import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.3.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.3.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.2.18.2 04-May-2009  yamt sync with head.
 1.1.1.2.18.1 19-Jul-2008  yamt file nouveau_fifo.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.2.6.1 19-Jul-2008  mjf file nouveau_fifo.c was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.2.4.1 19-Jul-2008  wrstuden file nouveau_fifo.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.2.2.1 19-Jul-2008  simonb file nouveau_fifo.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nouveau_irq.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nouveau_irq.c was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nouveau_irq.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nouveau_irq.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.3 19-Jun-2009  mrg branches: 1.1.1.3.62; 1.1.1.3.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.2 19-Jul-2008  mrg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.10; 1.1.1.2.14; 1.1.1.2.18; 1.1.1.2.20;
import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.3.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.3.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.2.18.2 04-May-2009  yamt sync with head.
 1.1.1.2.18.1 19-Jul-2008  yamt file nouveau_mem.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.2.6.1 19-Jul-2008  mjf file nouveau_mem.c was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.2.4.1 19-Jul-2008  wrstuden file nouveau_mem.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.2.2.1 19-Jul-2008  simonb file nouveau_mem.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nouveau_notifier.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nouveau_notifier.c was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nouveau_notifier.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nouveau_notifier.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nouveau_object.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:32 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nouveau_object.c was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nouveau_object.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nouveau_object.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nouveau_reg.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nouveau_reg.h was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nouveau_reg.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:50 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nouveau_reg.h was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nouveau_state.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nouveau_state.c was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nouveau_state.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nouveau_state.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nouveau_swmthd.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nouveau_swmthd.c was added on branch mjf-devfs2 on 2008-09-28 10:40:42 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nouveau_swmthd.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nouveau_swmthd.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nouveau_swmthd.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nouveau_swmthd.h was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nouveau_swmthd.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nouveau_swmthd.h was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv04_fb.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv04_fb.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv04_fb.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv04_fb.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv04_fifo.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv04_fifo.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv04_fifo.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv04_fifo.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv04_graph.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv04_graph.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv04_graph.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv04_graph.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv04_instmem.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv04_instmem.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv04_instmem.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv04_instmem.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv04_mc.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv04_mc.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv04_mc.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv04_mc.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv04_timer.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv04_timer.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv04_timer.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv04_timer.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv10_fb.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv10_fb.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv10_fb.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv10_fb.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv10_fifo.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv10_fifo.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv10_fifo.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv10_fifo.c was added on branch simonb-wapbl on 2008-07-28 14:37:31 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv10_graph.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv10_graph.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv10_graph.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv10_graph.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv20_graph.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv20_graph.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv20_graph.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv20_graph.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv40_fb.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv40_fb.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv40_fb.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv40_fb.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv40_fifo.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv40_fifo.c was added on branch mjf-devfs2 on 2008-09-28 10:40:43 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv40_fifo.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv40_fifo.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv40_graph.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv40_graph.c was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv40_graph.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv40_graph.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv40_mc.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv40_mc.c was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv40_mc.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv40_mc.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv50_fifo.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv50_fifo.c was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv50_fifo.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv50_fifo.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv50_graph.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv50_graph.c was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv50_graph.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv50_graph.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jun-2009  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jun-2009  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.10; 1.1.1.1.68; 1.1.1.1.70;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1.70.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.68.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.10.2 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.10.1 19-Jun-2009  matt file nv50_grctx.h was added on branch matt-nb5-mips64 on 2010-04-21 00:28:01 +0000
 1.1.1.1.4.2 18-Jul-2009  yamt sync with head.
 1.1.1.1.4.1 19-Jun-2009  yamt file nv50_grctx.h was added on branch yamt-nfs-mp on 2009-07-18 14:53:18 +0000
 1.1.1.1.2.2 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.2.1 19-Jun-2009  snj file nv50_grctx.h was added on branch netbsd-5 on 2009-06-20 23:42:53 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.62; 1.1.1.2.64;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.2.62.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv50_instmem.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv50_instmem.c was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv50_instmem.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv50_instmem.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 14-Sep-2018  mrg remove unused code:
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.

XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv50_mc.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv50_mc.c was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv50_mc.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv50_mc.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2 19-Jun-2009  mrg merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file nv_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 21-Jun-2009  snj Move a number of files to their proper locations.
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file nv_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file nv_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file nv_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file r128_cce.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file r128_cce.c was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file r128_cce.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:51 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file r128_cce.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file r128_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file r128_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file r128_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file r128_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.3 22-Oct-2019  hauke When building r128drm(4), gcc objects to shifting into bit 31 of a
(signed) int. Make sure we are shifting an unsigned in those cases.

See also <http://mail-index.netbsd.org/tech-x11/2019/08/01/msg002010.html>.

XXX There are probably more of these in the header.
 1.2 24-Feb-2011  mrg branches: 1.2.56; 1.2.60;
convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.2.4.1 05-Mar-2011  rmind sync with head
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file r128_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file r128_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file r128_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file r128_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2.60.1 24-Oct-2019  martin Pull up following revision(s) (requested by hauke in ticket #379):

sys/external/bsd/drm/dist/shared-core/r128_drv.h: revision 1.3

When building r128drm(4), gcc objects to shifting into bit 31 of a
(signed) int. Make sure we are shifting an unsigned in those cases.

See also <http://mail-index.netbsd.org/tech-x11/2019/08/01/msg002010.html>.
XXX There are probably more of these in the header.
 1.2.56.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2 24-Feb-2011  mrg convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg branches: 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.8;
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.2.4.1 05-Mar-2011  rmind sync with head
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file r128_irq.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:33 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file r128_irq.c was added on branch mjf-devfs2 on 2008-09-28 10:40:44 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file r128_irq.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file r128_irq.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file r128_state.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file r128_state.c was added on branch mjf-devfs2 on 2008-09-28 10:40:45 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file r128_state.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file r128_state.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file r300_cmdbuf.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file r300_cmdbuf.c was added on branch mjf-devfs2 on 2008-09-28 10:40:45 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file r300_cmdbuf.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file r300_cmdbuf.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file r300_reg.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file r300_reg.h was added on branch mjf-devfs2 on 2008-09-28 10:40:45 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file r300_reg.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file r300_reg.h was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.1 24-May-2010  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.

this is mostly from freebsd (though it also exists in other versions
of the drm code) svn commits:

--
SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland

Add kernel support for Radeon R6/7xx 3D.

You will still need Mesa from git and possibly an updated DDX driver,
but this is working fairly well now.
--
SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland

Add support for radeon RS880 IGP chips to drm.
--
SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland

Add support for Radeon HD 4770 (RV740) chips.
--
SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland

Add GET_PARAM support for Z pipes.

This is needed for occulsion queries on rv530 chips.
--
SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland

A bit of cleanup work on radeon_freelist_get()

* Fix the main loop to search all buffers before sleeping.
* Remove dead code
--
SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland

Fix offset handling
--
SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland

radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.
--
SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland

R600 doesn't support IRQs yet, so don't try to use them.
--

special thanks to robert noland @ freebsd for making this an
easy port!
 1.1.8.2 08-Dec-2010  riz Patch the following files (requested by mrg in ticket #1488):
sys/dev/pci/drm/files.pcidrm
sys/external/bsd/drm/dist/bsd-core/drmP.h
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h
sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c
sys/external/bsd/drm/dist/shared-core/r600_blit.c
sys/external/bsd/drm/dist/shared-core/r600_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cs.c
sys/external/bsd/drm/dist/shared-core/radeon_drm.h
sys/external/bsd/drm/dist/shared-core/radeon_drv.h
sys/external/bsd/drm/dist/shared-core/radeon_state.c

implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions
of the drm code.)

only use bus_space*() on drm_local_map_ts that have been mapped into
some bus space somewhere. otherwise, just use normal accesses since
it is normal memory.
 1.1.8.1 24-May-2010  riz file r600_blit.c was added on branch netbsd-5 on 2010-12-08 04:24:27 +0000
 1.1.6.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.6.1 24-May-2010  uebayasi file r600_blit.c was added on branch uebayasi-xip on 2010-08-17 06:46:51 +0000
 1.1.4.2 11-Aug-2010  yamt sync with head.
 1.1.4.1 24-May-2010  yamt file r600_blit.c was added on branch yamt-nfs-mp on 2010-08-11 22:54:20 +0000
 1.1.2.2 30-May-2010  rmind sync with head
 1.1.2.1 24-May-2010  rmind file r600_blit.c was added on branch rmind-uvmplock on 2010-05-30 05:17:48 +0000
 1.4 05-Jul-2010  mrg move all the radeondrm firmware images into the filesystem. check that
some firmware sizes are the expected size. (XXX make all.)

based upon similar changes seen in the linux radeon drm driver.

this saves about 250KB in the kernel or module.
 1.3 26-Jun-2010  mrg add minimal support for radeon 5xxx. there's not enough for it to be
useful yet, but that's not a big deal since the latest xf86-video-ati
doesn't support DRM on these yet.

new microcode images obtained from:
http://people.freedesktop.org/~agd5f/radeon_ucode/

XXX: need to fix max_hw_contexts handling at the very least.

XXX: should convert radeondrm to use firmload(9)
 1.2 24-May-2010  mrg implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.

this is mostly from freebsd (though it also exists in other versions
of the drm code) svn commits:

--
SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland

Add kernel support for Radeon R6/7xx 3D.

You will still need Mesa from git and possibly an updated DDX driver,
but this is working fairly well now.
--
SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland

Add support for radeon RS880 IGP chips to drm.
--
SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland

Add support for Radeon HD 4770 (RV740) chips.
--
SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland

Add GET_PARAM support for Z pipes.

This is needed for occulsion queries on rv530 chips.
--
SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland

A bit of cleanup work on radeon_freelist_get()

* Fix the main loop to search all buffers before sleeping.
* Remove dead code
--
SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland

Fix offset handling
--
SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland

radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.
--
SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland

R600 doesn't support IRQs yet, so don't try to use them.
--

special thanks to robert noland @ freebsd for making this an
easy port!
 1.1 19-Jun-2009  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10;
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.1.10.2 21-Apr-2010  matt sync to netbsd-5
 1.1.10.1 19-Jun-2009  matt file r600_cp.c was added on branch matt-nb5-mips64 on 2010-04-21 00:28:02 +0000
 1.1.8.3 05-Mar-2011  rmind sync with head
 1.1.8.2 03-Jul-2010  rmind sync with head
 1.1.8.1 30-May-2010  rmind sync with head
 1.1.6.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.4.3 11-Aug-2010  yamt sync with head.
 1.1.4.2 18-Jul-2009  yamt sync with head.
 1.1.4.1 19-Jun-2009  yamt file r600_cp.c was added on branch yamt-nfs-mp on 2009-07-18 14:53:18 +0000
 1.1.2.3 08-Dec-2010  riz Patch the following files (requested by mrg in ticket #1488):
sys/dev/pci/drm/files.pcidrm
sys/external/bsd/drm/dist/bsd-core/drmP.h
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h
sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c
sys/external/bsd/drm/dist/shared-core/r600_blit.c
sys/external/bsd/drm/dist/shared-core/r600_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cs.c
sys/external/bsd/drm/dist/shared-core/radeon_drm.h
sys/external/bsd/drm/dist/shared-core/radeon_drv.h
sys/external/bsd/drm/dist/shared-core/radeon_state.c

implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions
of the drm code.)

only use bus_space*() on drm_local_map_ts that have been mapped into
some bus space somewhere. otherwise, just use normal accesses since
it is normal memory.
 1.1.2.2 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.2.1 19-Jun-2009  snj file r600_cp.c was added on branch netbsd-5 on 2009-06-20 23:42:53 +0000
 1.3 06-Jul-2010  mrg kill these old built-in firmware headers; we use the ones installed into
the filesystem from src/sys/microcode/radeon now.
 1.2 19-Jun-2009  mrg branches: 1.2.2; 1.2.4;
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.4 11-Aug-2010  yamt sync with head.
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file r600_microcode.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file r600_microcode.h was added on branch mjf-devfs2 on 2008-09-28 10:40:45 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file r600_microcode.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file r600_microcode.h was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.2.2.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.2.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.13 30-May-2011  joerg Remove invalid const, the content is later passed to free.
 1.12 30-Mar-2011  tron Fix build of "radeondrm" kernel module.
 1.11 30-Mar-2011  mlelstv Add missing agp.h include file.
 1.10 27-Mar-2011  mlelstv Make code compile when the kernel has no support for AGP. For now this also
rules out PCIE support without AGP because all the code is drm_agpsupport.c
 1.9 06-Nov-2010  mrg branches: 1.9.2;
call the sysctl destroy functions upon failure and unload, which
should fix PR#40029. while there, fix the radeon unload, which
was improperly matching mutex init/destroy operations and leading
to trying to destroy lock that was never initialised.
 1.8 05-Jul-2010  mrg move all the radeondrm firmware images into the filesystem. check that
some firmware sizes are the expected size. (XXX make all.)

based upon similar changes seen in the linux radeon drm driver.

this saves about 250KB in the kernel or module.
 1.7 24-May-2010  mrg implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.

this is mostly from freebsd (though it also exists in other versions
of the drm code) svn commits:

--
SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland

Add kernel support for Radeon R6/7xx 3D.

You will still need Mesa from git and possibly an updated DDX driver,
but this is working fairly well now.
--
SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland

Add support for radeon RS880 IGP chips to drm.
--
SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland

Add support for Radeon HD 4770 (RV740) chips.
--
SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland

Add GET_PARAM support for Z pipes.

This is needed for occulsion queries on rv530 chips.
--
SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland

A bit of cleanup work on radeon_freelist_get()

* Fix the main loop to search all buffers before sleeping.
* Remove dead code
--
SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland

Fix offset handling
--
SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland

radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.
--
SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland

R600 doesn't support IRQs yet, so don't try to use them.
--

special thanks to robert noland @ freebsd for making this an
easy port!
 1.6 08-Aug-2009  mrg branches: 1.6.2; 1.6.4;
- stash the fbmap into the radeon dev_priv handle so we can ..
- call drm_rmmap() in radeon_do_cleanup_cp on the two maps created
- in several vblank functions, check to make sure we have mappings
enabled before doing something that might blow up. fixes PR#41715.
 1.5 20-Jun-2009  mrg some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)

no functional changes intended.
 1.4 19-Jun-2009  mrg merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.3 30-Mar-2009  mrg branches: 1.3.2;
apply from sys/dev:
revision 1.12
date: 2009/03/29 19:37:25; author: mrg; state: Exp; lines: +9 -3
XXX: for now, add the DRM_NETBSD_HANDLE2ADDR() hack in a few places.
update a debug message.
 1.2 20-Jul-2008  bjs branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10; 1.2.14; 1.2.18;
Add a forgotten mtsleep().
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.3 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.2 19-Jul-2008  mrg import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.2.18.1 21-Apr-2010  matt sync to netbsd-5
 1.2.14.2 23-Jul-2009  jym Sync with HEAD.
 1.2.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.10.3 08-Dec-2010  riz Patch the following files (requested by mrg in ticket #1488):
sys/dev/pci/drm/files.pcidrm
sys/external/bsd/drm/dist/bsd-core/drmP.h
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h
sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c
sys/external/bsd/drm/dist/shared-core/r600_blit.c
sys/external/bsd/drm/dist/shared-core/r600_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cs.c
sys/external/bsd/drm/dist/shared-core/radeon_drm.h
sys/external/bsd/drm/dist/shared-core/radeon_drv.h
sys/external/bsd/drm/dist/shared-core/radeon_state.c

implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions
of the drm code.)

only use bus_space*() on drm_local_map_ts that have been mapped into
some bus space somewhere. otherwise, just use normal accesses since
it is normal memory.
 1.2.10.2 14-Aug-2009  snj Pull up following revision(s) (requested by mrg in ticket #907):
sys/external/bsd/drm/dist/shared-core/radeon_cp.c: revision 1.6
sys/external/bsd/drm/dist/shared-core/radeon_drv.h: revision 1.6
sys/external/bsd/drm/dist/shared-core/radeon_irq.c: revision 1.3
- stash the fbmap into the radeon dev_priv handle so we can ..
- call drm_rmmap() in radeon_do_cleanup_cp on the two maps created
- in several vblank functions, check to make sure we have mappings
enabled before doing something that might blow up. fixes PR#41715.
 1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.2.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.2.6.1 20-Jul-2008  mjf file radeon_cp.c was added on branch mjf-devfs2 on 2008-09-28 10:40:45 +0000
 1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2.4.1 20-Jul-2008  wrstuden file radeon_cp.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.2.2.1 20-Jul-2008  simonb file radeon_cp.c was added on branch simonb-wapbl on 2008-07-28 14:37:32 +0000
 1.3.2.5 11-Aug-2010  yamt sync with head.
 1.3.2.4 19-Aug-2009  yamt sync with head.
 1.3.2.3 18-Jul-2009  yamt sync with head.
 1.3.2.2 04-May-2009  yamt sync with head.
 1.3.2.1 30-Mar-2009  yamt file radeon_cp.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.6.4.4 31-May-2011  rmind sync with head
 1.6.4.3 21-Apr-2011  rmind sync with head
 1.6.4.2 05-Mar-2011  rmind sync with head
 1.6.4.1 30-May-2010  rmind sync with head
 1.6.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.9.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3 30-Aug-2019  riastradh Delete dead-as-a-doornail-in-a-dead-horse branch.

If dev_priv is null here, you're hosed to begin with, so the apparent
null pointer dereference in this branch is moot; also this is the old
drm code that we should maybe just delete altogether...

Potential null pointer dereference reported by Dr Silvio Cesare of
InfoSect.
 1.2 17-Oct-2013  christos branches: 1.2.30;
remove unused variables
 1.1 24-May-2010  mrg branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.16; 1.1.26; 1.1.30;
implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.

this is mostly from freebsd (though it also exists in other versions
of the drm code) svn commits:

--
SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland

Add kernel support for Radeon R6/7xx 3D.

You will still need Mesa from git and possibly an updated DDX driver,
but this is working fairly well now.
--
SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland

Add support for radeon RS880 IGP chips to drm.
--
SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland

Add support for Radeon HD 4770 (RV740) chips.
--
SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland

Add GET_PARAM support for Z pipes.

This is needed for occulsion queries on rv530 chips.
--
SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland

A bit of cleanup work on radeon_freelist_get()

* Fix the main loop to search all buffers before sleeping.
* Remove dead code
--
SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland

Fix offset handling
--
SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland

radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.
--
SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland

R600 doesn't support IRQs yet, so don't try to use them.
--

special thanks to robert noland @ freebsd for making this an
easy port!
 1.1.30.1 18-May-2014  rmind sync with head
 1.1.26.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.16.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.8.2 08-Dec-2010  riz Patch the following files (requested by mrg in ticket #1488):
sys/dev/pci/drm/files.pcidrm
sys/external/bsd/drm/dist/bsd-core/drmP.h
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h
sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c
sys/external/bsd/drm/dist/shared-core/r600_blit.c
sys/external/bsd/drm/dist/shared-core/r600_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cs.c
sys/external/bsd/drm/dist/shared-core/radeon_drm.h
sys/external/bsd/drm/dist/shared-core/radeon_drv.h
sys/external/bsd/drm/dist/shared-core/radeon_state.c

implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions
of the drm code.)

only use bus_space*() on drm_local_map_ts that have been mapped into
some bus space somewhere. otherwise, just use normal accesses since
it is normal memory.
 1.1.8.1 24-May-2010  riz file radeon_cs.c was added on branch netbsd-5 on 2010-12-08 04:24:28 +0000
 1.1.6.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.6.1 24-May-2010  uebayasi file radeon_cs.c was added on branch uebayasi-xip on 2010-08-17 06:46:53 +0000
 1.1.4.2 11-Aug-2010  yamt sync with head.
 1.1.4.1 24-May-2010  yamt file radeon_cs.c was added on branch yamt-nfs-mp on 2010-08-11 22:54:21 +0000
 1.1.2.2 30-May-2010  rmind sync with head
 1.1.2.1 24-May-2010  rmind file radeon_cs.c was added on branch rmind-uvmplock on 2010-05-30 05:17:48 +0000
 1.2.30.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.3 24-May-2010  mrg implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.

this is mostly from freebsd (though it also exists in other versions
of the drm code) svn commits:

--
SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland

Add kernel support for Radeon R6/7xx 3D.

You will still need Mesa from git and possibly an updated DDX driver,
but this is working fairly well now.
--
SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland

Add support for radeon RS880 IGP chips to drm.
--
SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland

Add support for Radeon HD 4770 (RV740) chips.
--
SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland

Add GET_PARAM support for Z pipes.

This is needed for occulsion queries on rv530 chips.
--
SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland

A bit of cleanup work on radeon_freelist_get()

* Fix the main loop to search all buffers before sleeping.
* Remove dead code
--
SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland

Fix offset handling
--
SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland

radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.
--
SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland

R600 doesn't support IRQs yet, so don't try to use them.
--

special thanks to robert noland @ freebsd for making this an
easy port!
 1.2 19-Jun-2009  mrg branches: 1.2.2; 1.2.4;
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.4 11-Aug-2010  yamt sync with head.
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file radeon_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.2 08-Dec-2010  riz Patch the following files (requested by mrg in ticket #1488):
sys/dev/pci/drm/files.pcidrm
sys/external/bsd/drm/dist/bsd-core/drmP.h
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h
sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c
sys/external/bsd/drm/dist/shared-core/r600_blit.c
sys/external/bsd/drm/dist/shared-core/r600_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cs.c
sys/external/bsd/drm/dist/shared-core/radeon_drm.h
sys/external/bsd/drm/dist/shared-core/radeon_drv.h
sys/external/bsd/drm/dist/shared-core/radeon_state.c

implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions
of the drm code.)

only use bus_space*() on drm_local_map_ts that have been mapped into
some bus space somewhere. otherwise, just use normal accesses since
it is normal memory.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file radeon_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:45 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file radeon_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file radeon_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2.4.1 30-May-2010  rmind sync with head
 1.2.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.10 24-Feb-2011  mrg convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.9 05-Jul-2010  mrg branches: 1.9.2; 1.9.4;
move all the radeondrm firmware images into the filesystem. check that
some firmware sizes are the expected size. (XXX make all.)

based upon similar changes seen in the linux radeon drm driver.

this saves about 250KB in the kernel or module.
 1.8 26-Jun-2010  mrg add CHIP_CEDAR, CHIP_REDWOOD, CHIP_JUNIPER, CHIP_CYPRESS and CHIP_HEMLOCK.
 1.7 24-May-2010  mrg implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.

this is mostly from freebsd (though it also exists in other versions
of the drm code) svn commits:

--
SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland

Add kernel support for Radeon R6/7xx 3D.

You will still need Mesa from git and possibly an updated DDX driver,
but this is working fairly well now.
--
SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland

Add support for radeon RS880 IGP chips to drm.
--
SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland

Add support for Radeon HD 4770 (RV740) chips.
--
SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland

Add GET_PARAM support for Z pipes.

This is needed for occulsion queries on rv530 chips.
--
SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland

A bit of cleanup work on radeon_freelist_get()

* Fix the main loop to search all buffers before sleeping.
* Remove dead code
--
SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland

Fix offset handling
--
SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland

radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.
--
SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland

R600 doesn't support IRQs yet, so don't try to use them.
--

special thanks to robert noland @ freebsd for making this an
easy port!
 1.6 08-Aug-2009  mrg branches: 1.6.2; 1.6.4;
- stash the fbmap into the radeon dev_priv handle so we can ..
- call drm_rmmap() in radeon_do_cleanup_cp on the two maps created
- in several vblank functions, check to make sure we have mappings
enabled before doing something that might blow up. fixes PR#41715.
 1.5 19-Jun-2009  mrg merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.4 25-Jul-2008  mrg branches: 1.4.2; 1.4.4; 1.4.6; 1.4.10; 1.4.14; 1.4.18; 1.4.20;
merge git-change-2580a065d81be645a14af1e91b8441f7e72fcbe4.
 1.3 19-Jul-2008  mrg merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.2 19-Jul-2008  mrg pull over many many changes from netbsd-current sys/dev/{,pci/}drm/.
make the mesa-drm style Makefile's actually run on netbsd (but i doubt
they work yet.)

this still has a lot to go. it doesn't work yet, but it's getting
close.

most of this is from other authors than myself: yorrick, drochner,
jared, bjs, all contributed a lot more than i have so far, but there's
a bunch of clean up from myself in here as well.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.4 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.3 25-Jul-2008  mrg import mesa-drm git from change 2580a065d81be645a14af1e91b8441f7e72fcbe4.
this pulls in a few vblank fixes.
 1.1.1.2 19-Jul-2008  mrg import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.4.20.1 21-Apr-2010  matt sync to netbsd-5
 1.4.18.5 11-Aug-2010  yamt sync with head.
 1.4.18.4 19-Aug-2009  yamt sync with head.
 1.4.18.3 18-Jul-2009  yamt sync with head.
 1.4.18.2 04-May-2009  yamt sync with head.
 1.4.18.1 25-Jul-2008  yamt file radeon_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.4.14.1 23-Jul-2009  jym Sync with HEAD.
 1.4.10.3 08-Dec-2010  riz Patch the following files (requested by mrg in ticket #1488):
sys/dev/pci/drm/files.pcidrm
sys/external/bsd/drm/dist/bsd-core/drmP.h
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h
sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c
sys/external/bsd/drm/dist/shared-core/r600_blit.c
sys/external/bsd/drm/dist/shared-core/r600_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cs.c
sys/external/bsd/drm/dist/shared-core/radeon_drm.h
sys/external/bsd/drm/dist/shared-core/radeon_drv.h
sys/external/bsd/drm/dist/shared-core/radeon_state.c

implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions
of the drm code.)

only use bus_space*() on drm_local_map_ts that have been mapped into
some bus space somewhere. otherwise, just use normal accesses since
it is normal memory.
 1.4.10.2 14-Aug-2009  snj Pull up following revision(s) (requested by mrg in ticket #907):
sys/external/bsd/drm/dist/shared-core/radeon_cp.c: revision 1.6
sys/external/bsd/drm/dist/shared-core/radeon_drv.h: revision 1.6
sys/external/bsd/drm/dist/shared-core/radeon_irq.c: revision 1.3
- stash the fbmap into the radeon dev_priv handle so we can ..
- call drm_rmmap() in radeon_do_cleanup_cp on the two maps created
- in several vblank functions, check to make sure we have mappings
enabled before doing something that might blow up. fixes PR#41715.
 1.4.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.4.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.4.6.1 25-Jul-2008  mjf file radeon_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:45 +0000
 1.4.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.4.4.1 25-Jul-2008  wrstuden file radeon_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.4.2.2 28-Jul-2008  simonb Sync with head.
 1.4.2.1 25-Jul-2008  simonb file radeon_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.6.4.3 05-Mar-2011  rmind sync with head
 1.6.4.2 03-Jul-2010  rmind sync with head
 1.6.4.1 30-May-2010  rmind sync with head
 1.6.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.9.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.9.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4 24-Feb-2011  mrg convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.3 08-Aug-2009  mrg branches: 1.3.4; 1.3.6; 1.3.8;
- stash the fbmap into the radeon dev_priv handle so we can ..
- call drm_rmmap() in radeon_do_cleanup_cp on the two maps created
- in several vblank functions, check to make sure we have mappings
enabled before doing something that might blow up. fixes PR#41715.
 1.2 19-Jun-2009  mrg merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.3 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.2 25-Jul-2008  mrg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.10; 1.1.1.2.14; 1.1.1.2.18; 1.1.1.2.20;
import mesa-drm git from change 2580a065d81be645a14af1e91b8441f7e72fcbe4.
this pulls in a few vblank fixes.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.2.18.4 19-Aug-2009  yamt sync with head.
 1.1.1.2.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.2.18.2 04-May-2009  yamt sync with head.
 1.1.1.2.18.1 25-Jul-2008  yamt file radeon_irq.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.1.1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.2.10.2 14-Aug-2009  snj Pull up following revision(s) (requested by mrg in ticket #907):
sys/external/bsd/drm/dist/shared-core/radeon_cp.c: revision 1.6
sys/external/bsd/drm/dist/shared-core/radeon_drv.h: revision 1.6
sys/external/bsd/drm/dist/shared-core/radeon_irq.c: revision 1.3
- stash the fbmap into the radeon dev_priv handle so we can ..
- call drm_rmmap() in radeon_do_cleanup_cp on the two maps created
- in several vblank functions, check to make sure we have mappings
enabled before doing something that might blow up. fixes PR#41715.
 1.1.1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.2.6.1 25-Jul-2008  mjf file radeon_irq.c was added on branch mjf-devfs2 on 2008-09-28 10:40:45 +0000
 1.1.1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.2.4.1 25-Jul-2008  wrstuden file radeon_irq.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.2.2.1 25-Jul-2008  simonb file radeon_irq.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.3.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.3.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.4.1 05-Mar-2011  rmind sync with head
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jul-2008  mrg branches: 1.1.1.2.2; 1.1.1.2.4; 1.1.1.2.6; 1.1.1.2.18;
import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.2.18.2 04-May-2009  yamt sync with head.
 1.1.1.2.18.1 19-Jul-2008  yamt file radeon_mem.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.1.1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.2.6.1 19-Jul-2008  mjf file radeon_mem.c was added on branch mjf-devfs2 on 2008-09-28 10:40:45 +0000
 1.1.1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.2.4.1 19-Jul-2008  wrstuden file radeon_mem.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.2.2.1 19-Jul-2008  simonb file radeon_mem.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2 06-Jul-2010  mrg kill these old built-in firmware headers; we use the ones installed into
the filesystem from src/sys/microcode/radeon now.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.22; 1.1.1.1.24;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.24.1 05-Mar-2011  rmind sync with head
 1.1.1.1.22.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.1.1.22.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.1.1.18.3 11-Aug-2010  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file radeon_microcode.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file radeon_microcode.h was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file radeon_microcode.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file radeon_microcode.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.8 17-Oct-2013  christos remove unused variables
 1.7 30-May-2011  joerg branches: 1.7.4; 1.7.14; 1.7.18;
Fix format strings to match arguments
 1.6 06-Nov-2010  mrg branches: 1.6.2;
call the sysctl destroy functions upon failure and unload, which
should fix PR#40029. while there, fix the radeon unload, which
was improperly matching mutex init/destroy operations and leading
to trying to destroy lock that was never initialised.
 1.5 24-May-2010  mrg implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.

this is mostly from freebsd (though it also exists in other versions
of the drm code) svn commits:

--
SVN rev 196470 on 2009-08-23 14:55:57Z by rnoland

Add kernel support for Radeon R6/7xx 3D.

You will still need Mesa from git and possibly an updated DDX driver,
but this is working fairly well now.
--
SVN rev 196142 on 2009-08-12 12:57:02Z by rnoland

Add support for radeon RS880 IGP chips to drm.
--
SVN rev 195501 on 2009-07-09 16:39:28Z by rnoland

Add support for Radeon HD 4770 (RV740) chips.
--
SVN rev 196471 on 2009-08-23 15:02:58Z by rnoland

Add GET_PARAM support for Z pipes.

This is needed for occulsion queries on rv530 chips.
--
SVN rev 198695 on 2009-10-30 18:07:22Z by rnoland

A bit of cleanup work on radeon_freelist_get()

* Fix the main loop to search all buffers before sleeping.
* Remove dead code
--
SVN rev 197606 on 2009-09-28 22:41:28Z by rnoland

Fix offset handling
--
SVN rev 197605 on 2009-09-28 22:40:29Z by rnoland

radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.
--
SVN rev 197603 on 2009-09-28 22:37:07Z by rnoland

R600 doesn't support IRQs yet, so don't try to use them.
--

special thanks to robert noland @ freebsd for making this an
easy port!
 1.4 19-Jun-2009  mrg branches: 1.4.2; 1.4.4;
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.3 19-Jul-2008  mrg branches: 1.3.2; 1.3.4; 1.3.6; 1.3.10; 1.3.14; 1.3.18; 1.3.20;
merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.2 19-Jul-2008  mrg pull over many many changes from netbsd-current sys/dev/{,pci/}drm/.
make the mesa-drm style Makefile's actually run on netbsd (but i doubt
they work yet.)

this still has a lot to go. it doesn't work yet, but it's getting
close.

most of this is from other authors than myself: yorrick, drochner,
jared, bjs, all contributed a lot more than i have so far, but there's
a bunch of clean up from myself in here as well.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jul-2008  mrg import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.3.20.1 21-Apr-2010  matt sync to netbsd-5
 1.3.18.4 11-Aug-2010  yamt sync with head.
 1.3.18.3 18-Jul-2009  yamt sync with head.
 1.3.18.2 04-May-2009  yamt sync with head.
 1.3.18.1 19-Jul-2008  yamt file radeon_state.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.3.14.1 23-Jul-2009  jym Sync with HEAD.
 1.3.10.2 08-Dec-2010  riz Patch the following files (requested by mrg in ticket #1488):
sys/dev/pci/drm/files.pcidrm
sys/external/bsd/drm/dist/bsd-core/drmP.h
sys/external/bsd/drm/dist/bsd-core/drm_pciids.h
sys/external/bsd/drm/dist/bsd-core/drm_sysctl.c
sys/external/bsd/drm/dist/shared-core/r600_blit.c
sys/external/bsd/drm/dist/shared-core/r600_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cp.c
sys/external/bsd/drm/dist/shared-core/radeon_cs.c
sys/external/bsd/drm/dist/shared-core/radeon_drm.h
sys/external/bsd/drm/dist/shared-core/radeon_drv.h
sys/external/bsd/drm/dist/shared-core/radeon_state.c

implement DRM_RADEON_CS ioctl, necessary for r600_dri to function.
this is mostly from freebsd (though it also exists in other versions
of the drm code.)

only use bus_space*() on drm_local_map_ts that have been mapped into
some bus space somewhere. otherwise, just use normal accesses since
it is normal memory.
 1.3.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.3.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.3.6.1 19-Jul-2008  mjf file radeon_state.c was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.3.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.3.4.1 19-Jul-2008  wrstuden file radeon_state.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.3.2.2 28-Jul-2008  simonb Sync with head.
 1.3.2.1 19-Jul-2008  simonb file radeon_state.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.4.4.3 31-May-2011  rmind sync with head
 1.4.4.2 05-Mar-2011  rmind sync with head
 1.4.4.1 30-May-2010  rmind sync with head
 1.4.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.6.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.18.1 18-May-2014  rmind sync with head
 1.7.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2 06-Jul-2010  mrg kill these old built-in firmware headers; we use the ones installed into
the filesystem from src/sys/microcode/radeon now.
 1.1 26-Jun-2010  mrg branches: 1.1.2;
add minimal support for radeon 5xxx. there's not enough for it to be
useful yet, but that's not a big deal since the latest xf86-video-ati
doesn't support DRM on these yet.

new microcode images obtained from:
http://people.freedesktop.org/~agd5f/radeon_ucode/

XXX: need to fix max_hw_contexts handling at the very least.

XXX: should convert radeondrm to use firmload(9)
 1.1.2.3 05-Mar-2011  rmind sync with head
 1.1.2.2 03-Jul-2010  rmind sync with head
 1.1.2.1 26-Jun-2010  rmind file radeonhd_microcode.h was added on branch rmind-uvmplock on 2010-07-03 01:19:43 +0000
 1.6 17-Oct-2013  christos annotate some unused variables the authors want to keep
 1.5 02-Sep-2009  mrg branches: 1.5.12; 1.5.22; 1.5.26;
- normalize netbsd drm_mtrr_del() with freebsd, removing a few #if's
- make the mtrr code do nothing on non-x86
 1.4 23-Jun-2009  mrg add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.

use pci_find_device() to kill the one XXX rafal left.
 1.3 19-Jun-2009  mrg merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.2 19-Jul-2008  mrg branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.18; 1.2.20;
pull over many many changes from netbsd-current sys/dev/{,pci/}drm/.
make the mesa-drm style Makefile's actually run on netbsd (but i doubt
they work yet.)

this still has a lot to go. it doesn't work yet, but it's getting
close.

most of this is from other authors than myself: yorrick, drochner,
jared, bjs, all contributed a lot more than i have so far, but there's
a bunch of clean up from myself in here as well.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.2.18.4 16-Sep-2009  yamt sync with head
 1.2.18.3 18-Jul-2009  yamt sync with head.
 1.2.18.2 04-May-2009  yamt sync with head.
 1.2.18.1 19-Jul-2008  yamt file savage_bci.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:34 +0000
 1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.2.10.2 24-Jun-2009  snj Pull up following revision(s) (requested by mrg in ticket #830):
sys/external/bsd/drm/dist/bsd-core/mach64_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/mga_drv.c: revision 1.5
sys/external/bsd/drm/dist/bsd-core/r128_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/savage_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/sis_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/tdfx_drv.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/mach64_dma.c: revision 1.2
sys/external/bsd/drm/dist/shared-core/mach64_drv.h: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_bci.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_state.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/sis_ds.c: revision 1.4
add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.
use pci_find_device() to kill the one XXX rafal left.
 1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.2.6.1 19-Jul-2008  mjf file savage_bci.c was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2.4.1 19-Jul-2008  wrstuden file savage_bci.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.2.2.1 19-Jul-2008  simonb file savage_bci.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.5.26.1 18-May-2014  rmind sync with head
 1.5.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.12.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file savage_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file savage_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file savage_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file savage_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file savage_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file savage_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file savage_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:52 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file savage_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.5 02-Aug-2019  hauke Deal with gcc's "warning: this statement may fall through
[-Wimplicit-fallthrough=]" by adding the missing KNF FALLTHROUGH
comments.

christos@ approved.
 1.4 23-Jun-2009  mrg branches: 1.4.64; 1.4.68;
add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.

use pci_find_device() to kill the one XXX rafal left.
 1.3 19-Jun-2009  mrg merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.2 19-Jul-2008  mrg branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.18; 1.2.20;
rename some inner local variables away from outer scope name conflicts
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.2.18.3 18-Jul-2009  yamt sync with head.
 1.2.18.2 04-May-2009  yamt sync with head.
 1.2.18.1 19-Jul-2008  yamt file savage_state.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.2.10.2 24-Jun-2009  snj Pull up following revision(s) (requested by mrg in ticket #830):
sys/external/bsd/drm/dist/bsd-core/mach64_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/mga_drv.c: revision 1.5
sys/external/bsd/drm/dist/bsd-core/r128_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/savage_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/sis_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/tdfx_drv.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/mach64_dma.c: revision 1.2
sys/external/bsd/drm/dist/shared-core/mach64_drv.h: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_bci.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_state.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/sis_ds.c: revision 1.4
add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.
use pci_find_device() to kill the one XXX rafal left.
 1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.2.6.1 19-Jul-2008  mjf file savage_state.c was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2.4.1 19-Jul-2008  wrstuden file savage_state.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.2.2.1 19-Jul-2008  simonb file savage_state.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.4.68.1 22-Sep-2019  martin Pull up following revision(s) (requested by hauke in ticket #223):

sys/external/bsd/drm/dist/shared-core/savage_state.c: revision 1.5

Deal with gcc's "warning: this statement may fall through
[-Wimplicit-fallthrough=3D]" by adding the missing KNF FALLTHROUGH
comments.
christos@ approved.
 1.4.64.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file sis_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file sis_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file sis_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file sis_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file sis_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file sis_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file sis_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file sis_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.4 23-Jun-2009  mrg add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.

use pci_find_device() to kill the one XXX rafal left.
 1.3 19-Jun-2009  mrg merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko
<arto.huusko@pp2.inet.fi> and FUKAUMI Naoki <fun@naobsd.org>.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.


from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
 1.2 19-Jul-2008  mrg branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.18; 1.2.20;
rename a local variable from free to myfree
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.2.20.1 21-Apr-2010  matt sync to netbsd-5
 1.2.18.3 18-Jul-2009  yamt sync with head.
 1.2.18.2 04-May-2009  yamt sync with head.
 1.2.18.1 19-Jul-2008  yamt file sis_ds.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.2.14.1 23-Jul-2009  jym Sync with HEAD.
 1.2.10.2 24-Jun-2009  snj Pull up following revision(s) (requested by mrg in ticket #830):
sys/external/bsd/drm/dist/bsd-core/mach64_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/mga_drv.c: revision 1.5
sys/external/bsd/drm/dist/bsd-core/r128_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/savage_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/sis_drv.c: revision 1.4
sys/external/bsd/drm/dist/bsd-core/tdfx_drv.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/mach64_dma.c: revision 1.2
sys/external/bsd/drm/dist/shared-core/mach64_drv.h: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_bci.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/savage_state.c: revision 1.4
sys/external/bsd/drm/dist/shared-core/sis_ds.c: revision 1.4
add a bunch of fixes mostly from rafal@.
this fixes the build for all the other drm modules.
use pci_find_device() to kill the one XXX rafal left.
 1.2.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.2.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.2.6.1 19-Jul-2008  mjf file sis_ds.c was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.2.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2.4.1 19-Jul-2008  wrstuden file sis_ds.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.2.2.2 28-Jul-2008  simonb Sync with head.
 1.2.2.1 19-Jul-2008  simonb file sis_ds.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file sis_ds.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file sis_ds.h was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file sis_ds.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file sis_ds.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file sis_mm.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file sis_mm.c was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file sis_mm.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file sis_mm.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file tdfx_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file tdfx_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file tdfx_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file tdfx_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_3d_reg.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_3d_reg.h was added on branch mjf-devfs2 on 2008-09-28 10:40:46 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_3d_reg.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_3d_reg.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.5 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.4 17-Oct-2013  christos branches: 1.4.28; 1.4.30;
remove unused variables
 1.3 18-Feb-2011  jmcneill branches: 1.3.4; 1.3.14; 1.3.18;
sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
 1.2 27-Sep-2009  jmcneill branches: 1.2.4; 1.2.6; 1.2.8;
Port viadrm to NetBSD and fix a bunch of compile issues:

viadrm0 at vga1: VIA P4M900 / VN896
viadrm0: AGP at 0xf0000000 128MB
viadrm0: Initialized via 2.11.1 20070202

xf86-video-openchrome seems happy with it, although 3d acceleration isn't
supported on the P4M900 so I can't test that part.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.3 11-Mar-2010  yamt sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_dma.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_dma.c was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_dma.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_dma.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.3.18.1 18-May-2014  rmind sync with head
 1.3.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4.30.1 10-Jun-2019  christos Sync with HEAD
 1.4.28.1 28-Jul-2018  pgoyette Sync with HEAD
 1.3 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.2 18-Feb-2011  jmcneill branches: 1.2.54; 1.2.56;
sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.24; 1.1.1.1.30; 1.1.1.1.32;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.32.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.1.30.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.1.24.1 05-Mar-2011  rmind sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2.56.1 10-Jun-2019  christos Sync with HEAD
 1.2.54.1 28-Jul-2018  pgoyette Sync with HEAD
 1.4 18-Feb-2011  jmcneill get rid of this stale copy of via_drv.c, the one we want is in bsd-core
 1.3 21-Aug-2010  jmcneill branches: 1.3.2; 1.3.4;
Get viadrm working again
 1.2 27-Sep-2009  jmcneill branches: 1.2.2; 1.2.4;
Port viadrm to NetBSD and fix a bunch of compile issues:

viadrm0 at vga1: VIA P4M900 / VN896
viadrm0: AGP at 0xf0000000 128MB
viadrm0: Initialized via 2.11.1 20070202

xf86-video-openchrome seems happy with it, although 3d acceleration isn't
supported on the P4M900 so I can't test that part.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.4 09-Oct-2010  yamt sync with head
 1.1.1.1.18.3 11-Mar-2010  yamt sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_drv.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_drv.c was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_drv.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_drv.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.2.2.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.3.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.3.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.5 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.4 24-Feb-2011  mrg branches: 1.4.54; 1.4.56;
convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.3 18-Feb-2011  jmcneill sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
 1.2 27-Sep-2009  jmcneill branches: 1.2.4; 1.2.6; 1.2.8;
Port viadrm to NetBSD and fix a bunch of compile issues:

viadrm0 at vga1: VIA P4M900 / VN896
viadrm0: AGP at 0xf0000000 128MB
viadrm0: Initialized via 2.11.1 20070202

xf86-video-openchrome seems happy with it, although 3d acceleration isn't
supported on the P4M900 so I can't test that part.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.3 11-Mar-2010  yamt sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_drv.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_drv.h was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_drv.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_drv.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.4.56.1 10-Jun-2019  christos Sync with HEAD
 1.4.54.1 28-Jul-2018  pgoyette Sync with HEAD
 1.3 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.2 27-Sep-2009  jmcneill branches: 1.2.62; 1.2.64;
Port viadrm to NetBSD and fix a bunch of compile issues:

viadrm0 at vga1: VIA P4M900 / VN896
viadrm0: AGP at 0xf0000000 128MB
viadrm0: Initialized via 2.11.1 20070202

xf86-video-openchrome seems happy with it, although 3d acceleration isn't
supported on the P4M900 so I can't test that part.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.3 11-Mar-2010  yamt sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_ds.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_ds.c was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_ds.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_ds.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.2.62.1 28-Jul-2018  pgoyette Sync with HEAD
 1.2 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_ds.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_ds.h was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_ds.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_ds.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.5 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.4 24-Feb-2011  mrg branches: 1.4.54; 1.4.56;
convert all crtc values passed in from userland to be unsigned instead
of signed. there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
 1.3 18-Feb-2011  jmcneill sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
 1.2 27-Sep-2009  jmcneill branches: 1.2.4; 1.2.6; 1.2.8;
Port viadrm to NetBSD and fix a bunch of compile issues:

viadrm0 at vga1: VIA P4M900 / VN896
viadrm0: AGP at 0xf0000000 128MB
viadrm0: Initialized via 2.11.1 20070202

xf86-video-openchrome seems happy with it, although 3d acceleration isn't
supported on the P4M900 so I can't test that part.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.4 11-Mar-2010  yamt sync with head
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_irq.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_irq.c was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_irq.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_irq.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.4.56.1 10-Jun-2019  christos Sync with HEAD
 1.4.54.1 28-Jul-2018  pgoyette Sync with HEAD
 1.4 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.3 18-Feb-2011  jmcneill branches: 1.3.54; 1.3.56;
sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
 1.2 27-Sep-2009  jmcneill branches: 1.2.4; 1.2.6; 1.2.8;
Port viadrm to NetBSD and fix a bunch of compile issues:

viadrm0 at vga1: VIA P4M900 / VN896
viadrm0: AGP at 0xf0000000 128MB
viadrm0: Initialized via 2.11.1 20070202

xf86-video-openchrome seems happy with it, although 3d acceleration isn't
supported on the P4M900 so I can't test that part.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.2 19-Jun-2009  mrg import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.10; 1.1.1.1.14; 1.1.1.1.18; 1.1.1.1.20;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.20.1 21-Apr-2010  matt sync to netbsd-5
 1.1.1.1.18.4 11-Mar-2010  yamt sync with head
 1.1.1.1.18.3 18-Jul-2009  yamt sync with head.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_map.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.14.1 23-Jul-2009  jym Sync with HEAD.
 1.1.1.1.10.1 20-Jun-2009  snj Apply patch (requested by mrg in ticket #823):
import mesa-drm git from version 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c.
--
merge the changes from drm 85b9f737db0d2a845e4d7e2bbf9ad12ff9e2227c
with our changes and the work recently done by Arto Huusko and FUKAUMI
Naoki.

it includes all the changes arto provided from both mesa-drm and
the r6xx-r7xx-support branch. it does not yet include code to
handle the (deleted) drm_pciids.h file, but i'll probably just
check in a generated one for now.

i have not yet merged the changes from outside this dir.

from arto's messages to tech-x11:

The important change that was needed is that drm_scatter.c was
fixed to return pointer to all allocated pages, not just the
beginning of the allocated segments.

Other changes:

- drm_scatter maps COHERENT memory
- drm_drawable: drawable handle allocation is done
inside lock
- drm_memory: when mapping "agp" memory, store offset
of mapped area, so that new requests to same offset
return the same area instead of trying to remap
and fail
- drm_vm: use bus_space_mmap for frame buffer and registers

- r600_cp.c: ioremapfree allocated gart range
- radeon_cp.c: use mtsleep
- some memset calls I had added had their args swapped,
and no memory was cleared
--
add a freshly generated drm_pciids.h
--
some minor clean up:
- reduce diffs to mesa-drm where possible
- fix various formatting issues
- netbsd uses major 180 for drm (XXX)
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_map.c was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_map.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_map.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.3.56.1 10-Jun-2019  christos Sync with HEAD
 1.3.54.1 28-Jul-2018  pgoyette Sync with HEAD
 1.4 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.3 18-Feb-2011  jmcneill branches: 1.3.54; 1.3.56;
sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
 1.2 27-Sep-2009  jmcneill branches: 1.2.4; 1.2.6; 1.2.8;
Port viadrm to NetBSD and fix a bunch of compile issues:

viadrm0 at vga1: VIA P4M900 / VN896
viadrm0: AGP at 0xf0000000 128MB
viadrm0: Initialized via 2.11.1 20070202

xf86-video-openchrome seems happy with it, although 3d acceleration isn't
supported on the P4M900 so I can't test that part.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.3 11-Mar-2010  yamt sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_mm.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_mm.c was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_mm.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_mm.c was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.3.56.1 10-Jun-2019  christos Sync with HEAD
 1.3.54.1 28-Jul-2018  pgoyette Sync with HEAD
 1.2 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.88; 1.1.1.1.90;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.90.1 10-Jun-2019  christos Sync with HEAD
 1.1.1.1.88.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_mm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_mm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_mm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_mm.h was added on branch simonb-wapbl on 2008-07-28 14:37:33 +0000
 1.4 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.3 18-Feb-2011  jmcneill branches: 1.3.54; 1.3.56;
sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
 1.2 27-Sep-2009  jmcneill branches: 1.2.4; 1.2.6; 1.2.8;
Port viadrm to NetBSD and fix a bunch of compile issues:

viadrm0 at vga1: VIA P4M900 / VN896
viadrm0: AGP at 0xf0000000 128MB
viadrm0: Initialized via 2.11.1 20070202

xf86-video-openchrome seems happy with it, although 3d acceleration isn't
supported on the P4M900 so I can't test that part.
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.3 11-Mar-2010  yamt sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_verifier.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_verifier.c was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_verifier.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_verifier.c was added on branch simonb-wapbl on 2008-07-28 14:37:34 +0000
 1.2.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.3.56.1 10-Jun-2019  christos Sync with HEAD
 1.3.54.1 28-Jul-2018  pgoyette Sync with HEAD
 1.3 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.2 18-Feb-2011  jmcneill branches: 1.2.54; 1.2.56;
sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.24; 1.1.1.1.30; 1.1.1.1.32;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.32.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.1.30.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.1.24.1 05-Mar-2011  rmind sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_verifier.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_verifier.h was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_verifier.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_verifier.h was added on branch simonb-wapbl on 2008-07-28 14:37:34 +0000
 1.2.56.1 10-Jun-2019  christos Sync with HEAD
 1.2.54.1 28-Jul-2018  pgoyette Sync with HEAD
 1.3 10-Jul-2018  maya Remove viadrm(4), superseded by viadrmums.

Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
 1.2 18-Feb-2011  jmcneill branches: 1.2.54; 1.2.56;
sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18; 1.1.1.1.24; 1.1.1.1.30; 1.1.1.1.32;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.32.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.1.1.30.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.1.1.24.1 05-Mar-2011  rmind sync with head
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file via_video.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file via_video.c was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file via_video.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file via_video.c was added on branch simonb-wapbl on 2008-07-28 14:37:34 +0000
 1.2.56.1 10-Jun-2019  christos Sync with HEAD
 1.2.54.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1 19-Jul-2008  mrg branches: 1.1.1;
Initial revision
 1.1.1.1 19-Jul-2008  mrg branches: 1.1.1.1.2; 1.1.1.1.4; 1.1.1.1.6; 1.1.1.1.18;
import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
 1.1.1.1.18.2 04-May-2009  yamt sync with head.
 1.1.1.1.18.1 19-Jul-2008  yamt file xgi_drm.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:35 +0000
 1.1.1.1.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.1.1.1.6.1 19-Jul-2008  mjf file xgi_drm.h was added on branch mjf-devfs2 on 2008-09-28 10:40:47 +0000
 1.1.1.1.4.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.1.1.4.1 19-Jul-2008  wrstuden file xgi_drm.h was added on branch wrstuden-revivesa on 2008-09-18 04:36:53 +0000
 1.1.1.1.2.2 28-Jul-2008  simonb Sync with head.
 1.1.1.1.2.1 19-Jul-2008  simonb file xgi_drm.h was added on branch simonb-wapbl on 2008-07-28 14:37:34 +0000

RSS XML Feed