Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]nvidia-drivers-319.32 emerge failed with kernel-3.10
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
yuyuyak
n00b
n00b


Joined: 23 Nov 2012
Posts: 31
Location: United States

PostPosted: Sat Jul 27, 2013 12:03 am    Post subject: Reply with quote

And on 10.3 as well.
Thanks kriz, DawgG and HTS, can't get much more no muss no fuss than that :D
Back to top
View user's profile Send private message
nightmarez
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2004
Posts: 111
Location: FSV Mainz 05 ;)

PostPosted: Mon Aug 05, 2013 11:27 pm    Post subject: Reply with quote

Yeah, thanks to kriz, DawgG and HTS!
_________________
Ecce quomodo moritur iustus
Back to top
View user's profile Send private message
lock_cda
n00b
n00b


Joined: 03 Mar 2007
Posts: 11

PostPosted: Mon Aug 26, 2013 7:08 pm    Post subject: Reply with quote

n00berry wrote:
Adapted from here:
http://www.linuxquestions.org/questions/linux-software-2/kernel-3-10-x86_64-and-nvidia-319-32-driver-4175467995/

Applying "Unhelpful"'s patch allowed me to compile x11-drivers/nvidia-drivers-319.32 with Kernel 3.10:
https://devtalk.nvidia.com/default/topic/543728/linux/building-nvidia-driver-on-kernel-3-9-0/post/3814531/#3814531

Steps (as root):
1) Copy contents of http://pastie.org/7942599 into txt file:
/etc/portage/patches/x11-drivers/nvidia-drivers/Linux-3.10.patch
2) Convert version number to the relevant version:
perl -pi -e "s/319.17/319.32/g" /etc/portage/patches/x11-drivers/nvidia-drivers/Linux-3.10.patch
3) Make sure /etc/portage/bashrc contains the lines:
post_src_unpack() {
if type epatch_user >& /dev/null; then
cd "${S}"
epatch_user
fi
}
4) Emerge:
emerge -av x11-drivers/nvidia-drivers

Thanks and credit to the original posters


Applying that patch worked for me, but I had some issues which were related with the patch.

When I opened a new tab on firefox, or when I was scrolling a lot on firefox, the Xorg cpu usage was increased from 1-2% to 100%. Those problems didn't happen with the unpatched drivers and kernel <3.10.

Using that patch http://pastebin.com/N0a5KMZa removes the scrolling problem, and the Xorg cpu usage is only increased from 2% to 20% when I make a lot of scolling. The problem opening the new tab on firefox persists (does it happen to someone else?), but the problem when scrolling is fixed, so that's a good point. The patch is smaller, and that's also a good thing.

Those are my card, drivers, firefox and kernel version:

# lspci | grep VGA
03:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX 650] (rev a1)

# equery list nvidia-drivers
* Searching for nvidia-drivers ...
[IP-] [ ] x11-drivers/nvidia-drivers-319.32:0

# equery list firefox
* Searching for firefox ...
[IP-] [ ] www-client/firefox-17.0.8:0

# uname -r
3.10.7-gentoo

I'm sorry for my bad english, I'm spanish and my english sucks :P.
Back to top
View user's profile Send private message
nielsd
n00b
n00b


Joined: 20 Aug 2009
Posts: 8
Location: Heilbad Heiligenstadt

PostPosted: Mon Oct 14, 2013 9:28 am    Post subject: Reply with quote

Hi,

da inzwischen eine neue Version der nvidia-drivers (331.13) raus ist, habe ich den Patch entsprechend angepasst (und so auch bei Gentoo bugs eingereicht):

--- snip ---
--- kernel.orig/nv-linux.h 2013-09-30 05:47:18.000000000 +0200
+++ kernel/nv-linux.h 2013-10-14 10:27:14.520070619 +0200
@@ -956,7 +956,11 @@
#endif

#if !defined(NV_VMWARE)
-#define NV_NUM_PHYSPAGES num_physpages
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
+#define NV_NUM_PHYSPAGES get_num_physpages
+#else
+#define NV_NUM_PHYSPAGES num_physpages
+#endif
#define NV_GET_CURRENT_PROCESS() current->tgid
#define NV_IN_ATOMIC() in_atomic()
#define NV_LOCAL_BH_DISABLE() local_bh_disable()

--- snap ---

hth
cheerioh,


Niels Dettenbach.
Back to top
View user's profile Send private message
lock_cda
n00b
n00b


Joined: 03 Mar 2007
Posts: 11

PostPosted: Mon Oct 28, 2013 10:57 am    Post subject: Reply with quote

