Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5324588rwj; Wed, 21 Dec 2022 00:44:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXuBUfWWWFfnQ27EAoXnfSGLoMF15Aa0OhgYsM9FOs6/K3uMmj7ANOjYDjibdY6y1q9/Y7Ct X-Received: by 2002:a17:902:dad0:b0:191:3ec0:9166 with SMTP id q16-20020a170902dad000b001913ec09166mr1544303plx.6.1671612250558; Wed, 21 Dec 2022 00:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671612250; cv=none; d=google.com; s=arc-20160816; b=gpdj0HtkiYiRaKgR42dJsHBGOXc8ufWkERrxMO0ZuTirj8ZPygaf/swQMzw4d8qRdE 0bM/wzr7eJDglNb74zl/D7il87qHS/i37XUYMUzqoGe7LBasPj/SgWXn9tX7tr4F5IEu tuCKDl/w512462jM8nHeb2ucL6Qv8So23Y0CrboUpT1uClHv3Z8giPK//hEKeVo5SC0u KqHVwviv7zx3TGUf2m4HCKub10C3C0ILZf/eVt3pio8o/3d2d6YMCiZSryJJ6u2AmdA8 n0PAiSNMzovvaVHctPNWwht7YYmayMH0s1NGcIAghn/Hho4l6HxrfATZbRDvKmI1i0xA 4NvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=CrOp+4yXKStdKI6+nRU+X23Qjw/ID5T0E5jOpfRWtV0=; b=owNDX6dcTjXuC34d4NaWlgjCYzDsD9zgxK8yLK/Amp+Ckh1r+HTciLMlGBvRobOW5r HEC+BNXny3oKM0GSndcZJmckkejWJp6Kjsf3StljxRJTSIpxNMtSUvQ5A6qEDFqe5r4c PwhKH/7MVa59mn78FsE5MBYZ3mP5hwHv3Z0O7wGhnMGJcB9Qg7J9zfK0JxkX660A29o7 btYOlkwVx14aFJoKNEuenC98VzWHoibE6WvUQiAfNUYSw2+8ZLwFe0tWtEwDE9VID6CX VfO+jdMsH8YjwFbuwfaQi8UITxF6wG4IYsMmBBZrA7EtJYx8BVqh0PDuHgTPVvsxnjaz 4znA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=ebDXBQ81; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a170902d48900b00189a0e8fa5dsi17479693plg.476.2022.12.21.00.44.01; Wed, 21 Dec 2022 00:44:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=ebDXBQ81; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234073AbiLUIWP (ORCPT + 69 others); Wed, 21 Dec 2022 03:22:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234570AbiLUIWI (ORCPT ); Wed, 21 Dec 2022 03:22:08 -0500 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04591F5F for ; Wed, 21 Dec 2022 00:22:06 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 15BB19EF; Wed, 21 Dec 2022 09:22:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1671610925; 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=CrOp+4yXKStdKI6+nRU+X23Qjw/ID5T0E5jOpfRWtV0=; b=ebDXBQ81UhX36K5+JykVoeqLlqKwYvyJG7BblORAz7657NNNDLDTwQVcwQW1xV3jaMIFH1 whATaOEgA1wsrqXp2nrOzjKWEeTk07LvfDq9EzXxyLoMj/oiKp6WTtfnj30AFS2GMNTMfD z1oQ+CbUGK1kb0a48kVOO2Dfm/zytRsAdwJUOc48frxWkCPZPzaAwtdEgwipu0NQlGZqkr 17ye63O+02ttuLp+XqMnNgNHMopnzKT4eb468ZGg/Nd7hpUM32FnFDNAw0R70Up4j4TFms GWr6DdxRbDdt0BCTwrOQZDDuqBmmXPlDoxMG/q1yLhfqoK4Hx7UySKY5FmWaoA== MIME-Version: 1.0 Date: Wed, 21 Dec 2022 09:22:04 +0100 From: Michael Walle To: Guenter Roeck Cc: Sudip Mukherjee , Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , greentime.hu@sifive.com, jude.onyenegecha@sifive.com, william.salmon@sifive.com, adnan.chowdhury@sifive.com, ben.dooks@sifive.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] mtd: spi-nor: issi: is25wp256: Init flash based on SFDP In-Reply-To: <20221221003009.GA280250@roeck-us.net> References: <20220920184808.44876-1-sudip.mukherjee@sifive.com> <20221221003009.GA280250@roeck-us.net> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <9cf53ca3bfb39c85da968f9b46dbe6d7@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-12-21 01:30, schrieb Guenter Roeck: > With this patch in place, qemu emulations with is25wp256 fail to > instantiate the flash. Specifically, this affects the qemu sifive_u > emulation. The resulting error message is: > > spi-nor spi0.0: BFPT parsing failed. Please consider using > SPI_NOR_SKIP_SFDP when declaring the flash > spi-nor: probe of spi0.0 failed with error -22 qemu is to blame here. It doesn't fully emulate the flash. Esp. not the SFDP tables. See also [1]. Adding the .sfdp_read hook with the corresponding binary [2] should fix your issue. [1] https://lore.kernel.org/qemu-devel/7827c791b7f91f4eb216b33473dd6103@walle.cc/ [2] https://lore.kernel.org/linux-mtd/CAHyZL-ch=mr0x_19e6P9G+Z4sW2iJXW9nTnXUNAhn+pTptN2ww@mail.gmail.com/ -michael