Bug 28172

Summary: We officially drop Nvidia 340
Product: Mageia Reporter: Ezequiel Partida <ezequiel_partida>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Normal CC: fri, ghibomgx, ouaurelien, tmb
Version: CauldronKeywords: IN_ERRATA8
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Ezequiel Partida 2021-01-20 02:55:02 CET
Description of problem:

Plasma startup freezes system, with Nouveau NVIDIA Geforce 8200M

At login prompt it freezes so bad that I cannot move the mouse pointer.

This started after upgrading to latest MGA8 RC1

It used to work great with Mageia 8 Beta 8. As far as I can remember it used propietary NVIDIA driver.

This is an MSI A4000 laptop.
Comment 1 Lewis Smith 2021-01-20 19:43:03 CET
Sorry about your problem.
> This started after upgrading to latest MGA8 RC1
> It used to work great with Mageia 8 Beta
Does this mean you already had installed Mageia 8 Beta, and used the MGA8 RC1 Classic ISO to upgrade that? If not, how did you install the new system which does not work (which ISO)?

If you can, please post the output of:
 $ inxi -SGxx
and *just the VGA section* of:
 $ lspci -v
If you have no working desktop, use a virtual console (Ctrl/Alt/F2-6) and redirect the command outputs to a file with >> filename.txt .

There are other bugs about Plasma freezing with certain nVidia graphics:
Bug 24020, Bug 21184. This may be a duplicate. Please look at them, and possibly try one of the remedies suggested.

CC: (none) => lewyssmith

Comment 2 Ezequiel Partida 2021-01-21 01:58:58 CET
Sorry Lewish..

There is no RC1 ISO as far as I know...  I first installed using the MGA* NetInstaller and it displayed Mageia 8 RC1. But this did not work.

So I later installed uisng the MGA8 Beta 2 and this did work great. But once I upgraded to the latest updates it stop working again.

Right now this laptop is working flawless MGA8 Beta 2 with no updates at all and it's using nvidia 340 driver.

regards
Comment 3 Ezequiel Partida 2021-01-21 02:06:02 CET
BTW, I forgot to tell you that once I installed MGA8 Beta 2 I upgraded using "urpmi --auto-update -v"

# inxi -SGxx
System:
  Host: localhost Kernel: 5.9.12-desktop-1.mga8 x86_64 
  bits: 64 compiler: gcc v: 10.2.1 
  Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 wm: kwin_x11 
  dm: SDDM Distro: Mageia 8 mga8 
Graphics:
  Device-1: NVIDIA MCP79 [GeForce 8200M G] 
  vendor: Micro-Star MSI driver: nvidia v: 340.108 
  bus ID: 02:00.0 chip ID: 10de:086f 
  Device-2: Acer BisonCam NB Pro type: USB 
  driver: uvcvideo bus ID: 1-1:2 chip ID: 5986:0241 
  Display: x11 server: Mageia X.org 1.20.10 
  compositor: kwin_x11 driver: nvidia,v4l 
  resolution: 1366x768~60Hz s-dpi: 111 
  OpenGL: renderer: GeForce 8200M G/integrated/SSE2 
  v: 3.3.0 NVIDIA 340.108 direct render: Yes 



# lspci -v

02:00.0 VGA compatible controller: NVIDIA Corporation MCP79 [GeForce 8200M G] (rev b1) (prog-if 00 [VGA controller])
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 101a
        Flags: bus master, fast devsel, latency 0, IRQ 26
        Memory at e2000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at e0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nouveau, nvidia340
Comment 4 Aurelien Oudelet 2021-01-21 04:22:19 CET
NVIDIA 340 is no longer supported upstream for Kernel 5.8 and onwards.
We try to add fix for it. But there are security vulnerabilities that we can't fix. See bug https://bugs.mageia.org/show_bug.cgi?id=28063

Also, sticky on an older kernel is also a no go as there are security vulnerabilities on kernel that are fixed in most recent updates.

Nouveau open source driver is not on parity with the binary closed sources.
There is drawback on using it. Also you can report upstream at freedesktop.org for bugs you encounter and help make the open source driver better.

