Re: VIA command verifier.

2004-12-02 Thread Terry Barnaby
Thomas Hellström wrote:
Hi.

On Maw, 2004-11-30 at 20:09, Thomas Hellström wrote:
Textures in AGP memory is currently not allowed, but they are disabled
in the Mesa driver as well, for some reason. If they are allowed in the
future, Texture address checks probably have to be implemented but that
should be a minor task.
I certainly turned them off because they were crashing my box in the
original hey it sort of works codebase. I don't know if its that or if
someone did more work on it later.

I managed to get AGP textures working after some extra return-value checking.
At least it seems rather stable, so I implemented a texture address check
in the verifier, which checks that the texture is actually fetched from a
client-drm-mapped memory region. System memory textures are still
rejected.
So unless someone has anything against this, I'll check it in in the via
drm driver, and put up a modified unichrome_dri.so on the unichrome site
for some serious beta-testing. Possibly also with different user command
buffer sizes.
/Thomas



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel
Great Thomas,
Where is the source/patches for the DRM/3D driver? I will update my
Fedora RPMS and try it out ...
Cheers
Terry
--
  Dr Terry Barnaby BEAM Ltd
  Phone: +44 1454 324512   Northavon Business Center, Dean Rd
  Fax:   +44 1454 313172   Yate, Bristol, BS37 5NH, UK
  Email: [EMAIL PROTECTED] Web: www.beam.ltd.uk
  BEAM for: Visually Impaired X-Terminals, Parallel Processing, 
Software Dev
 Tandems are twice the fun !

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Patch] Problem with create_lk_drm.sh when building for a non installed kernel

2004-10-27 Thread Terry Barnaby
Hi,
The current create_lk_drm.sh script does not pass the kernel source dir
to make. If you are trying to install the DRM to a kernel source that
is not running the kernel this fails.
I enclose a patch that fixes this.
Terry
--
Dr Terry Barnaby BEAM Ltd
Phone: +44 1454 324512   Northavon Business Center, Dean Rd
Fax:   +44 1454 313172   Yate, Bristol, BS37 5NH, UK
Email: [EMAIL PROTECTED] Web: www.beam.ltd.uk
BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software
  Tandems are twice the fun !
? linux/drm_pciids.h
Index: scripts/create_lk_drm.sh
===
RCS file: /cvs/dri/drm/scripts/create_lk_drm.sh,v
retrieving revision 1.4
diff -u -r1.4 create_lk_drm.sh
--- scripts/create_lk_drm.sh	9 May 2004 06:36:55 -	1.4
+++ scripts/create_lk_drm.sh	27 Oct 2004 09:14:46 -
@@ -20,7 +20,7 @@
 echo Copying kernel independent files
 mkdir -p $OUTDIR
 
