Home | History | Annotate | Download | only in shared-core
History log of /src/sys/external/bsd/drm/dist/shared-core/radeon_state.c
RevisionDateAuthorComments
 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")

RSS XML Feed