Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1075105pxb; Sun, 19 Sep 2021 05:26:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUqIZLfWVgZv3UFWA9Pz0+Lp1NQUZ/M/56iRotlhB50XSGzBEHVUR0twTsvOn81X4Ic8Hn X-Received: by 2002:aa7:ca19:: with SMTP id y25mr23214548eds.197.1632054386072; Sun, 19 Sep 2021 05:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632054386; cv=none; d=google.com; s=arc-20160816; b=cV08HApJfz4VoxqKi3BNxFfR8tM6MzE2p2zp0mneuddtWFcbVvSCJU/q+XlkwcLdeS 0HJftRT1ACOpHGpIcYge5Em0K/rYuQPnHdV3m4ROZRBGmhgsbUEIyPzFxKHgf8UK9Ph4 mI3zuKjXnByEXT/IZgE/OEIou+LS+/hHLemnJfk1UNcZmOEVvZgsN5b8cp2uqQYqA7a3 ln7olwkUONfl1gFyo3Jhi2Oa8K18J8DC/OtUjo997IjxFRfSDwKYA6YWSd42bNZAVYFb 9vJgIve04lSBqEeOxZXf3sConaI8EyGajcdJGmW9bbFyYUIu3IEPpc00reZFD1hCN2MG hP0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=KCi7ua4wEnVmt6GE7prbEa0nuTzXsKWBwHzU0nZsfuE=; b=ojIlqk4AcKr/vib3IBtb6NmSbwd1afoKN3ktUSmPQQO8ahvQP8S9hXDy/bKFV0eMq1 t4xrLPf1f9FRo1k4RHYxMXo1yhUsMu1hNEYYuxwly1mOK6XjBMhOAHTyvp5ep0LAHTv9 ghN8m74XqNzn1GawWxTsbFXRrg7q/TrxSh4N6LEMERzhamSplG3ydHP3C70sTBbjzTmn 3wyahOytoFAIPz4kb0VqGzK7Gaeee0G5rQHGDLIhHa9A7ZnMsdYbsUmPdXsuSqQj8Akp CWSCTX0M+/qQK0A9MR5wDV6XatHFgBMw103Vsz8l9FWN/1Ye1iRYZwuti3GsxDBHsTYe YI/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WG3x1RUP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb4si8946715ejc.246.2021.09.19.05.26.01; Sun, 19 Sep 2021 05:26:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WG3x1RUP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231497AbhISG7w (ORCPT + 99 others); Sun, 19 Sep 2021 02:59:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbhISG7v (ORCPT ); Sun, 19 Sep 2021 02:59:51 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BCB2C061574; Sat, 18 Sep 2021 23:58:26 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id g41so19342991lfv.1; Sat, 18 Sep 2021 23:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=KCi7ua4wEnVmt6GE7prbEa0nuTzXsKWBwHzU0nZsfuE=; b=WG3x1RUPSBQVRfnRwUp6q1wGM5m4+C1c7d+F7C2Rwj0vTM0x9QtI9disLSdX2YPH3I JVl2qhR4FDytQesOiqNHA4cFONbsIv8ZoEhtV66Jq6fghQpbHIrk3Icsqkq1o3TJkv7V t+H0Vtr7ff5B02WM0fACGznJ4SI4wiC8VYFzho9Z+32UySfxemOzGCPuOjLmRulTgXbN Tl3IkIKUYosSn0+9cTQWG3FZRkTssjME7/CGFXtmf/lQ2j0y4+sTkoCn6c9kkYXbEDVt NmHVXn4kf8B1UtvQDQoYYOTOPNfQVnpf7mrOacz8uwHDxtbpKWWknWQ0OH87PMzIcP0n 8cKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KCi7ua4wEnVmt6GE7prbEa0nuTzXsKWBwHzU0nZsfuE=; b=Rmy/NIq07Lh8krGbHqKIBuckDT2klTzk92Pq00yaob8bmtQKj4cXBKK91gRCYY7ydJ EPe4sYc38/333TmuoECcnXoXQaDhYHN8JECEGXldu2haU2HJOEPe/GpSy9/c/Z2rpgw7 j5YFC/SMaOs2J1X/mKtneYoot80dtZWuCUvF32G4rLXtiCUvEUx19WKkYZn8OiuwRm31 oVPPZ9Al6wJX/6okOG/Jy+ubbHui5FjMpg7JGlz5w74oW/tiLvbFMwqR0PIalxsvVb1N 53Vtu4ZSJfiM5BIuEpyznihSxn+tIxASo8qXFbZRjI0N2UzCxrSACkiK0/iPpjf+CN8X KAew== X-Gm-Message-State: AOAM532iDn1nFqrSgbo+Mqb47BkqL5J+7jrg9uwTB+LtGD9Y44I5Q3M/ lTFOrdcGM3Ugi3OHmBCBktcPgSXsymIPEOhfX7s= X-Received: by 2002:a2e:99d8:: with SMTP id l24mr6803976ljj.294.1632034704594; Sat, 18 Sep 2021 23:58:24 -0700 (PDT) MIME-Version: 1.0 From: Heiko Thiery Date: Sun, 19 Sep 2021 08:58:13 +0200 Message-ID: Subject: imx8mm board crash in drivers/usb/chipidea/ci_hdrc_imx.c To: Fabio Estevam , Peter Chen , Jun Li , Yu Kuai , Sascha Hauer , Mark Brown , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shawn Guo , Frieder Schrempf Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I see the following crash on a imx8mm board implementation. I cannot find a reason for this at the moment. This can be reproduced with the imx8mm-kontron-n801x-s dtb.Has anyone seen the same issue? The position in the code is here: https://elixir.bootlin.com/linux/latest/source/drivers/usb/chipidea/usbmisc_imx.c#L819 [ 1.489344] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000098 [ 1.498170] Mem abort info: [ 1.500966] ESR = 0x96000044 [ 1.504030] EC = 0x25: DABT (current EL), IL = 32 bits [ 1.509356] SET = 0, FnV = 0 [ 1.512416] EA = 0, S1PTW = 0 [ 1.515569] FSC = 0x04: level 0 translation fault [ 1.520458] Data abort info: [ 1.523349] ISV = 0, ISS = 0x00000044 [ 1.527196] CM = 0, WnR = 1 [ 1.530176] [0000000000000098] user address but active_mm is swapper [ 1.536544] Internal error: Oops: 96000044 [#1] PREEMPT SMP [ 1.542125] Modules linked in: [ 1.545190] CPU: 3 PID: 7 Comm: kworker/u8:0 Not tainted 5.14.0-dirty #3 [ 1.551901] Hardware name: Kontron i.MX8MM N801X S (DT) [ 1.557133] Workqueue: events_unbound deferred_probe_work_func [ 1.562984] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--) [ 1.568998] pc : imx7d_charger_detection+0x3f0/0x510 [ 1.573973] lr : imx7d_charger_detection+0x22c/0x510 [ 1.578947] sp : ffff800011f1b5d0 [ 1.582266] x29: ffff800011f1b5d0 x28: 0000000000000000 x27: 0000000000000000 [ 1.589416] x26: ffff000000294c10 x25: ffff800011a6d678 x24: ffff000002ff3680 [ 1.596567] x23: ffff000002ff3688 x22: ffff000002ff3680 x21: 0000000000000000 [ 1.603715] x20: 0000000000000000 x19: ffff000003118a80 x18: 0000000000000001 [ 1.610867] x17: 000000040044ffff x16: 00400032b5503510 x15: 0000000000000000 [ 1.618019] x14: ffff0000000d44c0 x13: ffff80002e7ed000 x12: 0000000034d4d91d [ 1.625172] x11: 0000000000000000 x10: 0000000000000960 x9 : ffff800011f1b460 [ 1.632321] x8 : ffff00003fdb1d40 x7 : ffff00003fdb7f00 x6 : 0000000004ce61f4 [ 1.639475] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000 [ 1.646625] x2 : 11246917acc78900 x1 : 0000000000000000 x0 : 0000000000000001 [ 1.653779] Call trace: [ 1.656230] imx7d_charger_detection+0x3f0/0x510 [ 1.660854] imx_usbmisc_charger_detection+0x40/0xc8 [ 1.665825] ci_hdrc_imx_notify_event+0xec/0x120 [ 1.670455] ci_udc_vbus_session+0x70/0xa0 [ 1.674560] usb_gadget_vbus_connect+0x20/0x38 [ 1.679013] ci_handle_vbus_change+0x64/0x70 [ 1.683290] ci_hdrc_probe+0x4e0/0x838 [ 1.687047] platform_probe+0x68/0xd8 [ 1.690717] really_probe+0xb0/0x318 [ 1.694300] __driver_probe_device+0x78/0xe0 [ 1.698576] driver_probe_device+0xb0/0x110 [ 1.702767] __device_attach_driver+0x90/0xe0 [ 1.707131] bus_for_each_drv+0x7c/0xd0 [ 1.710974] __device_attach+0xe8/0x148 [ 1.714816] device_initial_probe+0x14/0x20 [ 1.719009] bus_probe_device+0x9c/0xa8 [ 1.722852] device_add+0x3f0/0x840 [ 1.726349] platform_device_add+0x110/0x238 [ 1.730626] ci_hdrc_add_device+0x538/0x5a8 [ 1.734818] ci_hdrc_imx_probe+0x3fc/0x810 [ 1.738927] platform_probe+0x68/0xd8 [ 1.742598] really_probe+0xb0/0x318 [ 1.746178] __driver_probe_device+0x78/0xe0 [ 1.750458] driver_probe_device+0xb0/0x110 [ 1.754651] __device_attach_driver+0x90/0xe0 [ 1.759013] bus_for_each_drv+0x7c/0xd0 [ 1.762858] __device_attach+0xe8/0x148 [ 1.766703] device_initial_probe+0x14/0x20 [ 1.770896] bus_probe_device+0x9c/0xa8 [ 1.774739] deferred_probe_work_func+0x88/0xc0 [ 1.779278] process_one_work+0x1e8/0x360 [ 1.783295] worker_thread+0x210/0x480 [ 1.787049] kthread+0x150/0x160 [ 1.790284] ret_from_fork+0x10/0x18 [ 1.793873] Code: a8c47bfd d50323bf d65f03c0 52800020 (b9009aa0) [ 1.799975] ---[ end trace d43a19cb0f4746b6 ]--- If anyone has a hint that would be great. -- Heiko