[CC'ing this message to linux-kernel so that we get it into the archive at lore.kernel.org] On Sat, Oct 6, 2018 at 9:13 AM Sedat Dilek wrote: > > On Sun, Sep 30, 2018 at 1:11 PM Miguel Ojeda > wrote: > > > > Thanks a lot for testing! Which configuration roughly (e.g. > > allmodconfig)? Did you boot it & run it for a while? > > > > Hi Miguel, > > I am doing all my "ClangBuiltLinux" (short: cbl) experiments on > Debian/testing AMD64 (which will be buster aka version 10). > > https://github.com/ClangBuiltLinux/linux > > I am using the kernel-config provided by the Debian Kernel Team - > means be as close to my upstream. > > https://packages.debian.org/experimental/linux-image-4.19.0-rc4-amd64-unsigned > > Clang version 7 from Debian/unstable is the compiler I am using. > > https://packages.debian.org/clang-7 > > Currently, some Kconfigs are known to be "BROKEN" (with Clang or > independent of the used compiler). > CONFIG_HARDENED_USERCOPY=n > CONFIG_DRM_AMDGPU=n (built as module broken, not sure if this was > fixed in meantime). > > https://github.com/ClangBuiltLinux/linux/issues/7 > https://lists.freedesktop.org/archives/amd-gfx/2018-July/024634.html > > In my testoings I am booting in QEMU and on bare metal. > Both tests were successful. > > My last testings of your series v5 was on top of Linux v4.19-rc6. > I have some more patches included (see below). > > My kernel-config and dmesg-log are attached. > > Hope this helps. > > Regards, > - Sedat - > > P.S.: Some helpful informations > > [ VERSION ] > > $ cat /proc/version > Linux version 4.19.0-rc6-1-amd64-cbl (sedat.dilek@gmail.com@iniza) > (clang version 7.0.0-3 (tags/RELEASE_700/final)) #1 SMP 2018-10-01 > > [ PATCH-SET ] > > $ git --no-pager log --no-merges --oneline v4.19-rc6.. > c1b160655219 (for-4.19/compiler-attributes-v5) Compiler Attributes: > ext4: remove local __nonstring definition > e33fe800b910 Compiler Attributes: auxdisplay: panel: use __nonstring > 2d5e0d827ee0 Compiler Attributes: enable -Wstringop-truncation on W=1 (gcc >= 8) > 1ab27d366e9f Compiler Attributes: add support for __nonstring (gcc >= 8) > 58d53af4577c Compiler Attributes: add MAINTAINERS entry > 8dbfe0eec5c1 Compiler Attributes: add Doc/process/programming-language.rst > 5a886fa546eb Compiler Attributes: remove uses of __attribute__ from compiler.h > 8414944bdb94 Compiler Attributes: KENTRY used twice the "used" attribute > 16da1f71ccf1 Compiler Attributes: use feature checks instead of version checks > efe932a226e2 Compiler Attributes: add missing SPDX ID in compiler_types.h > f5add77ef51a Compiler Attributes: remove unneeded sparse (__CHECKER__) tests > 5b1c25d038ac Compiler Attributes: homogenize __must_be_array > 4bce3ce73e44 Compiler Attributes: remove unneeded tests > 899d7604d8c2 Compiler Attributes: always use the extra-underscores syntax > 704bd38d6793 Compiler Attributes: remove unused attributes > ef8c4ed9db80 kbuild: allow to use GCC toolchain not in Clang search path > 5a4630aadb9a ftrace: Build with CPPFLAGS to get -Qunused-arguments > 9f9ff0dc3aed (for-4.19/x86-asm-goto-clang-fixes) > include/linux/compiler*.h: add version detection to asm_volatile_goto > cca6adeee1db kbuild: add --include-dir flag only for out-of-tree build > bb5de5d28f73 kbuild: remove unneeded link_multi_deps > 00d78ab2ba75 kbuild: remove dead code in cmd_files calculation in top Makefile > 25815cf5ffec kbuild: hide most of targets when running config or mixed targets > 0d91bf584fe5 kbuild: remove old check for CFLAGS use > 487c7c7702ab kbuild: prefix Makefile.dtbinst path with $(srctree) > unconditionally > 36f546a1bdb5 kallsyms: remove left-over Blackfin code > 80ffbaa5b1bd kallsyms: reduce size a little on 64-bit > bac13b5b25c9 x86: Warn clang does not support asm-goto (v2) > 1e98b02f5c59 (for-4.19/compiletime_assert-clang-fixes) compiler.h: > give up __compiletime_assert_fallback() > > [ QEMU TESTING (run_qemu.sh) ] > KPATH=$(pwd) > > qemu-system-x86_64 -enable-kvm -M pc -kernel $KPATH/bzImage -initrd > $KPATH/initrd.img -m 512 -net none -serial stdio -append > "root=/dev/ram0 console=ttyS0 hung_task_panic=1 > earlyprintk=ttyS0,115200" > > [ DEBIAN KERNEL VS. CBL KERNEL ] > > $ ./scripts/diffconfig /boot/config-4.19.0-rc4-amd64 > /boot/config-4.19.0-rc6-1-amd64-cbl > -ALLOW_LOCKDOWN_LIFT_BY_SYSRQ n > -ANDROID_BINDER_DEVICES "binder" > -ANDROID_BINDER_IPC_SELFTEST n > -CC_IS_GCC y > -CHASH m > -CHASH_SELFTEST n > -CHASH_STATS n > -CRYPTO_FIPS y > -DEBUG_KERNEL_DC n > -DRM_AMDGPU_CIK y > -DRM_AMDGPU_GART_DEBUGFS n > -DRM_AMDGPU_SI y > -DRM_AMDGPU_USERPTR y > -DRM_AMD_ACP y > -DRM_AMD_DC y > -DRM_AMD_DC_DCN1_0 y > -DRM_SCHED m > -HARDENED_USERCOPY_FALLBACK n > -HARDENED_USERCOPY_PAGESPAN n > -HSA_AMD m > -LOCK_DOWN_IN_EFI_SECURE_BOOT y > -LOCK_DOWN_KERNEL y > -MODULE_SIG_ALL n > -MODULE_SIG_FORCE n > -MODULE_SIG_HASH "sha256" > -MODULE_SIG_KEY "" > -MODULE_SIG_SHA1 n > -MODULE_SIG_SHA224 n > -MODULE_SIG_SHA256 y > -MODULE_SIG_SHA384 n > -MODULE_SIG_SHA512 n > -PLUGIN_HOSTCC "" > -PM_GENERIC_DOMAINS y > -PM_GENERIC_DOMAINS_SLEEP y > -RTLWIFI_DEBUG_ST y > -SECURITY_PERF_EVENTS_RESTRICT y > -X86_X32_DISABLED y > ANDROID_BINDER_IPC m -> n > ASHMEM m -> n > BUILD_SALT "4.19.0-rc4-amd64" -> "4.19.0-rc6-1-amd64-cbl" > CLANG_VERSION 0 -> 70000 > DRM_AMDGPU m -> n > GCC_VERSION 80200 -> 0 > HARDENED_USERCOPY y -> n > MODULE_SIG y -> n > R8822BE m -> n > SYSTEM_TRUSTED_KEYS "debian/certs/test-signing-certs.pem" -> "" > TYPEC_TPS6598X m -> n > USB_COMMON m -> y > X86_X32 y -> n > +CC_IS_CLANG y > +FB_NVIDIA n > +FB_RIVA n > > - EOT - Cheers, Miguel