From nobody Sat Apr 20 13:18:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.65 as permitted sender) client-ip=209.85.221.65; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f65.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.65 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com; dmarc=fail(p=none dis=none) header.from=amsat.org ARC-Seal: i=1; a=rsa-sha256; t=1600190204; cv=none; d=zohomail.com; s=zohoarc; b=S327kmWG9GVfQCdS6NLtEAJN/lFRs9Stj2MCJdm6KNGLVlinAgMInMB5SknSNVkxKIaNYvG7YIy6ozHRWJjLJ/Jsh8u20a6yXuD/k9uDAR/Ig02Atg+iYfGN8+2r90GWqJKxyxsHGOfJrbSpgZTYCnemG1EBWqdhfvNvWDtPong= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600190204; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Sender:Subject:To; bh=Qr6f9AT2xXhs7lC//zas/UKV7xxcJifoLxVHcysah5k=; b=HjXMgQY17MHp4XUsy23KBCfwnVEdsGsjbtSWz2ghOGGCZvFtu7iSY+B+3nnnmFbQm+h7JZ6w0YvmTPE0PzLVwKYkA05PK6XS2N6wDRCBu1xaDx7VLt2sGb+DHJtbQ+1WFgcurPqzIOhIQttGhitv3vYbjSs8KZyGQS+0mzJGi+U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.65 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by mx.zohomail.com with SMTPS id 1600190204479666.1557596769068; Tue, 15 Sep 2020 10:16:44 -0700 (PDT) Received: by mail-wr1-f65.google.com with SMTP id x14so4112168wrl.12 for ; Tue, 15 Sep 2020 10:16:43 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (65.red-83-57-170.dynamicip.rima-tde.net. [83.57.170.65]) by smtp.gmail.com with ESMTPSA id m23sm397726wmi.19.2020.09.15.10.16.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 10:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Qr6f9AT2xXhs7lC//zas/UKV7xxcJifoLxVHcysah5k=; b=h1Qi3xiaYt8prZdLYkoydt/Ts2EM/G81Oy/MYE8D0ME+3m+3yljn0uRaAybQUIMh3W Nado6YZSGhB6ZhYcwQQsT03cdYsLVnOM2Htd2lbhWpNMkhjbwdq8aS36w8hhHYz54BqG bSzbDIu8Vj87fQu7FrCvNXmqG9Kjj/B2CpNGDbp0KBpEpdbbSNItezPYZ2I+ORhvzSEX vnWttrnxe+sseZq81/iSYEDkcReIVN1RW1OI7U8mvO5JSvId+DrWQpqou5p9cD+B1ZGt VP3F//bK1ztqVu6CPs8EgCQ3/kwvCJ5hDHmJ1A1nXGEB6GngIad6oNl+1hkVY5AQa87R /Q8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=Qr6f9AT2xXhs7lC//zas/UKV7xxcJifoLxVHcysah5k=; b=SxemyVPDkpBFO4hk/XWf1iBepJIMGy2TPZsbDitBX+fAJCFALAM6QHOMgqvgrebsnE FfzFfbcEqkSDflmVVSNw6iFTkUR4iAHPSF+Ii+EiTHv/6yNLhLxgiW9titr2qJMRtsSq 69iY43C14Xsm+aL3zZBhILe/0rBKxcPAZCliy+DjDLPlv0y+vUMbes5dZcRiC9+hYupc 3DY4uqtoflQG07d6+1OflAcvqGy8a/YZPGhOH3UU0av9F0rereApc9AHEN0j0jQChJji z2YYGiiuezwrH//hWpupdS0PZGhOitA45R4MhH5uHfJqmwJ8Hr0/o/PlpMCf15FvVeNQ 6qwQ== X-Gm-Message-State: AOAM533KEYu2YZ0WU1TpWeA7vwqGWSyh25quYtKtYJN6AzTD3pU986h/ FuW5Mf9oY4U/FpGaXun8gJc= X-Google-Smtp-Source: ABdhPJzv9Uh7vN0JyTqaVwcOozqvpudOawvj0Dv9nDBILhgiPRmUiaMsC8e0z1zxRWLIQBKrZjb5dQ== X-Received: by 2002:adf:a18c:: with SMTP id u12mr23499726wru.90.1600190202502; Tue, 15 Sep 2020 10:16:42 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Andrzej Zaborowski , Max Reitz , qemu-block@nongnu.org, "Edgar E . Iglesias" , Kevin Wolf , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PATCH v2] hw/block/nand: Decommission the NAND museum Date: Tue, 15 Sep 2020 19:16:39 +0200 Message-Id: <20200915171639.1355800-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) This is the QEMU equivalent of this Linux commit (but 7 years later): https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?= id=3Df7025a43a9da2 The MTD subsystem has its own small museum of ancient NANDs in a form of the CONFIG_MTD_NAND_MUSEUM_IDS configuration option. The museum contains stone age NANDs with 256 bytes pages, as well as iron age NANDs with 512 bytes per page and up to 8MiB page size. It is with great sorrow that I inform you that the museum is being decommissioned. The MTD subsystem is out of budget for Kconfig options and already has too many of them, and there is a general kernel trend to simplify the configuration menu. We remove the stone age exhibits along with closing the museum, but some of the iron age ones are transferred to the regular NAND depot. Namely, only those which have unique device IDs are transferred, and the ones which have conflicting device IDs are removed. The machine using this device are: - axis-dev88 - tosa (via tc6393xb_init) - spitz based (akita, borzoi, terrier) Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Peter, as 4 of the 5 machines are ARM-based, can this go via your tree? --- hw/block/nand.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/block/nand.c b/hw/block/nand.c index 5c8112ed5a4..5f01ba2bc44 100644 --- a/hw/block/nand.c +++ b/hw/block/nand.c @@ -138,7 +138,7 @@ static void mem_and(uint8_t *dest, const uint8_t *src, = size_t n) # define ADDR_SHIFT 16 # include "nand.c" =20 -/* Information based on Linux drivers/mtd/nand/nand_ids.c */ +/* Information based on Linux drivers/mtd/nand/raw/nand_ids.c */ static const struct { int size; int width; @@ -154,15 +154,14 @@ static const struct { [0xe8] =3D { 1, 8, 8, 4, 0 }, [0xec] =3D { 1, 8, 8, 4, 0 }, [0xea] =3D { 2, 8, 8, 4, 0 }, - [0xd5] =3D { 4, 8, 9, 4, 0 }, [0xe3] =3D { 4, 8, 9, 4, 0 }, [0xe5] =3D { 4, 8, 9, 4, 0 }, - [0xd6] =3D { 8, 8, 9, 4, 0 }, =20 - [0x39] =3D { 8, 8, 9, 4, 0 }, - [0xe6] =3D { 8, 8, 9, 4, 0 }, - [0x49] =3D { 8, 16, 9, 4, NAND_BUSWIDTH_16 }, - [0x59] =3D { 8, 16, 9, 4, NAND_BUSWIDTH_16 }, + [0x6b] =3D { 4, 8, 9, 4, 0 }, + [0xe3] =3D { 4, 8, 9, 4, 0 }, + [0xe5] =3D { 4, 8, 9, 4, 0 }, + [0xd6] =3D { 8, 8, 9, 4, 0 }, + [0xe6] =3D { 8, 8, 9, 4, 0 }, =20 [0x33] =3D { 16, 8, 9, 5, 0 }, [0x73] =3D { 16, 8, 9, 5, 0 }, --=20 2.26.2