Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752924AbcKCFnL (ORCPT ); Thu, 3 Nov 2016 01:43:11 -0400 Received: from mail-dm3nam03on0089.outbound.protection.outlook.com ([104.47.41.89]:14560 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752002AbcKCFnI (ORCPT ); Thu, 3 Nov 2016 01:43:08 -0400 X-Greylist: delayed 1897 seconds by postgrey-1.27 at vger.kernel.org; Thu, 03 Nov 2016 01:43:08 EDT Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; free-electrons.com; dkim=none (message not signed) header.d=none;free-electrons.com; dmarc=bestguesspass action=none header.from=xilinx.com; X-IncomingTopHeaderMarker: OriginalChecksum:;UpperCasedChecksum:;SizeAsReceived:2780;Count:27 From: Naga Sureshkumar Relli To: Richard Weinberger , Christoph Hellwig CC: "dwmw2@infradead.org" , "computersforpeace@gmail.com" , "dedekind1@gmail.com" , "adrian.hunter@intel.com" , "michal.simek@xilinx.com" , "Punnaiah Choudary Kalluri" , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Boris Brezillon Subject: RE: UBIFS LEB properties tree with odd addresses Thread-Topic: UBIFS LEB properties tree with odd addresses Thread-Index: AdIuhYzSHMtf8MMlQH+bJ6F6DdMcjwAPB2aAAC/Mm9AAIz6WgAFeeMUg Date: Thu, 3 Nov 2016 05:11:20 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.23.19.55] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22674.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-IncomingHeaderCount: 27 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(11100500001)(586003)(5890100001)(54356999)(189998001)(6116002)(2900100001)(626004)(2950100002)(23726003)(2920100001)(92566002)(102836003)(5250100002)(5660300001)(76176999)(356003)(50986999)(7736002)(3846002)(7696004)(106466001)(50466002)(305945005)(33656002)(81156014)(93886004)(46406003)(47776003)(5001770100001)(7846002)(55846006)(4326007)(8746002)(63266004)(8676002)(2906002)(8936002)(97756001)(87936001)(81166006)(107986001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR02MB153;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;PTR:unknown-60-83.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT056;1:h0ctc4vxRJPcruUNGXMeDduf+ZVsj1g/Y7/kYdQ/6bqmQHm2522LUQapv5S6m/muW/HbfEa1VUMkHGWrYmLeIRB8wH0J9LR+rWpd/tcqK+58/yUhfJRVgnL5n1yqOFqn32PwE6ALnhkXf1/rLFCCaAo1KkUYr4139aqjrY1J7i5+ApaUqgRZqVHQkVTbvdo8HcMkGU01smjUTPJKT4qQ3XdT2Qrvdbc2aUUHfsLDKqE8q3/Xzp372TTcis26ixB91VWk55WBYRVouOC7b9uf0idmYopDdxj/7hcr83CmcQEiBIDYE6R8+k3xWo+tKz7qYm+FMqPeeLo6SKPqe8rkwaBnG9eeH0O27202oJ+QRNO4cbZfLwLmXwfhQfNrFZfnrJU41C+Lo8+u7QFJsX7KFbDIpCJzYT18g6hqM145StyDlAHsV3AFETRr0a0/xVXnd4dwyDG3GLB2x9BVccfWWN6MKVwxmhia8PC6PHbSgIt21yfmw2GTb2UXSDp9v4GjEW6tefAwHR/tQesAHi8N/yZINjy0AhcxYQJkpbA9UedbTuEyyCyqjeVKlO0VQtzzvTb8sAe95JGbfcGXuB1xAHjTTsEYNL5UY5X7cK/zU+6elNcX9wnsCjFoLKVBgsnTFZtigHhS03+jcC6YSoFlYQ== X-MS-Office365-Filtering-Correlation-Id: 119f75cd-6e94-4a6d-b216-08d403a7dbac X-Microsoft-Exchange-Diagnostics: 1;BY2PR02MB153;2:YqRtx28mV8RosWKf4WRX51gCMq1Co5yxicZ/uBqBbIkGZI2hd9xHcTtDrZR52RcIlpeNHQrLvVzl2TDzxKO0YvVloTwh3Wpe8RgZVF4ZN3YY8VD1KVNciFGgMDlJyh7kmbfJRKp336D08dEMGE7vUgkecxJMRhFMtu7eEOltw2lnHadBgn74BFCsJp4xzKGnSh7pQZQI/1xanppL64yJgQ==;3:Zy3d+y7+e7GY+UVkkZJt5OSx+FvQkW99ULzXMmLcV2KHlGj+3vKw412q1z87my+JI9ZaPQlVk274XdzayO5E7mU1/pCrbbuJezq3J00TxdOEOt0bebUyHQH3ZM9AjbS674uxiHX0kEI91SpHRlLliVxEI//wn9IR2kuufKKKv7EgBbAObEYGP/LdfmDuNxHVRVeP8nJQjlozY0PVFq4Vi79KqGorMY0m1w0Vxmr3FzyPeyvE6y0jphqxWdgQXsO0Febx0wXj9p4GgCrmSxG3E8uujuvpVj0F0gbSzSJKWW8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501002);SRVR:BY2PR02MB153; X-Microsoft-Exchange-Diagnostics: 1;BY2PR02MB153;25:pvpg/lBbGwTi4sAmmr/9Jcr9VEEGxRSVl+3LyHWilBHmP+ttqf8fG6rQEzl/mBaH/ebpQr7l0VGNQWToldJz7ZBOmCwyk1DyWmouoUvz3UQ+pOa1/QUXkqcR9c384P+nvufPb6lfmU7k7EoZDEGQHP5dJP8xpH+90F5RA9jt7hSlFxxes7b4vyX3XaR6+oXy/Deda+efq8WzPe0aj3iQMTgoKRHZCwkZoG7ObXBILTeCG35hm7vDq7MjC6XpPjFEjXmhhc+UCb+1k2NiW2srDI/q4vj0wzlUAgSOZ2X3uHEz5wCdsJ6xFxrucTZCN0k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VArPnZvITUOU3ipeNU1cYCFgj8deACaQBB57B5OwOoB9SLtDPUIu6AuPNtIOyJUvBy9EoqwrvaCYjl20NLa88a5pgZscUBcJQA8h6YLOUl9cSZA0B11yjV1UcVju2tV69eNfAk5fXQSluKwIeyBzWOo93E/v5+ovK+0fnr3rxsLsOadhwHq0VIeGf/uaOuOdfwYmr8SakyLKqzpzcFXPipopP2hNXXODGWBBo4LhHADXd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(13017025)(5005006)(13018025)(13015025)(13023025)(13024025)(8121501046)(10201501046)(3002001)(6055026);SRVR:BY2PR02MB153;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB153; X-Microsoft-Exchange-Diagnostics: 1;BY2PR02MB153;4:c1PanP/f4uuKnNP4+e2xoKYkn/sErht35K29gVVakL4rSQgxR5ptjGXghBZON0A2QrDrlClQFTeq5gXEBWzO+xGvmcbyzOE0ttuaYaIuA+jrjH8q0T7nIZ/HdgtS4IIoEbNFGkfY3PF2QG1ytRR6S0WKcV5t/vquQRj09fmCJO7ZAbX/UFdR5pJqy8ljyRQ0/hAR08NUWI2Y7iJM06R9neUhqtVag7b++qduvEEs/+1ASUFLy5VNdYw/9erHmxkCefHCMNLVS+ybH14/yK8uJg+XFUhwmIo/fxHeqcc7qAvaqhiSXowD13+ZShV7kJ0a1bAKZvDQos4EsD0/CFDqnC+PM/fWLLB6FVr5OCy3g86u2vPBGaTwKQL9UgqsYQvDFGfBmJintwWMNzP8BYXV4c8Xk4/qw09eJUHSWys3YapmFlhU5um6gIrldjUfEv1RPLwIk87ZRaFJUt2UJhCOVFr1iUwrL13E4lVRWbkHjYti+DP6iDirTIDIdIuiig0wSZcNbJsn/TGYd0mMHnglEQ== X-Forefront-PRVS: 011579F31F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR02MB153;23:W5lt1Z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change-Diagnostics: 1;BY2PR02MB153;7:9ejcP2TLhtRPkz+u4pabp98uvqse5wUmYB1Ju+ttQ86Rd9EOQK/AskqmLwCffy+iEtw6YtcJbNBeXS5TRSvzwwtUBBIcVbsxnREMdnIwJsn62E+fVD0SmDqRgKpsNtj8RGaa+SKzYLW9b0j5xlmXwtr4E5vlB1yBz4YHJnJT5v1jcIFtrpIG4xblJRFqHPsvO8vNbThRbhzAai180tfHdpIuoQCreyVAdIvKONVVpbO4P3ocfKXijX/2KzMBJbwc7vL1u3UT1RVoo46CDwX4xCIqfQRLAKKfzgr+YYbpHHmhm9vKHibQseQ4wHc1eAqI8vKw8TbQ21P2fPhjk9odus4nhYyrabx5Y+xymTZhF5k= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2016 05:11:23.9000 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB153 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uA35hGfK013091 Content-Length: 1276 Lines: 27 Hi Richard, >> Hmm, the calculations in lpt.c use basic properties of the MTD (number of blocks, etc...). >> Can you please double check which property causes the failure and also verify whether the MTD driver provides correct properties. i.e. page sizes, block size, number of blocks, ... > Hm, these values depend only on basic MTD prperties AFAICT. > Mtd->numeraseregions = 0 > Nor->pagesize = 512 As per the above query only, I have given the below inputs. >Maybe you miss some bit and set incorrect MTD properties. I double checked the MTD properties (as mentioned above) which were causing the failure, but didn't find any clue. All mtd properties looks good for dual parallel case(there is no odd value). Is there any impact by putting below logic in do_calc_lpt_geom() ? If(c->pnode_sz % 2) c->pnode_sz += 1; please suggest me to do any further debugging? Thanks, Naga Sureshkumar Relli This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.