CentOS 7: Xid Error 69: Illegal Class Error - Driver Issue

In using CentOS 7 with the latest NVIDIA K4000 and drivers (390.67 & 396.18 beta) and kernel 3.10-862.2.3 or 3.10-862.3.3, you end up with Xid 69: Illegal Class Error and the X server will not start. It fails trying to allocate memory.

Yet if I backout to 3.10-693.19 and 384.90 everything starts to work once more.

I tried 340.107 with the newer kernels and it once more failed, so I think it is the integration with the kernel. I could not try 384.90 with the newer kernels due to compile issues.

Any ideas how to solve, I rather use the later kernels.

However, nvidia-smi worked just fine. So I know you can access the device, but X would not start due to the Illegal Class Error.

xorg.conf contains:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    HorizSync       30.0 - 200.0
    VertRefresh     40.0 - 300.0
    ModeLine       "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -hsync +vsync
    ModeLine       "1920x1200_60.00" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -hsync +vsync
    ModeLine       "1920x1440_60.00" 234.59 1920 2064 2272 2624 1440 1441 1444 1490 -hsync +vsync
    ModeLine       "2048x1152_60.00" 197.97 2048 2184 2408 2768 1152 1153 1156 1192 -hsync +vsync
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro K4000"
    BusID          "PCI:0:5:0"
    Option         "ConnectToAcpid" "off"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "CustmEDID" "CRT-0:/etc/X11/asus.bin"
    Option         "DPI" "96 x 96"
    Option         "metamodes" "1920x1080_60.00 +0+0; nvidia-auto-select +0+0; 1280x1024_60 +0+0; 1024x768_60 +0+0; 800x600 +0+0; 640x480 +0+0; 1280x1024 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

There are no module settings for the nvidia drivers.

Error in /var/log/messages

Jun 20 17:32:37 liberte kernel: NVRM: Xid (PCI:0000:00:05): 69, Illegal Class Error: ChID 0008, Class 00000000, Offset 0000010c, Data 00000000

Error in Xorg.0.log

Failed to allocate sofware rendering cache surface: out of memory error.

Thank you,
Texiwill