Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp502104ybp; Thu, 10 Oct 2019 23:02:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoHKPbKwwFjvakbvD+NH+2AGgDdk5Mlq6Ru4HUhQ/F3BnyWSEz3zH3hObSQjbnA2Sl4r6f X-Received: by 2002:a17:906:4757:: with SMTP id j23mr11372874ejs.174.1570773758259; Thu, 10 Oct 2019 23:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570773758; cv=none; d=google.com; s=arc-20160816; b=ofEAZaBIWWBrNE4inE7PN238E487wVVlE/0jJZvZ7eqNNbjQNDHSU3hMaTSLXir5eG G2mCnO+2EY7KqE8/zO4FfOzIJVSWnVZblvEIG3mYyGsbGcY8QmmF6chVpfs+FBuoc3rR 4vOO+sPcLaCqQUyBjFwDnuaEnNSNTRp81bD/rmPv2Zz3AnbJXaJjmaf9egV5ippbXTQG UedkKRIGLnaDSKuQGubEXTmcUtc0qkRMWeVl2Rgwyikac5gy05KTDOj8cZciSNzhSfui yqHW98XHG+oGvAWb42Ahv2MEcdAVgO1zhUfTKuDYeB3kC9gM7m9TIFzfZ9/ULdrCJPmS sNpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=99Zdn9cCrclmeMvcYNViCUdD9QDqYIIxQwp7fR3Vw/E=; b=yuBB0eFMjeOQbpwzut0Oetr2/5g8IoUSBEKVIrWkQAFBmkNZ9uvlarvPnoTyevNiAK brOPrz5uy5PKBaT8ZDCzW6dAUGdrumMF4F8jvwJ1cpI1c+OqfkHgK4qwO24ikUcE+tOd qQNUstKw7256F93cJHjO0WbvsyOnxxtSbxX5OnuS+vPl8Fi1mIaqGhbhAFaAdECPCu+q 2AFQSSEs83izeu7Fok5XWtx41/kf+V/H70Bt7ubF4CvmhiPKchbSL4/kM8djYm6kW9ly d/wU7Wqz0iBjV8DRcTnttWDaWxQRsBw3cXoIkN2aQXv/3I84YrQ5fl9YJhHoG63QTfIX CInQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b="Qz/cN3qG"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u30si4946932edl.366.2019.10.10.23.02.15; Thu, 10 Oct 2019 23:02:38 -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 (test mode) header.i=@onstation.org header.s=default header.b="Qz/cN3qG"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727202AbfJKGBb (ORCPT + 99 others); Fri, 11 Oct 2019 02:01:31 -0400 Received: from onstation.org ([52.200.56.107]:34028 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbfJKGBb (ORCPT ); Fri, 11 Oct 2019 02:01:31 -0400 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 839DE3E99D; Fri, 11 Oct 2019 06:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1570773690; bh=Pdr19pxEE4qP5RMto+KKW0ehdo3HshXBVfUnDOrByr0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qz/cN3qGjZokf36pEqy2tnjjr9eHqIrBUB3y0f24CZAQnmeAbJLzxl0vFeA6wQND+ gdwlMjQvVFXIOAj/uhyJruKaPPCMwwM312OYjILH490YWo4PTaRda9gM0ydlZPZ/Q6 d2qun2ouxcJliW2uUklfMYbzG26PcQKSFRRXDbZE= Date: Fri, 11 Oct 2019 02:01:30 -0400 From: Brian Masney To: Paolo Pisati Cc: linux-arm-msm@vger.kernel.org, Andy Gross , linux-kernel@vger.kernel.org, Jeffrey Hugo Subject: Re: msm8996: sdhci-msm: apq8096-db820c sdhci fails to init - "Timeout waiting for hardware interrupt." Message-ID: <20191011060130.GA12357@onstation.org> References: <20191010143232.GA13560@harukaze> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191010143232.GA13560@harukaze> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paolo, On Thu, Oct 10, 2019 at 04:32:32PM +0200, Paolo Pisati wrote: > Sdhci consistenlty fails to initialize (and thus work) on my apq8096-db820c. > > The issue is present since v5.0[*] mainline up to latest v5.4-rc2, using defconfig and: > > CONFIG_SCSI_UFS_QCOM=y > CONFIG_PHY_QCOM_QMP=y > CONFIG_PHY_QCOM_UFS=y > CONFIG_ATL1C=y > > but can be 100% reproduced with a clean defconfig too. > > During boot, when it's time to mount the sdcard, mmc0 spits out a lot of: > > ... > [ 13.683059] mmc0: Timeout waiting for hardware interrupt. > [ 13.683095] mmc0: sdhci: ============ SDHCI REGISTER DUMP =========== > [ 13.687441] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00004902 > [ 13.693861] mmc0: sdhci: Blk size: 0x00004200 | Blk cnt: 0x00000000 > [ 13.700285] mmc0: sdhci: Argument: 0x00012444 | Trn mode: 0x00000033 > [ 13.706707] mmc0: sdhci: Present: 0x01680206 | Host ctl: 0x0000001f > [ 13.713131] mmc0: sdhci: Power: 0x00000001 | Blk gap: 0x00000000 > [ 13.719555] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007 > [ 13.725979] mmc0: sdhci: Timeout: 0x0000000a | Int stat: 0x00000000 > [ 13.732403] mmc0: sdhci: Int enab: 0x03ff900b | Sig enab: 0x03ff100b > [ 13.738824] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000 > [ 13.745249] mmc0: sdhci: Caps: 0x322dc8b2 | Caps_1: 0x00008007 > [ 13.751673] mmc0: sdhci: Cmd: 0x0000123a | Max curr: 0x00000000 > [ 13.758097] mmc0: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0x5b590000 > [ 13.764519] mmc0: sdhci: Resp[2]: 0x76b27f80 | Resp[3]: 0x0a404012 > [ 13.770944] mmc0: sdhci: Host ctl2: 0x00000000 > [ 13.777365] mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000001588be200 > [ 13.781708] mmc0: sdhci: ============================================ > [ 13.888927] mmc0: Reset 0x4 never completed. > ... > [ 14.004327] mmc0: Controller never released inhibit bit(s). > > in between several sdhci register dumps. > > Has anyone seen that before? Is sdhci-msm support broken upstream or am i missing > something config-wise? I encountered that same error working on the Nexus 5 support upstream. Here's the fix: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=03864e57770a9541e7ff3990bacf2d9a2fffcd5d Brian