Jetson TX2 GPU & main-stream Linux kernel

Hello,

I’am currently trying to make the kmscube app to work with the mainstream linux kernel (4.17.8) and the patched libdrm & mesa3d for tegra:

https://cgit.freedesktop.org/~tagr/drm/
https://cgit.freedesktop.org/~tagr/mesa

This is the test i am trying to reproduce on the TX2 :

The mainstream 4.17 kernel appears to boot up properly.
The HDMI output is working and i managed to make working some very simple kms tests in swrast/software rendering.
But I still have issues at the GPU initialization when launching kms/drm test programs with nouveau.

Here is the logs :

U-Boot 2016.07-g0ce7ca2 (Jul 28 2017 - 09:50:20 -0700)

TEGRA186
Model: NVIDIA P2771-0000-500
DRAM:  7.8 GiB
MC:   Tegra SD/MMC: 0, Tegra SD/MMC: 1
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@2490000
Hit any key to stop autoboot:
gpio: pin P5 (gpio 125) value is 0
Boot from SD CARD.
reading Image
17998336 bytes read in 1994 ms (8.6 MiB/s)
reading dtb/tegra186-quill-hdmi-primary-p3310-1000-c03-00.dtb
23580 bytes read in 24 ms (959 KiB/s)
## Flattened Device Tree blob at 92000000
   Booting using the fdt blob at 0x92000000
   Using Device Tree in place at 0000000092000000, end 0000000092008c1b

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000100 [0x411fd073]
[    0.000000] Linux version 4.17.8 (jeff@jeff-G41M-Combo) (gcc version 6.4.0 (GCC)) #1 SMP PREEMPT Mon Jul 23 18:43:02 CEST 2018
[    0.000000] Machine model: NVIDIA Tegra186 P2771-0000 Development Board
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000003100000 (options '')
[    0.000000] bootconsole [uart8250] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x00000000ff000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x0000000275f0ffff]
[    0.000000] NUMA: NODE_DATA [mem 0x275ee1600-0x275ee30ff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x0000000275f0ffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000efffffff]
[    0.000000]   node   0: [mem 0x00000000f0110000-0x0000000275f0ffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000275f0ffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] random: get_random_bytes called from start_kernel+0xac/0x414 with crng_init=0
[    0.000000] percpu: Embedded 24 pages/cpu @        (ptrval) s57880 r8192 d32232 u98304
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: enabling workaround for EL2 vector hardening
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2023555
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk1p2 rw rootwait console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 nvdumper_reserved=0x2772e0000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 androidboot.serialno=0324217126757 bl_prof_dataptr=0x10000@0x277240000 sdhci_tegra.en_boot_part_access=1 isolcpus=0,3,4,5
[    0.000000] software IO TLB [mem 0xfafff000-0xfefff000] (64MB) mapped at [        (ptrval)-        (ptrval)]
[    0.000000] Memory: 7990508K/8222720K available (10236K kernel code, 1320K rwdata, 4804K rodata, 1152K init, 389K bss, 215828K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=6.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 31.25MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xe6a171046, max_idle_ns: 881590405314 ns
[    0.000003] sched_clock: 56 bits at 31MHz, resolution 32ns, wraps every 4398046511088ns
[    0.008447] Console: colour dummy device 80x25
[    0.013090] console [tty0] enabled
[    0.016641] bootconsole [uart8250] disabled
[    0.000000] Booting Linux on physical CPU 0x0000000100 [0x411fd073]
[    0.000000] Linux version 4.17.8 (jeff@jeff-G41M-Combo) (gcc version 6.4.0 (GCC)) #1 SMP PREEMPT Mon Jul 23 18:43:02 CEST 2018
[    0.000000] Machine model: NVIDIA Tegra186 P2771-0000 Development Board
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000003100000 (options '')
[    0.000000] bootconsole [uart8250] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x00000000ff000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x0000000275f0ffff]
[    0.000000] NUMA: NODE_DATA [mem 0x275ee1600-0x275ee30ff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x0000000275f0ffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000efffffff]
[    0.000000]   node   0: [mem 0x00000000f0110000-0x0000000275f0ffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000275f0ffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] random: get_random_bytes called from start_kernel+0xac/0x414 with crng_init=0
[    0.000000] percpu: Embedded 24 pages/cpu @        (ptrval) s57880 r8192 d32232 u98304
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: enabling workaround for EL2 vector hardening
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2023555
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk1p2 rw rootwait console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 nvdumper_reserved=0x2772e0000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 androidboot.serialno=0324217126757 bl_prof_dataptr=0x10000@0x277240000 sdhci_tegra.en_boot_part_access=1 isolcpus=0,3,4,5
[    0.000000] software IO TLB [mem 0xfafff000-0xfefff000] (64MB) mapped at [        (ptrval)-        (ptrval)]
[    0.000000] Memory: 7990508K/8222720K available (10236K kernel code, 1320K rwdata, 4804K rodata, 1152K init, 389K bss, 215828K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=6.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 31.25MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xe6a171046, max_idle_ns: 881590405314 ns
[    0.000003] sched_clock: 56 bits at 31MHz, resolution 32ns, wraps every 4398046511088ns
[    0.008447] Console: colour dummy device 80x25
[    0.013090] console [tty0] enabled
[    0.016641] bootconsole [uart8250] disabled
[    0.021041] Calibrating delay loop (skipped), value calculated using timer frequency.. 62.50 BogoMIPS (lpj=125000)
[    0.021053] pid_max: default: 32768 minimum: 301
[    0.021093] Security Framework initialized
[    0.023431] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[    0.024588] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.024646] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.024690] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.045075] ASID allocator initialised with 32768 entries
[    0.049074] Hierarchical SRCU implementation.
[    0.053631] Tegra Revision: A02 SKU: 220 CPU Process: 0 SoC Process: 0
[    0.053791] EFI services will not be available.
[    0.057090] smp: Bringing up secondary CPUs ...
[    0.078094] Detected PIPT I-cache on CPU1
[    0.078111] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64DFR0_EL1. Boot CPU: 0x00000010305106, CPU1: 0x00000010305116
[    0.078125] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_DFR0_EL1. Boot CPU: 0x00000003010066, CPU1: 0x00000003001066
[    0.078137] CPU features: Unsupported CPU feature variation detected.
[    0.078183] CPU1: Booted secondary processor 0x0000000000 [0x4e0f0030]
[    0.097596] Detected PIPT I-cache on CPU2
[    0.097613] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64DFR0_EL1. Boot CPU: 0x00000010305106, CPU2: 0x00000010305116
[    0.097627] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_DFR0_EL1. Boot CPU: 0x00000003010066, CPU2: 0x00000003001066
[    0.097681] CPU2: Booted secondary processor 0x0000000001 [0x4e0f0030]
[    0.117390] Detected PIPT I-cache on CPU3
[    0.117422] CPU3: Booted secondary processor 0x0000000101 [0x411fd073]
[    0.137438] Detected PIPT I-cache on CPU4
[    0.137469] CPU4: Booted secondary processor 0x0000000102 [0x411fd073]
[    0.157470] Detected PIPT I-cache on CPU5
[    0.157500] CPU5: Booted secondary processor 0x0000000103 [0x411fd073]
[    0.157567] smp: Brought up 1 node, 6 CPUs
[    0.157653] SMP: Total of 6 processors activated.
[    0.157661] CPU features: detected: 32-bit EL0 Support
[    0.173510] CPU: All CPU(s) started at EL2
[    0.173565] alternatives: patching kernel code
[    0.176009] devtmpfs: initialized
[    0.183153] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.183316] futex hash table entries: 2048 (order: 6, 262144 bytes)
[    0.183876] pinctrl core: initialized pinctrl subsystem
[    0.185270] DMI not present or invalid.
[    0.185797] NET: Registered protocol family 16
[    0.187557] audit: initializing netlink subsys (disabled)
[    0.187738] audit: type=2000 audit(0.176:1): state=initialized audit_enabled=0 res=1
[    0.189523] cpuidle: using governor menu
[    0.189952] vdso: 2 pages (1 code @         (ptrval), 1 data @         (ptrval))
[    0.190005] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.191934] DMA: preallocated 256 KiB pool for atomic allocations
[    0.193058] Serial: AMBA PL011 UART driver
[    0.205056] tegra-bpmp bpmp: firmware: 0705d30e2bb4ef1fcf63b70c5fc3de
[    0.229382] random: fast init done
[    1.410507] random: crng init done
[    1.686114] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    1.686605] cryptd: max_cpu_qlen set to 1000
[    1.687320] ACPI: Interpreter disabled.
[    1.688496] vgaarb: loaded
[    1.688765] SCSI subsystem initialized
[    1.689228] usbcore: registered new interface driver usbfs
[    1.689283] usbcore: registered new interface driver hub
[    1.689388] usbcore: registered new device driver usb
[    1.699501] pps_core: LinuxPPS API ver. 1 registered
[    1.699527] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.699586] PTP clock support registered
[    1.699757] EDAC MC: Ver: 3.0.0
[    1.700161] Advanced Linux Sound Architecture Driver Initialized.
[    1.700999] clocksource: Switched to clocksource arch_sys_counter
[    1.701157] VFS: Disk quotas dquot_6.6.0
[    1.701254] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.701397] pnp: PnP ACPI: disabled
[    1.708781] NET: Registered protocol family 2
[    1.709686] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes)
[    1.709978] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[    1.710930] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    1.711733] TCP: Hash tables configured (established 65536 bind 65536)
[    1.711968] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[    1.712190] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[    1.712470] NET: Registered protocol family 1
[    1.713083] RPC: Registered named UNIX socket transport module.
[    1.713107] RPC: Registered udp transport module.
[    1.713133] RPC: Registered tcp transport module.
[    1.713151] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.714306] kvm [1]: 8-bit VMID
[    1.715501] kvm [1]: Hyp mode initialized successfully
[    1.718632] Initialise system trusted keyrings
[    1.718834] workingset: timestamp_bits=44 max_order=21 bucket_order=0
[    1.726936] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.727569] NFS: Registering the id_resolver key type
[    1.727604] Key type id_resolver registered
[    1.727621] Key type id_legacy registered
[    1.727644] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.727772] 9p: Installing v9fs 9p2000 file system support
[    1.727883] pstore: using deflate compression
[    1.731435] Key type asymmetric registered
[    1.731463] Asymmetric key parser 'x509' registered
[    1.731635] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.731730] io scheduler noop registered
[    1.731749] io scheduler deadline registered
[    1.731958] io scheduler cfq registered (default)
[    1.731978] io scheduler mq-deadline registered
[    1.731995] io scheduler kyber registered
[    1.740874] tegra-pcie 10003000.pcie: 4x1, 1x1 configuration
[    1.740919] tegra-pcie 10003000.pcie: Failed to get supply 'dvdd-pex': -517
[    1.742516] EINJ: ACPI disabled.
[    1.752542] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.754554] console [ttyS0] disabled
[    1.754604] 3100000.serial: ttyS0 at MMIO 0x3100000 (irq = 22, base_baud = 25500000) is a Tegra
[    2.640773] console [ttyS0] enabled
[    2.645142] SuperH (H)SCI(F) driver initialized
[    2.650028] msm_serial: driver initialized
[    2.654452] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.666771] loop: module loaded
[    2.672958] libphy: Fixed MDIO Bus: probed
[    2.677552] tun: Universal TUN/TAP device driver, 1.6
[    2.683304] thunder_xcv, ver 1.0
[    2.686654] thunder_bgx, ver 1.0
[    2.689991] nicpf, ver 1.0
[    2.693028] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    2.698909] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    2.704961] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    2.711951] igb: Copyright (c) 2007-2014 Intel Corporation.
[    2.717647] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    2.725511] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    2.731832] sky2: driver version 1.30
[    2.736118] VFIO - User Level meta-driver version: 0.3
[    2.742241] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.748808] ehci-pci: EHCI PCI platform driver
[    2.753359] ehci-platform: EHCI generic platform driver
[    2.758794] ehci-orion: EHCI orion driver
[    2.762939] ehci-exynos: EHCI EXYNOS driver
[    2.767247] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.773477] ohci-pci: OHCI PCI platform driver
[    2.778006] ohci-platform: OHCI generic platform driver
[    2.783511] ohci-exynos: OHCI EXYNOS driver
[    2.788130] usbcore: registered new interface driver usb-storage
[    2.796477] i2c /dev entries driver
[    2.803091] max77620 0-003c: PMIC Version OTP:0x45 and ES:0x8
[    2.814685] max77620-sd0: supplied by regulator-dummy
[    2.820050] VDD_DDR_1V1_PMIC: Bringing 1125000uV into 1100000-1100000uV
[    2.828920] max77620-sd1: supplied by regulator-dummy
[    2.835581] max77620-sd2: supplied by regulator-dummy
[    2.842176] max77620-sd3: supplied by regulator-dummy
[    2.848935] max77620-ldo0: supplied by regulator-dummy
[    2.855178] max77620-ldo1: supplied by regulator-dummy
[    2.861226] max77620-ldo2: supplied by regulator-dummy
[    2.867762] max77620-ldo3: supplied by regulator-dummy
[    2.873679] max77620-ldo4: supplied by regulator-dummy
[    2.878936] VDD_RTC: Bringing 800000uV into 1000000-1000000uV
[    2.885763] max77620-ldo5: supplied by regulator-dummy
[    2.891292] max77620-ldo6: supplied by regulator-dummy
[    2.897393] max77620-ldo7: supplied by regulator-dummy
[    2.902607] VDD_HDMI_1V05: Bringing 1000000uV into 1050000-1050000uV
[    2.910455] max77620-ldo8: supplied by regulator-dummy
[    2.915653] VDD_PEX_1V05: Bringing 1000000uV into 1050000-1050000uV
[    4.098479] max77686-rtc max77620-rtc: rtc core: registered max77620-rtc as rtc0
[    4.111432] sdhci: Secure Digital Host Controller Interface driver
[    4.117634] sdhci: Copyright(c) Pierre Ossman
[    4.122365] Synopsys Designware Multimedia Card Interface Driver
[    4.128870] sdhci-pltfm: SDHCI platform and OF driver helper
[    4.134764] sdhci-tegra 3400000.sdhci: Got CD GPIO
[    4.139619] sdhci-tegra 3400000.sdhci: Got WP GPIO
[    4.161045] mmc0: Unknown controller version (4). You may experience problems.
[    4.197012] mmc0: SDHCI controller on 3440000.sdhci [3440000.sdhci] using ADMA
[    4.212392] ledtrig-cpu: registered to indicate activity on CPUs
[    4.219054] usbcore: registered new interface driver usbhid
[    4.224650] usbhid: USB HID core driver
[    4.230602] NET: Registered protocol family 17
[    4.235162] 9pnet: Installing 9P2000 support
[    4.239499] Key type dns_resolver registered
[    4.244427] registered taskstats version 1
[    4.248536] Loading compiled-in X.509 certificates
[    4.261468] VDD_1V8_AP: supplied by VDD_1V8
[    4.266190] SD_CARD_SW_PWR: supplied by VDD_3V3_SYS
[    4.272092] pca953x 1-0074: 1-0074 supply vcc not found, using dummy regulator
[    4.281835] pca953x 1-0077: 1-0077 supply vcc not found, using dummy regulator
[    4.291753] tegra-pcie 10003000.pcie: 4x1, 1x1 configuration
[    4.298657] tegra-pcie 10003000.pcie: probing port 0, using 4 lanes
[    4.306968] tegra-pcie 10003000.pcie: Slot present pin change, signature: 00000018
[    4.709851] tegra-pcie 10003000.pcie: link 0 down, retrying
[    5.120021] tegra-pcie 10003000.pcie: link 0 down, retrying
[    5.530187] tegra-pcie 10003000.pcie: link 0 down, retrying
[    5.537791] tegra-pcie 10003000.pcie: link 0 down, ignoring
[    5.543507] tegra-pcie 10003000.pcie: PCI host bridge to bus 0000:00
[    5.549880] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    5.556072] pci_bus 0000:00: root bus resource [mem 0x50100000-0x57ffffff]
[    5.562956] pci_bus 0000:00: root bus resource [mem 0x58000000-0x7fffffff pref]
[    5.570273] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.577273] sdhci-tegra 3400000.sdhci: Got CD GPIO
[    5.582099] sdhci-tegra 3400000.sdhci: Got WP GPIO
[    5.595356] mmc1: Unknown controller version (4). You may experience problems.
[    5.633102] mmc1: SDHCI controller on 3400000.sdhci [3400000.sdhci] using ADMA
[    5.646915] mmc2: Unknown controller version (4). You may experience problems.
[    5.654868] mmc2: Switching to 3.3V signalling voltage failed
[    5.685008] mmc2: SDHCI controller on 3460000.sdhci [3460000.sdhci] using ADMA
[    5.693766] VDD_HDMI_5V0: supplied by VDD_5V0_SYS
[    5.699625] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    5.733117] max77686-rtc max77620-rtc: setting system clock to 2000-01-01 01:04:57 UTC (946688697)
[    5.763878] VDD_RTC: disabling
[    5.764682] mmc1: new high speed SD card at address b368
[    5.766953] VDDIO_SDMMC3_AP: disabling
[    5.767113] VDD_HDMI_5V0: disabling
[    5.772802] mmcblk1: mmc1:b368 AFSDP 977 MiB 
[    5.776031] ALSA device list:
[    5.776034]   No soundcards found.
[    5.806093] mmc2: new high speed MMC card at address 0001
[    5.811888] mmcblk2: mmc2:0001 032G34 29.1 GiB 
[    5.816728] mmcblk2boot0: mmc2:0001 032G34 partition 1 4.00 MiB
[    5.822682]  mmcblk1: p1 p2
[    5.826457] mmcblk2boot1: mmc2:0001 032G34 partition 2 4.00 MiB
[    5.832509] mmcblk2rpmb: mmc2:0001 032G34 partition 3 4.00 MiB, chardev (240:0)
[    5.841906]  mmcblk2: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17
[    5.907470] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.915599] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    5.952791] devtmpfs: mounted
[    5.956102] Freeing unused kernel memory: 1152K
[    6.759042] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[    8.974859] udevd[1531]: starting version 3.2.5
[    9.107549] udevd[1531]: RUN{builtin}: 'uaccess' unknown /lib/udev/rules.d/73-seat-late.rules:15
[    9.129056] udevd[1531]: IMPORT{builtin}: 'net_setup_link' unknown /lib/udev/rules.d/80-net-setup-link.rules:9
[    9.146223] udevd[1531]: starting eudev-3.2.5
[   14.000486] NET: Registered protocol family 10
[   14.006404] Segment Routing with IPv6
[   14.147262] tegra-dpaux 15040000.dpaux: 15040000.dpaux supply vdd not found, using dummy regulator
[   14.159877] tegra-dpaux 155c0000.dpaux: 155c0000.dpaux supply vdd not found, using dummy regulator
[   14.244270] [drm] parse error at position 6 in video mode 'tegrafb'
[   14.255120] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   14.261757] [drm] No driver support for vblank timestamp query.
[   14.393379] Console: switching to colour frame buffer device 240x67
[   14.441652] drm drm: fb0:  frame buffer device
[   14.457122] [drm] Initialized tegra 0.0.0 20120330 for drm on minor 0
[   14.516108] nouveau 17000000.gpu: NVIDIA GP10B (13b000a1)
[   14.521592] nouveau 17000000.gpu: imem: using DMA API
[   14.549027] [TTM] Zone  kernel: Available graphics memory: 4004022 kiB
[   14.555611] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[   14.562183] [TTM] Initializing pool allocator
[   14.566611] [TTM] Initializing DMA pool allocator
[   14.571386] nouveau 17000000.gpu: DRM: VRAM: 0 MiB
[   14.576231] nouveau 17000000.gpu: DRM: GART: 536870912 MiB
[   14.584327] nouveau 17000000.gpu: DRM: failed to create ce channel, -22
[   14.591984] nouveau 17000000.gpu: DRM: MM: using CPU for buffer copies
[   14.598579] [drm] Initialized nouveau 1.3.1 20120801 for 17000000.gpu on minor 1

