Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751986AbdGDDXA (ORCPT ); Mon, 3 Jul 2017 23:23:00 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:52806 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751578AbdGDDW7 (ORCPT ); Mon, 3 Jul 2017 23:22:59 -0400 From: Chris Packham To: "linux-mtd@lists.infradead.org" , "andrew@lunn.ch" , "dwmw2@infradead.org" , "boris.brezillon@free-electrons.com" CC: "linux-kernel@vger.kernel.org" , "Brian Norris" , Marek Vasut , Richard Weinberger , Cyrille Pitchen Subject: Re: [PATCH v5 3/5] mtd: handle partitioning on devices with 0 erasesize Thread-Topic: [PATCH v5 3/5] mtd: handle partitioning on devices with 0 erasesize Thread-Index: AQHS209RHXBCQ+2r/kiptRq7mgLtvw== Date: Tue, 4 Jul 2017 03:22:52 +0000 Message-ID: References: <20170602032119.22282-1-chris.packham@alliedtelesis.co.nz> <20170602032119.22282-4-chris.packham@alliedtelesis.co.nz> Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [2001:df5:b000:22:2421:ae24:2476:b355] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 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 v643N8nZ008258 Content-Length: 823 Lines: 18 Hi, On 02/06/17 15:21, Chris Packham wrote: > erasesize is meaningful for flash devices but for SRAM there is no > concept of an erase block so erasesize is set to 0. When partitioning > these devices instead of ensuring partitions fall on erasesize > boundaries we ensure they fall on writesize boundaries. > > Helped-by: Boris Brezillon > Signed-off-by: Chris Packham I had someone mention to me in passing that mtdinfo was failing for them (crashing with some floating point error). I'm wondering if we've created a divide-by-zero problem by reporting 0 erase size in /proc/mtd. I don't have any other info and right now I don't have access to the system I had with the mchp23lcv1024 sram. Andrew, do you still have access to your device?