From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9DACC5AE59 for ; Tue, 10 Sep 2019 15:22:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 80BAA21881 for ; Tue, 10 Sep 2019 15:22:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c1XG1vJo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="1gbXKIFH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80BAA21881 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=D/KbknrbKU0Br68Mgi8hTsl4uo3aW27mi/2gnErQfZI=; b=c1XG1vJoQF1tI3 PeJc09HV47p3s/LKkHbbRGLX5kYsH6t31XfHUtx6H2jYbJDfAr/X1txWJ2ZjgSxh6QUuJQTUskyh6 sdlYKfDTLQ8DG5TapPfj1lcLH0LRowQtOVK5Kr754habpbs23YFX1O0P0mrVaJMoRJal5q0hc4Ah/ AxGRaBxjhTXBy/M1/CnHkXKQiTUlsNb0MeQZVyH3PmnDt0rqMXn3RNwKOEHRIWEjZcINqHdpakLP1 VVd+09qh8N6Z68mck04WxALPDHnortAoZrplUTjNm8WWRFtZjztrhfYeB4nXBLsQHgVfNSEjoIoiT DLnmeIjoE/Ri8lQk4BUQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i7hyZ-00046g-VL; Tue, 10 Sep 2019 15:22:39 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i7hyW-000463-6F for linux-mtd@lists.infradead.org; Tue, 10 Sep 2019 15:22:37 +0000 Received: from [192.168.1.23] (cpe-70-114-128-244.austin.res.rr.com [70.114.128.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A7EAA2168B; Tue, 10 Sep 2019 15:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568128955; bh=3bmua+7sTEe8QXyCL+R29XkE+26bKrUqjv62ypVyE7g=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=1gbXKIFHCazZ5Ss1c041nEqJAy/UqbQ1MtTMfjgMwM8tYWCynOpIDzBoLv484oMsQ kI5x5CeuIqW5YdQXJrpvUQWdix4Hc4SlECXw3Zv2dpmXXnhMs6L7igpGRGvfAyqqCi YnC8e9vSHgCBanSeB5fBhKEXydbYunhb7cWGf8ME= Subject: Re: mtd raw nand denali.c broken for Intel/Altera Cyclone V To: Tim Sander , Masahiro Yamada References: <5143724.5TqzkYX0oI@dabox> <3020870.hsMMj5ogRZ@dabox> From: Dinh Nguyen Openpgp: preference=signencrypt Autocrypt: addr=dinguyen@kernel.org; prefer-encrypt=mutual; keydata= mQINBFEnvWwBEAC44OQqJjuetSRuOpBMIk3HojL8dY1krl8T8GJjfgc/Gh97CfVbrqhV5yQ3 Sk/MW9mxO9KNvQCbZtthfn62YHmroNwipjZ6wKOMfKdtJR4+8JW/ShIJYnrMfwN8Wki6O+5a yPNNCeENHleV0FLVXw3aACxOcjEzGJHYmg4UC+56rfoxPEhKF6aGBTV5aGKMtQy77ywuqt12 c+hlRXHODmXdIeT2V4/u/AsFNAq6UFUEvHrVj+dMIyv2VhjRvkcESIGnG12ifPdU7v/+wom/ smtfOAGojgTCqpwd0Ay2xFzgGnSCIFRHp0I/OJqhUcwAYEAdgHSBVwiyTQx2jP+eDu3Q0jI3 K/x5qrhZ7lj8MmJPJWQOSYC4fYSse2oVO+2msoMTvMi3+Jy8k+QNH8LhB6agq7wTgF2jodwO yij5BRRIKttp4U62yUgfwbQtEUvatkaBQlG3qSerOzcdjSb4nhRPxasRqNbgkBfs7kqH02qU LOAXJf+y9Y1o6Nk9YCqb5EprDcKCqg2c8hUya8BYqo7y+0NkBU30mpzhaJXncbCMz3CQZYgV 1TR0qEzMv/QtoVuuPtWH9RCC83J5IYw1uFUG4RaoL7Z03fJhxGiXx3/r5Kr/hC9eMl2he6vH 8rrEpGGDm/mwZOEoG5D758WQHLGH4dTAATg0+ZzFHWBbSnNaSQARAQABtCFEaW5oIE5ndXll biA8ZGluZ3V5ZW5Aa2VybmVsLm9yZz6JAjgEEwECACIFAlbG5oQCGwMGCwkIBwMCBhUIAgkK CwQWAgMBAh4BAheAAAoJEBmUBAuBoyj0fIgQAICrZ2ceRWpkZv1UPM/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Tue, 10 Sep 2019 10:22:32 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <3020870.hsMMj5ogRZ@dabox> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190910_082236_277236_81B58BEC X-CRM114-Status: GOOD ( 22.23 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vignesh Raghavendra , Richard Weinberger , Linux Kernel Mailing List , Marek Vasut , linux-mtd , Miquel Raynal , Brian Norris , David Woodhouse Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org On 9/10/19 8:48 AM, Tim Sander wrote: > Hi > > I have noticed that my SPF records where not in place after moving the server, > so it seems the mail didn't go to the mailing list. Hopefully that's fixed now. > > Am Dienstag, 10. September 2019, 09:16:37 CEST schrieb Masahiro Yamada: >> On Fri, Sep 6, 2019 at 9:39 PM Tim Sander wrote: >>> Hi >>> >>> I have noticed that there multiple breakages piling up for the denali nand >>> driver on the Intel/Altera Cyclone V. Unfortunately i had no time to track >>> the mainline kernel closely. So the breakage seems to pile up. I am a >>> little disapointed that Intel is not on the lookout that the kernel works >>> on the chips they are selling. I was really happy about the state of the >>> platform before concerning mainline support. >>> >>> The failure starts with kernel 4.19 or stable kernel release 4.18.19. The >>> commit is ba4a1b62a2d742df9e9c607ac53b3bf33496508f. >> >> Just for clarification, this corresponds to >> 0d55c668b218a1db68b5044bce4de74e1bd0f0c8 upstream. >> >>> The problem here is that >>> our platform works with a zero in the SPARE_AREA_SKIP_BYTES register. >> >> Please clarify the scope of "our platform". >> (Only you, or your company, or every individual using this chip?) > The company i work for uses this chip as a base for multiple products. > >> First, SPARE_AREA_SKIP_BYTES is not the property of the hardware. >> Rather, it is about the OOB layout, in other words, this parameter >> is defined by software. >> >> For example, U-Boot supports the Denali NAND driver. >> The SPARE_AREA_SKIP_BYTES is a user-configurable parameter: >> https://github.com/u-boot/u-boot/blob/v2019.10-rc3/drivers/mtd/nand/raw/Kcon >> fig#L112 >> >> >> Your platform works with a zero in the SPARE_AREA_SKIP_BYTES register >> because the NAND chip on the board was initialized with a zero >> set to the SPARE_AREA_SKIP_BYTES register. >> >> If the NAND chip had been initialized with 8 >> set to the SPARE_AREA_SKIP_BYTES register, it would have >> been working with 8 to the SPARE_AREA_SKIP_BYTES. >> >> The Boot ROM is the only (semi-)software that is unconfigurable by users, >> so the value of SPARE_AREA_SKIP_BYTES should be aligned with >> the boot ROM. >> I recommend you to check the spec of the boot ROM. > We boot from NOR flash. That's why i didn't see a problem booting probably. > >> (The maintainer of the platform, Dihn is CC'ed, >> so I hope he will jump in) > Yes i hope so too. > I don't have access to a NAND device at the moment. I'll try to find one and debug. Dinh ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/