All of lore.kernel.org
 help / color / mirror / Atom feed
* About Using "nVidia Open Source Driver" on MIPS Computer
@ 2014-05-20 14:33 Zhiqiang Liu
       [not found] ` <CACGcVE2hDJk3qLaAhyXFqnzvFJz3CkSGqQyNmqpH6dZs859Sqg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Zhiqiang Liu @ 2014-05-20 14:33 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 1338 bytes --]

Hello, Gurus, recently I got a MIPS computer installed with Linux
OS(Fedora), unfortunately there is no driver for the graphics
card, so it cannot perform 3D acceleration. Since I happen to have a nVidia
graphics card at hand (it is GeForce 9500GT, somewhat old), I want to apply
this card on this computer, so my questions are:

1. Is it possible to make a nVidia graphics driver for this MIPS computer
from current open source driver, i.e, transplant current
X86-based driver to MIPs-based driver?
2. If it is possible to do so, then what and where should I start with? what
parts of the driver I'll have to modify? and are there any
architecture-specific
parts, e.g, parts implemented by X86 assembly language or something else HW
dependent?
3. What skills do you think I must have to do this job? I am skillful at C
programming in Linux, and have much experience on HW designing, should I
grasp OpenGL for this work?
4. To make a workable driver with 3D acceleration, which modules' source codes
should I download? I have downloaded a file named
"xf86-video-nouveau-1.0.10.zip", is it right?

Currently I don't have so much knowledge on Graphics Card and Linux, but I
am interested in this task very much, I will try my best to finish it as
long as there are possibilities to succeed.

Thank your gurus very much!

Best Regards
Gavin

[-- Attachment #1.2: Type: text/html, Size: 4788 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: About Using "nVidia Open Source Driver" on MIPS Computer
       [not found] ` <CACGcVE2hDJk3qLaAhyXFqnzvFJz3CkSGqQyNmqpH6dZs859Sqg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-05-20 14:41   ` Ilia Mirkin
  0 siblings, 0 replies; 3+ messages in thread
From: Ilia Mirkin @ 2014-05-20 14:41 UTC (permalink / raw)
  To: Zhiqiang Liu; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org

On Tue, May 20, 2014 at 10:33 AM, Zhiqiang Liu <gavin.liuzq-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hello, Gurus, recently I got a MIPS computer installed with Linux
> OS(Fedora), unfortunately there is no driver for the graphics
> card, so it cannot perform 3D acceleration. Since I happen to have a nVidia
> graphics card at hand (it is GeForce 9500GT, somewhat old), I want to apply
> this card on this computer, so my questions are:
>
> 1. Is it possible to make a nVidia graphics driver for this MIPS computer
> from current open source driver, i.e, transplant current
> X86-based driver to MIPs-based driver?

What about the current driver is x86-based? nouveau works on ppc,
should also work on mips. I'm sure there will be issues, anything
outside of x86 doesn't get a huge amount of testing...

> 2. If it is possible to do so, then what and where should I start with? what
> parts of the driver I'll have to modify? and are there any
> architecture-specific parts, e.g, parts implemented by X86 assembly language
> or something else HW dependent?

Plug it in and see if it works :) It probably won't, but it'll be
interesting to see where the failures happen. If possible, configure
your kernel for 4K pages -- non-4K page size has been an area with
problems in the past.

> 3. What skills do you think I must have to do this job? I am skillful at C
> programming in Linux, and have much experience on HW designing, should I
> grasp OpenGL for this work?
> 4. To make a workable driver with 3D acceleration, which modules' source
> codes should I download? I have downloaded a file named
> "xf86-video-nouveau-1.0.10.zip", is it right?

Nouveau is made up of several parts. First, it is a KMS driver in the
linux kernel (the module would be called 'nouveau'). If that doesn't
work, you won't be able to use any of the other pieces. Then there is
the user-space stack, which is the DDX for Xorg (xf86-video-nouveau)
and the 3D driver, which is part of mesa. Take a look at
http://nouveau.freedesktop.org/wiki/InstallNouveau/ if you plan on
building from source and don't have a lot of experience doing so.
There is nothing x86-specific in any of these bits (sure, there are a
couple of SSE2-based optimizations in the ddx and mesa drivers,
relating to video stuff, but they're completely optional and should
fall back on non-sse versions if sse isn't available).

Good luck,

  -ilia

^ permalink raw reply	[flat|nested] 3+ messages in thread

* About Using "nVidia Open Source Driver" on MIPS Computer
@ 2014-05-21  9:04 Rebecca N. Palmer
  0 siblings, 0 replies; 3+ messages in thread
From: Rebecca N. Palmer @ 2014-05-21  9:04 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	gavin.liuzq-Re5JQEeQqe8AvxtiuMwx3w

Debian have been building nouveau on a wide range of CPUs, including 
mips (big-endian) and mipsel (little-endian, includes Loongson), for 
some time; however, this does not necessarily mean anyone has actually 
tried to use it.

https://packages.debian.org/sid/linux-image-3.14-1-4kc-malta
https://packages.debian.org/sid/libdrm-nouveau2
https://packages.debian.org/sid/xserver-xorg-video-nouveau
https://packages.debian.org/sid/libgl1-mesa-dri

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-21  9:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-21  9:04 About Using "nVidia Open Source Driver" on MIPS Computer Rebecca N. Palmer
  -- strict thread matches above, loose matches on Subject: below --
2014-05-20 14:33 Zhiqiang Liu
     [not found] ` <CACGcVE2hDJk3qLaAhyXFqnzvFJz3CkSGqQyNmqpH6dZs859Sqg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-20 14:41   ` Ilia Mirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.