Re: Radeon 9600 with radeon DRM module

2004-10-19 Thread Nicolai Haehnle
On Monday 18 October 2004 16:04, Tino Keitel wrote:
 On Mon, Oct 18, 2004 at 09:13:57 +0200, Tino Keitel wrote:
 
 [...]
 
  Thanks again. Looks like I used the wrong 2d driver patch before
  (xorg680.atipatch.r300). Now the glxinfo output looks right:
  
  OpenGL renderer string: Mesa DRI R300 20040924 AGP 4x NO-TCL
  
  However, glxgears only prints out this messages and exits:
  
  disabling 3D acceleration
  drmCommandWrite: -22

You're probably using the main-kernel or DRI version of the DRM. You need 
the DRM from r300_driver/drm, because only that version of the DRM 
implements the new ioctls.

 Hm, this looks funny (from r300_context.c):
 
 if (1 ||
 driQueryOptionb(r300-radeon.optionCache, no_rast)) {
 fprintf(stderr, disabling 3D acceleration\n);
 
 Is this intended behaviour? I thought the r300 only exists to provide
 3D acceleration.

That's perfectly correct behaviour. My intention is to start with a purely 
software rendered driver and go from there. Right now, no primitives will 
be hardware accelerated, only glClear() actually uses the hardware path.

Yes, that's a disappointment, but at least the driver is actually very 
stable (for me, that is ;)).
If you think there should be more features, your help is always welcome :)

cu,
Nicolai


pgpDLuMqoy58P.pgp
Description: PGP signature


Re: Radeon 9600 with radeon DRM module

2004-10-18 Thread Tino Keitel
On Mon, Oct 18, 2004 at 01:32:22 -0400, Vladimir Dergachev wrote:
 Just to be sure: will the microcode only be loaded if the device will
 be used, e.g. by the X.org driver? Until now I just load the module and
 
 Yes. In fact DRM driver needs Xserver to tell it which microcode to load.
 
 OK, now I got it:
 
 agpgart: Putting AGP V3 device at :02:00.0 into 8x mode
 [drm] Loading R300 Microcode
 
 I grabbed the Mesa source, applied the mesa.patch, compiled the
 r300_dri.so driver and copied it to the X.org dri drivers directory,
 but strace glxinfo shows that only the r200_dri.so driver will be used.
 
 What I am missing?
 
 You need the patch for the 2d driver - it is on the front page. 
 Try ati.patch.4.

Thanks again. Looks like I used the wrong 2d driver patch before
(xorg680.atipatch.r300). Now the glxinfo output looks right:

OpenGL renderer string: Mesa DRI R300 20040924 AGP 4x NO-TCL

However, glxgears only prints out this messages and exits:

disabling 3D acceleration
drmCommandWrite: -22

Regards,
Tino


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-18 Thread Vladimir Dergachev
What I am missing?
You need the patch for the 2d driver - it is on the front page.
Try ati.patch.4.
Thanks again. Looks like I used the wrong 2d driver patch before
(xorg680.atipatch.r300). Now the glxinfo output looks right:
OpenGL renderer string: Mesa DRI R300 20040924 AGP 4x NO-TCL
However, glxgears only prints out this messages and exits:
disabling 3D acceleration
drmCommandWrite: -22
  A. you might not have allowed the user that is running glxgears
 access to DRI devices (add section DRI)
  B. If you are not trying Nicolai's 3d driver do not run glxgears !
 Only try r300_demo.
best
   Vladimir Dergachev
Regards,
Tino
---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-18 Thread Tino Keitel
On Mon, Oct 18, 2004 at 09:13:57 +0200, Tino Keitel wrote:

[...]

 Thanks again. Looks like I used the wrong 2d driver patch before
 (xorg680.atipatch.r300). Now the glxinfo output looks right:
 
 OpenGL renderer string: Mesa DRI R300 20040924 AGP 4x NO-TCL
 
 However, glxgears only prints out this messages and exits:
 
 disabling 3D acceleration
 drmCommandWrite: -22

Hm, this looks funny (from r300_context.c):

