Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6024675pxb; Mon, 14 Feb 2022 13:22:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfRGq+GYZQxLFhuK9UC7PniNFhMv+aUHmoVjfdknSzleJhgbuKdlJNcXuPHJ4oe/kvNFfF X-Received: by 2002:a63:1666:: with SMTP id 38mr777963pgw.499.1644873774560; Mon, 14 Feb 2022 13:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873774; cv=none; d=google.com; s=arc-20160816; b=QnkjNdl3ztOTOrqvrfKILIZ7/9K++ctC1zQRcjxCPdmTlWjPiLb/RjCZLl4U2BTuWj 2dOfZNFUKutILZ2CeCXFky9tqBR+rEiQ9jfTkj3jdc/R0eHTvLnAw4Xe68Pw0szLfXOV W+DQGa+jdYvxWdTm66iqvA2PnnfxUSqWsk58jZT6i6LcAWheKPJGDiHbWF+S7h00n9SH KA9x4t32kCi1IMmTKpnop7xhKDxCrZPBSByt8AyyNh74+Il0dXhFAbm0fDJjuTUi15Dw iPlALcj552oD5HnEJLcQcFOzRsH8Cd75/wcpULlwfx4O0kJ8unLHM8JqZTN5j/l1yjf6 Yx5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DgckHGaAkZcrGYa6I90wSGex+wSps1HIk1YzJ1huHBo=; b=zU8eKrpEz4S9jw+VIsISxXIhm5HqeNsHfwFmZ7dtf8o3eDSuoJQ2uPmG3oI6Ev5M9v uqinCb7XIaNyZeYqVAhY2f6Bh47DQ4SYzCtnRjLQZflkTPjtrKB28bOWH1l07MOLeWbP eW8URtViYqAns2yxbX7tff1MWds82a5lC84vH//MC6fBSYGEpQmxRnxpTL10ZypjhuY6 nnEcW9vdArJEIecnmoC4xzJSn1NDH6GunhkiSVc23ZMdh9LhsMjH9d1mxnPEzJ+CdxlP xTcww1WMBzuYP7ObIF0pgE/dQ0L/5gZuD75BRQFoFWBR5NqC+SjgUBoUXGIj+b6cZBLq 9mRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RJZZX4DX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ij1si13735427plb.53.2022.02.14.13.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:22:54 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=RJZZX4DX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4749F23812F; Mon, 14 Feb 2022 12:39:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229666AbiBNSuU (ORCPT + 99 others); Mon, 14 Feb 2022 13:50:20 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:33714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiBNSuT (ORCPT ); Mon, 14 Feb 2022 13:50:19 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3BE47D299 for ; Mon, 14 Feb 2022 10:50:02 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id c5-20020a17090a1d0500b001b904a7046dso32723pjd.1 for ; Mon, 14 Feb 2022 10:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=DgckHGaAkZcrGYa6I90wSGex+wSps1HIk1YzJ1huHBo=; b=RJZZX4DXXXc2Vva5RTK54qqa2xE6JBudRSuqI1jH8ljthTNxhlQbRoXtDtgKJ/Vtd3 9ARstZWodppgVy/ebyhHmFuYiBxh2UAqBhQ/E2HUbJnV47uO0Je2ybKWozhvnHoZFa/n PJQElJg2hTvwZbmARt5NeCK94ASxd9CeE+VG/w+N1dmHyu0dDtOclUaqiUiNGpkFSUQg FZd/gMLsHHcB5kTYNCETi/yTUZV4pWlqn5DSfzTBdjoGNc8fIJcLvalCCW8W3xbvIE7v wuorMvmulrHFt/gA587y5lKfUCWoYEIdYQ5T7VeAAMwZtcUqBjcMest87frN83K7Je1T nMHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=DgckHGaAkZcrGYa6I90wSGex+wSps1HIk1YzJ1huHBo=; b=T9CC9in9IHUhCvsK+m6hcKpzD6e/EN3OZXInNffLsBn8HKdRrybKhkvRSoS5S4UGZM wQRiwVcMf283uBWMM8sgB71oVK3hLXFhKQFdcPuK2L5T6bXkFv7VHwiCMtlZokF9bg22 mG9YSP59KxN4kEyHP7GtMwj339Jts8Zp0bESMIswMOhe8Q+Kk77qdN82oIeMUA/aUk3j TRA70serCaMxWNm02SQ1CinwqYxaDGswlKHr3QTg8QpIbY68mdtUyKqMt3DlqR41E2u5 biHeI+FGRCeox/XxtPZ2zXSI++W2TfY40v1kRYj+DHyCnZAv7XX5DecgU8DvepWuXyP/ dp5g== X-Gm-Message-State: AOAM531ikLh2hYUZbWBQOw6Lv6Gd4FgKXb4YdOl5Sl+eG3blN+fRpgwg WyvOVzlUav7fXUFX8sKbuhI= X-Received: by 2002:a17:90b:4f87:: with SMTP id qe7mr40474pjb.77.1644864385890; Mon, 14 Feb 2022 10:46:25 -0800 (PST) Received: from [192.168.122.100] (133-175-21-116.tokyo.ap.gmo-isp.jp. [133.175.21.116]) by smtp.gmail.com with ESMTPSA id v2sm14583655pjt.55.2022.02.14.10.46.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Feb 2022 10:46:25 -0800 (PST) Message-ID: Date: Tue, 15 Feb 2022 03:46:18 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [BUG] mtd: cfi_cmdset_0002: write regression since v4.17-rc1 Content-Language: en-US To: Ahmad Fatoum , Thorsten Leemhuis , linux-mtd@lists.infradead.org, Joakim.Tjernlund@infinera.com, miquel.raynal@bootlin.com, vigneshr@ti.com, richard@nod.at, "regressions@lists.linux.dev" Cc: Chris Packham , Brian Norris , David Woodhouse , marek.vasut@gmail.com, cyrille.pitchen@wedev4u.fr, "linux-kernel@vger.kernel.org" , Pengutronix Kernel Team , linuxppc-dev@lists.ozlabs.org References: <3dbbcee5-81fc-cdf5-9f8b-b6ccb95beddc@pengutronix.de> <0f2cfcac-83ca-51a9-f92c-ff6495dca1d7@gmail.com> <66ee55d9-4f20-6722-6097-e53c2108ea07@gmail.com> <579eab10-594c-d6b2-0ddb-ea6ab8e02856@pengutronix.de> From: Tokunori Ikegami In-Reply-To: <579eab10-594c-d6b2-0ddb-ea6ab8e02856@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 Ahmad-san, On 2022/02/15 1:22, Ahmad Fatoum wrote: > Hello Tokunori-san, > > On 13.02.22 17:47, Tokunori Ikegami wrote: >> Hi Ahmad-san, >> >> Thanks for your confirmations. Sorry for late to reply. > No worries. I appreciate you taking the time. > >> Could you please try the patch attached to disable the chip_good() change as before? >> I think this should work for S29GL964N since the chip_ready() is used and works as mentioned. > yes, this resolves my issue: > Tested-by: Ahmad Fatoum Thanks for your testing. I have just sent the patch to review. > >>>>> Doesn't seem to be a buffered write issue here though as the writes >>>>> did work fine before dfeae1073583. Any other ideas? >>>> At first I thought the issue is possible to be resolved by using the word write instead of the buffered writes. >>>> Now I am thinking to disable the changes dfeae1073583 partially with any condition if possible. >>> What seems to work for me is checking if chip_good or chip_ready >>> and map_word is equal to 0xFF. I can't justify why this is ok though. >>> (Worst case bus is floating at this point of time and Hi-Z is read >>> as 0xff on CPU data lines...) >> Sorry I am not sure about this. >> I thought the chip_ready() itself is correct as implemented as the data sheet in the past. >> But it did not work correctly so changed to use chip_good() instead as it is also correct. > What exactly in the datasheet makes you believe chip_good is not appropriate? I just mentioned about the actual issue behaviors as not worked chip_good() on S29GL964N and not worked chip_ready() on MX29GL512FHT2I-11G before etc. Anyway let me recheck the data sheet details as just checked it again quickly but needed more investigation to understand. Regards, Ikegami > > Cheers, > Ahmad > >