CC: (none) => ouaurelien

Comment 5 Ezequiel Partida 2021-01-21 21:12:18 CET
So this means I should upgrade everything but still use 5.8 kernel or lower?.
Comment 6 Ezequiel Partida 2021-01-21 21:35:43 CET
I know someone who is using kernel 5.10 with nvidia drivers 340 with MGA7 with no issues.

If I install MGA8 Beta 2 it works great, but once upgrade it freezes even if I use the kernel installed with beta 2.

Is there a way to trace if it's another problem?.
Comment 7 Aurelien Oudelet 2021-01-21 22:31:41 CET
No, nvidia340 series will not be supported through new M8 installations. On upgrade path, users will a fortiori switched to nouveau or if possible to nvidia390 on x86_64 systems.

Complain upstre to nvidia to support nvidia 340 series on new kernel/X11 server.

Note that this is not in our control.

CC'd Thomas and Giuseppe on this for additional advices.

CC: (none) => ghibomgx, tmb

Comment 8 Ezequiel Partida 2021-01-22 02:43:14 CET
No wonder why Linus Tolvards pointed his finger to NVIDIA.. LOL....  :D :D :D

Thank You!! ;-)

Regards
Comment 9 Lewis Smith 2021-01-22 10:23:53 CET
Thanks Aurélien for your more learned view of this.
This looks like a closure 'wontfix' meaning 'cannot fix'.

CC: lewyssmith => (none)

Comment 10 Aurelien Oudelet 2021-01-22 16:11:38 CET
A WONTFIX.

Therefore, Guiseppe added a mail in QA discuss ML:
Here is a quote from him:

This is an HOW-TO for a workaround BUT BEWARE!

> For who wants to install the nvidia340 drivers anyway, despite security 
> holes, while waiting for a real unsupported mga8 repo with uprmi 
> metadata, I've arranged a quick script in COPR for the purpose. To use 
> it, just enable the COPR repository with:

# dnf copr enable ghibo/mga8-legacy

or

# dnf copr enable ghibo/mga8-legacy mageia-cauldron-x86_64

or

# dnf copr enable ghibo/mga8-legacy mageia-cauldron-i586

just in the case dnf doesn't find correctly the repository, which 
sometimes might occur.

Then install with:

# dnf update --refresh
# dnf install ldetect-lst scriptlet-nvidia340

At this point go in a directory in your home where you have enough space 
to build the drivers and type

scriptlet-nvidia340

to build and install the old nvidia340 drivers.

It will prompt you twice waiting for the root password, the first time 
needed to install the development packages to build the drivers and, 
later, to install the drivers themselves.

Note this this is UNSUPPORTED outside official mga repositories, use it 
at your own risk, so do not entry bug reports on bugzilla about these 
installing scripts. Note also the provided ldetect-lst package with the 
reverted unsafe nvidia340 drivers support might be ineffective in the 
case ldetect-lst is further upgraded in official repositories, or in the 
case the kernel goes beyond 5.10.x.

Resolution: (none) => WONTFIX
Status: NEW => RESOLVED

Comment 11 Morgan Leijström 2021-01-22 16:34:27 CET
I inserted
  https://wiki.mageia.org/en/Mageia_8_Errata#Nvidia
pointing to
  https://wiki.mageia.org/en/Mageia_8_Release_Notes#Proprietary_NVIDIA_driver
which i put a couple tips into.
- Please verify.

As said on ML, would be great to have that procedure per Guiseppe on a wiki page to link to from the release notes.

CC: (none) => fri
Keywords: (none) => IN_ERRATA8
Summary: Plasma startup freezes system, with Nouveau NVIDIA Geforce 8200M => We officially drop Nvidia 340

Comment 12 Thomas Backlund 2021-01-22 16:39:10 CET
(In reply to Morgan Leijström from comment #11)

> 
> As said on ML, would be great to have that procedure per Guiseppe on a wiki
> page to link to from the release notes.

NO.

putting it in release notes basically "makes it appear supported" which it is not.