Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1224160lqh; Mon, 6 May 2024 00:18:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRD5L2V+PUnzn0P72xxaxbMA6wiAyC3A4Pkqd6jK67uSCZCeLhZrntMJ87aE5pSZQ3wmJW6qo8jss7rg8nwgElURSeJeMh5RliI0JabQ== X-Google-Smtp-Source: AGHT+IF3dD+nDmKKmjLZMGNB4NRORYtdlJTS8H4mcTFmGxPeWe9GO1rfMPFXaIbJ08SXWNjcwXd/ X-Received: by 2002:a05:6808:6297:b0:3c9:65b4:7c25 with SMTP id du23-20020a056808629700b003c965b47c25mr5626003oib.31.1714979880863; Mon, 06 May 2024 00:18:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714979880; cv=pass; d=google.com; s=arc-20160816; b=wjTOcnk1cP4MQy+25PB0E75q3U7ztglQiyOP7NyZ+ZPRjf47oPuqpbTJIMzhlQSEg7 M7RjqOHUi/N4w+NkqO5xMIiaDFD9T/Sb/ft2fLAQp7PeJbAhM6vJ7zoRsTc2Y8b0B10o OvVKNX+ZUmI6zJ9WHi9cs1ERp5liNJIO3gKZtVv2jigDT9SRyFoubxmVccqMysMrQ4VJ 8C5KGaONXqnpBgZIwxLbiT9E/iQnZmqHMOp686oCggJ9+upmPaAFQElESpyOiiSnq2Zf FkEmlBoJRPcFQ+iJRuIZhce9yL6AHX53O7PdNA7/fu/xH7gRkxMO9sAFcCs5/eqwiu9A /mMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=R6TiNw7b/eFI6QFHmACKnQ+Lmgs4hhHYmLO5oH7iZKc=; fh=J2hxVH3iF8PoVofsvxo4TtG22DIeZqVjeQGzi2SA5AA=; b=ryrMAVE45d+4mK/vvLo2ZTn6OLIsWTq+M4+CQNhqs8I5nOtO7kBD8EjO4Qzzoqsqm2 hvUhUXIrYQWOkzZMm8f/0kHRZ2VaM8TIpcqznfmfHVRojSbXkVkr6q6gCdKy5jD1rpra 48mvDIWx091SxFUGfH4capEws8cZ88Ir53W+Guc7XQ0k7mLv73P5GlaD2ShHCLGyPMJx +XsryLil3xa4aPNciPjmq5KWZIwPZ7UiqRGtcsfXVIvAz4AKkqzPKtCb4kcQEZYqpHka uUw80QJQ4xdJQSF0suHwJvpBA4uXqhKJcX7fA9DQ/UuHm0zjvelTEv3FUH7p9cYg/MEr oa5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lzRZVz0G; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-169402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169402-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gi4-20020a056214248400b006a0c7eb2cd8si8701700qvb.174.2024.05.06.00.18.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 00:18:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lzRZVz0G; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-169402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169402-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F5C91C212F7 for ; Mon, 6 May 2024 07:18:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 272F57D412; Mon, 6 May 2024 07:17:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="lzRZVz0G" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F156E3E462; Mon, 6 May 2024 07:17:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979874; cv=none; b=CBn2tVLy5kjZt61LTj6nKTQAQWsEybdNbUm733XjSnMXHE0caU2vUzc0Ck1uIogfD0euV3z/1JcR3//koOSRvtOYa2qJLsF844D5Lcet2GJL2ScQd2z4DbLIxzQ+sl2rda72nMpqLYnMg+TV/WuZhGffgreY/Ynw2DRKP19kVdY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979874; c=relaxed/simple; bh=R6TiNw7b/eFI6QFHmACKnQ+Lmgs4hhHYmLO5oH7iZKc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bxrCcyeJH+cutwSrhm7MzQF6DAYTifCQCKPpKJe0vwreMfZupoSzGUT7bYDY/T1tB1HVcFP0RMYOzyv+wrJJ7XbeeK9IIfNsQlWfiScmIhSZgal5vrVCt3Epymha5s+emBHnguqzC6Cz0LhX2a2MS/NJIKtb6VUhE+ShgUo4q0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=lzRZVz0G; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 49146E0006; Mon, 6 May 2024 07:17:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714979870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R6TiNw7b/eFI6QFHmACKnQ+Lmgs4hhHYmLO5oH7iZKc=; b=lzRZVz0GLJ74p8N/yXNAbwpykF1XLxu8H/V9Js14qzM39RB9kJCAuDpmQlhEenmwFS7TjV JSj8VWp1/vVwl0OkoaO2gRSYGxPP0ojRNPo7HEfbT3psARgLBOtqS509Pi44nuJP6lRvLf 3w2FpUyTrs7F8ANoNczAOSHuMdy/Bt+rfBfWa6Jpqv+/n87JGnvfRwBaewZxoyOl7RP4is WPeJi+13YO7K6tYgOAao8N6766fP2KYxj/VfQp5lWvN3hj9hVOyX72E7Wqjnoquy2B7cJu FUrWhxcS4fHDgYrTran1/Q9etQUgavYLi8sV5xmMFcrlsWHY+smJTGdZI5KKAQ== Date: Mon, 6 May 2024 09:17:48 +0200 From: Miquel Raynal To: Keguang Zhang via B4 Relay Cc: keguang.zhang@gmail.com, Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v7 2/3] mtd: rawnand: Enable monolithic read when reading subpages Message-ID: <20240506091748.18c120d5@xps-13> In-Reply-To: <20240430-loongson1-nand-v7-2-60787c314fa4@gmail.com> References: <20240430-loongson1-nand-v7-0-60787c314fa4@gmail.com> <20240430-loongson1-nand-v7-2-60787c314fa4@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi, devnull+keguang.zhang.gmail.com@kernel.org wrote on Tue, 30 Apr 2024 19:11:11 +0800: > From: Keguang Zhang >=20 > nand_read_subpage() reads data and ECC data by two separate > operations. > This patch allows the NAND controllers who support > monolithic page read to do subpage read by a single operation, > which is more effective than nand_read_subpage(). I am a bit puzzled by this change. Usually nand_read_subpage is used for optimizations (when less data than a full page must be retrieved). I know it may be used in other cases (because it's easier for the core in order to support a wide range of controllers). Can you please show a speed test showing the results before I consider merging this patch? The monolithic thing was not supposed to improve throughput but to help with very limited controllers. Thanks, Miqu=C3=A8l