Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2453254ybp; Thu, 10 Oct 2019 07:37:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHMWi4+j48BU+rHCQ+3S6GB7InbQcPwmopn2ZRdpezk0N3/xN3eo8CCXUu+yEWhDUbZAwZ X-Received: by 2002:aa7:d045:: with SMTP id n5mr8471543edo.24.1570718252094; Thu, 10 Oct 2019 07:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570718252; cv=none; d=google.com; s=arc-20160816; b=JDPTwG8JSsZWZKb2q0OuJqBi7wCAIL+EiJevR6mmfP8UXMPRg/U7Nm6hUuqbRq5sHk YT6FjIlVNWfHGa0CY7lYGtSsWWYlV0wEQXjD3ISWuBf18JVlZtg+NOwAb76FbmotjUqQ YVRBMK4pPBmKGSk7XCRzObqSMq+iONwKrA300t/ksiNgMEM5TU+i7MJQZCCS7cEqUGjA dplfVQQ0Ntja4PInRf+ArGAYw1rIK/UWxCDYDDP3WSkIXc1dP9jbnQDunnXgd8+i9dC/ sjgfjmBCQAjki2tTIdvHt+LangDwlqEhVOpWmvoASprB85x/hq7da9QkjLMeOiHhURoG goug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GXkAkj9HAvSrJatYfKDZjO99QwezjU6uUgWiJir34Vc=; b=gCKTaqzJKDHFaTyna2c7QUtpvlR+P/5CqvOvCn3oWo4pBAfJuIfNdH4nuTK1Ba+GRA Jrb2VJg0iFXNqMLCjnj7+y+qCc5zXe3LR/FkGQUvWVSgkmpZYCP0xBvNJV6PxwnD7vC7 kXEn4ea7ZTfFFDwi2sQlu8hCl5OB6951jTO6xrMdr3kxh274PB5PPSH8VHQomCLXny5y LnM7AV3QFHGeoq9WyibeHly1eWphfskezmRf0rn6un78Zz1QCxIg360zEkQA+gszOqsu PAN0CROpKGIxBIHRsgXz/SWuEyYrA7FJtQaY4dnBuDmse806+G2FwMfv468Ku4e+aCLZ Z0oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bw0sjYmp; 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 d19si3070852ejy.353.2019.10.10.07.37.04; Thu, 10 Oct 2019 07:37:32 -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=bw0sjYmp; 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 S1726279AbfJJOgh (ORCPT + 99 others); Thu, 10 Oct 2019 10:36:37 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:46141 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfJJOgh (ORCPT ); Thu, 10 Oct 2019 10:36:37 -0400 Received: by mail-io1-f68.google.com with SMTP id c6so14080928ioo.13; Thu, 10 Oct 2019 07:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GXkAkj9HAvSrJatYfKDZjO99QwezjU6uUgWiJir34Vc=; b=bw0sjYmp+dLZlFlbGE3VgPVQC40HZjwr9iD6oAQUFOrAqYWOf8YnhtGRHy0/H6hr4+ oWeymG5LCwtzWwV/r6nYAvb579w3rcPC3psvwLd9vg7aW59FFMtZgmx3XdIdiBNsQXT7 ug/ys741vBe80UV1arYQasYjpmys63+esdO7iWo9ywswy/I996O+cx7ws1LxztzTbI7u AV3cycm/0O9BxhG467FRFF4zmazuBODvnZakIEeTP+77srTXorBedDb1pZmLUUQpiZix CORIa2c/a/+DoBCsi7AhRRTVSpedyx1Plt4i61kMkgixCoBukiqR8InC0VKgppG1dk9O bExA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GXkAkj9HAvSrJatYfKDZjO99QwezjU6uUgWiJir34Vc=; b=RFsQl8KIUilyWb3QKUuHRToPGr2rjanlGekF0Ew9uCsIkMaV6zkxrJ49VkyfTYw2ug GxeGDu/6Lk96tlKF76r32PYYvmuV3hXSpgRN5b9cJOekw3t4zTTtGMAlMngi9cjlhpVd KFPJNgSAuh80HkeONZT2BG49cmGCnlLOo2plx8uCnFUnrwp3hIe6VlBlCBolljW5+LMN sXKyyKxZDxvK0TC+nQD7+J+j10X1uC2nMiM2TjRyyr8yH5cfdM30isIMnjq4izHHk/sH HEg/pO3y0JHUjWT6mVfYzAnOOK5MpsBUUBNmrdMUqo+X8Dx67jPcXd88mxop9yj9DIWV tzMw== X-Gm-Message-State: APjAAAWJ2wsAcEOjXaHi85BnOvt+KwCt80l9gcR4vCVploXl03fpMu2J fcK6tZcErlFpYsU7yEfFg8s4UzSlXp2Jj/U2GtE= X-Received: by 2002:a6b:4f03:: with SMTP id d3mr11402437iob.199.1570718196875; Thu, 10 Oct 2019 07:36:36 -0700 (PDT) MIME-Version: 1.0 References: <20191010143232.GA13560@harukaze> In-Reply-To: <20191010143232.GA13560@harukaze> From: Jeffrey Hugo Date: Thu, 10 Oct 2019 08:36:25 -0600 Message-ID: Subject: Re: msm8996: sdhci-msm: apq8096-db820c sdhci fails to init - "Timeout waiting for hardware interrupt." To: Paolo Pisati Cc: MSM , Andy Gross , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'm using sdhci-msm on msm8998, so its not completely broken upstream. What speed card are you trying to use? On Thu, Oct 10, 2019 at 8:33 AM 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? > > Full boot logs here: https://pastebin.ubuntu.com/p/BtRrgnjV7J/ > > *: nothing earlier then v5.0 boots on this board, so i couldn't test it. > -- > bye, > p.