From owner-freebsd-x11@freebsd.org Tue Aug 14 13:31:26 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDF461078343 for ; Tue, 14 Aug 2018 13:31:25 +0000 (UTC) (envelope-from dpolyg@gmail.com) Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 707928EBD4 for ; Tue, 14 Aug 2018 13:31:25 +0000 (UTC) (envelope-from dpolyg@gmail.com) Received: by mail-pg1-x544.google.com with SMTP id y5-v6so9119788pgv.1 for ; Tue, 14 Aug 2018 06:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=xXdv8fWz7w8mR2CMB7ZC9EPFWtJD5dLsUk4pZujhszY=; b=YNK6l3M5yrNMVlFBzNThmAAPDg55oBrIA1TQXv9IgWDp9FAp1ll/j6fy2ysAgSMPBu rzz8iicDFZiOk0pgL0u1UMrJl92HEnuAOksfrUTWmmPJr/BYXYs9UK9DDoKqyorL1t8/ OtqoN+2AhPm5+Zjb5Q8vKvHBeY2tP67ShAH9ZAgeEfhlZCvreJhlT5wBUl+MTBL9sC8D CE5RJSnEp2GRZs1vyWTDOlgL/xL10gITVn5Q013quMxV4UvuQ5/mAeIDhwla2w6GFb1R HV0eO2b5B2Z0tCIjqP1yTRNERQZSUxU2M3oMNQqgiToylbm4IGVcarK62hO5seY5zUCl CRpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=xXdv8fWz7w8mR2CMB7ZC9EPFWtJD5dLsUk4pZujhszY=; b=I21gcbZtT0ZMTALojD7dGGbttosvIHG2b8NVhrKVfQCMQeyMvQ3JqROehlQ0ve///w fvUKxrLH0rwO9L2UvRCXKXANh5NN9I+v5l7LfYQi9NczzkWY7USLdlpO/ge78VRlzdB/ 5OIkAwO8rEhQZqcWnYsSnLLImi+tMcs5jlAVLrR3bFC+upsw+g+opWvt8DCLayovNNqW oTs81gNlL+B33Ea8UJ0A3ZqUjvxyGLNQhiw40J9ViwKTcd2vj0pgMI4p1EU5D1JChvRq S8t89+cSSf9v8L/bS8W7B7kqVtrsk66rb3jx4THqsfCgijj6ScbAi4/y453as4ybyov5 KXIA== X-Gm-Message-State: AOUpUlH5H42FWzSIGmPkueuKu5TGQJbpxQZ1ARMj0Nb+Q6PTdfXTGvpj 8sCaNTW50k4Ui7UDqUeujfXFricX X-Google-Smtp-Source: AA+uWPzB2AF4g8muanukdp68YxFYuSC882s8tnUXQvomMnNkwJJPzd6nVJ1HLwlBW7KHCCp7c7N1NQ== X-Received: by 2002:a62:dbc5:: with SMTP id f188-v6mr23743475pfg.182.1534253484143; Tue, 14 Aug 2018 06:31:24 -0700 (PDT) Received: from [192.168.1.100] (ngn8-ppp1551.tokyo.sannet.ne.jp. [157.192.118.27]) by smtp.googlemail.com with ESMTPSA id e14-v6sm19555079pgv.48.2018.08.14.06.31.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 06:31:23 -0700 (PDT) From: Denis Polygalov Subject: testing Weston Wayland compositor on FreeBSD without Xorg To: FreeBSD X11 mailing list Message-ID: Date: Tue, 14 Aug 2018 22:31:20 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2018 13:31:26 -0000 I'm trying to run Weston port: https://reviews.freebsd.org/D10599 on a machine (let's say "host A") with and without using Xorg. I'm using approach previously described by Greg: https://lists.freebsd.org/pipermail/freebsd-x11/2018-July/021414.html It works on the host A if launched under Xorg. The same approach works on host B (drm-next-kmod, Intel drivers) from under Xorg *and* via weston-launch. It does not work on the host A if launched directly i.e. "% weston-launch". The host A is: % uname -a FreeBSD AmaDeuS 11.2-RELEASE-p1 FreeBSD 11.2-RELEASE-p1 #0: Sun Aug 12 19:40:55 JST 2018 denis@AmaDeuS:/usr/obj/usr/src/sys/AMADEUS amd64 % pkg info | egrep "drm|gpu|mesa" drm-next-kmod-4.11.g20180619 gpu-firmware-kmod-g20180319_1 libdrm-2.4.92,1 mesa-dri-18.1.2 mesa-libs-18.1.2 % kldstat -v | grep 0x 1 83 0xffffffff80200000 203e7f0 kernel (/boot/kernel/kernel) 2 1 0xffffffff82240000 5e80 ichsmb.ko (/boot/kernel/ichsmb.ko) 3 3 0xffffffff82246000 2d10 smbus.ko (/boot/kernel/smbus.ko) 4 1 0xffffffff82249000 2da0 smb.ko (/boot/kernel/smb.ko) 5 1 0xffffffff82421000 20b2d8 amdgpu.ko (/boot/modules/amdgpu.ko) 6 1 0xffffffff8262d000 bb4f0 drm.ko (/boot/modules/drm.ko) 7 4 0xffffffff826e9000 edc8 linuxkpi.ko (/boot/kernel/linuxkpi.ko) 8 3 0xffffffff826f8000 164a1 linuxkpi_gplv2.ko (/boot/modules/linuxkpi_gplv2.ko) 9 2 0xffffffff8270f000 9e8 debugfs.ko (/boot/modules/debugfs.ko) 10 1 0xffffffff82710000 8158 amdgpu_polaris11_mc_bin.ko (/boot/modules/amdgpu_polaris11_mc_bin.ko) 11 1 0xffffffff82719000 4400 amdgpu_polaris11_pfp_bin.ko (/boot/modules/amdgpu_polaris11_pfp_bin.ko) 12 1 0xffffffff8271e000 4400 amdgpu_polaris11_me_bin.ko (/boot/modules/amdgpu_polaris11_me_bin.ko) 13 1 0xffffffff82723000 2400 amdgpu_polaris11_ce_bin.ko (/boot/modules/amdgpu_polaris11_ce_bin.ko) 14 1 0xffffffff82726000 5c10 amdgpu_polaris11_rlc_bin.ko (/boot/modules/amdgpu_polaris11_rlc_bin.ko) 15 1 0xffffffff8272c000 40400 amdgpu_polaris11_mec_bin.ko (/boot/modules/amdgpu_polaris11_mec_bin.ko) 16 1 0xffffffff8276d000 40400 amdgpu_polaris11_mec2_bin.ko (/boot/modules/amdgpu_polaris11_mec2_bin.ko) 17 1 0xffffffff827ae000 3318 amdgpu_polaris11_sdma_bin.ko (/boot/modules/amdgpu_polaris11_sdma_bin.ko) 18 1 0xffffffff827b2000 3320 amdgpu_polaris11_sdma1_bin.ko (/boot/modules/amdgpu_polaris11_sdma1_bin.ko) 19 1 0xffffffff827b6000 5bc00 amdgpu_polaris11_uvd_bin.ko (/boot/modules/amdgpu_polaris11_uvd_bin.ko) 20 1 0xffffffff82812000 28d20 amdgpu_polaris11_vce_bin.ko (/boot/modules/amdgpu_polaris11_vce_bin.ko) 21 1 0xffffffff8283b000 1fe18 amdgpu_polaris11_smc_bin.ko (/boot/modules/amdgpu_polaris11_smc_bin.ko) 22 1 0xffffffff8285b000 27a0 ums.ko (/boot/kernel/ums.ko) 23 1 0xffffffff8285e000 1780 uhid.ko (/boot/kernel/uhid.ko) 24 1 0xffffffff82860000 3698 ng_ubt.ko (/boot/kernel/ng_ubt.ko) 25 5 0xffffffff82864000 9a20 netgraph.ko (/boot/kernel/netgraph.ko) 26 1 0xffffffff8286e000 8e78 ng_hci.ko (/boot/kernel/ng_hci.ko) 27 3 0xffffffff82877000 95c ng_bluetooth.ko (/boot/kernel/ng_bluetooth.ko) 28 1 0xffffffff82878000 bc0e ng_l2cap.ko (/boot/kernel/ng_l2cap.ko) 29 1 0xffffffff82884000 176a8 ng_btsocket.ko (/boot/kernel/ng_btsocket.ko) 30 1 0xffffffff8289c000 1d40 ng_socket.ko (/boot/kernel/ng_socket.ko) What exactly happend when I execute "weston-launch": ... skipped [22:00:05.026] GL ES 2 renderer features: read-back format: BGRA wl_shm sub-image to texture: yes EGL Wayland extension: yes [22:00:05.037] input device 'System mouse', /dev/input/event0 is tagged by udev as: Mouse [22:00:05.037] input device 'System mouse', /dev/input/event0 is a pointer caps [22:00:05.037] input device 'System keyboard multiplexer', /dev/input/event1 is tagged by udev as: Keyboard [22:00:05.037] input device 'System keyboard multiplexer', /dev/input/event1 is a keyboard [22:00:05.038] input device 'AT keyboard', /dev/input/event2 is tagged by udev as: Keyboard [22:00:05.038] input device 'AT keyboard', /dev/input/event2 is a keyboard [22:00:05.038] input device 'Dexin Corp. 2.4GHz Keyboardmouse set 01242013A, class 0/0, rev 1.10/8.2c, addr ', /dev/input/event3 is tagged by udev as: Keyboard [22:00:05.038] input device 'Dexin Corp. 2.4GHz Keyboardmouse set 01242013A, class 0/0, rev 1.10/8.2c, addr ', /dev/input/event3 is a keyboard weston-launch: opened /dev/dri/card0: ret: 0, fd: 4 weston-launch: opened /dev/input/event0: ret: 0, fd: 6 weston-launch: opened /dev/input/event1: ret: 0, fd: 7 weston-launch: opened /dev/input/event2: ret: 0, fd: 8 weston-launch: opened /dev/input/event3: ret: 0, fd: 9 handle_signal: SIGCHLD If I load generated weston.core into debugger I can see that all threads of weston process stopped by SIGBUS Xorg works OK on the host A. If I compare log output of successful launch of weston on the "host B" I can guess that something bad happen on the "host A" just before this line: [22:18:45.420] Registered plugin API 'weston_drm_output_api_v1' of size 24 Question: how to debug this kind of problem? Regards, Denis