From nobody Sun May 12 00:45:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1597413239; cv=none; d=zohomail.com; s=zohoarc; b=k3ccwvwbSnW6k185o52Kv82rNkCHfTlxz2vDFvKuj28wjNEDD3V4fe4aG0Jk1wBpR9Bidv9yeGvFWeBDqL5lVQ9USRzZUkOHwZYuhCRfvgn9FVxico7+5RooNWO4oaMGQ5EiS97pTEjFqUhaE81v/VLcqKfG8XC5vRQ/jMywsf0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1597413239; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=KX6DJ+Ei+Qrvb3oO254QYRvydw3ZRBmD8xqPfn8fpEQ=; b=bB6HwW3XcPGjmNPjhxQPMrj2ZlIb/my4cS/E0pu/PYmYPjt97LLKsdWkXvuiPnABfO80Cno7LBAg5PNFQyWlw8v2uw1hwl5uH1HUZe7s0P6v8jonXDK8q7R06vo3GXHm7QpBLSIvgz2NsxA9NTnalVGVjpx5c65BIUFEKdjfRnA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 159741323957734.825659695833906; Fri, 14 Aug 2020 06:53:59 -0700 (PDT) Received: from localhost ([::1]:51926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6Zej-0007DZ-Su for importer@patchew.org; Fri, 14 Aug 2020 09:22:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6Ze8-0006oK-HR; Fri, 14 Aug 2020 09:21:24 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:33210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6Ze6-0000IJ-TZ; Fri, 14 Aug 2020 09:21:24 -0400 Received: by mail-wr1-x444.google.com with SMTP id p20so8355890wrf.0; Fri, 14 Aug 2020 06:21:22 -0700 (PDT) Received: from localhost.localdomain (121.red-81-40-121.staticip.rima-tde.net. [81.40.121.121]) by smtp.gmail.com with ESMTPSA id t25sm14199667wmj.18.2020.08.14.06.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 06:21:19 -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=KX6DJ+Ei+Qrvb3oO254QYRvydw3ZRBmD8xqPfn8fpEQ=; b=XBGpfMcMOvUvxAyohxZjFG9AMkoBANlBf1hKUORiwOSSDj2Rr+JxjR8dATADKi2Bb6 KeVBuzmXue4BVYGraUpGpfMSy+HtuccLvKN0dbLbkIJjs2XRanJhGjuJapvoIojDEeeE Qn+qdCRPP3HkDk3YmXHtVkIEsYxw6clQ22hk5SpDYBbVZ5heDna8yy9rId8p1z6ygVl0 R2rMbtwgyysVnKuXeMjzHx/N47DROAyEIlNiy4XwYJaM5vY6nwcVze4mW1zvIU7vkzht B3oMIBz5JiyZnhzMrrvGPVcgek5qoGiF/qjYoARwgDG6rINl+c7QUNFxBQpAOKvi2mNv mRPQ== 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=KX6DJ+Ei+Qrvb3oO254QYRvydw3ZRBmD8xqPfn8fpEQ=; b=TM+xslHcSlwlNMX33z0/KJxeVztn4tX5Ya/RwxRO9X2ath1Vqv7ws5xiARJziFNCCb hiiqznWb6MmJFRax8NO7MLGnpM1h9r+93kwdvVtylod3I8jHOH1EMjGnuMZ2WbkhDq/I KVZreH6x5/BF/FXdg6jLfmTqu1Lt1Z/8p/qo2Afh9i3cpeGJcuhTyCrpDDS6bXzKgLNc KcXOZa8gpxsBVzDCryZzxUoaBj934/PDdbCcY0V3J1lW8WlFc5fhDfHpt0DVzokuFDcI rGBfJchDJ0T+AVJ9Mk9yxonDZ2JxREI86imFTUcYNap2s0pruYIi1EAvFfpK9WQ11Fyg FVJA== X-Gm-Message-State: AOAM533agS/IZ0V6CpKVyD6VvU+XIXXoJxWsyVXq/vezdlmWJ7+lT/+K m0guwgdGUg07bpPKVwvdRspLWJXvVak= X-Google-Smtp-Source: ABdhPJyOmPWb36pOE7uI4ozo2u5VknifaRkPQQLRofmNbecF7x4PZkSSHnuZ19tFx8myqeoGD5rLPQ== X-Received: by 2002:adf:fe0c:: with SMTP id n12mr2624675wrr.48.1597411280593; Fri, 14 Aug 2020 06:21:20 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH] hw/block/nand: Decommission the NAND museum Date: Fri, 14 Aug 2020 15:21:18 +0200 Message-Id: <20200814132118.12450-1-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::444; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x444.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-block@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- 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 654e0cb5d1..7d7ccc9aa4 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; @@ -153,15 +153,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.21.3