Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36

Thread: How to use NVIDIA and Intel GPU simultaneously?

  1. #21
    Join Date
    Sep 2012
    Posts
    4,941

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    Quote Originally Posted by heyjoe View Post
    What should I be looking for in the logs?
    I cannot say in advance. If you post them, something may stand out. Could you post requested information for working case at least?

  2. #22
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,665

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    Quote Originally Posted by heyjoe View Post
    I cannot show any output with iGPU because I simply have no login (not even text one).
    Maybe appending "3 nomodeset" to your kernel boot line gives at least a console login in single user mode with framebuffer (no X Windows)?
    Main: Leap 15 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.3 (& others) on Core2Duo + GM965

  3. #23

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    Thanks for the tips and sorry for the late reply. 'nomodeset' helped me to get a text login but it didn't help to find why X didn't start with the iGPU. However I found that changing kernel boot parameters from (current setting) video=2560x1440 to video=1600x1200 (or even 1024x768) also helped to get a text consle + showed what (I suppose) seems to be the problem.

    TLDR: I think I may be experiencing a bug quite similar to one of these:

    https://bugzilla.kernel.org/show_bug.cgi?id=79261
    https://bugs.freedesktop.org/show_bug.cgi?id=89806

    I tested the following cases (pasting excerpts from command output which seem related). To keep it as short as possible:

    Case 1

    BIOS setting: Primary GPU = Auto (or PCIE)

    X works. The iGPU does not show in virt-manager unless I also enable the multi-monitor iGPU setting in BIOS (which seems to have no effect on the following):

    lspci shows only the dGPU
    dmesg
    /var/log/Xorg.0.log

    Case 2

    BIOS setting: Primary GPU = iGPU. Multi-monitor for iGPU can be enabled or disabled (doesn't seem to matter). Lowering 'video=...' as explained so I can see what is going on.

    X doesn't start. I get a boot time message similar to the one in the bug report links:

    Code:
    [drm:intel_set_pch_fifo_underrun_reporting [i915]] *ERROR* uncleared pch fifo underrun on pch transcoder A
    [drm:cpt_irq_handler [i915]] *ERROR* PCH transcoder A FIFO underrun
    after which the text login appears. In console Alt+7 I see only a blank screen with a blinkin cursor on top.

    lspci shows both GPUs.
    dmesg shows some warning that:
    Code:
    ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
    which I have no idea how to use.

    Xorg.0.log

    Any idea if there is a way to resolve all this?

  4. #24
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,665

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    Quote Originally Posted by heyjoe View Post
    Thanks for the tips and sorry for the late reply.
    Never mind... at least your system now can see both GPUs simultaneously!
    But let's see if we can avoid some clutter first.
    'nomodeset' helped me to get a text login but it didn't help to find why X didn't start with the iGPU. However I found that changing kernel boot parameters from (current setting) video=2560x1440 to video=1600x1200 (or even 1024x768) also helped to get a text consle + showed what (I suppose) seems to be the problem.

    TLDR: I think I may be experiencing a bug quite similar to one of these:

    https://bugzilla.kernel.org/show_bug.cgi?id=79261
    https://bugs.freedesktop.org/show_bug.cgi?id=89806
    Maybe, since your iGPU seems similar to those reported. Or maybe it is something I witnessed with older Intel graphics (GM965) and similar error messages. I needed to add to the kernel boot line:
    Code:
    video=SVIDEO-1:d
    even if my system had no SVIDEO output, simply because the relevant GPU HW was not properly initialized with kernels 4.4.x and up.
    I tested the following cases (pasting excerpts from command output which seem related). To keep it as short as possible:

    Case 1

    BIOS setting: Primary GPU = Auto (or PCIE)

    X works. The iGPU does not show in virt-manager unless I also enable the multi-monitor iGPU setting in BIOS (which seems to have no effect on the following):

    lspci shows only the dGPU
    dmesg
    /var/log/Xorg.0.log

    Case 2

    BIOS setting: Primary GPU = iGPU. Multi-monitor for iGPU can be enabled or disabled (doesn't seem to matter). Lowering 'video=...' as explained so I can see what is going on.

    X doesn't start. I get a boot time message similar to the one in the bug report links:

    Code:
    [drm:intel_set_pch_fifo_underrun_reporting [i915]] *ERROR* uncleared pch fifo underrun on pch transcoder A
    [drm:cpt_irq_handler [i915]] *ERROR* PCH transcoder A FIFO underrun
    after which the text login appears. In console Alt+7 I see only a blank screen with a blinkin cursor on top.
    Apparently your Xserver has been configured or tuned to take advantage of the Nvidia GPU and that might be one of the reasons why it does not even start when the iGPU is on duty, but I'm not smart enough to tell for sure
    lspci shows both GPUs.
    Nice news, at least there is one setup in which the system sees both of them at the same time. Maybe there is a way to use the iGPU as "main" system console and use sort of pci-passthrough to access the Nvidia card...
    dmesg shows some warning that:
    Code:
    ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
    which I have no idea how to use.
    I've been seeing those for years, seems like an updated ACPI code doesn't like some lines of ASUS firmware code which seems not so up to date (at least on the HW I currently have).
    But those never gave me problems of sort, so I think you can safely ignore them for the time being.
    HTH
    Main: Leap 15 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.3 (& others) on Core2Duo + GM965

  5. #25
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,793
    Blog Entries
    1

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    Quote Originally Posted by heyjoe View Post
    BTW I just noticed something:

    I opened virt-manager and the details about the Windows VM guest. Now when I set video to virtio and Display spice Listen type: none and OpenGL: ON I see 2 GPUs in the dropdown. Screenshot:

    http://ultraimg.com/images/2017/11/24/ncea.png

    http://ultraimg.com/images/2017/11/24/nce0.png

    However booting the guest gives the same error as before enabling iGPU:

    "Error starting domain: unsupported configuration: This QEMU doesn't support spice OpenGL"
    I see you've already posted in the Virtualization forum.
    Just to be sure all is clear, an approach to implement QEMU and optionally use the Spice protocol(not always a requirement) is a very different approach than what is being described and discussed in all the other posts in this Forum thread.
    If you want to explore this QEMU approach further, based on your error I'd recommend
    - Read <all> the posts and links in the Virtualization Forum thread you posted to, note that I updated that thread with a reference to another post I made that provides links to the latest articles on Pass-through GPU for <all> the major virtualization technologies we commonly run on openSUSE as of May 2017.
    - Search the Virtualization forum for threads related to installing and implementing the Spice protocol and KVM if that is what you choose to try to set up. IIRC it's not necessarily straightforward, and discussions describe likely best choices.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #26

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    Quote Originally Posted by OrsoBruno View Post
    Code:
    video=SVIDEO-1:d
    even if my system had no SVIDEO output, simply because the relevant GPU HW was not properly initialized with kernels 4.4.x and up.
    Tried that - still getting the result from case 2.

    Apparently your Xserver has been configured or tuned to take advantage of the Nvidia GPU and that might be one of the reasons why it does not even start when the iGPU is on duty, but I'm not smart enough to tell for sure
    I have been thinking the same. I even thought about switching to nouveau in case nvidia messes up something but that would be contrary to the idea of having and passing 3D acceleration to the VM guest I suppose. So I gave up the idea.

    Quote Originally Posted by tsu2 View Post
    I see you've already posted in the Virtualization forum.
    Just to be sure all is clear, an approach to implement QEMU and optionally use the Spice protocol(not always a requirement) is a very different approach than what is being described and discussed in all the other posts in this Forum thread.
    If you want to explore this QEMU approach further, based on your error I'd recommend
    - Read <all> the posts and links in the Virtualization Forum thread you posted to, note that I updated that thread with a reference to another post I made that provides links to the latest articles on Pass-through GPU for <all> the major virtualization technologies we commonly run on openSUSE as of May 2017.
    - Search the Virtualization forum for threads related to installing and implementing the Spice protocol and KVM if that is what you choose to try to set up. IIRC it's not necessarily straightforward, and discussions describe likely best choices.

    TSU
    I have been reading various stuff for the last 2 years (definitely not <all> and each and every line) and the only result was lots of wasted time. One cannot become a professor in virtualization just because a checkbox doesn't work properly.

    So right now I am focused on making the 2 GPUs work together properly. Then I will proceed accordingly.

  7. #27
    Join Date
    Sep 2012
    Posts
    4,941

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    Quote Originally Posted by OrsoBruno View Post
    Apparently your Xserver has been configured or tuned to take advantage of the Nvidia GPU
    It is not "tuned", it is just that there can be only one GL implementation. On client side glvnd tries to solve this problem, but on server side there still can be only one library. nVidia binary drivers install own, incompatible, implementation.

    Anyway, seeing that OP intentionally truncates all information and just shows some arbitrary random snippets out of log files I guess OP does not want it to be solved.

  8. #28

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    Quote Originally Posted by arvidjaar View Post
    It is not "tuned", it is just that there can be only one GL implementation. On client side glvnd tries to solve this problem, but on server side there still can be only one library. nVidia binary drivers install own, incompatible, implementation.
    Are you suggesting to uninstall nvidia driver? Wouldn't that be contrary to (later) getting 3d acceleration in VM guest?

    Anyway, seeing that OP intentionally truncates all information and just shows some arbitrary random snippets out of log files I guess OP does not want it to be solved.
    The OP is not a security expert but has been told by people who are that sharing full logs (especially publicly) is not a good idea. That does not mean the OP does not want it to be solved, he is just careful, so please don't make such conclusions. I asked what I should be looking for and you suggested to look for something that stands out, so I shared everything related to graphics that stands out. Why do you say that is arbitrary?

    If you need any additional information in order to suggest a solution - just let me know and I will provide it. But please don't get angry just because someone is careful.

  9. #29
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,580

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    As mentioned the NVIDIA driver replaces parts of the X stack (mesa) which breaks other brand GPU. So yes at the least you must remove the NVIDIA driver if you wish also to use the Intel also nouveau driver is 3D also.

  10. #30

    Default Re: How to use NVIDIA and Intel GPU simultaneously?

    Quote Originally Posted by gogalthorp View Post
    As mentioned the NVIDIA driver replaces parts of the X stack (mesa) which breaks other brand GPU. So yes at the least you must remove the NVIDIA driver if you wish also to use the Intel also nouveau driver is 3D also.
    I can do that but what worries me is that nouveau perhaps does not give the same performance as the nvidia driver. Running (a command line for testing which I found a long ago):

    Code:
    grep VGA /proc/pci || lspci | grep VGA | colrm 1 4 ; egrep "model name|MHz" /proc/cpuinfo ; xdpyinfo | egrep "version:|dimensions|depth of" ; glxinfo | egrep -A2 "direct rendering|OpenGL vendor" ; uname -sr ; __GL_SYNC_TO_VBLANK=0 glxgears & sleep 30 ; killall glxgears
    gives me ~24500FPS with the nvidia driver and (when i tested long ago) about 60FPS with the nouveau. I have read people saying that glxgears is not a benchmark but still... Here is an article which compares both drivers in more detail.

    What do you think? Should I remove the nvidia driver just to test? And if it turns out that the nvidia driver itself is the issue - then what?

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •