From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_PDS_SHORTFWD_URISHRT_QP autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7324AC433B4 for ; Tue, 4 May 2021 17:11:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 46F49613AA for ; Tue, 4 May 2021 17:11:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231446AbhEDRMr (ORCPT ); Tue, 4 May 2021 13:12:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231445AbhEDRMr (ORCPT ); Tue, 4 May 2021 13:12:47 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A6DC061574 for ; Tue, 4 May 2021 10:11:51 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id v20so9298244qkv.5 for ; Tue, 04 May 2021 10:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:mime-version:references:in-reply-to:date:message-id:subject:to :cc:content-transfer-encoding; bh=2FNgXz1eZgIsAhzPOm44KOmzV2GlF9acNuOloClC5MA=; b=O4sGtM2Lhor313MIyDbI4nesXV7pQ7pe7Q8Z3a8PLbSmj92CfS5md+vpVGSWd6RrW6 MT7MfumRVypMVNITPUaTDqV0wr73OT0pLUacP+/lldQFjKCULvetYjxFqnZxpyoxJw2I xKaqMo1wq0slQN4Rcd6rW9rhrw3rUwz68/7Gwa7AU7vJaDW3W1KL4kmaFdum/PfR/jet NGB/ltnLoGY5fnKHNJxnhZFokhnDirW2vjtj7CkpZapAfyh80ed10dl51OCMS2TomgAE UH0ojwEphlXiyojA7infWSQ408oilrR1T0O206Ho/PEFaTdSwua47vHGH0tBA/MVKlbF 2jvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:references:in-reply-to:date :message-id:subject:to:cc:content-transfer-encoding; bh=2FNgXz1eZgIsAhzPOm44KOmzV2GlF9acNuOloClC5MA=; b=RQspDxqDG4+T0MPBsJNfjflGcfndn2M9aOr57wzhtZ86pNy6h4JOmUihiA3s/+7z9Y uEp/ZHnW+LWFLRa0MlB0Qxhub7KM1zPBMrB7AJS0S8HTCqY6D6E8JfzPsaZ2Q5FPlicc n2YPb3bF/36hYiEeSDBVvNYn/oDayWR9iDB+zusH7C/1xkYZSVldKY9jD/49slDYo3SF J6ab6nHKIUR9m/skIgJnNAlc4nlQJnHN4VxAHqQkgJDy15pnGydHZc+x75qbv5RH3rFU MOKLyAtViQCDm9ktT7dh7k+Q4KSGEX1gHub86MBfWdUO6bxuqMG3lJmFIcUHMiiGVOCi UHRQ== X-Gm-Message-State: AOAM531gH9DiZepcBtBher+xVJ0Cq6jDwf4YaZGdeayA10d/lqOcY+09 339GxqiyyH7bC2qFWnmdcipTGwC3pRB6vsIX X-Google-Smtp-Source: ABdhPJxvQPWTpWy7uhfF+XjaDb3G9KK6Ja35H4aH++FqRBJxHUERotwUhV99vQjMAzC4rZpAumiQ1Q== X-Received: by 2002:a37:8905:: with SMTP id l5mr26669296qkd.321.1620148310981; Tue, 04 May 2021 10:11:50 -0700 (PDT) Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com. [209.85.160.182]) by smtp.gmail.com with ESMTPSA id t6sm2048752qkh.29.2021.05.04.10.11.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 May 2021 10:11:50 -0700 (PDT) From: Otavio Salvador X-Google-Original-From: Otavio Salvador Received: by mail-qt1-f182.google.com with SMTP id t7so1919866qtn.3 for ; Tue, 04 May 2021 10:11:50 -0700 (PDT) X-Received: by 2002:a05:622a:3cc:: with SMTP id k12mr23838908qtx.233.1620148309949; Tue, 04 May 2021 10:11:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 4 May 2021 14:11:38 -0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: i.MX53 error during GPU use To: Rob Clark Cc: Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm , DRI mailing list , freedreno , Fabio Estevam , vinicius.aquino@ossystems.com.br, luan.rafael@ossystems.com.br Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hello Rob, Em sex., 23 de abr. de 2021 =C3=A0s 11:35, Rob Clark = escreveu: > On Fri, Apr 23, 2021 at 4:58 AM Otavio Salvador > wrote: > > We found this error when using Freedreno driver on an i.MX53 device > > with Wayland. Any idea how to fix this? > > > > [ 32.414110] [drm:msm_ioctl_gem_submit] *ERROR* invalid cmdstream siz= e: 0 > > The invalid cmdstream size is some sort of userspace error > > > [ 39.177075] > > [ 39.178617] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > [ 39.184804] WARNING: possible circular locking dependency detected > > [ 39.190997] 5.10.31+g7ae1de1d2bd3 #1 Not tainted > > [ 39.195619] ------------------------------------------------------ > > But possibly it is triggering the lockdep anger? It looks like the > gem locking re-work landed in v5.11.. any chance you can try a newer > kernel? Sure; we tried the 5.12.1 Linux kernel and it "worked". We have used following versions: - Linux kernel 5.12.1 - mesa 21.0.3 - libdrm 2.4.105 It improved a lot and it opens. We now have some rendering issues: https://photos.app.goo.gl/fBKoe5C8tsq4xU556 and an error in serial console: [ 262.319890] schedule_timeout: wrong timeout value bf946f6e [ 262.325845] CPU: 0 PID: 216 Comm: eadedCompositor Not tainted 5.12.1+g1a5fea11bc2f #1 [ 262.333727] Hardware name: Freescale i.MX53 (Device Tree Support) [ 262.339854] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 262.347659] [] (show_stack) from [] (dump_stack+0xdc/0x104) [ 262.355007] [] (dump_stack) from [] (schedule_timeout+0xf0/0x128) [ 262.362875] [] (schedule_timeout) from [] (msm_wait_fence+0x1c0/0x320) [ 262.371190] [] (msm_wait_fence) from [] (msm_ioctl_wait_fence+0xa8/0x154) [ 262.379749] [] (msm_ioctl_wait_fence) from [] (drm_ioctl+0x1f0/0x3dc) [ 262.387966] [] (drm_ioctl) from [] (sys_ioctl+0x3cc/0xbac) [ 262.395226] [] (sys_ioctl) from [] (ret_fast_syscall+0x0/0x2c) [ 262.402829] Exception stack(0xc315ffa8 to 0xc315fff0) [ 262.407911] ffa0: 00000000 abc10840 00000010 40206447 abc10840 00000020 [ 262.416118] ffc0: 00000000 abc10840 40206447 00000036 afd32cb0 abc108b8 00000000 abc1087c [ 262.424320] ffe0: b075aef0 abc10804 b0740214 b40a11fc Any idea what might be causing it? -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750