Processing /etc/profile... Done

~ # cd /sdltests/
/sdltests # ./testgles
[   77.547819] WARNING: CPU: 1 PID: 1677 at drivers/gpu/drm/tegra/hub.c:611 tegra_drm_fb_resume+0x178/0x1000 [tegra_drm]
[   77.558486] Modules linked in: nouveau ttm tegra_drm host1x drm_kms_helper drm drm_panel_orientation_quirks at25 spidev cec ipv6
[   77.570128] CPU: 1 PID: 1677 Comm: testgles2 Tainted: G S                4.17.8 #1
[   77.577717] Hardware name: NVIDIA Tegra186 P2771-0000 Development Board (DT)
[   77.584794] pstate: 40000005 (nZcv daif -PAN -UAO)
[   77.589618] pc : tegra_drm_fb_resume+0x178/0x1000 [tegra_drm]
[   77.595395] lr : tegra_display_hub_atomic_check+0x20/0xc8 [tegra_drm]
[   77.601857] sp : ffff00000d2fb8d0
[   77.605191] x29: ffff00000d2fb8d0 x28: 00000000c01c64a3 
[   77.610535] x27: ffff8001eb293a00 x26: 000000000000001c 
[   77.615866] x25: 0000000000000001 x24: ffff8001eb3cb000 
[   77.621207] x23: ffff000009069000 x22: 000000007fffffff 
[   77.626546] x21: ffff8001eb3cb000 x20: ffff8001eb293a00 
[   77.631884] x19: ffff8001eb293a00 x18: 0000000000000000 
[   77.637231] x17: 0000ffff89bc22a0 x16: ffff000008241210 
[   77.642574] x15: 0000325370000000 x14: ffff8001e8560f00 
[   77.647908] x13: 0000000000000000 x12: 0000000000000000 
[   77.653237] x11: 0000000000000000 x10: 0000000000000000 
[   77.658568] x9 : 0000000000000000 x8 : ffff000000b53000 
[   77.663900] x7 : 0000000000000001 x6 : ffff8001e84e0488 
[   77.669232] x5 : ffff8001e849a160 x4 : 0000000000000000 
[   77.674561] x3 : ffff8001eb3cb000 x2 : ffff8001eb293a00 
[   77.679892] x1 : 0000000000000000 x0 : ffff8001e8508218 
[   77.685223] Call trace:
[   77.687698]  tegra_drm_fb_resume+0x178/0x1000 [tegra_drm]
[   77.694934]  tegra_display_hub_atomic_check+0x20/0xc8 [tegra_drm]
[   77.702521]  0xffff000000bbaeb8
[   77.707060]  drm_atomic_check_only+0x3cc/0x4c0 [drm]
[   77.713453]  drm_atomic_commit+0x18/0x58 [drm]
[   77.719259]  drm_atomic_helper_disable_plane+0xa0/0xc8 [drm_kms_helper]
[   77.727212]  drm_plane_check_pixel_format+0x2d0/0x6d0 [drm]
[   77.734059]  drm_plane_check_pixel_format+0x4b4/0x6d0 [drm]
[   77.740895]  drm_plane_check_pixel_format+0x664/0x6d0 [drm]
[   77.747714]  drm_mode_cursor_ioctl+0x48/0x68 [drm]
[   77.753761]  drm_ioctl_kernel+0x68/0xf0 [drm]
[   77.759378]  drm_ioctl+0x2a8/0x468 [drm]
[   77.764573]  do_vfs_ioctl+0xb8/0x870
[   77.769400]  ksys_ioctl+0x84/0x98
[   77.773948]  sys_ioctl+0xc/0x18
[   77.778321]  el0_svc_naked+0x30/0x34
[   77.782989] ---[ end trace f41601080ee5aec6 ]---
[   77.788867] WARNING: CPU: 1 PID: 1677 at drivers/gpu/drm/tegra/hub.c:611 tegra_drm_fb_resume+0x178/0x1000 [tegra_drm]
[   77.800601] Modules linked in: nouveau ttm tegra_drm host1x drm_kms_helper drm drm_panel_orientation_quirks at25 spidev cec ipv6
[   77.813345] CPU: 1 PID: 1677 Comm: testgles2 Tainted: G S      W         4.17.8 #1
[   77.822043] Hardware name: NVIDIA Tegra186 P2771-0000 Development Board (DT)
[   77.830217] pstate: 40000005 (nZcv daif -PAN -UAO)
[   77.836131] pc : tegra_drm_fb_resume+0x178/0x1000 [tegra_drm]
[   77.843006] lr : tegra_display_hub_atomic_commit+0x24/0x2c0 [tegra_drm]
[   77.850739] sp : ffff00000d2fb930
[   77.855164] x29: ffff00000d2fb930 x28: 00000000c01c64a3 
[   77.861583] x27: ffff8001e87ea600 x26: 000000000000001c 
[   77.867989] x25: 0000ffffed065ed0 x24: ffff8001e84b4070 
[   77.874400] x23: ffff00000d2fbc00 x22: 0000000000000000 
[   77.880820] x21: ffff8001ec4b7010 x20: ffff8001e8508218 
[   77.887247] x19: ffff8001eb293a00 x18: 0000000000000000 
[   77.893660] x17: 0000ffff89bc22a0 x16: ffff000008241210 
[   77.900068] x15: 0000325370000000 x14: ffff8001e8560f00 
[   77.906477] x13: 0000000000000000 x12: 0000000000000000 
[   77.912875] x11: 0000000000000000 x10: 0000000000000000 
[   77.919269] x9 : 0000000000000000 x8 : ffff8001e84e0800 
[   77.925660] x7 : 0000000000000000 x6 : 0000000000000003 
[   77.932049] x5 : 0000000000000001 x4 : ffff8001e849a160 
[   77.938430] x3 : ffff8001e849a160 x2 : ffff8001eb293a00 
[   77.944812] x1 : 0000000000000000 x0 : ffff8001e8508218 
[   77.951212] Call trace:
[   77.954756]  tegra_drm_fb_resume+0x178/0x1000 [tegra_drm]
[   77.961243]  tegra_display_hub_atomic_commit+0x24/0x2c0 [tegra_drm]
[   77.968555]  0xffff000000bbad88
[   77.972726]  drm_atomic_helper_commit_tail+0xb4/0x100 [drm_kms_helper]
[   77.980269]  drm_atomic_helper_commit+0xc8/0x238 [drm_kms_helper]
[   77.987375]  drm_atomic_commit+0x48/0x58 [drm]
[   77.992811]  drm_atomic_helper_disable_plane+0xa0/0xc8 [drm_kms_helper]
[   78.000431]  drm_plane_check_pixel_format+0x2d0/0x6d0 [drm]
[   78.007014]  drm_plane_check_pixel_format+0x4b4/0x6d0 [drm]
[   78.013578]  drm_plane_check_pixel_format+0x664/0x6d0 [drm]
[   78.020135]  drm_mode_cursor_ioctl+0x48/0x68 [drm]
[   78.025913]  drm_ioctl_kernel+0x68/0xf0 [drm]
[   78.031253]  drm_ioctl+0x2a8/0x468 [drm]
[   78.036373]  do_vfs_ioctl+0xb8/0x870
[   78.041591]  ksys_ioctl+0x84/0x98
[   78.045865]  sys_ioctl+0xc/0x18
[   78.050134]  el0_svc_naked+0x30/0x34
[   78.055947] ---[ end trace f41601080ee5aec7 ]---
INFO: Screen bpp: 32
INFO: 
INFO: Vendor     : NVIDIA
INFO: Renderer   : tegra
INFO: Version    : OpenGL ES 2.0 Mesa 18.1.0-devel (git-23054838e3)
INFO: Extensions : GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_APPLE_texture_max_level GL_EXT_blend_func_extended GL_EXT_blend_minmax GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_discard_framebuffer GL_EXT_draw_buffers GL_EXT_draw_elements_base_vertex GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_multi_draw_arrays GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_separate_shader_objects GL_EXT_texture_border_clamp GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_type_2_10_10_10_REV GL_EXT_unpack_subimage GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_NV_draw_buffers GL_NV_fbo_color_attachments GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_draw_elements_base_vertex GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_required_internalformat GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_surfaceless_context GL_OES_texture_3D GL_OES_texture_border_clamp GL_OES_texture_float_linear GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object GL_OES_vertex_half_float 
INFO: 
INFO: SDL_GL_RED_SIZE: requested 5, got 8
INFO: SDL_GL_GREEN_SIZE: requested 5, got 8
INFO: SDL_GL_BLUE_SIZE: requested 5, got 8
INFO: SDL_GL_DEPTH_SIZE: requested 16, got 16
Segmentation fault


