Received: by 2002:a19:ad09:0:0:0:0:0 with SMTP id t9csp4604319lfc; Tue, 1 Sep 2020 06:48:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTCfy1DZBU2ZzMgmheW1ujqr3WDTz3whE+pa6Rw7DEppbNOoudUUvfCAXSmsUFApKZE8Mg X-Received: by 2002:a5b:38a:: with SMTP id k10mr3039573ybp.428.1598968103361; Tue, 01 Sep 2020 06:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598968103; cv=none; d=google.com; s=arc-20160816; b=fWDRMltoyG7WOGNbmXP8hwO/oR9Y6zvgiFO4SzIOVnGppsP5c0O3Om2wVbgrIt1vDD mev12l1vxYpxEMstVlvlLm7CzhNz9Nc7Zqb4+h2D6OKbqqj+7NgyVGWp0g7u/cOCsjhj lgKn7jWRh0+iJ1HD14ALyhTL4n5cGS8quHT4BKFAqstAwwdJEfzSR3T1WYu8ITaWDGGo IlYmDVUvQ3YXRhm4l9xH5WOQlFtbuk0T/ti0krtLWi8bRGKgFaTC6fCUMx4EsYmDsC3n D9H+6IQwTeyQlJns4QOBGDgVNCMbVpGsAKhQY3gHGwMiqV5/IxGGDfVJQtOkUbB7D8pQ wqIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=w6eo4rUfSYdoQA6mTQnuxEQX+D/z10RKTbOGyizqK0c=; b=ZBl3zGMBLmGm1U/X+iZ0jzd36Ng/b43ZMIqwIzLV7ImpwlTjD7LxOjlwQIu51qZgfF mzlYu2xjqzLFq/O2vrhpI4bUGP3vsOnOOu5KJIZ83rFrb0d/FJrhyTt+K13oq3QvLjwl E7f1GmJtD/de3UlwDqtKkjyoB2Yss9nMShBa8Q3oOvB/UejezZrEPHWWBWOAHl+AAF7e HoyJlSMwpiU/JHhrzW9+BCKjuPE7o9164UWPHaCy0qr0qh85X2fijQo1sIYYlYF5OF98 1hVOjPsJQG/BpSqXrsNo2Ky03F8UVfeaM2hOz5DWCg368jdt2geQhL6eYHYofxChkU1G tsIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f16si1340541ybh.407.2020.09.01.06.48.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Sep 2020 06:48:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:53720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kD6e6-0004HV-Pv for alex.bennee@linaro.org; Tue, 01 Sep 2020 09:48:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD6dr-00043k-6w; Tue, 01 Sep 2020 09:48:07 -0400 Received: from smtpout1.mo529.mail-out.ovh.net ([178.32.125.2]:49847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD6dn-0000l6-Ry; Tue, 01 Sep 2020 09:48:06 -0400 Received: from mxplan5.mail.ovh.net (unknown [10.108.20.149]) by mo529.mail-out.ovh.net (Postfix) with ESMTPS id 3B439564199A; Tue, 1 Sep 2020 15:48:00 +0200 (CEST) Received: from kaod.org (37.59.142.104) by DAG4EX1.mxp5.local (172.16.2.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Tue, 1 Sep 2020 15:47:59 +0200 Authentication-Results: garm.ovh; auth=pass (GARM-104R0051a96b3e1-278c-45df-8a5c-e50aa7a49441, 38EE1E9FF4E34D4C85F4190D418CEE501B878519) smtp.auth=clg@kaod.org Subject: Re: [PATCH 2/2] m25p80: Add the n25q256a SFDP table To: Francisco Iglesias References: <20200827091130.3525790-1-clg@kaod.org> <20200827091130.3525790-3-clg@kaod.org> <20200901133840.caw6abo4noq5choz@fralle-msi> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: <0a2bcbfa-833d-358a-6699-298f64918549@kaod.org> Date: Tue, 1 Sep 2020 15:47:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200901133840.caw6abo4noq5choz@fralle-msi> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [37.59.142.104] X-ClientProxiedBy: DAG4EX2.mxp5.local (172.16.2.32) To DAG4EX1.mxp5.local (172.16.2.31) X-Ovh-Tracer-GUID: 6872353f-00a0-41c6-b53c-97fa054bcfac X-Ovh-Tracer-Id: 5841168718214826857 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrudefjedgjedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepuffvfhfhkffffgggjggtgfhisehtkeertddtfeejnecuhfhrohhmpeevrogurhhitggpnfgvpgfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecuggftrfgrthhtvghrnhepheeutdehgefhvdehtdeuleetgedvfeeukedtfeeihfffffeiuddutdduhffgvedtnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddruddtgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehmgihplhgrnhehrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheptghlgheskhgrohgurdhorhhgpdhrtghpthhtohepfhhrrghsshgvrdhighhlvghsihgrshesghhmrghilhdrtghomh Received-SPF: pass client-ip=178.32.125.2; envelope-from=clg@kaod.org; helo=smtpout1.mo529.mail-out.ovh.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/01 08:45:33 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-2.13, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Andrew Jeffery , Alistair Francis , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Joel Stanley Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: eR5V4txrm9CJ On 9/1/20 3:38 PM, Francisco Iglesias wrote: > Hi Cedric, > > We need to rebase the patch and modify for meson build (I wasn't able to apply > it). Yes. You will find the patches and more support on my aspeed branch : https://github.com/legoater/qemu/tree/aspeed-5.2 23c93a8f69c8 m25p80: Add the w25q512jv SFPD table 51c73585a3a0 m25p80: Add the w25q256 SFPD table c1d31a41dd38 m25p80: Add the mx66l1g45g SFDP table 4c66b8670fe2 m25p80: Add the mx25l25635f SFPD table 070620851124 m25p80: Add the mx25l25635e SFPD table a51a58218157 m25p80: Add the n25q256a SFDP table bd6574bba30a m25p80: Add basic support for the SFDP command Thanks, C. > Best regards, > Francisco > > On [2020 Aug 27] Thu 11:11:30, Cédric Le Goater wrote: >> The same values were collected on 4 differents OpenPower systems, >> palmettos, romulus and tacoma. >> >> Signed-off-by: Cédric Le Goater >> --- >> hw/block/m25p80_sfdp.h | 2 ++ >> hw/block/m25p80.c | 6 ++++-- >> hw/block/m25p80_sfdp.c | 49 ++++++++++++++++++++++++++++++++++++++++++ >> hw/block/Makefile.objs | 2 +- >> 4 files changed, 56 insertions(+), 3 deletions(-) >> create mode 100644 hw/block/m25p80_sfdp.c >> >> diff --git a/hw/block/m25p80_sfdp.h b/hw/block/m25p80_sfdp.h >> index b75fd0b0c13f..ca2658a676e0 100644 >> --- a/hw/block/m25p80_sfdp.h >> +++ b/hw/block/m25p80_sfdp.h >> @@ -12,4 +12,6 @@ >> >> #define M25P80_SFDP_AREA_SIZE 0x100 >> >> +extern const uint8_t m25p80_sfdp_n25q256a[M25P80_SFDP_AREA_SIZE]; >> + >> #endif >> diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c >> index 32925589ec7a..d053bdbb2805 100644 >> --- a/hw/block/m25p80.c >> +++ b/hw/block/m25p80.c >> @@ -233,11 +233,13 @@ static const FlashPartInfo known_devices[] = { >> { INFO("n25q128a11", 0x20bb18, 0, 64 << 10, 256, ER_4K) }, >> { INFO("n25q128a13", 0x20ba18, 0, 64 << 10, 256, ER_4K) }, >> { INFO("n25q256a11", 0x20bb19, 0, 64 << 10, 512, ER_4K) }, >> - { INFO("n25q256a13", 0x20ba19, 0, 64 << 10, 512, ER_4K) }, >> + { INFO("n25q256a13", 0x20ba19, 0, 64 << 10, 512, ER_4K), >> + .sfdp = m25p80_sfdp_n25q256a }, >> { INFO("n25q512a11", 0x20bb20, 0, 64 << 10, 1024, ER_4K) }, >> { INFO("n25q512a13", 0x20ba20, 0, 64 << 10, 1024, ER_4K) }, >> { INFO("n25q128", 0x20ba18, 0, 64 << 10, 256, 0) }, >> - { INFO("n25q256a", 0x20ba19, 0, 64 << 10, 512, ER_4K) }, >> + { INFO("n25q256a", 0x20ba19, 0, 64 << 10, 512, ER_4K), >> + .sfdp = m25p80_sfdp_n25q256a }, >> { INFO("n25q512a", 0x20ba20, 0, 64 << 10, 1024, ER_4K) }, >> { INFO_STACKED("n25q00", 0x20ba21, 0x1000, 64 << 10, 2048, ER_4K, 4) }, >> { INFO_STACKED("n25q00a", 0x20bb21, 0x1000, 64 << 10, 2048, ER_4K, 4) }, >> diff --git a/hw/block/m25p80_sfdp.c b/hw/block/m25p80_sfdp.c >> new file mode 100644 >> index 000000000000..def94bd4ea02 >> --- /dev/null >> +++ b/hw/block/m25p80_sfdp.c >> @@ -0,0 +1,49 @@ >> +/* >> + * M25P80 Serial Flash Discoverable Parameter (SFDP) >> + * >> + * Copyright (c) 2020, IBM Corporation. >> + * >> + * This code is licensed under the GPL version 2 or later. See the >> + * COPYING file in the top-level directory. >> + */ >> + >> +#include "qemu/osdep.h" >> +#include "m25p80_sfdp.h" >> + >> +/* >> + * Micron >> + */ >> +const uint8_t m25p80_sfdp_n25q256a[M25P80_SFDP_AREA_SIZE] = { >> + 0x53, 0x46, 0x44, 0x50, 0x00, 0x01, 0x00, 0xff, >> + 0x00, 0x00, 0x01, 0x09, 0x30, 0x00, 0x00, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xe5, 0x20, 0xfb, 0xff, 0xff, 0xff, 0xff, 0x0f, >> + 0x29, 0xeb, 0x27, 0x6b, 0x08, 0x3b, 0x27, 0xbb, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x27, 0xbb, >> + 0xff, 0xff, 0x29, 0xeb, 0x0c, 0x20, 0x10, 0xd8, >> + 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, >> +}; >> diff --git a/hw/block/Makefile.objs b/hw/block/Makefile.objs >> index 8855c2265639..b65a12c52b52 100644 >> --- a/hw/block/Makefile.objs >> +++ b/hw/block/Makefile.objs >> @@ -1,6 +1,6 @@ >> common-obj-y += block.o cdrom.o hd-geometry.o >> common-obj-$(CONFIG_FDC) += fdc.o >> -common-obj-$(CONFIG_SSI_M25P80) += m25p80.o >> +common-obj-$(CONFIG_SSI_M25P80) += m25p80.o m25p80_sfdp.o >> common-obj-$(CONFIG_NAND) += nand.o >> common-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o >> common-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o >> -- >> 2.25.4 >>