Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A120FE00924; Mon, 16 Jan 2017 11:59:10 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [104.47.2.47 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0047.outbound.protection.outlook.com [104.47.2.47]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6164FE007CE for ; Mon, 16 Jan 2017 11:59:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UpC0hz0MG0JOOy2uJaQfZ38AU4sv3yoSQlPikclmnJw=; b=eZ+hAQPYvqmSq6oNE7kJhi2YS5fiVEV+4P6c0COIudXdauJovIW5XMj0BCNJ1y64hsxwbENSw3W7cUk3tyV+ksc/q7HVZm3KQu/vZgac7A835rv0ymoN0m7MY14nUeatYGxxUSxLCiFtQ6IlyK+SYOYbSv7VAosudsY97DDORAo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tom.hochstein@nxp.com; Received: from tx30imx-01.am.freescale.net (192.88.168.1) by DB4PR04MB316.eurprd04.prod.outlook.com (10.141.239.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Mon, 16 Jan 2017 19:59:07 +0000 From: Tom Hochstein To: Date: Mon, 16 Jan 2017 13:52:26 -0600 Message-ID: <1484596346-21806-6-git-send-email-tom.hochstein@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484596346-21806-1-git-send-email-tom.hochstein@nxp.com> References: <1484596346-21806-1-git-send-email-tom.hochstein@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.88.168.1] X-ClientProxiedBy: BN6PR1301CA0032.namprd13.prod.outlook.com (10.174.84.173) To DB4PR04MB316.eurprd04.prod.outlook.com (10.141.239.155) X-MS-Office365-Filtering-Correlation-Id: ef8fa3f9-3d24-40fb-559e-08d43e4a217d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DB4PR04MB316; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB316; 3:iRqJLEyhVQWUDlbvwHNGWvuixHjWhhpgtWElVBaKDGwr1IV/dCxvFwIXt0WGko28iCdRyhqjNqprB1isRr6gOIHARibS8bRPYRLirbDIcKk3QVFSjV+3o9DhRbA/jIpwUSi2ZhJJECzuDExUcRTOYuP8xNwGeYAX6Zq3JqPaLrDVtIco1Wbp3evvTeG3SMcasS4ywlwOVoaRMlR88yZbve3ACXpE76eIM0AJEkf0lfU48T9TSNnBDtSLvTpxwS3bTxqp2mU7TmoOI6kwwDB+PA== X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB316; 25:TkM/v/7KYc+H0fQ0jbJeoXYPzIBnRkIGu4nL6dNff949QwpnE/dJHUHhZeHPZHho0EVQQ+YbOqJGd2BleMoQdMIMpuPyWe8Px51mtOrIH+cploM/xObVMWk+GByOp00loGgBYsa/a+103qQuilRuT88B2Ic495latZH1/9q8oUKw6IJZVtW9F2s77WpDEFJNvWnqlZbMjbTh+CsjoaRdjC3wYmj+xlaOr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R2k9sjBH2SoWXrQlJMENIJ70JbBEt3E1QqGWAYMZ0lZX9N3FeLstNqPmztqMnWMbJ6G43vtKxZX8QR+oYIK+7tmCksfeAItxZyshG3XTstlZCLtAPksx3OunCtJDSLiBuHb6DAOsBM6Ud+z/lECD98keS+nJeAxWGSsp9tK4bHhcPD1DdT54CQ7sc+KJFvmIjVLoP7jY8H+L5Oj25tApincV03HPNbGaBVzJNLtjO5VOp3GrfpNUMuHyHcIH2+dUKOHvag08JKKGQVHbjll4sxiETNjDO4Dhbti05LeeBUodL2oCFp1grvPiG6lzEM/g+RSCwalJOPOsCXc/ufifZ60Dxz0d0/E6G5nsrAThKQ25TuOA4Tx X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148)(6047074); SRVR:DB4PR04MB316; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB316; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB316; 4:cL8UrO6QwUWdMAopX0LiSBl9myAlgPkzcyrEAbUKK9QHsZNe2MFgsyW+qwoc8pk5A0mV+/7W7ADqBTgkzJiYlDk/sT6b68FW6GaLuSTl2EBjSp32LdoQdNBV8ZisCOuFml5Lml3MviTHCNeBb9uyFIjYEZ5FkSF9bdHRQhkvCK4mhR8fJFcC0uG4ydLiVMzGcFFvCjxaKaUuK+zrRoSyLtxleLa2oqmxHsfns6R+4PbYdDviPxxvVoLWncWFoBDyE0iURsb23yBuS19sA+rJvvMdRrdQLya+XayAyxlEvDHB6IRCN4qcqxyZJFq2cE6A6YxMoTecqsoPWZjLO+y7fxf/Mmh5UR9oFHVey6zrdsHmbxZMZnxWR6MoXLHCkySEtNhhO29MLZPcsqFjL4JyD8LG2P1E8ch2RtdmFpMeoQRhQ8Jx/25qUm+OWfQdJ7XkmeqyX/KDVVX9nJTwV1RyMzKne+adFu0zkjl8b4uRPAeoComV1pkMoyPgwf/Efs5FZsGmba89nwPOpx+Nz/yWBXC2Y9QsqMarXz9Ct7KD7D4shPf8JLakVL5yAAeMsa9WFtqIAgJomccH3YQje1pI/YOFjygMc8uvUtLWokQKb24+BL3zUdyUg3XwC1T/5mzv7jsldv2hIjV9Bo1Ed/bAtupR9wnDjpptBm2kLk0E0V0= X-Forefront-PRVS: 01894AD3B8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39840400002)(39450400003)(39850400002)(39860400002)(39410400002)(189002)(377424004)(199003)(25786008)(36756003)(68736007)(3846002)(8676002)(81156014)(81166006)(50226002)(6116002)(97736004)(2351001)(50986999)(105586002)(101416001)(6512007)(106356001)(76176999)(6486002)(2906002)(4326007)(38730400001)(42186005)(5660300001)(7736002)(575784001)(86362001)(110136003)(305945005)(6916009)(6506006)(48376002)(2950100002)(450100001)(33646002)(47776003)(6666003)(189998001)(5003940100001)(92566002)(50466002)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB316; H:tx30imx-01.am.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB316; 23:MpSpKLTSDCChdgZgpzI0t1Ee66w+tUGeXNA+Zb6J64?= =?us-ascii?Q?DyP/fjwZMxzkYs5Ws8EG3evyNy3puSfrUk/IskueKsYkxTzBNmGqRc3UAOHK?= =?us-ascii?Q?g88O4ciKj0mHlauojVCPFF04jD9v0JknECZq6q9lwWFJD/dI/xI1K1uINGQO?= =?us-ascii?Q?T9SCrjaJUM0UIbnsOkdVVWcnk9n1vIhqXQtVfKto7rSaVmYyX9Au/8uceMPL?= =?us-ascii?Q?3+zcAutaMWYay1zQF6GuuF4TUgQMAvv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Cn7XshaZtnO/xDvPzvWZPX9YwjmD3m3LdfX+hf4+s/J0fiemj?= =?us-ascii?Q?c2HWpyPihZBiXS3a/uRzFQ2HEXzpAxDxHGHeiFFnTmO8xB1uNzQaeVpkHggQ?= =?us-ascii?Q?oSqUSVtcw8dFnK1BjDkjpopsAEQFHsCrndM2hA?= X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB316; 6:m+hUolbdw3SZxG+XbYS1+aa5ocYDNUtz+fLRVnAuVThweWNyIjylyXr4cnMDGT9LjeYxNUILPMiTlrhUgGxugyAVtV7WWGY/Xg+VyvcG1TEWY06s6jo2z4ULc1UGH6m1n4+97XZDvshjKBmamtxAxTHpk/7k7PlepwDUlApr2mkjh+UG74O51MF0isiSBhbrJNixvjcu5kGh3xe7ggj3AjK/+RY3kHZpccmwjvltVbxT/9A2dWAi5hvm0bwtmAwCH5ZzE1Qyo32jYKl5+coxitqvc+EUuwHnEx69NjEbaOA8F/gUrmXBavZcGeRUd9JsSpyK022nOZI8KW6XRfSmiU6ihnGxzu8d1DN/miHtU1BVbnOnuNgWj0sQbKp7tUXDKTPN1/kpxH51pnF67uf4l0tzq2zUURLuPZLIgb2IathfcXvxaw/pvEDVSy1ultZCbI26wa29gDxMU2w/jZOc7w==; 5:P09Qv9upzdOmqinQlsU2F9M7WDcij1aeMmE5UXUdRVyp2yp5Vbr7Z7B0LYMVYdJAgxlaUjkcsB5t+MtphVgOsn71rJ5TBW6gS3pDKyLbWKjeNniNW4FzDP9deDgn3auejvE62tlfWmuOU1voW9BBmOBROQmTS3MnG1FjLpFiEs8=; 24:tOJGdkPhaKmqorEo8waKFnXRWXa5NgXZXBHBti9o/ujO41OGnDSEjpAaJOi2I/qGvsDNaZRXSlmE7JWJC/TMbU5aFYJVTKCtIFDU2g1GgVQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB316; 7:RuNwYRhMDpmzakgn9RoPsALUg6lgletQIouPp9R00pIrp/qrW6Ic9rxnh3ZrxD9qce0IYlRv6eYrZbZuzhJCNMYaQiYdirkN3Ph1QFihRGYLG7t4/hEoo4d0/eTNf52Rhhqi7lmeqyPuI6AmhL4sOiTnIhsnAnrQES9zMSSqzc6C762BICaRNocU0pPBLzmpoXFcaeyHb9rR9DVnRs3w40X2S1jBnhZ1hEOXT8qhywPgw7RgfczUfpC7RVHX2tZ2x0V45hlDBV7U52iKyeqi5KPWIIRFS+R7DaHk4gKmtQ217wWTy9z2vxm14eRvcOZUbUjQ2YTapS2LKY4SkRzmWQSYnYaok32H2sU8PF4pNVgdTgcFAlQH1mPWvqMoxD648SHG1rEwpr5yxYqksPvSdfJZ0f2NTbYsH0eOagwoQto/tRK6KysG0dJiEszQdSLcmnXuIQrfinmzf0+rKFLNKg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2017 19:59:07.1262 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB316 Subject: [PATCH v3 5/5] weston: Touch events cause startup failure X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2017 19:59:10 -0000 Content-Type: text/plain Pressing the touch panel continously during boot up caused weston to crash. The weston view was being accessed before it was fully initialized, so now we guard against this. Upstream-Status: Denied [Could not reproduce] Signed-off-by: Tom Hochstein --- ...68-xwld-System-can-not-boot-up-to-desktop.patch | 44 +++++++++++++++++++++ ...d-Fix-crash-when-run-with-no-input-device.patch | 45 ---------------------- ...d-Fix-crash-when-run-with-no-input-device.patch | 45 ++++++++++++++++++++++ recipes-graphics/wayland/weston_%.bbappend | 3 +- 4 files changed, 91 insertions(+), 46 deletions(-) create mode 100644 recipes-graphics/wayland/weston/0019-MGS-1668-xwld-System-can-not-boot-up-to-desktop.patch delete mode 100644 recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch create mode 100644 recipes-graphics/wayland/weston/0020-xwayland-Fix-crash-when-run-with-no-input-device.patch diff --git a/recipes-graphics/wayland/weston/0019-MGS-1668-xwld-System-can-not-boot-up-to-desktop.patch b/recipes-graphics/wayland/weston/0019-MGS-1668-xwld-System-can-not-boot-up-to-desktop.patch new file mode 100644 index 0000000..09404ca --- /dev/null +++ b/recipes-graphics/wayland/weston/0019-MGS-1668-xwld-System-can-not-boot-up-to-desktop.patch @@ -0,0 +1,44 @@ +From d3bc23ef2031e2749362bb0b90e5d164ef5d5942 Mon Sep 17 00:00:00 2001 +From: Meng Mingming +Date: Mon, 9 Jan 2017 15:08:51 +0800 +Subject: [PATCH 4/6] MGS-1668: xwld: System can not boot up to desktop + +System can not boot up to desktop if press touch panel continuously during booting up. +The weston view was not initialed completely, so add a protection to the pointer. + +Upstream Status: Inappropriate [i.MX specific] + +Date: MAR 08, 2016 +Signed-off-by: Yong Gan +--- + src/compositor.c | 14 ++++++++------ + 1 file changed, 8 insertions(+), 6 deletions(-) + +diff --git a/src/compositor.c b/src/compositor.c +index b6ef7f3..9d9805d 100644 +--- a/src/compositor.c ++++ b/src/compositor.c +@@ -1470,12 +1470,14 @@ weston_view_from_global_fixed(struct weston_view *view, + { + float vxf, vyf; + +- weston_view_from_global_float(view, +- wl_fixed_to_double(x), +- wl_fixed_to_double(y), +- &vxf, &vyf); +- *vx = wl_fixed_from_double(vxf); +- *vy = wl_fixed_from_double(vyf); ++ if(view != NULL) { ++ weston_view_from_global_float(view, ++ wl_fixed_to_double(x), ++ wl_fixed_to_double(y), ++ &vxf, &vyf); ++ *vx = wl_fixed_from_double(vxf); ++ *vy = wl_fixed_from_double(vyf); ++ } + } + + WL_EXPORT void +-- +2.7.4 + diff --git a/recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch b/recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch deleted file mode 100644 index 1304cef..0000000 --- a/recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 60f8817f371123b9c36b3ff1120eec1e8f9e3d10 Mon Sep 17 00:00:00 2001 -From: Tom Hochstein -Date: Mon, 31 Oct 2016 19:21:58 -0500 -Subject: [PATCH weston] xwayland: Fix crash when run with no input device - -Starting an xterm with no input device led to a crash -because weston_wm_pick_seat() was returning garbage and -weston_wm_selection_init() was trying to use the garbage. - -Signed-off-by: Tom Hochstein ---- - xwayland/selection.c | 10 +++++++--- - xwayland/window-manager.c | 6 ++++-- - 2 files changed, 11 insertions(+), 5 deletions(-) - -Index: weston-1.11.0/xwayland/selection.c -=================================================================== ---- weston-1.11.0.orig/xwayland/selection.c 2016-05-19 16:36:04.000000000 -0500 -+++ weston-1.11.0/xwayland/selection.c 2016-11-01 14:32:48.000000000 -0500 -@@ -708,6 +708,8 @@ - wm->atom.clipboard, mask); - - seat = weston_wm_pick_seat(wm); -+ if (seat != NULL) -+ return; - wm->selection_listener.notify = weston_wm_set_selection; - wl_signal_add(&seat->selection_signal, &wm->selection_listener); - -Index: weston-1.11.0/xwayland/window-manager.c -=================================================================== ---- weston-1.11.0.orig/xwayland/window-manager.c 2016-05-19 16:36:04.000000000 -0500 -+++ weston-1.11.0/xwayland/window-manager.c 2016-11-01 11:47:14.549606964 -0500 -@@ -1303,8 +1303,10 @@ - struct weston_seat * - weston_wm_pick_seat(struct weston_wm *wm) - { -- return container_of(wm->server->compositor->seat_list.next, -- struct weston_seat, link); -+ struct wl_list *seats = wm->server->compositor->seat_list.next; -+ if (wl_list_empty(seats)) -+ return NULL; -+ return container_of(seats, struct weston_seat, link); - } - - static struct weston_seat * diff --git a/recipes-graphics/wayland/weston/0020-xwayland-Fix-crash-when-run-with-no-input-device.patch b/recipes-graphics/wayland/weston/0020-xwayland-Fix-crash-when-run-with-no-input-device.patch new file mode 100644 index 0000000..1304cef --- /dev/null +++ b/recipes-graphics/wayland/weston/0020-xwayland-Fix-crash-when-run-with-no-input-device.patch @@ -0,0 +1,45 @@ +From 60f8817f371123b9c36b3ff1120eec1e8f9e3d10 Mon Sep 17 00:00:00 2001 +From: Tom Hochstein +Date: Mon, 31 Oct 2016 19:21:58 -0500 +Subject: [PATCH weston] xwayland: Fix crash when run with no input device + +Starting an xterm with no input device led to a crash +because weston_wm_pick_seat() was returning garbage and +weston_wm_selection_init() was trying to use the garbage. + +Signed-off-by: Tom Hochstein +--- + xwayland/selection.c | 10 +++++++--- + xwayland/window-manager.c | 6 ++++-- + 2 files changed, 11 insertions(+), 5 deletions(-) + +Index: weston-1.11.0/xwayland/selection.c +=================================================================== +--- weston-1.11.0.orig/xwayland/selection.c 2016-05-19 16:36:04.000000000 -0500 ++++ weston-1.11.0/xwayland/selection.c 2016-11-01 14:32:48.000000000 -0500 +@@ -708,6 +708,8 @@ + wm->atom.clipboard, mask); + + seat = weston_wm_pick_seat(wm); ++ if (seat != NULL) ++ return; + wm->selection_listener.notify = weston_wm_set_selection; + wl_signal_add(&seat->selection_signal, &wm->selection_listener); + +Index: weston-1.11.0/xwayland/window-manager.c +=================================================================== +--- weston-1.11.0.orig/xwayland/window-manager.c 2016-05-19 16:36:04.000000000 -0500 ++++ weston-1.11.0/xwayland/window-manager.c 2016-11-01 11:47:14.549606964 -0500 +@@ -1303,8 +1303,10 @@ + struct weston_seat * + weston_wm_pick_seat(struct weston_wm *wm) + { +- return container_of(wm->server->compositor->seat_list.next, +- struct weston_seat, link); ++ struct wl_list *seats = wm->server->compositor->seat_list.next; ++ if (wl_list_empty(seats)) ++ return NULL; ++ return container_of(seats, struct weston_seat, link); + } + + static struct weston_seat * diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend index dfd7da4..26b12dc 100644 --- a/recipes-graphics/wayland/weston_%.bbappend +++ b/recipes-graphics/wayland/weston_%.bbappend @@ -17,10 +17,11 @@ SRC_URI_append_imxgpu3d = " \ file://0016-Link-compositor-to-egl.patch \ file://0017-MGS-2343-ccc-XWLD-T3DStressTest_Wayland-displays-abn.patch \ file://0018-MGS-2397-ccc-Enable-double-buffer-with-fb_pan_displa.patch \ + file://0019-MGS-1668-xwld-System-can-not-boot-up-to-desktop.patch \ " SRC_URI_append = " \ - file://0019-xwayland-Fix-crash-when-run-with-no-input-device.patch \ + file://0020-xwayland-Fix-crash-when-run-with-no-input-device.patch \ " # The 'egl' configuration of weston requires gles support, and consideration -- 1.9.1