/sdltests # cd /root/e[J
~ # ./kmscubee[J
1920 - 1080
Using display 0x26e33a30 with EGL version 1.4
===================================
EGL information:
  version: "1.4 (DRI2)"
  vendor: "Mesa Project"
  extensions: "EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_ima[  103.421628] SError Interrupt on CPU3, code 0xbf40c000 -- SError
[  103.421630] SError Interrupt on CPU5, code 0xbf40c000 -- SError
[  103.421632] SError Interrupt on CPU0, code 0xbf40c000 -- SError
[  103.421633] SError Interrupt on CPU4, code 0xbf40c000 -- SError
[  103.421636] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G S      W         4.17.8 #1
[  103.421638] CPU: 5 PID: 0 Comm: swapper/5 Tainted: G S      W         4.17.8 #1
[  103.421640] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G S      W         4.17.8 #1
[  103.421642] CPU: 4 PID: 0 Comm: swapper/4 Tainted: G S      W         4.17.8 #1
[  103.421643] Hardware name: NVIDIA Tegra186 P2771-0000 Development Board (DT)
[  103.421644] Hardware name: NVIDIA Tegra186 P2771-0000 Development Board (DT)
[  103.421645] Hardware name: NVIDIA Tegra186 P2771-0000 Development Board (DT)
[  103.421646] Hardware name: NVIDIA Tegra186 P2771-0000 Development Board (DT)
[  103.421648] pstate: 60000085 (nZCv daIf -PAN -UAO)
[  103.421649] pstate: 60000085 (nZCv daIf -PAN -UAO)
[  103.421651] pstate: 60000085 (nZCv daIf -PAN -UAO)
[  103.421653] pstate: 60000085 (nZCv daIf -PAN -UAO)
[  103.421659] pc : cpu_do_idle+0x8/0xc
[  103.421662] pc : cpu_do_idle+0x8/0xc
[  103.421665] pc : cpu_do_idle+0x8/0xc
[  103.421668] pc : cpu_do_idle+0x8/0xc
[  103.421670] lr : arch_cpu_idle+0xc/0x18
[  103.421672] lr : arch_cpu_idle+0xc/0x18
[  103.421674] lr : arch_cpu_idle+0xc/0x18
[  103.421676] lr : arch_cpu_idle+0xc/0x18
[  103.421677] sp : ffff000009edbf30
[  103.421678] sp : ffff000009eebf30
[  103.421678] sp : ffff000009063ed0
[  103.421679] sp : ffff000009ee3f30
[  103.421680] x29: ffff000009edbf30 
[  103.421681] x29: ffff000009eebf30 
[  103.421682] x29: ffff000009063ed0 
[  103.421684] x29: ffff000009ee3f30 
[  103.421685] x28: 0000000000000000 
[  103.421685] x28: 0000000000000000 
[  103.421686] x28: 0000000080f40018 
[  103.421687] x28: 0000000000000000 
[  103.421689] x27: 0000000000000000 
[  103.421690] x27: 0000000000000000 
[  103.421691] x27: 0000000000000000 
[  103.421691] x27: 0000000000000000 
[  103.421692] x26: ffff8001ec8f4600 
[  103.421693] x26: ffff8001ec8f6200 
[  103.421694] x26: ffff000009072a80 
[  103.421695] x26: ffff8001ec8f5400 
[  103.421696] x25: 0000000000000000 
[  103.421697] x25: 0000000000000000 
[  103.421698] x25: 0000000000000000 
[  103.421698] x25: 0000000000000000 
[  103.421699] x24: ffff000009069e94 
[  103.421700] x24: ffff000009069e94 
[  103.421700] x24: ffff000009069e94 
[  103.421701] x24: ffff000009069e94 
[  103.421703] x23: ffff00000905cc60 
[  103.421703] x23: ffff00000905cc60 
[  103.421704] x23: ffff00000905cc60 
[  103.421705] x23: ffff00000905cc60 
[  103.421705] x22: ffff000009069000 
[  103.421706] x22: ffff000009069000 
[  103.421707] x22: ffff000009069000 
[  103.421708] x22: ffff000009069000 
[  103.421709] x21: ffff000009069000 
[  103.421710] x21: ffff000009069000 
[  103.421710] x21: ffff000009069000 
[  103.421711] x21: ffff000009069000 
[  103.421712] x20: 0000000000000008 
[  103.421712] x20: 0000000000000020 
[  103.421713] x20: 0000000000000001 
[  103.421714] x20: 0000000000000010 
[  103.421715] x19: ffff000009069df8 
[  103.421716] x19: ffff000009069df8 
[  103.421716] x19: ffff000009069df8 
[  103.421717] x19: ffff000009069df8 
[  103.421718] x18: ffffffffffffffff 
[  103.421718] x18: ffffffffffffffff 
[  103.421719] x18: 0000000000000000 
[  103.421720] x18: ffffffffffffffff 
[  103.421721] x17: 0000000000000000 
[  103.421722] x17: 0000000000000000 
[  103.421722] x17: 00000000cfd1e100 
[  103.421723] x17: 0000000000000000 
[  103.421724] x16: 0000000000000000 
[  103.421724] x16: 0000000000000000 
[  103.421725] x16: ffff0000091e42d0 
[  103.421725] x16: 0000000000000000 
[  103.421727] x15: 0000000000000000 
[  103.421728] x15: 0000000000000000 
[  103.421728] x15: 0000000000000000 
[  103.421729] x15: 0000000000000000 
[  103.421729] x14: 0000000000000400 
[  103.421730] x14: 0000000000000400 
[  103.421731] x14: 0000000000000400 
[  103.421731] x14: 0000000000000400 
[  103.421733] x13: 0000000000000400 
[  103.421734] x13: 0000000000000400 
[  103.421734] x13: 0000000000000400 
[  103.421735] x13: 0000000000000400 
[  103.421735] x12: 0000000000000001 
[  103.421736] x12: 0000000000000000 
[  103.421737] x12: 0000000000000001 
[  103.421737] x12: 0000000000000000 
[  103.421739] x11: 00000000000001d7 
[  103.421739] x11: 00000000000001d0 
[  103.421740] x11: 00000000000001a8 
[  103.421741] x11: 0000000000000333 
[  103.421741] x10: 0000000000000a00 
[  103.421742] x10: 0000000000000a00 
[  103.421742] x10: 0000000000000a00 
[  103.421743] x10: 0000000000000a00 
[  103.421745] x9 : ffff000009edbe90 
[  103.421745] x9 : ffff000009eebe90 
[  103.421746] x9 : ffff000009063e30 
[  103.421747] x9 : ffff000009ee3e90 
[  103.421748] x8 : ffff8001ec8f5060 
[  103.421748] x8 : ffff8001ec8f6c60 
[  103.421749] x8 : ffff0000090734e0 
[  103.421750] x8 : ffff8001ec8f5e60 
[  103.421751] x7 : ffff8001f5e9a308 
[  103.421752] x7 : ffff8001f5eca308 
[  103.421752] x7 : ffff8001f5e52308 
[  103.421753] x7 : ffff8001f5eb2308 
[  103.421753] x6 : 0000000000000003 
[  103.421754] x6 : 0000000000000005 
[  103.421755] x6 : 0000000000000000 
[  103.421755] x6 : 0000000000000004 
[  103.421757] x5 : ffff8001f5ea4900 
[  103.421757] x5 : ffff8001f5ed4900 
[  103.421758] x5 : ffff8001f5e5c900 
[  103.421759] x5 : ffff8001f5ebc900 
[  103.421759] x4 : ffff000009069000 
[  103.421760] x4 : ffff000009069000 
[  103.421760] x4 : ffff000009069000 
[  103.421761] x4 : ffff000009069000 
[  103.421763] x3 : 00008001ece43000 
[  103.421763] x3 : 00008001ece73000 
[  103.421764] x3 : 00008001ecdfb000 
[  103.421765] x3 : 00008001ece5b000 
[  103.421765] x2 : 0000000000000000 
[  103.421766] x2 : 0000000000000000 
[  103.421766] x2 : 0000000000000000 
[  103.421767] x2 : 0000000000000000 
[  103.421768] x1 : 0000000000001f44 
[  103.421769] x1 : 0000000000001eec 
[  103.421770] x1 : 000000000003cae0 
[  103.421770] x1 : 0000000000001f1c 
[  103.421771] x0 : 0000000000000020 
[  103.421772] x0 : 0000000000000020 
[  103.421772] x0 : 0000000000000020 
[  103.421773] x0 : 0000000000000020 
[  103.421776] Kernel panic - not syncing: Asynchronous SError Interrupt
[  103.421777] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G S      W         4.17.8 #1
[  103.421778] Hardware name: NVIDIA Tegra186 P2771-0000 Development Board (DT)
[  103.421780] Call trace:
[  103.421783]  dump_backtrace+0x0/0x198
[  103.421785]  show_stack+0x14/0x20
[  103.421788]  dump_stack+0x98/0xbc
[  103.421791]  panic+0x130/0x29c
[  103.421793]  nmi_panic+0x6c/0x70
[  103.421795]  arm64_serror_panic+0x74/0x80
[  103.421796]  do_serror+0x5c/0xc8
[  103.421797]  el1_error+0x7c/0xdc
[  103.421799]  cpu_do_idle+0x8/0xc
[  103.421801]  do_idle+0x1c4/0x270
[  103.421803]  cpu_startup_entry+0x24/0x28
[  103.421805]  secondary_start_kernel+0x188/0x1c8
[  103.421810] SMP: stopping secondary CPUs
[  104.471021] SMP: failed to stop secondary CPUs 0-5
[  104.471022] Kernel Offset: disabled
[  104.471024] CPU features: 0x21806000
[  104.471025] Memory Limit: none
[  105.189173] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]---

