Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1808727ybl; Thu, 9 Jan 2020 01:57:10 -0800 (PST) X-Google-Smtp-Source: APXvYqyBUjp2PqV3O1vcK/26xUj8hbSGs2QgpAjFcon2vQtwrxiB9bQ6llDbJaAx/7D4tzyW4rAj X-Received: by 2002:a05:6830:1e67:: with SMTP id m7mr7934004otr.262.1578563830308; Thu, 09 Jan 2020 01:57:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578563830; cv=none; d=google.com; s=arc-20160816; b=X2DiE8g+u5sJKvY5el03Mbe5uPwCGYFKpfwZO2RPWdl0tL4eIk/SQx+TDxk8jPZoc0 wKFHklsFpR42IwCNRc4vKro6lYpM0+QoZNCEhmfiKIpzi+UMJZs8ePRCZbEz61nDVAN8 6fEeanfulbyVtiXRENX9EKDPjXVU/MiU09AWo4H4vwKJUPQvqOEoK3M3gI9fFrfTY+HL 1wYGFRtd7u9BuV20bnQbGAUZ3WC79VKhT3qoSY1JhLfqAwfEvsGBXM6at4hF7w9Czc6Y +lzgWPJ71DY0ZdUVTHF6YmUOvpMys7XeseTWH6DxaB89lX+HtseHQGtITWB+ypO7S4NO kdkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=57suhMCFB8+YbjQP7Y/XHgAE605fSx1517RzPpUYq4I=; b=CjTcHcHDO9wwvmp947blvC3kHqL3gtCWmg+OLdbwFXTNimsv6CcYnsbhKKAIJDmufw 63kGhjKFPNmRgCyaHbDTb8s8FgVmQiHAj1WS3FWUEU7T75rAJzijwFolH9qKb0Wf9/rn WGgxsS+mo/FhIbcxndAAi6eY4a4XfZzATr8Q2TWAx0i7G51qE6bLtNYRL/4eq0ZbL0EW 24jkJt+vDTsCyi5/aPebJfzU1txOtKB7mS7QZFOWDcT05bMQzd0X0hnL2u90oxqVZ4A7 BKngOg/bbRXrzUilQ9JAgRqis2vLNYIIyDg/f8hq56wag9NglUgy+sK3Hs9kuDmqg7kl PROQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=o3iFruUp; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si3679861otp.109.2020.01.09.01.56.58; Thu, 09 Jan 2020 01:57:10 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=o3iFruUp; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729895AbgAIJ4C (ORCPT + 99 others); Thu, 9 Jan 2020 04:56:02 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:49880 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729831AbgAIJ4C (ORCPT ); Thu, 9 Jan 2020 04:56:02 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0099tkHV091457; Thu, 9 Jan 2020 03:55:46 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1578563746; bh=57suhMCFB8+YbjQP7Y/XHgAE605fSx1517RzPpUYq4I=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=o3iFruUpSNapR9mFETDlc//SjIUW3ElYpWkWxpamXjh1YDO+tTeelXV+/PH3fUdao Yp5Tv7ZClB1Jbku48lCiLk+y9vL3KCXV+L14GpB+kaSGSs0lhzvTR2ae6rHJW/dEPL 9eyFFfillTY1KsEF9azoAB8MQaQxVijURqiGXEqA= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0099tkGB004550 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 9 Jan 2020 03:55:46 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 9 Jan 2020 03:55:46 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 9 Jan 2020 03:55:45 -0600 Received: from [10.24.69.159] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0099tg5W116934; Thu, 9 Jan 2020 03:55:43 -0600 Subject: Re: ata: sunxi: Regression due to 5253fe05bb47 ("phy: core: Add consumer device link support") To: Corentin Labbe , , , , , , CC: , , , References: <20200109095403.GA26453@Red> From: Kishon Vijay Abraham I Message-ID: Date: Thu, 9 Jan 2020 15:27:49 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20200109095403.GA26453@Red> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 09/01/20 3:24 PM, Corentin Labbe wrote: > Hello > > On next-20200108 (at least), the sunxi_ahci fail to probe with: > 3.025955] 8<--- cut here --- > [ 3.029012] Unable to handle kernel NULL pointer dereference at virtual address 00000071 > [ 3.037115] pgd = (ptrval) > [ 3.039819] [00000071] *pgd=00000000 > [ 3.043408] Internal error: Oops: 5 [#1] SMP ARM > [ 3.048019] Modules linked in: > [ 3.051078] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.5.0-rc1-00004-g5253fe05bb47 #24 > [ 3.059067] Hardware name: Allwinner sun7i (A20) Family > [ 3.064297] PC is at device_link_add+0x68/0x4c8 > [ 3.068824] LR is at device_link_add+0x68/0x4c8 > [ 3.073348] pc : [] lr : [] psr: 60000013 > [ 3.079605] sp : ef04dd68 ip : 60000013 fp : 00000007 > [ 3.084822] r10: 00000000 r9 : eea8a740 r8 : ef0a5c10 > [ 3.090039] r7 : ef0a5c10 r6 : ffffffed r5 : 00000001 r4 : 00000001 > [ 3.096556] r3 : ef060000 r2 : 00000000 r1 : 00000000 r0 : c0a4e588 > [ 3.103076] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none > [ 3.110201] Control: 10c5387d Table: 4000406a DAC: 00000051 > [ 3.115937] Process swapper/0 (pid: 1, stack limit = 0x(ptrval)) > [ 3.121936] Stack: (0xef04dd68 to 0xef04e000) > [ 3.126292] dd60: 000005e4 c02141e4 ef7bf970 ffffffed ef0a5c10 eea8a7c0 > [ 3.134461] dd80: 00000000 ef0a5c10 eea8a740 00000000 00000007 c03acaec 00000000 ee8a3700 > [ 3.142630] dda0: ef7bf970 ee8a3700 ef0a5c10 c04d2804 ef04c000 ef0a5c10 ef0a5c00 ee8a3700 > [ 3.150799] ddc0: 00000000 00000000 00000000 c04d2e20 00000001 c029b2bc c0a4f9fc 00000000 > [ 3.158969] dde0: ef0b3630 c029aec8 00000000 5aef773a eea8c478 ef0a5c10 00000000 ef0a5c00 > [ 3.167138] de00: 00000000 00000000 c0a4f9fc 00000000 00000007 c04cedfc ef0a5c10 00000000 > [ 3.175307] de20: c0a4f9fc c047d6b8 c0aa51dc ef0a5c10 c0aa51e0 00000000 00000000 c047b894 > [ 3.183476] de40: ef0a5c10 c0a4f9fc c0a4f9fc c047be38 c093d834 c09004a8 000000d8 c047bb84 > [ 3.191646] de60: 000000d8 c05a37c0 c0760330 ef0a5c10 00000000 c0a4f9fc c047be38 c093d834 > [ 3.199815] de80: c09004a8 000000d8 00000007 c047be30 00000000 c0a4f9fc ef0a5c10 c047be90 > [ 3.207984] dea0: ef0fc634 ef04c000 c0a4f9fc c0479c68 c09004a8 ef01e458 ef0fc634 5aef773a > [ 3.216152] dec0: c0a4df18 c0a4f9fc eea8a300 c0a4df18 00000000 c047acb0 c083ac48 c0aa5870 > [ 3.224321] dee0: c0a4f9fc c0a4f9fc c091eff4 00000000 ffffe000 c047c6fc c0a6fc40 c091eff4 > [ 3.232491] df00: 00000000 c01026e8 effffe6e c013c488 00000000 c08b9d00 c0845f90 00000000 > [ 3.240660] df20: 00000006 00000006 c07ff574 00000000 c0809bd8 c07ff5e8 00000000 effffe67 > [ 3.248829] df40: effffe6a 5aef773a 00000000 00000006 c0a6fc40 5aef773a c093d850 c0952220 > [ 3.256998] df60: c0a6fc40 c0a6fc40 c093d854 c0900ed0 00000006 00000006 00000000 c09004a8 > [ 3.265167] df80: 00000000 00000000 c06f7a9c 00000000 00000000 00000000 00000000 00000000 > [ 3.273335] dfa0: 00000000 c06f7aa4 00000000 c01010e8 00000000 00000000 00000000 00000000 > [ 3.281504] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > [ 3.289672] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000 > [ 3.297858] [] (device_link_add) from [] (devm_of_phy_get+0x64/0xb0) > [ 3.305947] [] (devm_of_phy_get) from [] (ahci_platform_get_phy+0x28/0xd0) > [ 3.314552] [] (ahci_platform_get_phy) from [] (ahci_platform_get_resources+0x234/0x448) > [ 3.324372] [] (ahci_platform_get_resources) from [] (ahci_sunxi_probe+0x10/0xa8) > [ 3.333585] [] (ahci_sunxi_probe) from [] (platform_drv_probe+0x48/0x98) > [ 3.342017] [] (platform_drv_probe) from [] (really_probe+0x1e0/0x348) > [ 3.350267] [] (really_probe) from [] (driver_probe_device+0x60/0x16c) > [ 3.358525] [] (driver_probe_device) from [] (device_driver_attach+0x58/0x60) > [ 3.367390] [] (device_driver_attach) from [] (__driver_attach+0x58/0xcc) > [ 3.375908] [] (__driver_attach) from [] (bus_for_each_dev+0x78/0xb8) > [ 3.384080] [] (bus_for_each_dev) from [] (bus_add_driver+0x1b4/0x1d4) > [ 3.392337] [] (bus_add_driver) from [] (driver_register+0x74/0x108) > [ 3.400423] [] (driver_register) from [] (do_one_initcall+0x78/0x1d4) > [ 3.408598] [] (do_one_initcall) from [] (kernel_init_freeable+0x138/0x1d4) > [ 3.417291] [] (kernel_init_freeable) from [] (kernel_init+0x8/0x110) > [ 3.425462] [] (kernel_init) from [] (ret_from_fork+0x14/0x2c) > [ 3.433019] Exception stack(0xef04dfb0 to 0xef04dff8) > [ 3.438065] dfa0: 00000000 00000000 00000000 00000000 > [ 3.446234] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > [ 3.454400] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 > [ 3.461010] Code: e59f0464 03844040 eb0a0b7b eb004882 (e5d63084) > [ 3.467153] ---[ end trace 0dbbaca7a7b65a4b ]--- > > The problem was bisected to 5253fe05bb47a2402f471d76078b3dcc66442d6c ("phy: core: Add consumer device link support") > Reverting this patch fix the problem This should be fixed in the latest -next branch. Please try it and let me us know. Thanks Kishon