Home | History | Annotate | Download | only in bsd-core
History log of /src/sys/external/bsd/drm/dist/bsd-core/drm_vm.c
RevisionDateAuthorComments
 1.7  17-Oct-2013  christos remove unused variables
 1.6  15-Feb-2011  jmcneill branches: 1.6.4; 1.6.14; 1.6.18;
map the framebuffer and agp with BUS_SPACE_MAP_PREFETCHABLE
 1.5  20-Jun-2009  mrg branches: 1.5.4; 1.5.6; 1.5.8;
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.17
date: 2009/03/29 19:50:17; author: mrg; state: Exp; lines: +7 -7
drm_addmap():
- for _DRM_CONSISTENT mappings, keep the handle.
- use DRM_HANDLE_NEEDS_MASK()

drm_mapbufs():
- use DRM_HANDLE_NEEDS_MASK()

drm_mmap():
- use DRM_HANDLE_NEEDS_MASK()
- for _DRM_SCATTER_GATHER and _DRM_SHM, use vtophys() on the
adjusted offset. XXX

this is gets radeon working on amd64 with an older PCI 9250 card.

XXX: need to excise vtophys() usage.
XXX: need to finish porting these fixes to external.


yay! this takes care of one of the XXX's. still not quite working.
 1.2  19-Jul-2008  mrg branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10; 1.2.14; 1.2.18;
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-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.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.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  19-Jul-2008  mjf file drm_vm.c was added on branch mjf-devfs2 on 2008-09-28 10:40:37 +0000
 1.2.4.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2.4.1  19-Jul-2008  wrstuden file drm_vm.c was added on branch wrstuden-revivesa on 2008-09-18 04:36:48 +0000
 1.2.2.2  28-Jul-2008  simonb Sync with head.
 1.2.2.1  19-Jul-2008  simonb file drm_vm.c was added on branch simonb-wapbl on 2008-07-28 14:37:28 +0000
 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 drm_vm.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:29 +0000
 1.5.8.1  17-Feb-2011  bouyer Sync with HEAD
 1.5.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.5.4.1  05-Mar-2011  rmind sync with head
 1.6.18.1  18-May-2014  rmind sync with head
 1.6.14.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.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")

RSS XML Feed