Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753880AbcL3MTZ (ORCPT ); Fri, 30 Dec 2016 07:19:25 -0500 Received: from mout.gmx.net ([212.227.17.22]:52841 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753752AbcL3MTX (ORCPT ); Fri, 30 Dec 2016 07:19:23 -0500 From: Heinrich Schuchardt Subject: Re: [BUG] ARM64: amlogic: gxbb: unhandled level 2 translation fault (11) To: Neil Armstrong , Carlo Caione , Kevin Hilman References: <20161224140028.4205-1-xypron.glpk@gmx.de> <478f1429-03f2-a944-8d47-3757a4d44a40@baylibre.com> <130a3716-a643-d14f-fd7c-9ad3bb67f3a7@gmx.de> Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Message-ID: Date: Fri, 30 Dec 2016 13:18:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:e5Bm0nbTgC/cXhXIb5vv0b8clZRdUztYvd3TwkKKw9ihxQRR0mm W7yItQrJTvF87kN3j0a6twnlBZDXnc9W2j8l/hSBezEKMi8nQwxeYAoDfqhahyI9DCO82ME W22mmkEmE2EHsPKM5UOcQN8rrnGcYkunvFrAq6hJ+VwqU666eVICKb2pXwzlpEZGERsWx96 7aidn3eHeaHVcVOeabPUw== X-UI-Out-Filterresults: notjunk:1;V01:K0:7OawpJfpr08=:CCXS6ncc4YniXaDmD9P9dZ 9Egght6kDKxlkX12Gkn7bFpNxDKM2J3CaixDFnU/qQHiP4rgJaOfn9n5gx+uKRr6hlaibZHiJ 2Z3IXWf45hgwt86j6dGnwUfT3wADTW5AVscgpt25qfuOdtCD9xBhNWdF2YfvmQnGIY4HQHSAK yxPlLVw1QPV+4lr041hTynpnR9JluCwnipdN4Fy78LaQ7B0Kt87p9TRM668vQ0pE68QiC/hY1 7bNEO83x21hDsz3dWPjJQK2K+nIYdIFN6vtBGrmdI8ZbHx0oxdW7JeJ2bch6XAQEiAwlImsc9 V3twD4Vy9IPXLsMcXScmpJZa9dOvDubcW5gFCAOKct5myJWbeAwjjuDJho/5crAazSM1oULE6 nubTUUY8S0c2k7z63NTCeRlcz7AvwG1T6n2KphuuvDPAIRjM3qLbEYhT278ZeY6b2RdvKGuuK dxwVv4yJcSMG3jyvlfKNJd1c7sP8jR1T8ZssXOKYsiVmeX990VFwlx7xiubho3RF2uUmyOXRt krlXnZKQv34Fto4/SbzHc9WwO86T0gUqRtckVdBMd2icAK+g2WjAzLNzIX59Mt/wrFzGDi47j LShEGclY+mXJ2Q9viKQJ2kQOShHXqNa41lAjMDPufbgV8qWHQCF8mNWbrT0OMOcsGQ9tNmAV4 6FoCoGd0rZD22OSVRKVF0EqVgE4QD/8ife9oPE4CIEmwqppeU1mmuW2g5es3cGxi2npz3QMlE gXw0U8dUkhwN/X9L5ovwG0I6k83sCxp3PkteIs+eRc1uUVXwGg4RUK3QGvhKHm7Nc+TgXpBEk +fYRGd9ronPsLlQqyT/wX4RS5lHo5aFUCi3hQ/cRsaffE0CATlKKy9MZx4flDwgnkJfcunpOE 3Iw9KIrQDxv7Wh7oKusFUR6QDjEeJo3XbhC9taNvBdp7hZeo14/5TF2ObVOSfgajaXYAHDYat 0eNL58wdDbasAebwhZhTXrrpl4QxEycTGwcMpQwOf/HBHfIBjDVzNhUrPZUJ+H5NM2LwjOzsp o6LVgq7bcJWwIaqflHsJzLH7ZK9B0CcgrNEXS6hKeBA1HKCl8x41E1DOavHzbLbVvw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7005 Lines: 163 On 12/30/2016 10:44 AM, Neil Armstrong wrote: > On 12/30/2016 09:51 AM, Neil Armstrong wrote: >> On 12/29/2016 10:18 PM, Heinrich Schuchardt wrote: >>> On 12/29/2016 10:07 AM, Neil Armstrong wrote: >>>> On 12/24/2016 03:00 PM, Heinrich Schuchardt wrote: >>>>> When trying to run sddm on an Hardkernel Odroid C2 I invariably run into the >>>>> translation fault below. >>>>> >>>>> The following mail thread relates this kind of problem to TLB (translation >>>>> lookaside buffer) broadcasting. >>>>> >>>>> https://lkml.org/lkml/2014/4/15/207 >>>>> >>>>> [ 3163.014263] sddm[1851]: unhandled level 2 translation fault (11) at 0x00000160, esr 0x82000006 >>>>> [ 3163.017287] pgd = ffff80007bf86000 >>>>> [ 3163.020589] [00000160] *pgd=000000007a8a3003 >>>>> [ 3163.024733] , *pud=000000007be9c003 >>>>> [ 3163.028095] , *pmd=0000000000000000 >>>>> >>>>> >>>>> [ 3163.033026] CPU: 1 PID: 1851 Comm: sddm Not tainted 4.9.0-next-20161212-r022-arm64 #1 >>>>> [ 3163.040831] Hardware name: Hardkernel ODROID-C2 (DT) >>>>> [ 3163.045698] task: ffff80007bc6d780 task.stack: ffff80007c524000 >>>>> [ 3163.051563] PC is at 0x160 >>>>> [ 3163.054231] LR is at 0xffff9a9fbc98 >>>>> [ 3163.057686] pc : [<0000000000000160>] lr : [<0000ffff9a9fbc98>] pstate: 40000000 >>>>> [ 3163.065022] sp : 0000ffffd7180130 >>>>> [ 3163.068281] x29: 0000ffffd7180130 x28: 0000ffffd7180288 >>>>> [ 3163.073538] x27: 0000ffff9aa94000 x26: 0000000000000001 >>>>> [ 3163.078798] x25: 0000000000000000 x24: 0000ffffd7180410 >>>>> [ 3163.084060] x23: 000000000e0c2190 x22: 000000000e0ca5c0 >>>>> [ 3163.089322] x21: 0000ffff9ac35000 x20: 0000000000454fa9 >>>>> [ 3163.094583] x19: 0000000000454fa8 x18: 000000000e0b5938 >>>>> [ 3163.099843] x17: 0000ffff9a3f2988 x16: 0000ffff9ac36aa0 >>>>> [ 3163.105105] x15: 0000000000000000 x14: 0000000000000000 >>>>> [ 3163.110367] x13: 6d00640064007300 x12: 0800000005000000 >>>>> [ 3163.115627] x11: 0000040000000000 x10: 0000a00000000000 >>>>> [ 3163.120889] x9 : 00003fffffffffff x8 : 0000000000000000 >>>>> [ 3163.126150] x7 : 000000000e0cb520 x6 : 0000000000454fc0 >>>>> [ 3163.131412] x5 : 0000ffffd717ffd8 x4 : 000000000e0cb510 >>>>> [ 3163.136680] x3 : 0000000000000004 x2 : f2f9022b551b3900 >>>>> [ 3163.141935] x1 : 0000000000000160 x0 : 000000000e0ca5c0 >>>>> >>>>> Best regards >>>>> >>>>> Heinrich Schuchardt >>>> >>>> Hi Heinrich, >>>> >>>> I personally never had this issue even while loading huge applications loke LibreOffice and Gnome environment. >>>> >>>> I will have a look and try to reproduce this issue, can you provide us your configuration and user-space complete use case ? >>>> >>>> Neil >>>> >>> >>> Hello Neil, >>> >>> the kernel is build with >>> https://github.com/xypron/kernel-odroid-c2/tree/f8d565ff755e92fd585f5ae10123ce20abe03968 >>> >>> Especially look at the patch directory and config/config-next-20161212. >>> >>> The userland is Debian Stretch with this package: >>> https://packages.debian.org/stretch/sddm >>> >>> The link >>> https://www.spinics.net/lists/arm-kernel/msg550204.html >>> that you mention in a separate mail just links to this very thread due >>> to linux-arm-kernel@lists.infradead.org being in copy. >>> >>> Best regards >>> >>> Heinrich Schuchardt >>> >> >> Hi, >> >> Thanks for the details, but why do you use the next-20161212 tag ? does it work with 4.10-rc1 or previous next tags ? >> >> Neil >> > > Hi Heinrich, > > I'm able to reproduce the bug using SDMM from Ubuntu running a 4.10-rc1 patched with memory zones : > [ 17.988446] sddm-greeter[2366]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x92000006 > [ 17.988451] pgd = ffff80003c3ee000 > [ 17.988472] [00000000] *pgd=00000000398bd003 > [ 17.988474] , *pud=00000000398bf003 > [ 17.990477] , *pmd=0000000000000000 > > > [ 17.990485] CPU: 3 PID: 2366 Comm: sddm-greeter Not tainted 4.10.0-rc1-00004-gd3f812382-dirty #488 > [ 17.990487] Hardware name: Amlogic Meson GXBB P200 Development Board (DT) > [ 17.990489] task: ffff80003c160000 task.stack: ffff80003c314000 > [ 17.990493] PC is at 0xffffb2999994 > [ 17.990495] LR is at 0xffffb299f774 > [ 17.990497] pc : [<0000ffffb2999994>] lr : [<0000ffffb299f774>] pstate: 20000000 > [ 17.990503] sp : 0000ffffd2d1d5b0 > [ 17.990504] x29: 0000ffffd2d1d5b0 x28: 0000ffffad10e010 > [ 17.990508] x27: 0000000009c376d0 x26: 0000000000000001 > [ 17.990511] x25: 0000ffffb2b67000 x24: 0000ffffad10e010 > [ 17.990514] x23: 0000000000000000 x22: 0000000000000000 > [ 17.990517] x21: 0000000009c376d0 x20: 0000ffffb2fcdcb8 > [ 17.990520] x19: 0000ffffb2b2b000 x18: 0000000009c78450 > [ 17.990523] x17: 0000ffffb2b68068 x16: 0000ffffb2022158 > [ 17.990526] x15: 0000ffffb2fcd000 x14: 0000000000000000 > [ 17.990529] x13: aaaaaaaaaaaaaaab x12: 0000000000010000 > [ 17.990532] x11: 0000000000000008 x10: 0000000009c3b980 > [ 17.990535] x9 : 0000000009c38c40 x8 : 0000ffffd2d1d4e0 > [ 17.990538] x7 : 0000000000000000 x6 : 0000000009c3b998 > [ 17.990541] x5 : 0000000009c3b980 x4 : 0000800000000000 > [ 17.990544] x3 : 00000000fffffff0 x2 : 0000ffffad10e010 > [ 17.990547] x1 : 0000000009c379d8 x0 : 0000000000000000 > > Looking about other occurrence of such error, it seems it may be a issue from sdmm instead. > > I'll continue searching, > Neil > > Hello Neil, I am seeing a simular error when I try to use x2go to have a remote desktop on the Odroid C2. [47912.997112] fuse init (API version 7.26) [47913.405815] x2goagent[28395]: unhandled level 0 translation fault (11) at 0x3042415a74614c, esr 0x82000004 [47913.409849] pgd = ffff800079a11000 [47913.413704] [3042415a74614c] *pgd=0000000000000000 [47913.420673] CPU: 1 PID: 28395 Comm: x2goagent Not tainted 4.9.0-next-20161212-r024-arm64 #1 [47913.428992] Hardware name: Hardkernel ODROID-C2 (DT) [47913.433906] task: ffff80007c670000 task.stack: ffff800079e6c000 [47913.439747] PC is at 0x3042415a74614c [47913.443400] LR is at 0x323042415a74614c [47913.447194] pc : [<003042415a74614c>] lr : [<323042415a74614c>] pstate: 80000000 [47913.454528] sp : 0000ffffd7240140 [47913.457789] x29: 313042414c74614c x28: 000000000000007f [47913.463016] x27: 000000000000007f x26: 0000000000000001 [47913.468278] x25: 0000000000000000 x24: 0000aaaaee52a7e0 [47913.473540] x23: 0000ffffd7240310 x22: 363042414274614c [47913.478800] x21: 353042415674614c x20: 343042414374614c [47913.484061] x19: 333042415874614c x18: 0000000000000000 [47913.489324] x17: 0000ffffb1ce2da0 x16: 0000000000000000 [47913.494589] x15: 0000000000000434 x14: 000000000000001f [47913.499852] x13: 0000aaaa00703f00 x12: 0000003ff8081fff [47913.505114] x11: 0000000000000000 x10: 0000000000000002 [47913.510373] x9 : 0000000000000010 x8 : 0000000000000042 [47913.515633] x7 : 011cff0800001fff x6 : 0000022300090101 [47913.520904] x5 : 000000000000088c x4 : 0000000000000007 [47913.526158] x3 : 0000aaaae52c1db0 x2 : 0000aaaae573a5a0 [47913.531417] x1 : 0000000000000000 x0 : 0000000000000000 Best regards Heinrich Schuchardt