What is the current mainstream Linux Jetson TX2 GPU support ? Is it possible to make it fully working on the TX2 ?

Best Regards,
Jean-François DEL NERO

Nouveau (by definition) guarantees no hardware rendering and no CUDA support. The GPU on a Jetson is integrated with the memory controller (versus PCIe on x86_64), and so only the driver specifically for the Jetson will work. This isn’t a problem so long as you preserve the ABI of the Xorg server (the two are bound and Xorg is the interface to the driver).

On R28.2 you will find this in “/var/log/Xorg.0.log”:

[     9.410] (II) Module ABI versions:
[     9.410]    X.Org ANSI C Emulation: 0.4
<b>[     9.410]    X.Org Video Driver: 20.0</b>
[     9.411]    X.Org XInput driver : 22.1
[     9.411]    X.Org Server Extension : 9.0

You might be interested in a similar question which was asked during the process of porting to CentOS:
https://devtalk.nvidia.com/default/topic/1036705/jetson-tx2/l4t-28-2-1-centos-7/post/5266688/#5266688

In fact i am trying to avoid the X11 layer and use the DRI/KMS interface.

This appears to be possible since this was done on the TK1 and nouveau appears to support the TX2 GPU.

It is possible to find a way without X11, but direct bindings into the GPU don’t exist for Nouveau (the information is proprietary and the X11 ABI is a sort of adapter). You’ll still need the driver which was linked to X11.

FYI, X11 isn’t a desktop, it is just an interface to an organized buffer through certain protocols. The login manager and desktop manager are the parts which most people mistake for being X11 (X11 supports a basic GUI dependency…the actual GUI you see are other components on top of X11). I don’t know what you’d need to avoid X11 for DRI/KMS, but it is highly likely you will still need the non-Nouveau driver.