Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp402943yba; Thu, 16 May 2019 02:48:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgEmpTwamG4Ab9Ly7Kyz1GgtjxfDUjlPSr43DE1j/loY/I/pnI+6SH3aTujKfNXJmCvQIK X-Received: by 2002:a65:6494:: with SMTP id e20mr40747068pgv.117.1558000122854; Thu, 16 May 2019 02:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558000122; cv=none; d=google.com; s=arc-20160816; b=rlgtzi2xU2pCbW+OvTreI83GmkNe23F/EA7NYAXAuSBkDtWCDbbZHHN6UErLfj2Snu TrjJ7XfL45fByQAqDs/kZOYcVKr4RMz0Gvx3vDNjZtwCcUzeAY/Q+GQDQTdUzP12A4fj etiTM1Mo6UkwR5Y2T5rcj3SViLCE1DfOMmkdHzQXcytpGFpl6btlqGDqUK91CbmJ5fhz 9paqX+HSE9KScDqtwxI02GyRCMnGyoQLVOPaLBXGGhV6VaYa3236ye9czL4q/poB/uF0 zwiw8LExuy/g7a8hU9vax2DrxttK4dvoartq0PW5QrrYWrBZMXed/45HvXsqogYd1Rii +GAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=aZ9bkwLjwgYofHPQHgcBu3CBvGQFImDSbHO1WQz0mYY=; b=ksqcVpFGO36wB+YhpwPEbts9F1KodmSddRsKq4cJbuSz6aA5uKPXk/54MjGQYRt7YG A4GTQVtq2LnU6IWVl6cqcI3jeWu3Ra3bQEjB4PTGigHi2z2YNovC/qgQ941JRgrTxnL7 qDRD2sq3Kip6WuDPk9IAg6gOCY6bPXEh5zN3KUEB5qsOIhgjmcbM+XzSXh4fYbCcTbK3 rs7fQSwDkHqSvK6f5EEGAHybQxNNIMI2xuHEZWoYaY94KFgy4EGzBLoAt9Y5pbUqUiFt fVN4phfE20/rmUhHYk6/El/DQ0fdnnphG6+seWRAdiyr8nRcOP8NVFn9XyY9o+FtIQ+6 Rlog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rZfWrTkT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id r140si4455927pgr.585.2019.05.16.02.48.27; Thu, 16 May 2019 02:48:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rZfWrTkT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726954AbfEPJqA (ORCPT + 99 others); Thu, 16 May 2019 05:46:00 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:42681 "EHLO mail-wr1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726425AbfEPJp7 (ORCPT ); Thu, 16 May 2019 05:45:59 -0400 Received: by mail-wr1-f50.google.com with SMTP id l2so2593440wrb.9 for ; Thu, 16 May 2019 02:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=aZ9bkwLjwgYofHPQHgcBu3CBvGQFImDSbHO1WQz0mYY=; b=rZfWrTkTck+lVapdMq7o6+lJhC3egiRrRwDcUJXql8roZ8bvlWlZ7OqDie4Xdv/FLt 4Nf8iXWXd0ommmp1X6jmrgCNn9lJypjE/w4Wj4HYn2qO8TCdUWfpCjrDGjHqd3QEFKS3 u9YhHrSsGbaHX9LzN+GHL+9hAARLNvw6357jpwPqiz1JeI5v5sWFmV5ebT25B0Aem+W9 l8BHRwPDDYHZq+0DWgqwnUH9O/JiLlV97lCYxhvow/D27s6Wlyv8ZckIqmcwrRtGzym9 tnEYkB63UrwTZZjJDqmo/sPBgP9i3zCZMEg3yG+IViiohgOM7HWyXuDMt6tvnzDG530d 7jeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=aZ9bkwLjwgYofHPQHgcBu3CBvGQFImDSbHO1WQz0mYY=; b=ok+ZPo/KnNxaaahGzhWND0wRFQEm9bJDUqg+i6dEbiJb0rwrQN7L7E6Qh7CBGf7gs7 bzjMns5r3hqHhffdc2SH+sxOzm6glsePFkZmLpA46OWbl+lMkZYdPsPeNf70+EeKdqPP ammQo64IF0PxDd/o4NxVqIT6NZf/5z7qSbPN7uXH83Vp/AjJvPLho/nhrsSL3aA8c/Vk zgm51IfWTW+FBA+1DFJ7WSMxvlalltMXa9/qgh3QH57lNXUFqSRKDaTVoPNoeIRAX4I/ K/B+51J4h6Q7d9hf7/5SIz1YlaQEpaMRJ2Sgdg0n8R/26IhTykaWDD3pNZyMv8puzsTJ jW4A== X-Gm-Message-State: APjAAAW7lsd2Id72N0whtM/6jzmY0GZ9xnzrWmyF9DUFbnijGGehQ0Xa PkL3NZKvEl3cetICmzwHzf/Q8pNV X-Received: by 2002:a5d:5506:: with SMTP id b6mr27614793wrv.221.1557999957592; Thu, 16 May 2019 02:45:57 -0700 (PDT) Received: from Red ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id i17sm5175786wrr.46.2019.05.16.02.45.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 02:45:56 -0700 (PDT) Date: Thu, 16 May 2019 11:45:54 +0200 From: Corentin Labbe To: maxime.ripard@bootlin.com, airlied@linux.ie, daniel@ffwll.ch, wens@csie.org Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: drm: sun4i: segmentation fault with rmmod sun4i_drm Message-ID: <20190516094554.GA7178@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello When I rmmod sun4i_drm I got [ 546.417886] Internal error: Oops: 17 [#1] SMP ARM [ 547.024731] CPU: 0 PID: 18811 Comm: rmmod Not tainted 5.1.0-next-20190515-00100-gf33d93f7d2a0 #39 [ 547.033588] Hardware name: Allwinner sun7i (A20) Family [ 547.038816] PC is at drm_connector_cleanup+0x48/0x210 [ 547.043874] LR is at sun4i_hdmi_unbind+0x18/0x5c [sun4i_drm_hdmi] [ 547.049959] pc : [] lr : [] psr: a0000013 [ 547.056217] sp : c46e1e90 ip : 00000000 fp : 00000000 [ 547.061435] r10: 00000081 r9 : c46e0000 r8 : c0301204 [ 547.066653] r7 : 00000000 r6 : c4b918a0 r5 : c4b91840 r4 : 00000000 [ 547.073171] r3 : 00000000 r2 : 00000000 r1 : ee900210 r0 : c4b91840 [ 547.079691] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 547.086817] Control: 10c5387d Table: 446d406a DAC: 00000051 [ 547.092559] Process rmmod (pid: 18811, stack limit = 0x566ffc72) [ 547.098559] Stack: (0xc46e1e90 to 0xc46e2000) [ 547.102915] 1e80: c4b91840 c4df5d80 00000018 00000000 [ 547.111086] 1ea0: c0301204 c46e0000 00000081 bf051344 c4db7200 c4df5d80 00000018 c0974360 [ 547.119256] 1ec0: 00000000 21c0d377 c46e1ec8 0000000e c4df5d80 c0974430 c4dc9800 ee900210 [ 547.127426] 1ee0: bf02003c 00000081 c0301204 bf01f054 c4df5d80 ee900210 bf02003c c0974680 [ 547.135596] 1f00: c4df5d80 c0974728 ee900210 ee900210 bf022104 bf01f014 ee900210 c097c648 [ 547.143767] 1f20: ee900210 c1845388 bf022104 c097ae98 ee900210 bf022104 bed8eb98 c097afd4 [ 547.151937] 1f40: bf022104 bf022180 bed8eb98 c0979c8c c46e0000 c03d4ea0 346e7573 72645f69 [ 547.160107] 1f60: b6fa006d c170ae04 00000017 c031659c b6f048cc c46e1fb0 bed8ee14 000a2060 [ 547.168278] 1f80: bed8eb7c c0316a74 ffffffff 21c0d377 00d8ed28 21c0d377 000278d4 346e7573 [ 547.176448] 1fa0: 72645f69 c0301000 000278d4 346e7573 bed8eb98 00000880 00000000 bed8ee18 [ 547.184618] 1fc0: 000278d4 346e7573 72645f69 00000081 00000000 00000000 b6fa2000 00000000 [ 547.192788] 1fe0: bed8eb90 bed8eb80 000277b8 b6ea8420 60000010 bed8eb98 00000000 00000000 [ 547.200979] [] (drm_connector_cleanup) from [] (sun4i_hdmi_unbind+0x18/0x5c [sun4i_drm_hdmi]) [ 547.211244] [] (sun4i_hdmi_unbind [sun4i_drm_hdmi]) from [] (component_unbind+0x30/0x68) [ 547.221063] [] (component_unbind) from [] (component_unbind_all+0x98/0xbc) [ 547.229670] [] (component_unbind_all) from [] (sun4i_drv_unbind+0x38/0x4c [sun4i_drm]) [ 547.239317] [] (sun4i_drv_unbind [sun4i_drm]) from [] (take_down_master.part.0+0x18/0x30) [ 547.249221] [] (take_down_master.part.0) from [] (component_master_del+0x90/0x94) [ 547.258433] [] (component_master_del) from [] (sun4i_drv_remove+0x14/0x1c [sun4i_drm]) [ 547.268080] [] (sun4i_drv_remove [sun4i_drm]) from [] (platform_drv_remove+0x24/0x3c) [ 547.277641] [] (platform_drv_remove) from [] (device_release_driver_internal+0xdc/0x1ac) [ 547.287462] [] (device_release_driver_internal) from [] (driver_detach+0x54/0xa0) [ 547.296675] [] (driver_detach) from [] (bus_remove_driver+0x4c/0xa0) [ 547.304762] [] (bus_remove_driver) from [] (sys_delete_module+0x178/0x1f4) [ 547.313370] [] (sys_delete_module) from [] (ret_fast_syscall+0x0/0x54) [ 547.321622] Exception stack(0xc46e1fa8 to 0xc46e1ff0) [ 547.326671] 1fa0: 000278d4 346e7573 bed8eb98 00000880 00000000 bed8ee18 [ 547.334841] 1fc0: 000278d4 346e7573 72645f69 00000081 00000000 00000000 b6fa2000 00000000 [ 547.343008] 1fe0: bed8eb90 bed8eb80 000277b8 b6ea8420 [ 547.348061] Code: e5853310 e1a06005 e5b63060 e1560003 (e5934000) [ 547.354336] ---[ end trace 8bd87feb5ea08d7d ]--- Segmentation fault This occurs both on qemu-cubieboard and cubieboard2 Regards