-( cd linux/ ; make drm_pciids.h )
+( cd linux/ ; make LINUXDIR=$OUTDIR drm_pciids.h )
 cp shared/*.[ch] $OUTDIR
 cp linux/*.[ch] $OUTDIR
 cp linux/Makefile.kernel $OUTDIR/Makefile


[Patch] Problem with create_lk_drm.sh when building for a non installed kernel and for 2.6 kernels

2004-10-27 Thread Terry Barnaby
Hi,
An updated version of my previous patch. This also fixes builds for 2.6 kernels
which is broken at the moment.
The current create_lk_drm.sh script does not pass the kernel source dir
to make. If you are trying to install the DRM to a kernel source that
is not running the kernel this fails.
The create_lk_drm.sh script also does not copy the linux-2.6 files to the
kernel's drm directory.
I enclose a patch that fixes these items.
Terry
--
Dr Terry Barnaby BEAM Ltd
Phone: +44 1454 324512   Northavon Business Center, Dean Rd
Fax:   +44 1454 313172   Yate, Bristol, BS37 5NH, UK
Email: [EMAIL PROTECTED] Web: www.beam.ltd.uk
BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software
   Tandems are twice the fun !
? linux/drm_pciids.h
Index: scripts/create_lk_drm.sh
===
RCS file: /cvs/dri/drm/scripts/create_lk_drm.sh,v
retrieving revision 1.4
diff -u -r1.4 create_lk_drm.sh
--- scripts/create_lk_drm.sh	9 May 2004 06:36:55 -	1.4
+++ scripts/create_lk_drm.sh	27 Oct 2004 09:33:32 -
@@ -20,7 +20,7 @@
 echo Copying kernel independent files
 mkdir -p $OUTDIR
 
-( cd linux/ ; make drm_pciids.h )
+( cd linux/ ; make LINUXDIR=$OUTDIR drm_pciids.h )
 cp shared/*.[ch] $OUTDIR
 cp linux/*.[ch] $OUTDIR
 cp linux/Makefile.kernel $OUTDIR/Makefile
@@ -31,5 +31,6 @@
 elif [ $VERS = 2.6 ] ;then
 	echo Copying 2.6 Kernel files
 	cp linux/Kconfig $OUTDIR/
+	cp linux-2.6/*.[ch] $OUTDIR
 fi
 


[Dri-devel] Problem with latests CVS DRI and Linux kernel 2.6.5

2004-05-05 Thread Terry Barnaby
Hi,

I am trying to build the latest (5/5/04) CVS DRI sources with the
latest 2.6.5 kernel from within the kernel source tree.
I have used scripts/create_lk_drm.sh to copy the cvs dri files
to my kernels source tree.
So far I have the errors:
1. /src/homeSys/devel/kernel-2.6/linux-2.6.5/drivers/char/drm/drm_drv.h:552:24: drm
_pciids.h: No such file or directory
It seems that the makefile.kernel has not been updated to match
the out of kernel tree Makefile.
2. /src/homeSys/devel/kernel-2.6/linux-2.6.5/drivers/char/drm/drm_vm.h:623: too few
 arguments to function `remap_page_range'
The drmP.h file sets DRM_RPR_ARG based on the REMAP_PAGE_RANGE_5_ARGS
paramter. The REMAP_PAGE_RANGE_5_ARGS is not defined in my kernel
tree, but should be to get the correct form of DRM_RPR_ARG.
Terry

--
Dr Terry Barnaby BEAM Ltd
Phone: +44 1454 324512   Northavon Business Center, Dean Rd
Fax:   +44 1454 313172   Yate, Bristol, BS37 5NH, UK
Email: [EMAIL PROTECTED] Web: www.beam.ltd.uk
BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software
  Tandems are twice the fun !
---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [Dri-devel] Problem with latests CVS DRI and Linux kernel 2.6.5

2004-05-05 Thread Terry Barnaby
Some more points on this:
1. The following line can be added to scripts/create_lk_drm.sh before copying
the files to the kernel tree tofix the problem with not having drm_pciids.h
(cd linux; sh ../scripts/create_linux_pci_lists.sh  ../shared/drm_pciids.txt)
2. If the drmP.h file's line #ifndef REMAP_PAGE_RANGE_5_ARGS is changed
to #if LINUX_VERSION_CODE  KERNEL_VERSION(2,5,0) this
hacks around the problem. I don't no where REMAP_PAGE_RANGE_5_ARGS
should really be defined.
Terry

Terry Barnaby wrote:
Hi,

I am trying to build the latest (5/5/04) CVS DRI sources with the
latest 2.6.5 kernel from within the kernel source tree.
I have used scripts/create_lk_drm.sh to copy the cvs dri files
to my kernels source tree.
So far I have the errors:
1. 
/src/homeSys/devel/kernel-2.6/linux-2.6.5/drivers/char/drm/drm_drv.h:552:24: 
drm
_pciids.h: No such file or directory
It seems that the makefile.kernel has not been updated to match
the out of kernel tree Makefile.

2. 
/src/homeSys/devel/kernel-2.6/linux-2.6.5/drivers/char/drm/drm_vm.h:623: 
too few
 arguments to function `remap_page_range'
The drmP.h file sets DRM_RPR_ARG based on the REMAP_PAGE_RANGE_5_ARGS
paramter. The REMAP_PAGE_RANGE_5_ARGS is not defined in my kernel
tree, but should be to get the correct form of DRM_RPR_ARG.

Terry

--
Dr Terry Barnaby BEAM Ltd
Phone: +44 1454 324512   Northavon Business Center, Dean Rd
Fax:   +44 1454 313172   Yate, Bristol, BS37 5NH, UK
Email: [EMAIL PROTECTED] Web: www.beam.ltd.uk
BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software
  Tandems are twice the fun !
---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel