Dell XPS 15 9550

General
This laptop is Dell's flagship on the market with 32GB or RAM is really beast and ready for any type of development works where one requires to run multiple virtual machines at once. I got working all the non-standard hardware including keyboard special Dell keys, 4k touchscreen. But there remain still few minor issues described in specific chapter.

Laptop Specification

 * Intel® Core™ i7-6700HQ Processor (6M Cache, up to 3.50 GHz)
 * 1TB Solid State hard drive Sata
 * 32GB (2x16GB) 2133MHz DDR4
 * 15.6" 4K Ultra HD (3840 x 2160) InfinityEdge touch Corning® Gorilla® Glass
 * Dedicated NVIDIA GTX960M 2GB DDR5
 * Dell 56 WHr 3-Cell Lithium-Ion Battery
 * Integrated WiFi DW1830 3x3 802.11ac 2.4/5GHz
 * Precision touchpad, seamless glass integrated button
 * Integrated Widescreen HD (720p) webcam with dual array digital microphones
 * Dell™ TrueMobile internal 4.1 Bluetooth Module - European
 * Ports: HDMI, USB 3.0 (x2) with PowerShare; Headset Jack (1); SD card reader (SD, SDHC, SDXC); Kensington Lock slot; Thunderbolt™ 3 (1)
 * Thunderbolt™ 3 supports: Power in / charging, PowerShare, Thunderbolt 3 (40Gbps bi-directional), USB 3.1 Gen 2 (10Gbps), VGA, HDMI

Hardware List
NOTE: I am in RAID mode instead of AHCI on SATA controller, but that shouldn't make big difference.

Kernel
List of Kernel Configs
 * 1) linux-4.8.6-gentoo [] --latest


 * This kernel works is configured with packed firmware and initramfs inside, so able to boot on its own within UEFI.
 * I am still working on proper KVM configuration for PCI Passtrough on QEMU.

Portage and GCC
NOTE: I use latest GCC 6.2.0-r1. Tha

Audio
Audio basically works, but when the headphones are plugged in, it suddenly stops working. Neither reboot or disable->re-enable of audio in BIOS helped. I resolved by flashing the BIOS again :-) and the sound is back:

ALSA Detail Report

There are multiple bugs reported in Arch and Ubuntu with this ALC3266 sound chip: Ubuntu bug

Arch wiki refer to some workarounds: Arch Wiki related resource

Wireless
The wireless works sometimes fine, but I suspect it causes once per day Kernel Panic, sometimes none, I need to get kernel dump, but I suspect something similar to this is happening as one of last messages is invalid packet:

brcmfmac issue report