Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1046894iob; Fri, 13 May 2022 20:59:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz79TUftPQbJPwwpi2g14F3a7tekc+RFhMgn+SGxGbzwBccWMJByYlkKk8jEPMigTxUANtE X-Received: by 2002:a5d:4d8c:0:b0:20c:57b6:3319 with SMTP id b12-20020a5d4d8c000000b0020c57b63319mr6205278wru.536.1652500794411; Fri, 13 May 2022 20:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500794; cv=none; d=google.com; s=arc-20160816; b=mcJ8Tzb5FVrvkuKtVdpv9C9R9rD4pVnNot3lkUUnBNmW5q4e6SiBKY+yyLRyyQRre0 hH4Gvig+PPFjUNX4Li59EMw8nL+9H68rkBL2SjQdpebu0ac/eTHkQO5WAu/EHoo5BFul N/0/kvXXzkDCM24SXzlNlCEL6Hfihjx4rWCcarj3Zl8oQ1tncE9nPxBEazF6tKlUddTb tTNNzTgBGNCUWD5Z5+06PknPAikmBgtu2V1FHl23b/NtURzMDXknbCoKgi6DidxFn13Y pYsEGQ42W48PHFnvUA9IkYFazvCiURAJ+Apq+124eJf6HJje9fksMQ8WkxMc4qXmJu73 m+8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=QMV8VRxmSptJXLRk6YRt/p7jiW7WuIAN+Y3frdH9Rt0=; b=jnoZUiCB31agZneP2AHZX94nqseVmLq3nJlkLpO7u4eqXPIsnqcF8aoxM/GO5cMMeY pByy9uhDW2M+1GeFVGWW4V1c16htd5iR7ajyxqBq2XR5MQPqy8l3cLSQdaJbXed9w82h SMe02+UDFqlLFMofHM8qXvA3dmWQnl7NHTqg9HOSPaOWZemJNUEnN/G3rN0/4obpwVFL Cf6MT9jrd2ZphvMaxcmiO/xNf4ke5PK7h0osuWVOu/XUZCkj7O0J1b8FzyQ3UHAEaHt5 bb7LV5mKFC6cq9I0LwbNlnGzW2AXIvYnxn1WCrzkd+yBt1VvB+qvWy81EfCpsoQufXKT ZMEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=eWYiklEo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ay26-20020a05600c1e1a00b00394235fe0besi7371270wmb.169.2022.05.13.20.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:59:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=eWYiklEo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C547A49FA86; Fri, 13 May 2022 17:31:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382884AbiEMRWD (ORCPT + 99 others); Fri, 13 May 2022 13:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381904AbiEMRWA (ORCPT ); Fri, 13 May 2022 13:22:00 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AFF253A60 for ; Fri, 13 May 2022 10:21:55 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 0374D221D4; Fri, 13 May 2022 19:21:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1652462513; 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=QMV8VRxmSptJXLRk6YRt/p7jiW7WuIAN+Y3frdH9Rt0=; b=eWYiklEo44ZYsfC1Bt+l2zVQZYk65FzJe5tSi1A3/ClC5oZi7njpRcslmOah4tktSnm9Y2 ePVWvTK+XECyPeTripAfD5pIt7w7RZkRTqW/B5oSt1cyWar6GVKK7W2lelWSibH5kZI0Kj Y6PTTjgbhOEWd/aO5ZNigpAOjhPDl2o= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 13 May 2022 19:21:52 +0200 From: Michael Walle To: Alexander Sverdlin Cc: linux-mtd@lists.infradead.org, Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: spi-nor: Support Dual and Quad Read on Macronix mx25u25635f In-Reply-To: References: <20220513094759.44185-1-alexander.sverdlin@nokia.com> <34eccc66cc75dd0ffbf8a77780b6f8a7@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 2022-05-13 18:09, schrieb Alexander Sverdlin: >>> According to datasheet both Dual and Quad Read is supported. The read >>> test >>> shows x3.8 speed gain. >> >> Does it have SFDP? Try adding PARSE_SFDP instead of the >> NO_SFDP_FLAGS. > > Some issues with its SFDP were known: > https://patchwork.ozlabs.org/project/linux-mtd/patch/1492068234-9509-1-git-send-email-dev@kresin.me/ That doesn't seem to be the case for your flash. The quad and dual flags you've added, will enable SFDP parsing anyway. So instead of adding these flags, just adding PARSE_SFDP should work, too. We still have to keep the SPI_NOR_4B_OPCODES. >> Please post an SFDP dump of this flash [1]. Thanks. >> xxd -p /sys/bus/spi/devices/spi0.0/sfdp > 53464450060102ff00060110300000ffc2000104100100ff84000102c000 > 00ffffffffffffffffffffffffffffffffffe520fbffffffff0f44eb086b > 083b04bbfeffffffffff00ffffff44eb0c200f5210d800ff8749b50082d2 > 04d24403673830b030b0f7bdd55c4a9e29fff050f985ffffffffffffffff > ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff > ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff > ffffffffffffffffffffffff7f8fffff215cdcffffffffffffffffffffff ^^^^^^^^^^^^^^^^ That's the 4BAIT table. > ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff > ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff > ffff002050169df9c06485cbffffffffffff -michael