Re: [PATCH 2/2] ubi: Expose the bitrot interface

2018-11-08 Thread Richard Weinberger
Am Donnerstag, 8. November 2018, 15:26:42 CET schrieb Boris Brezillon: > On Wed, 7 Nov 2018 23:16:19 +0100 > Richard Weinberger wrote: > > > +/** > > + * ubi_bitflip_check - Check an eraseblock for bitflips and scrub it if > > needed. > > + * @ubi: UBI device description object > > + * @pnum:

Re: [PATCH 2/2] ubi: Expose the bitrot interface

2018-11-08 Thread Richard Weinberger
Am Donnerstag, 8. November 2018, 15:26:42 CET schrieb Boris Brezillon: > On Wed, 7 Nov 2018 23:16:19 +0100 > Richard Weinberger wrote: > > > +/** > > + * ubi_bitflip_check - Check an eraseblock for bitflips and scrub it if > > needed. > > + * @ubi: UBI device description object > > + * @pnum:

Re: [PATCH 2/2] ubi: Expose the bitrot interface

2018-11-08 Thread Boris Brezillon
On Wed, 7 Nov 2018 23:16:19 +0100 Richard Weinberger wrote: > +/** > + * ubi_bitflip_check - Check an eraseblock for bitflips and scrub it if > needed. > + * @ubi: UBI device description object > + * @pnum: the physical eraseblock to schedule > + * @force_scrub: force scrubbing if non-zero,

Re: [PATCH 2/2] ubi: Expose the bitrot interface

2018-11-08 Thread Boris Brezillon
On Wed, 7 Nov 2018 23:16:19 +0100 Richard Weinberger wrote: > +/** > + * ubi_bitflip_check - Check an eraseblock for bitflips and scrub it if > needed. > + * @ubi: UBI device description object > + * @pnum: the physical eraseblock to schedule > + * @force_scrub: force scrubbing if non-zero,

[PATCH 2/2] ubi: Expose the bitrot interface

2018-11-07 Thread Richard Weinberger
Using UBI_IOCRPEB and UBI_IOCSPEB userspace can force reading and scrubbing of PEBs. In case of bitflips UBI will automatically take action and move data to a different PEB. This interface allows a daemon to foster your NAND. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/cdev.c |

[PATCH 2/2] ubi: Expose the bitrot interface

2018-11-07 Thread Richard Weinberger
Using UBI_IOCRPEB and UBI_IOCSPEB userspace can force reading and scrubbing of PEBs. In case of bitflips UBI will automatically take action and move data to a different PEB. This interface allows a daemon to foster your NAND. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/cdev.c |