if (1 ||
driQueryOptionb(r300-radeon.optionCache, no_rast)) {
fprintf(stderr, disabling 3D acceleration\n);

Is this intended behaviour? I thought the r300 only exists to provide
3D acceleration.

Regards,
Tino


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-18 Thread Vladimir Dergachev

On Mon, 18 Oct 2004, Tino Keitel wrote:
On Mon, Oct 18, 2004 at 09:13:57 +0200, Tino Keitel wrote:
[...]
Thanks again. Looks like I used the wrong 2d driver patch before
(xorg680.atipatch.r300). Now the glxinfo output looks right:
OpenGL renderer string: Mesa DRI R300 20040924 AGP 4x NO-TCL
However, glxgears only prints out this messages and exits:
disabling 3D acceleration
drmCommandWrite: -22
Hm, this looks funny (from r300_context.c):
   if (1 ||
   driQueryOptionb(r300-radeon.optionCache, no_rast)) {
   fprintf(stderr, disabling 3D acceleration\n);
Is this intended behaviour? I thought the r300 only exists to provide
3D acceleration.
This probably turns on software fallback for most of the calls. Only the 
few - non-drawing calls are accelerated.

 best
  Vladimir Dergachev
Regards,
Tino
---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-17 Thread Tino Keitel
On Fri, Oct 15, 2004 at 09:47:29 -0400, Vladimir Dergachev wrote:
 Try using DRI CVS, module drm. Do a fresh checkout, just in case.
 
 Yes, I used the CVS from r300.sf.net. Thanks for the hint.
 
 Still no luck.
 
 grep 4150 drm_pciids.h
 {0x1002, 0x4150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
 
 After modprobe:
 
 ACPI: PCI interrupt :02:00.0[A] - GSI 19 (level, high) - IRQ 19
 [drm] Initialized radeon 1.12.0 20020828 on minor 0: ATI Technologies Inc 
 RV350 AP [Radeon 9600]
 
 Just to be sure: will the microcode only be loaded if the device will
 be used, e.g. by the X.org driver? Until now I just load the module and
 
 Yes. In fact DRM driver needs Xserver to tell it which microcode to load.

OK, now I got it:

agpgart: Putting AGP V3 device at :02:00.0 into 8x mode
[drm] Loading R300 Microcode

I grabbed the Mesa source, applied the mesa.patch, compiled the
r300_dri.so driver and copied it to the X.org dri drivers directory,
but strace glxinfo shows that only the r200_dri.so driver will be used.

What I am missing?

Regards,
Tino


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-17 Thread Vladimir Dergachev
Just to be sure: will the microcode only be loaded if the device will
be used, e.g. by the X.org driver? Until now I just load the module and
Yes. In fact DRM driver needs Xserver to tell it which microcode to load.
OK, now I got it:
agpgart: Putting AGP V3 device at :02:00.0 into 8x mode
[drm] Loading R300 Microcode
I grabbed the Mesa source, applied the mesa.patch, compiled the
r300_dri.so driver and copied it to the X.org dri drivers directory,
but strace glxinfo shows that only the r200_dri.so driver will be used.
What I am missing?
You need the patch for the 2d driver - it is on the front page. 
Try ati.patch.4.

  best
 Vladimir Dergachev
Regards,
Tino
---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-15 Thread Tino Keitel
On Fri, Oct 15, 2004 at 10:54:58 +0200, Tino Keitel wrote:
 On Fri, Oct 15, 2004 at 00:28:20 +0200, Tino Keitel wrote:
  On Thu, Oct 14, 2004 at 12:16:14 -0400, Vladimir Dergachev wrote:
   
   
   On Thu, 14 Oct 2004, Tino Keitel wrote:
  
  [...]
  
  
   There is no linux-core or shared-core directory, just linux
   and shared btw., if this matters.
   
   Try using DRI CVS, module drm. Do a fresh checkout, just in case.
  
  Yes, I used the CVS from r300.sf.net. Thanks for the hint.
 
 Still no luck.
 
 grep 4150 drm_pciids.h 
 {0x1002, 0x4150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
 
 After modprobe:
 
 ACPI: PCI interrupt :02:00.0[A] - GSI 19 (level, high) - IRQ 19
 [drm] Initialized radeon 1.12.0 20020828 on minor 0: ATI Technologies Inc RV350 AP 
 [Radeon 9600]

Just to be sure: will the microcode only be loaded if the device will
be used, e.g. by the X.org driver? Until now I just load the module and
don't play around with X, because the Xserver freezed my machine when I
tried it 2 days ago.

Regards,
Tino


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Radeon 9600 with radeon DRM module

2004-10-14 Thread Tino Keitel
Hi folks,

I grabbed the current CVS for the r300 driver, added the PCI ID of by
Radeon 9600 (0x4150) to drm_pciids.h and built the module, but the
kernel only shows this after loading the module:

radeon: Ignoring new-style parameters in presence of obsolete ones
[drm] Initialized radeon 1.11.1 20040922 on minor 0: ATI Technologies Inc RV350 AP 
[Radeon 9600]
ACPI: PCI interrupt :02:00.0[A] - GSI 19 (level, high) - IRQ 19

I thought it should at least print some messages when it loads the r300
microcode. I put some debug messages into the module but it looks like
it doesn't even enters radeon_cp_init(). I use kernel 2.6.7-mm7. Any
hints what I'am missing?

I'm still waiting for the confirmation of my subscription for this
mailing list, so please CC: me in replies.

Regards,
Tino


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-14 Thread Tino Keitel
On Thu, Oct 14, 2004 at 11:29:05 -0400, Vladimir Dergachev wrote:
 
 
 On Thu, 14 Oct 2004, Tino Keitel wrote:
 
 Hi folks,
 
 I grabbed the current CVS for the r300 driver, added the PCI ID of by
 Radeon 9600 (0x4150) to drm_pciids.h and built the module, but the
 kernel only shows this after loading the module:
 
 You need to add your pci id to drm_pciids.txt file in drm/shared-core
 
 Then change to drm/linux-core and type make.
 
 Please let me know whether this works for you.

.../r300_driver/drm/linux$ grep 4150 drm_pciids.h
{0x1002, 0x4150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \

In dmesg, I still have the same output.

There is no linux-core or shared-core directory, just linux and
shared btw., if this matters.

Regards,
Tino


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-14 Thread Vladimir Dergachev

On Thu, 14 Oct 2004, Tino Keitel wrote:
On Thu, Oct 14, 2004 at 11:29:05 -0400, Vladimir Dergachev wrote:

On Thu, 14 Oct 2004, Tino Keitel wrote:
Hi folks,
I grabbed the current CVS for the r300 driver, added the PCI ID of by
Radeon 9600 (0x4150) to drm_pciids.h and built the module, but the
kernel only shows this after loading the module:
You need to add your pci id to drm_pciids.txt file in drm/shared-core
Then change to drm/linux-core and type make.
Please let me know whether this works for you.
.../r300_driver/drm/linux$ grep 4150 drm_pciids.h
   {0x1002, 0x4150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
In dmesg, I still have the same output.
There is no linux-core or shared-core directory, just linux and
shared btw., if this matters.
Try using DRI CVS, module drm. Do a fresh checkout, just in case.
  best
 Vladimir Dergachev
Regards,
Tino
---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-14 Thread Vladimir Dergachev

On Thu, 14 Oct 2004, Tino Keitel wrote:
Hi folks,
I grabbed the current CVS for the r300 driver, added the PCI ID of by
Radeon 9600 (0x4150) to drm_pciids.h and built the module, but the
kernel only shows this after loading the module:
You need to add your pci id to drm_pciids.txt file in drm/shared-core
Then change to drm/linux-core and type make.
Please let me know whether this works for you.
best
Vladimir Dergachev
radeon: Ignoring new-style parameters in presence of obsolete ones
[drm] Initialized radeon 1.11.1 20040922 on minor 0: ATI Technologies Inc RV350 AP 
[Radeon 9600]
ACPI: PCI interrupt :02:00.0[A] - GSI 19 (level, high) - IRQ 19
I thought it should at least print some messages when it loads the r300
microcode. I put some debug messages into the module but it looks like
it doesn't even enters radeon_cp_init(). I use kernel 2.6.7-mm7. Any
hints what I'am missing?
I'm still waiting for the confirmation of my subscription for this
mailing list, so please CC: me in replies.
Regards,
Tino
---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-14 Thread Alex Deucher
On Thu, 14 Oct 2004 17:53:07 +0200, Tino Keitel [EMAIL PROTECTED] wrote:
 On Thu, Oct 14, 2004 at 11:29:05 -0400, Vladimir Dergachev wrote:
 
 
  On Thu, 14 Oct 2004, Tino Keitel wrote:
 
  Hi folks,
  
  I grabbed the current CVS for the r300 driver, added the PCI ID of by
  Radeon 9600 (0x4150) to drm_pciids.h and built the module, but the
  kernel only shows this after loading the module:
 
  You need to add your pci id to drm_pciids.txt file in drm/shared-core
 
  Then change to drm/linux-core and type make.
 
  Please let me know whether this works for you.
 
 .../r300_driver/drm/linux$ grep 4150 drm_pciids.h
 {0x1002, 0x4150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
 
 In dmesg, I still have the same output.
 
 There is no linux-core or shared-core directory, just linux and
 shared btw., if this matters.

you probably need to run cvs co rather than cvs update from time to
time.  update doesn't always seem to download new files.

Alex

 
 Regards,
 Tino



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-14 Thread Vladimir Dergachev
{0x1002, 0x4150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
In dmesg, I still have the same output.
There is no linux-core or shared-core directory, just linux and
shared btw., if this matters.
you probably need to run cvs co rather than cvs update from time to
time.  update doesn't always seem to download new files.
In this particular case one should run
cvs update -d
 -d causes it to download new directories as if doing checkout - this is 
the likely reason that these directories did not show up.

  An alternative cause might be that Tino was using drm code from 
r300.sf.net which would not have Jon's changes.

   best
 Vladimir Dergachev
Alex
Regards,
Tino

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Radeon 9600 with radeon DRM module

2004-10-14 Thread Tino Keitel
On Thu, Oct 14, 2004 at 12:16:14 -0400, Vladimir Dergachev wrote:
 
 
 On Thu, 14 Oct 2004, Tino Keitel wrote:

[...]


 There is no linux-core or shared-core directory, just linux
 and shared btw., if this matters.
 
 Try using DRI CVS, module drm. Do a fresh checkout, just in case.

Yes, I used the CVS from r300.sf.net. Thanks for the hint.

Regards,
Tino


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
--
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel