Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753166AbaAWDZq (ORCPT ); Wed, 22 Jan 2014 22:25:46 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:37423 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201AbaAWDZo (ORCPT ); Wed, 22 Jan 2014 22:25:44 -0500 MIME-Version: 1.0 In-Reply-To: References: <20140122164100.GE15937@n2100.arm.linux.org.uk> Date: Wed, 22 Jan 2014 19:25:42 -0800 Message-ID: Subject: Re: Internal error: Oops: 17 [#1] ARM From: John Tobias To: Fabio Estevam Cc: Russell King - ARM Linux , Dong Aisheng , "linux-mmc@vger.kernel.org" , "" , "" Content-Type: multipart/mixed; boundary=001a11c26818e141d504f09acb54 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --001a11c26818e141d504f09acb54 Content-Type: text/plain; charset=ISO-8859-1 Hi Fabio, Attached are the two patch files that I applied in the 3.13 released so that the kernel will detect my eMMC in DDR50. (let me correct my previous email, I was mentioning SDR50 but it should be DDR50). eMMC info: clock: 52000000 Hz actual clock: 49500000 Hz vdd: 21 (3.3 ~ 3.4 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 3 (8 bits) timing spec: 1 (mmc high-speed) signal voltage: 0 (3.30 V) I reboot my device often and it shows during the reboot. Regards, john On Wed, Jan 22, 2014 at 6:28 PM, Fabio Estevam wrote: > On Wed, Jan 22, 2014 at 9:49 PM, John Tobias wrote: >> Hello all, >> >> Just to confirm that the error I posted previously exist in 3.13 >> released. Just be noted that some patches related to eMMC/sdhci has >> been applied in order to boot the 3.13 on my board. >> Addition to that, I was getting additional errors (please see below): >> - It happened during the reboot. >> >> Cc'ng Dong Aisheng. > > What are the steps to reproduce this? Which SoC are you using? > > Regards, > > Fabio Estevam --001a11c26818e141d504f09acb54 Content-Type: application/octet-stream; name="sdhci-esdhc-imx.patch" Content-Disposition: attachment; filename="sdhci-esdhc-imx.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hqrg6nb90 LS0tIC4uLy4uL2xpbnV4LTMuMTMvZHJpdmVycy9tbWMvaG9zdC9zZGhjaS1lc2RoYy1pbXguYwky MDE0LTAxLTE5IDE4OjQwOjA3LjAwMDAwMDAwMCAtMDgwMAorKysgZHJpdmVycy9tbWMvaG9zdC9z ZGhjaS1lc2RoYy1pbXguYwkyMDE0LTAxLTIyIDE4OjUxOjA3LjA1MTI3NTUxOCAtMDgwMApAQCAt Mzg1LDYgKzM4NSwyMiBAQAogCQlyZXR1cm4gcmV0OwogCX0KIAorCWlmICh1bmxpa2VseShyZWcg PT0gU0RIQ0lfVFJBTlNGRVJfTU9ERSkpIHsKKwkJaWYgKGVzZGhjX2lzX3VzZGhjKGlteF9kYXRh KSkgeworCQkJdTMyIG0gPSByZWFkbChob3N0LT5pb2FkZHIgKyBFU0RIQ19NSVhfQ1RSTCk7CisJ CQlyZXQgPSBtICYgRVNESENfTUlYX0NUUkxfU0RIQ0lfTUFTSzsKKwkJCS8qIFN3YXAgQUMyMyBi aXQgKi8KKwkJCWlmIChtICYgRVNESENfTUlYX0NUUkxfQUMyM0VOKSB7CisJCQkJcmV0ICY9IH5F U0RIQ19NSVhfQ1RSTF9BQzIzRU47CisJCQkJcmV0IHw9IFNESENJX1RSTlNfQVVUT19DTUQyMzsK KwkJCX0KKwkJfSBlbHNlIHsKKwkJCXJldCA9IHJlYWR3KGhvc3QtPmlvYWRkciArIFNESENJX1RS QU5TRkVSX01PREUpOworCQl9CisKKwkJcmV0dXJuIHJldDsKKwl9CisKIAlyZXR1cm4gcmVhZHco aG9zdC0+aW9hZGRyICsgcmVnKTsKIH0KIApAQCAtNTU4LDE5ICs1NzQsMTcgQEAKIAlzdHJ1Y3Qg cGx0Zm1faW14X2RhdGEgKmlteF9kYXRhID0gcGx0Zm1faG9zdC0+cHJpdjsKIAlzdHJ1Y3QgZXN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NEX1BFUk1B TkVOVDoKLQkJaG9zdC0+bW1jLT5jYXBzID0gTU1DX0NBUF9OT05SRU1PVkFCTEU7CisJCWhvc3Qt Pm1tYy0+Y2FwcyB8PSBNTUNfQ0FQX05PTlJFTU9WQUJMRTsKIAkJYnJlYWs7CiAKIAljYXNlIEVT REhDX0NEX05PTkU6Cg== --001a11c26818e141d504f09acb54 Content-Type: application/octet-stream; name="sdhci.patch" Content-Disposition: attachment; filename="sdhci.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hqrg6nbg1 LS0tIC4uLy4uL2xpbnV4LTMuMTMvZHJpdmVycy9tbWMvaG9zdC9zZGhjaS5jCTIwMTQtMDEtMTkg MTg6NDA6MDcuMDAwMDAwMDAwIC0wODAwCisrKyBkcml2ZXJzL21tYy9ob3N0L3NkaGNpLmMJMjAx NC0wMS0yMiAxMToyMDowNy45MjIxMjA0OTUgLTA4MDAKQEAgLTg5OCw4ICs4OTgsMTMgQEAKIAl1 MTYgbW9kZTsKIAlzdHJ1Y3QgbW1jX2RhdGEgKmRhdGEgPSBjbWQtPmRhdGE7CiAKLQlpZiAoZGF0 YSA9PSBOVUxMKQorCWlmIChkYXRhID09IE5VTEwpIHsKKwkJLyogY2xlYXIgQXV0byBDTUQgc2V0 dGluZ3MgZm9yIG5vIGRhdGEgQ01EcyAqLworCQltb2RlID0gc2RoY2lfcmVhZHcoaG9zdCwgU0RI Q0lfVFJBTlNGRVJfTU9ERSk7CisJCXNkaGNpX3dyaXRldyhob3N0LCBtb2RlICYgfihTREhDSV9U Uk5TX0FVVE9fQ01EMTIgfAorCQkJCVNESENJX1RSTlNfQVVUT19DTUQyMyksIFNESENJX1RSQU5T RkVSX01PREUpOwogCQlyZXR1cm47CisJfQogCiAJV0FSTl9PTighaG9zdC0+ZGF0YSk7CiAKQEAg LTEzOTEsNiArMTM5NiwxMyBAQAogCQkJCQltbWMtPmNhcmQtPnR5cGUgPT0gTU1DX1RZUEVfTU1D ID8KIAkJCQkJTU1D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mxhZ3MpOwogCiAJCWlmICghaG9zdC0+dHVu aW5nX2RvbmUpIHsKIAkJCXByX2luZm8oRFJJVkVSX05BTUUgIjogVGltZW91dCB3YWl0aW5nIGZv ciAiCkBAIC0yMDM0LDggKzIwNDEsNyBAQAogCQllcnIgPSAwOwogCiAJc2RoY2lfY2xlYXJfc2V0 X2lycXMoaG9zdCwgU0RIQ0lfSU5UX0RBVEFfQVZBSUwsIGllcik7Ci0Jc3Bpbl91bmxvY2soJmhv c3QtPmxvY2spOwotCWVuYWJsZV9pcnEoaG9zdC0+aXJxKTsKKwlzcGluX3VubG9ja19pcnFyZXN0 b3JlKCZob3N0LT5sb2NrLCBmbGFncyk7CiAJc2RoY2lfcnVudGltZV9wbV9wdXQoaG9zdCk7CiAK IAlyZXR1cm4gZXJyOwo= --001a11c26818e141d504f09acb54-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/