Received: by 10.213.65.68 with SMTP id h4csp67037imn; Mon, 12 Mar 2018 18:03:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELvuFTlSYqJIwmzsCMVt/lP/g+W/WTcW3sNkuChkfCAI2I3ydXK/I9xMY5sMnw1RwzJlamYO X-Received: by 10.167.128.80 with SMTP id y16mr9733595pfm.91.1520903016748; Mon, 12 Mar 2018 18:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520903016; cv=none; d=google.com; s=arc-20160816; b=HOnGFGQ6vm1wb5EpAmchyVkkRLnyIDSWoAvZno87qwpl3+pPKR3aKidOnXB8wFj262 SEqPmvXgthHxTwP9W0jPb6zyJAKotR+SN6QrJMFcDsA9MfUgyGF3mRoCT1D3A/s3jGdb q8m4GGEIIGdbASrwiNNU5U10lwQldaCd7AdohuZoz6ScqBGNhBm1GaZrLvXjSikkTdKP v1HFo4u7NaZq0b6PhUSk3FbLPiDEGGhptxGX+n1+SYGWZkVX0w+NjOt/D/nXJh47/6Lv 6zh+f3p6LV4woUK6ZgrTWbqllr32YWuV6gICu8FMPl+39WOu1vijcZGEuS/iwmrzLtMY 2Tgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=IAYIQn2UCcNb5Urc5uMZgr2jxmVOkyasn2MwcLL+oVE=; b=WWnxt7QXC5E9zYg5LWX/BjnsOP7YyQ2MB2hvIrkdYVMLbr7wLBdVAil1nMtK3Bwqef 5huMxWxc0jYJyOndesj9Xn1KjiGQsbEUEVUPuZBRONMLCb/Pf9Uj5gJKb27tbCJUCILf PaCfwABSqyX2IF8sipTkNsB7DZ0rdvRxMf6invdSMXsx+xAnUVbi/AOWoUNTCAZo+ELr ZC501NohziOiES9xEm4n1Eu8nIRVQpjSsg93it5dsXfvI1cL51RepqrVi1/vEMrEsrfV ntq418ZDC4m4DvpNLygxCM2IZBnwKr+4v3Z1FRbkwl857cmW2lErsu07GCkhp5EO11CR nncw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RY7q7Puy; 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 o27si6710649pfi.119.2018.03.12.18.03.22; Mon, 12 Mar 2018 18:03:36 -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=RY7q7Puy; 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 S1751488AbeCMBCQ (ORCPT + 99 others); Mon, 12 Mar 2018 21:02:16 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:38356 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751377AbeCMBCO (ORCPT ); Mon, 12 Mar 2018 21:02:14 -0400 Received: by mail-qk0-f172.google.com with SMTP id 132so3734714qkd.5; Mon, 12 Mar 2018 18:02:14 -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:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=IAYIQn2UCcNb5Urc5uMZgr2jxmVOkyasn2MwcLL+oVE=; b=RY7q7PuyDLBEc4+OV3R8Y0/Dan5DBV+02zXSTwuZ4j+RbvaZrLePq7nfvVKawRz+GP NMqJr7F6IJKoEiFB8dIb/PeAlaqubiN9awFg1Goyxh4W2KRYzmkKJtihPNz3Kwwk4nF+ zs9G0bS+fhsnrDJgPHeyPqcF9Q6CByw3/FXlw+3DeIqlie8MDYOELKKKCw31dV0NVLJl EWisZ2ODvLcjUGh0Am+tmuYbSthn6pRzcSrrvIwMDYeGE831omNZbFptrHv6e3JX7ZJh LLSah7aalFlp02yzsSeR4CoaWCzBjqDyUEO5xBtjG+ZhtalG3XLAv5voyRWM/2Nhxnua jTiA== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=IAYIQn2UCcNb5Urc5uMZgr2jxmVOkyasn2MwcLL+oVE=; b=paBmWZylfyJHvlmBGW9xMwekK/rWZNjc6yMgHrV5L6GVWEAY0//8588EG2BdhWxt0e vewkByKnewcK0rCKA1iT0eTw0becfXJaA325w6QyEz4ykGU7dxK7QPyVe3pjV4vi95VA 0xo8chgF3RuUoJioSpe6WsKYfFW9SfuYHrSGuqJh4TE55mxunn0F9dRc/0bZROf1o5dE vGb5qzMdjdmvbg6jwF3M4/t69+eqSX9lkvMmEi9uwhqaZoleMINV4mhOpo2z/gdH0KUV 5DAFccEJSVgacUgAbnaZ9VcCUr8tIXiepgpQHKY1bC4o4qTLBH8j4k3RcoyPy6zSqmcp usbw== X-Gm-Message-State: AElRT7ENIy4nEH31VaH5z8PU3lmT541kGP1hXLnuz7dPeVs3srpzr0lD gPl4BH3NlJ7JHnJijM+fWag= X-Received: by 10.55.176.3 with SMTP id z3mr14731078qke.298.1520902933811; Mon, 12 Mar 2018 18:02:13 -0700 (PDT) Received: from osboxes (ool-18b822e8.dyn.optonline.net. [24.184.34.232]) by smtp.gmail.com with ESMTPSA id i52sm6232558qtf.91.2018.03.12.18.02.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Mar 2018 18:02:12 -0700 (PDT) Date: Mon, 12 Mar 2018 21:02:10 -0400 From: Vivek Unune To: Florian Fainelli Cc: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Hauke Mehrtens , Jon Mason , bcm-kernel-feedback-list , Rob Herring , Mark Rutland , Russell King , "linux-arm-kernel@lists.infradead.org" , devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH] ARM: BCM5301X: Fix NAND ECC parameters for Linksys Panamera Message-ID: <20180313010210.ws4dugy3rrpqwzmk@osboxes> References: <20180310171244.70299-1-npcomplete13@gmail.com> <20180311100313.znonhesgh462rz65@osboxes> <2ef6e4fc-cce7-372e-e35f-578fd6ada9ca@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2ef6e4fc-cce7-372e-e35f-578fd6ada9ca@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, On Mon, Mar 12, 2018 at 03:52:27PM -0700, Florian Fainelli wrote: > On 03/11/2018 03:03 AM, Vivek Unune wrote: > > Hi Rafał, > > > > On Sat, Mar 10, 2018 at 10:41:04PM +0100, Rafał Miłecki wrote: > >> On 10 March 2018 at 18:12, Vivek Unune wrote: > >>> Using BCH8 gives ecc errors and makes the router unsuable. > >>> Switching to BCH1 fixes these errors. > >> > >> Can you provide CFE's log messages starting with > >> "Decompressing...done" and up to the "Press Ctrl+C to stop in CFE" > >> please? I'd like to see what NAND info CFE prints there. > > > > See below. It does say BCH-8, however I can't get it to work. > > > > CFE log: > > > > Decompressing...done > > Found a Toshiba NAND flash: > > Total size: 128MB > > Block size: 128KB > > Page Size: 2048B > > OOB Size: 64B > > Sector size: 512B > > Spare size: 16B > > ECC level: 8 (8-bit) > > Device ID: 0x98 0xf1 0x80 0x15 0xf2 0x16 > > find_devinfo: devinfo block found at 0x00180000! > > > > Press Ctrl+C to stop in CFE > > What kind of error are you getting in Linux with BCH-8? See below: [ 12.941850] Generic PHY dsa-1.0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-1.0:03, irq=POLL) [ 12.991851] Generic PHY dsa-1.0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-1.0:04, irq=POLL) [ 13.032404] UBI: auto-attach mtd5 [ 13.035731] ubi0: attaching mtd5 [ 13.115701] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 113:0, read only 64 bytes, retry [ 13.127630] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 113:0, read only 64 bytes, retry [ 13.139524] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 113:0, read only 64 bytes, retry [ 13.151419] ubi0 error: 0xc037ca08: error -74 (ECC error) while reading 64 bytes from PEB 113:0, read 64 bytes [ 13.161448] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.25 #0 [ 13.167460] Hardware name: BCM5301X [ 13.170951] Backtrace: [ 13.173398] Function entered at [] from [] [ 13.179240] r7:00000000 r6:60000013 r5:00000000 r4:c081d988 [ 13.184903] Function entered at [] from [] [ 13.190744] Function entered at [] from [] [ 13.196586] r7:00000000 r6:00000040 r5:c7954000 r4:ffffffb6 [ 13.202251] Function entered at [] from [] [ 13.208095] r10:00000000 r9:00000040 r8:00000071 r7:c7954000 r6:c7979000 r5:c7036180 [ 13.215941] r4:c7b72900 [ 13.218475] Function entered at [] from [] [ 13.224318] r10:00000000 r9:c7979800 r8:c7954000 r7:c7979000 r6:00000071 r5:c7036180 [ 13.232157] r4:c7b72900 [ 13.234690] Function entered at [] from [] [ 13.240534] r10:c7954040 r9:00000840 r8:c702e400 r7:00000000 r6:c702e400 r5:c7954000 [ 13.248381] r4:fffff800 [ 13.250914] Function entered at [] from [] [ 13.256759] r10:c0813a88 r9:c0651c18 r8:c0651bec r7:c084ff48 r6:c081e440 r5:c7823ea4 [ 13.264605] r4:c702e400 [ 13.267139] Function entered at [] from [] [ 13.272983] r10:c072e83c r9:c07366b8 r8:c0717954 r7:c072e838 r6:c081e440 r5:00000000 [ 13.280830] r4:c0803c08 [ 13.283363] Function entered at [] from [] [ 13.289206] r9:c07366b8 r8:c0700594 r7:c072e838 r6:c081e440 r5:c081e440 r4:00000008 [ 13.296958] Function entered at [] from [] [ 13.302802] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0506acc [ 13.310641] r4:00000000 [ 13.313175] Function entered at [] from [] [ 13.319015] r5:c0506acc r4:00000000 [ 13.323289] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 114:0, read only 64 bytes, retry [ 13.335178] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 114:0, read only 64 bytes, retry [ 13.347066] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 114:0, read only 64 bytes, retry [ 13.358956] ubi0 error: 0xc037ca08: error -74 (ECC error) while reading 64 bytes from PEB 114:0, read 64 bytes [ 13.368989] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.25 #0 [ 13.375007] Hardware name: BCM5301X [ 13.378496] Backtrace: [ 13.380943] Function entered at [] from [] [ 13.386787] r7:00000000 r6:60000013 r5:00000000 r4:c081d988 [ 13.392450] Function entered at [] from [] [ 13.398291] Function entered at [] from [] [ 13.404133] r7:00000000 r6:00000040 r5:c7954000 r4:ffffffb6 [ 13.409797] Function entered at [] from [] [ 13.415641] r10:00000000 r9:00000040 r8:00000072 r7:c7954000 r6:c7979000 r5:c7036180 [ 13.423488] r4:c7b72900 [ 13.426021] Function entered at [] from [] [ 13.431865] r10:00000000 r9:c7979800 r8:c7954000 r7:c7979000 r6:00000072 r5:c7036180 [ 13.439704] r4:c7b72900 [ 13.442237] Function entered at [] from [] [ 13.448081] r10:c7954040 r9:00000840 r8:c702e400 r7:00000000 r6:c702e400 r5:c7954000 [ 13.455928] r4:fffff800 [ 13.458461] Function entered at [] from [] [ 13.464305] r10:c0813a88 r9:c0651c18 r8:c0651bec r7:c084ff48 r6:c081e440 r5:c7823ea4 [ 13.472152] r4:c702e400 [ 13.474685] Function entered at [] from [] [ 13.480529] r10:c072e83c r9:c07366b8 r8:c0717954 r7:c072e838 r6:c081e440 r5:00000000 [ 13.488376] r4:c0803c08 [ 13.490909] Function entered at [] from [] [ 13.496754] r9:c07366b8 r8:c0700594 r7:c072e838 r6:c081e440 r5:c081e440 r4:00000008 [ 13.504514] Function entered at [] from [] [ 13.510358] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0506acc [ 13.518197] r4:00000000 [ 13.520730] Function entered at [] from [] [ 13.526570] r5:c0506acc r4:00000000 [ 13.530863] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 115:0, read only 64 bytes, retry [ 13.542763] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 115:0, read only 64 bytes, retry [ 13.554659] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 115:0, read only 64 bytes, retry [ 13.566548] ubi0 error: 0xc037ca08: error -74 (ECC error) while reading 64 bytes from PEB 115:0, read 64 bytes [ 13.576574] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.25 #0 [ 13.582589] Hardware name: BCM5301X [ 13.586078] Backtrace: [ 13.588526] Function entered at [] from [] [ 13.594368] r7:00000000 r6:60000013 r5:00000000 r4:c081d988 [ 13.600032] Function entered at [] from [] [ 13.605872] Function entered at [] from [] [ 13.611714] r7:00000000 r6:00000040 r5:c7954000 r4:ffffffb6 [ 13.617378] Function entered at [] from [] [ 13.623223] r10:00000000 r9:00000040 r8:00000073 r7:c7954000 r6:c7979000 r5:c7036180 [ 13.631071] r4:c7b72900 [ 13.633604] Function entered at [] from [] [ 13.639447] r10:00000000 r9:c7979800 r8:c7954000 r7:c7979000 r6:00000073 r5:c7036180 [ 13.647286] r4:c7b72900 [ 13.649819] Function entered at [] from [] [ 13.655663] r10:c7954040 r9:00000840 r8:c702e400 r7:00000000 r6:c702e400 r5:c7954000 [ 13.663510] r4:fffff800 [ 13.666042] Function entered at [] from [] [ 13.671886] r10:c0813a88 r9:c0651c18 r8:c0651bec r7:c084ff48 r6:c081e440 r5:c7823ea4 [ 13.679725] r4:c702e400 [ 13.682258] Function entered at [] from [] [ 13.688103] r10:c072e83c r9:c07366b8 r8:c0717954 r7:c072e838 r6:c081e440 r5:00000000 [ 13.695949] r4:c0803c08 [ 13.698482] Function entered at [] from [] [ 13.704327] r9:c07366b8 r8:c0700594 r7:c072e838 r6:c081e440 r5:c081e440 r4:00000008 [ 13.712087] Function entered at [] from [] [ 13.717930] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0506acc [ 13.725769] r4:00000000 [ 13.728303] Function entered at [] from [] [ 13.734144] r5:c0506acc r4:00000000 [ 13.738425] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 116:0, read only 64 bytes, retry [ 13.750319] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 116:0, read only 64 bytes, retry [ 13.762213] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while reading 64 bytes from PEB 116:0, read only 64 bytes, retry [ 13.774103] ubi0 error: 0xc037ca08: error -74 (ECC error) while reading 64 bytes from PEB 116:0, read 64 bytes [ 13.784130] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.25 #0 Thanks, Vivek