From nobody Sat May 11 11:57:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.67 as permitted sender) client-ip=209.85.221.67; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f67.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.67 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=1607905584; cv=none; d=zohomail.com; s=zohoarc; b=Jw1gedT9Vpjok1wh8lV/wXWjtav7usghrgRZibW4MC5C+r6VMRjI4Iqdhb412jIFt5udb44akpsMb5S6iWHY/7b0R1Mru/FX6qqhRqW5gXvDn6lP/r8aP8aNN9pp+zSRUuCpsjtQLh95HGTHX1Gxv8NtqiShxHE6wAgaCj+AI8s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607905584; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Sender:Subject:To; bh=HpEWn8UPKBlE5og7qP2cAW4mdzti1zrsKB2AYD+k8Bk=; b=E2aC1ZFf2Jbsb2et4EJAYOWGNTi0s/2UYSxh1E27FnjL66ENnZ3ZTrMz3NAB/4PzxKw+Q33mK6joQZJjX+5D2F9S94LPKFQFHz42IKfWpTKewUwB0VE18DOAHGWV4W7upox2arM5jHOPBelWqOT6LsE77e8IGK5WvBgWt3jyn8s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.67 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mx.zohomail.com with SMTPS id 1607905584428809.7391165807462; Sun, 13 Dec 2020 16:26:24 -0800 (PST) Received: by mail-wr1-f67.google.com with SMTP id a12so14719433wrv.8 for ; Sun, 13 Dec 2020 16:26:23 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id l8sm28197427wmf.35.2020.12.13.16.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Dec 2020 16:26:21 -0800 (PST) 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=HpEWn8UPKBlE5og7qP2cAW4mdzti1zrsKB2AYD+k8Bk=; b=hZHkiRJYdXLK/F2HWGCe8BBjQOLr59DYUyDuxrCOaDKlO9ITbbIe0sZ9gZoNopxVDh PW8x1oAYk7aTe3hbbXfb43ZkpLU1z+r3bmlPg+S0iUChxxqgqtGIoXonKQwcCt+og0Yb ixoXSa2wSH9Ak6C/fn22o0kc1/6t21vnnNUztrIhnxjwhD0mTiwe6l6BkljvDcsmyGgN aGnj+gZoM4JaF5CUSjaBlIHbHUrZrBWvtEKrHtJaue62Aj/jwqR7EMkOIul+qNuoJ0LY 4Ds78m44p/8L73yKxLK1nsIJLo5hfSRi++KAnTpQsmPN1bbaDOtSwzlTVveQIRs//ImW t4Hg== 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=HpEWn8UPKBlE5og7qP2cAW4mdzti1zrsKB2AYD+k8Bk=; b=DCAJNNwdvOk052eqNSZfYTvL9vIEIQrcvEfxZoDIhXlYbE4PGm4dgnibofTBa0OBRe hgtQ4aG9U4l5wZT30OSxlIKclJvm2Jhi13Q7xEjgs0ZMLqF8f/o+L3ntL/kUolhTfosm LFTuoex51OD7CWxROWJTB0aAnppN0kIM4cbFpaWT7uBrx4t3Dq05ywvoRWqj+mV7RTH0 DitpOjCkJ792yn5w5ZZX5hblwl1HvXhzFg//GylX0tXRoBUGvMaj5ZyVYYkEK6foNOSQ L26n9UAN7ftMfR6C+gzQ5n3rleywVjSNB11n8Eby8FF+qJkmD3Kgu7PfeSfSe/1J8Ysm /eAw== X-Gm-Message-State: AOAM532zzYCO7pZDJ7u+VMO6x/qOnmOsjvHD3FuvBoOnvE6Vl1DgKJDR 5cV1NmHcuoxIv7m2Wpa+Sq0= X-Google-Smtp-Source: ABdhPJyRCmhrfqFMiQCg035NUpi+GZVT8HSg3mfaqJqjKd9+5HqmH5Ji2iZFGP/V7mi4+mPkyzWn2A== X-Received: by 2002:a5d:6909:: with SMTP id t9mr19047192wru.327.1607905582648; Sun, 13 Dec 2020 16:26:22 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Max Reitz , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PATCH v3] hw/block/nand: Decommission the NAND museum Date: Mon, 14 Dec 2020 01:26:20 +0100 Message-Id: <20201214002620.342384-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 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 Reviewed-by: Peter Maydell --- v3: Do not manually convert tabs to space to avoid mistakes... While this patch only *removes* lines, checkpatch still complains: ERROR: code indent should never use tabs #14: FILE: hw/block/nand.c:150: + [0x6b] =3D { 4,^I8,^I9, 4, 0 },$ ERROR: code indent should never use tabs #15: FILE: hw/block/nand.c:151: + [0xe3] =3D { 4,^I8,^I9, 4, 0 },$ ERROR: code indent should never use tabs #16: FILE: hw/block/nand.c:152: + [0xe5] =3D { 4,^I8,^I9, 4, 0 },$ ERROR: code indent should never use tabs #17: FILE: hw/block/nand.c:153: + [0xd6] =3D { 8,^I8,^I9, 4, 0 },$ ERROR: code indent should never use tabs #18: FILE: hw/block/nand.c:154: + [0xe6] =3D { 8,^I8,^I9, 4, 0 },$ --- hw/block/nand.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/hw/block/nand.c b/hw/block/nand.c index 1d7a48a2ec2..9ed54a0a922 100644 --- a/hw/block/nand.c +++ b/hw/block/nand.c @@ -137,7 +137,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; @@ -147,21 +147,11 @@ static const struct { } nand_flash_ids[0x100] =3D { [0 ... 0xff] =3D { 0 }, =20 - [0x6e] =3D { 1, 8, 8, 4, 0 }, - [0x64] =3D { 2, 8, 8, 4, 0 }, [0x6b] =3D { 4, 8, 9, 4, 0 }, - [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 }, - - [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 }, =20 [0x33] =3D { 16, 8, 9, 5, 0 }, [0x73] =3D { 16, 8, 9, 5, 0 }, --=20 2.26.2