Nvidia Nouveau driver: GPU0 lockup

I have a problem with my installation or GPU.
During shutdown I see the message GPU0 lockup ....

Is this a problem with the noveau driver or the graphics card ?

inxi -Fza:

System:
  Kernel: 5.15.28-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/vmlinuz-5.15-x86_64
    root=UUID=efdcc96e-b0e3-46a5-8097-dfbe37313d5b rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: KDE Plasma 5.24.3 tk: Qt 5.15.3 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Server System: Supermicro product: X10SRA v: 0123456789
    serial: <filter> Chassis: type: 17 v: 0123456789 serial: <filter>
  Mobo: Supermicro model: X10SRA v: 1.01 serial: <filter>
    UEFI: American Megatrends v: 2.1a date: 10/24/2018
CPU:
  Info: model: Intel Core i7-6800K socket: LGA2011-3 bits: 64 type: MT MCP
    arch: Broadwell family: 6 model-id: 0x4F (79) stepping: 1
    microcode: 0xB000040
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 15 MiB desc: 1x15 MiB
  Speed (MHz): avg: 1200 high: 1202 min/max: 1200/3800
    base/boost: 3400/4000 scaling: driver: intel_cpufreq governor: schedutil
    volts: 1.8 V ext-clock: 100 MHz cores: 1: 1200 2: 1200 3: 1202 4: 1201
    5: 1201 6: 1200 7: 1201 8: 1201 9: 1200 10: 1200 11: 1201 12: 1201
    bogomips: 81627
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable
Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: CardExpert driver: nouveau
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3
    speed: 8 GT/s ports: active: DP-3 empty: DP-1, DP-2, DVI-I-1, HDMI-A-1
    bus-ID: 03:00.0 chip-ID: 10de:13c2 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa gpu: nouveau display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0")
    s-diag: 777mm (30.6")
  Monitor-1: DP-3 model: Dell U2713HM serial: <filter> built: 2012
    res: 2560x1440 hz: 60 dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.2")
    diag: 685mm (27") ratio: 16:9 modes: max: 2560x1440 min: 720x400
  OpenGL: renderer: NV124 v: 4.3 Mesa 21.3.7 direct render: Yes
Audio:
  Device-1: Intel C610/X99 series HD Audio vendor: Super Micro
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8d20
    class-ID: 0403
  Device-2: NVIDIA GM204 High Definition Audio vendor: CardExpert
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 03:00.1 chip-ID: 10de:0fbb
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.28-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel I210 Gigabit Network vendor: Super Micro driver: igb
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 05:00.0
    chip-ID: 8086:1533 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Intel I210 Gigabit Network vendor: Super Micro driver: igb
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: c000 bus-ID: 06:00.0
    chip-ID: 8086:1533 class-ID: 0200
  IF: eno2 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.38 TiB used: 213.67 GiB (15.2%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B
    speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter> rev: 5B2QGXA7
    temp: 23.9 C scheme: GPT
  SMART: yes health: PASSED on: 5d 17h cycles: 1,429
    read-units: 11,873,212 [6.07 TB] written-units: 4,230,940 [2.16 TB]
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 PRO 512GB
    family: based SSDs size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
    rev: 4B6Q temp: 21 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 349d 0h cycles: 22230
    written: 6.48 TiB
Partition:
  ID-1: / raw-size: 100 GiB size: 97.87 GiB (97.87%) used: 8.43 GiB (8.6%)
    fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p8 maj-min: 259:8
  ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%)
    used: 113 MiB (11.6%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p6
    maj-min: 259:6
  ID-3: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p5
    maj-min: 259:5
  ID-4: /home raw-size: 300 GiB size: 294.23 GiB (98.08%)
    used: 11.34 GiB (3.9%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p9
    maj-min: 259:9
  ID-5: /var raw-size: 32.46 GiB size: 31.66 GiB (97.51%)
    used: 8.46 GiB (26.7%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p10
    maj-min: 259:10
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 32 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p7 maj-min: 259:7
Sensors:
  System Temperatures: cpu: 18.0 C mobo: N/A gpu: nouveau temp: 32.0 C
  Fan Speeds (RPM): N/A gpu: nouveau fan: 478
Info:
  Processes: 312 Uptime: 3m wakeups: 0 Memory: 31.23 GiB
  used: 1.93 GiB (6.2%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1239 lib: 356 flatpak: 0
  Shell: Bash (su) v: 5.1.16 running-in: konsole inxi: 3.3.13

See NVIDIA Optimus - ArchWiki.

Symptoms: lspci hangs, system suspend fails, shutdown hangs, optirun hangs.
Applies to: newer laptops with GTX 965M or alike when bbswitch (e.g. via Bumblebee) or nouveau is in use.

Wiki suggests to add nouveau.runpm=0 to the kernel parameters. Edit /etc/default/grub as root and that parameter to GRUB_CMDLINE_LINUX_DEFAULT=. Update grub with sudo update-grub.

Actually, I am testing now.

Sometimes the error on reboot or shutdown does occur - even with nouveau.runpm=0.

Is the graphics card defective ?

How can I test, if the graphics card works correctly ?

The error: GPU0 lockup ... switching to fbcon only occurs on shutdown, not reboot.

I have done the GPU test under Windows 10: dxdiag and Furmark.
No problems found.

Can you try using proprietary drivers instead. Also see some search results about the error.