Hi,

nielsd I'm using a 3.10 kernel, so I think that your patch has no effect for me (since it will still use num_physpages).

My bug is that when I open a new tab on firefox, the Xorg CPU usage is 100%, and it takes a few seconds (I think that 4 or 5 seconds) to open the new tab. In some cases, the CPU usage is also increased when scrolling, but not allways (for example, scrolling on the google search results page will increase the CPU usage).

Those are the packages I'm using:

Code:
# equery list nvidia-drivers xorg-server firefox gentoo-sources
 * Searching for nvidia-drivers ...
[IP-] [  ] x11-drivers/nvidia-drivers-319.60:0

 * Searching for xorg-server ...
[IP-] [  ] x11-base/xorg-server-1.14.3-r2:0/1.14.3

 * Searching for firefox ...
[IP-] [  ] www-client/firefox-17.0.9:0

 * Searching for gentoo-sources ...
[IP-] [  ] sys-kernel/gentoo-sources-3.10.7-r1:3.10.7-r1


And the uname output:

Code:
# uname -a
Linux gentoo-dani 3.10.7-gentoo-r1 #1 SMP Wed Oct 23 20:50:04 CEST 2013 x86_64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz GenuineIntel GNU/Linux


Those are my use flags:

Code:
USE="-gnome -kde -qt3 -xinerama symlink avi ffmpeg win32codecs mpeg mpeg4 x264 live vorbis svga mp3 mozsvg svg gif gimp tiff tify truetype png jpeg cupsvidix samba xvid usb ncurses bzlib zlib alsa pdf X nvidia gnutls xv ogg bash-completion xa libkms sdl nsplugin lm_sensors  qt3support c++0x cmake xmmx sse sse2 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms vdpau g3dvl abi_x86_64"


The most of those flags were extracted from /proc/cpuinfo.

In order to make some tests, I also enabled the custom-optimization use flag for firefox, but it had no effect.

Code:
# grep firefox /etc/portage/package.*
/etc/portage/package.use:www-client/firefox custom-optimization


My card is:

Code:
# lspci | grep VGA
03:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX 650] (rev a1)


I've been making some research and I found some posts talking about the same problem but none was solved.

Thank you for you time,
Daniel.
Back to top
View user's profile Send private message
nielsd
n00b
n00b


Joined: 20 Aug 2009
Posts: 8
Location: Heilbad Heiligenstadt

PostPosted: Mon Oct 28, 2013 11:24 am    Post subject: Reply with quote

hmm,
sorry, i have no clue what could be a solutuon here. I've worked with all of the 3.10.x gentoo-sources kernels without such a problem in a self build firefox (on a Mac Book Pro NVIDIA Corporation GT216M [GeForce GT 330M] (rev a2). The patch will just "affect" up from 3.11 kernels.

If this is just happen in Firefox and no other apps that may be related to GTK+, pango/cairo or an interaction between GTK and nvidia?

Do you compiled firefox byself or using the binary variant?

Did you try to change to another opencl and opengl implementation (by eselect opengl / opencl)?

Do you have compiled the latest ebuilds within your system (and a consistent one i.e. by emerge full system and world)?
Back to top
View user's profile Send private message
lock_cda
n00b
n00b


Joined: 03 Mar 2007
Posts: 11

PostPosted: Mon Oct 28, 2013 12:37 pm    Post subject: Reply with quote

Well, I've only seen it on Firefox, but my system is pretty minimal (Xorg + Awesome) so it could happen with another software which isn't installed... another software that depends on gtk (like gvim, gimp, etc.) has no problems (unless that I detected). I could install an application to make tests if you think that it could help. When playing movies with mplayer and mplayer2, or I run glxgears, everything works as expected.

Those are my gtk+, pango and cairo versions:

Code:
gentoo-dani dani # equery list gtk+ pango cairo
 * Searching for gtk+ ...
[IP-] [  ] x11-libs/gtk+-2.24.17:2
[IP-] [  ] x11-libs/gtk+-3.4.4:3

 * Searching for pango ...
[IP-] [  ] x11-libs/pango-1.30.1:0

 * Searching for cairo ...
[IP-] [  ] x11-libs/cairo-1.12.14-r4:0


Here we can see that I have both gtk+2 and gtk+3. Maybe that's the problem?

That's the output of a depclean for gtk+2:

Code:
# emerge -pv --depclean "=x11-libs/gtk+-2.24.17"

