From patchwork Thu Mar 1 13:39:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Tjernlund X-Patchwork-Id: 879873 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=infinera.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="TBQFariq"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="KaDGqF80"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zsYqP0mL8z9ryr for ; Fri, 2 Mar 2018 00:55:45 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=oiHdPkU5VD7NXwKXcFd5UFib9GzemebzQyzl9xP6phI=; b=TBQ Fariq9+dPSIbPd7safGRZEUhUCvug8NcaB9SXzLJSmtS1AJB7MAU0EDQnf3UWVIEI1PEN/QQDTNSR 6hgLDbPnLse2Ue+jAuktIFqvHRnpHjbfrbV7fk0l9R0XdKRMKihbFWFGuwAHZPgYgMr3euYPJorXP 4byTDCbfUkCiwUhgUmj/5gBH1GRTt1GyNr0xB2HwePDsNAUnvCdA2q156zsRRQQ7qonk7+b7QZRtC cLt3776ayLl7jeXskl6d0Nt8ysvtYNcLb5LUirLbfNLlYvlVOv477MP6s+v2ZLEV/cyemgzGOZGT/ a+mA9UPKzZPI+osF/SK1qETRftMeUEQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1erOgM-0005Kn-VE; Thu, 01 Mar 2018 13:55:38 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erOgJ-0003y7-UM for linux-mtd@bombadil.infradead.org; Thu, 01 Mar 2018 13:55:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hMlyZIOhbZCjCaSKmQUC9EpJKz7S3R7Ls0EFxD9muCs=; b=KaDGqF80HSH9d3lLrI3VkNKKF 0/kV4cA/ZzwBMvMsyxwQT314MNMjWUymDaNgKufY5CcdSYwLWVx7ByxLtH85uqexYKRu8bqCsEMmX jAdhxgPO90DvzD0FI9p5bZZdI2GxSYxFCXD4LYv5emTpA7WKrHHKwNCydLXg7jtLadi+xNECtj6uU RmNhyN2Z+4WI4tPiisIyRShilI46UK1eEduGF/ZEA7hxpjAfK1xFOaUBHyFFjbSJ87UvqDjFeWV11 bboXAGOwwOx6VIfFfdLj7zf/m45R5h5ezg1qhb0Zta+Qp2l20Zh9uLEV4QKkP7yp3g8BfzO0UdTlh TWzjDv2kg==; Received: from smtp.transmode.se ([31.15.61.139]) by casper.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1erORG-00076k-Gz for linux-mtd@lists.infradead.org; Thu, 01 Mar 2018 13:40:09 +0000 Received: from gentoo-jocke.infinera.com (gentoo-jocke.infinera.com [10.210.72.209]) by smtp.transmode.se (Postfix) with ESMTP id 7AF2D118710F; Thu, 1 Mar 2018 14:39:44 +0100 (CET) Received: from gentoo-jocke.infinera.com (gentoo-jocke.infinera.com [127.0.0.1]) by gentoo-jocke.infinera.com (8.14.9/8.14.9) with ESMTP id w21Ddimb019746; Thu, 1 Mar 2018 14:39:44 +0100 Received: (from jocke@localhost) by gentoo-jocke.infinera.com (8.14.9/8.14.9/Submit) id w21DdiHk019745; Thu, 1 Mar 2018 14:39:44 +0100 From: Joakim Tjernlund To: "linux-mtd @ lists . infradead . org" Subject: [PATCH 0/3] mtd: fix AMD/Intel flash bugs Date: Thu, 1 Mar 2018 14:39:38 +0100 Message-Id: <20180301133941.19660-1-joakim.tjernlund@infinera.com> X-Mailer: git-send-email 2.13.6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180301_134002_603022_040CE8C1 X-CRM114-Status: UNSURE ( 4.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joakim Tjernlund MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This fixes a bug which allows read/write to a erase block currently erasing. Also works around a chip bug in Micron 28F00AP30 chips. Joakim Tjernlund (3): cfi_cmdset_0001: Do not allow read/write to suspend erase block. cfi_cmdset_0001: Workaround Micron Erase suspend bug. cfi_cmdset_0002: Do not allow read/write to suspend erase block. drivers/mtd/chips/cfi_cmdset_0001.c | 33 ++++++++++++++++++++++++++++----- drivers/mtd/chips/cfi_cmdset_0002.c | 9 ++++++--- include/linux/mtd/flashchip.h | 1 + 3 files changed, 35 insertions(+), 8 deletions(-)