Calculating dependencies... done!
  x11-libs/gtk+-2.24.17 pulled in by:
    app-crypt/pinentry-0.8.2 requires x11-libs/gtk+:2
    app-editors/gvim-7.3.762 requires >=x11-libs/gtk+-2.6:2
    app-text/ghostscript-gpl-9.05-r1 requires x11-libs/gtk+:2
    app-text/gtkspell-2.0.16 requires x11-libs/gtk+:2
    dev-db/libiodbc-3.52.7 requires x11-libs/gtk+:2
    dev-java/icedtea-bin-6.1.12.6 requires >=x11-libs/gtk+-2.20.1:2
    dev-python/pygtk-2.24.0-r3 requires >=x11-libs/gtk+-2.24:2
    gnome-base/gconf-2.32.4-r1 requires >=x11-libs/gtk+-2.14:2
    gnome-base/gnome-keyring-2.32.1-r1 requires >=x11-libs/gtk+-2.20:2
    gnome-base/libglade-2.6.4 requires >=x11-libs/gtk+-2.8.10:2
    gnome-base/librsvg-2.36.4-r1 requires >=x11-libs/gtk+-2.16:2
    gnome-extra/zenity-2.32.1 requires >=x11-libs/gtk+-2.18:2
    media-gfx/gimp-2.8.6 requires >=x11-libs/gtk+-2.24.10:2
    media-gfx/gqview-2.1.5 requires >=x11-libs/gtk+-2.4:2
    media-gfx/graphviz-2.26.3-r4 requires x11-libs/gtk+:2
    media-video/nvidia-settings-304.60 requires x11-libs/gtk+:2
    net-im/pidgin-2.10.7-r4 requires >=x11-libs/gtk+-2.10:2[-aqua]
    net-libs/gssdp-0.12.2.1 requires >=x11-libs/gtk+-2.12:2
    sys-apps/lshw-02.16b-r2 requires x11-libs/gtk+:2
    www-client/firefox-17.0.9 requires >=x11-libs/gtk+-2.8.6:2
    www-plugins/adobe-flash-11.2.202.310 requires x11-libs/gtk+:2
    x11-drivers/nvidia-drivers-319.60 requires x11-libs/gtk+:2
    x11-libs/gksu-2.0.2-r1 requires >=x11-libs/gtk+-2.4:2
    x11-libs/gtk+-3.4.4 requires >=x11-libs/gtk+-2.24:2
    x11-libs/gtksourceview-2.10.5-r2 requires >=x11-libs/gtk+-2.12:2
    x11-libs/libgksu-2.0.12-r1 requires >=x11-libs/gtk+-2.12:2
    x11-libs/wxGTK-2.8.12.1 requires x11-libs/gtk+:2
    x11-misc/keytouch-2.4.1 requires x11-libs/gtk+:2


And here for gtk+3:

Code:
# emerge -pv --depclean "=x11-libs/gtk+-3.4.4"

Calculating dependencies... done!
  x11-libs/gtk+-3.4.4 pulled in by:
    gnome-extra/polkit-gnome-0.105 requires x11-libs/gtk+:3


So it seems that firefox was compiled against gtk+2 instead of gtk+3. In fact, almost all the software that depends on gtk+ was linked with gtk+2. Maybe that's the cause of the problems... Should I try removing gtk+2 and reinstalling all the software that is linked with gtk+2? Is there any way to link the software on gtk+3 without having to reinstall them one by one?

I compiled the firefox byself.

About changing the opengl / opencl implementation:

Code:
# eselect opencl list
Available OpenCL implementations:
  [1]   nvidia *


I have no other opencl implementation on the system.

Code:
# eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11


The Xorg implementation don't use the direct rendering and my graphics card performance is poor when using it.

My system is up-to-date. I check for updates dayly, so I don't think that the problem is here.

Thank you so much for your time,
Daniel.


PD: I'm sorry for my bad english... I'm spanish and my english sucks :P.
Back to top
View user's profile Send private message
lock_cda
n00b
n00b


Joined: 03 Mar 2007
Posts: 11

PostPosted: Mon Nov 04, 2013 9:53 pm    Post subject: Solved Reply with quote

Hi,

All of my problems were solved with the last gentoo-sources and nvidia-drivers update.

Those are the versions of gentoo-sources and nvidia-drivers:

Code:
gentoo-dani dani # equery list nvidia-drivers gentoo-sources
 * Searching for nvidia-drivers ...
[IP-] [  ] x11-drivers/nvidia-drivers-325.15:0

 * Searching for gentoo-sources ...
[IP-] [  ] sys-kernel/gentoo-sources-3.10.17:3.10.17


I hope it can help someone else.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum