Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp598785img; Thu, 21 Mar 2019 05:10:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjxkUGs1AB/1Oqz4fdcVhpaWEe6z4z3JBfJPj9QDi/OPDipp0bnsyCDE+nq9A0lzuzE0eA X-Received: by 2002:aa7:9286:: with SMTP id j6mr2923217pfa.47.1553170218532; Thu, 21 Mar 2019 05:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553170218; cv=none; d=google.com; s=arc-20160816; b=Ju2b3Xnnbiz+//7IvgtaBiZEnIDGBezz2gbCC28YO5CrQRAk2rwBx1vZIodLd7LAJ5 kSVYEMfZ97b8q345OLCFkdQWEOeFoIIUNw3ZEwtOKl6UDL6VSozdUjnUVepa6FN/uHGn ipy6j3+6ErLwOIdpDRHeahaE9VBE/gHI+0muX2N633RX1GR+LN7uq2bDe3PbWXWBpW8R T/2cGBS8WdwgnQOADA35N+0XKziM/kH/j0hetj7ONjeyLh3uM5QCKmOKtUPXC0C7y6uF j6K9Dezq4jbn3LJ46h7D1E6gt5yhcJuFpLW7dTIRR3QYFmvRmfurSK+bHsTLk2KUv+2I EdOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=LjB1YGVTKDnmq6Sqrzmkmdu+Wz0MsEnw7DbTA/IvjXo=; b=s4dHDCBu0RL4Ag0EkRnn045vxgt3WkPmm3cVvVscYD1TbVTVYaX8zAnMRcJRFY6o0S B5l8P4QGLH75+WIqCXE0yR4Fqi5mRu936jHZyxfJmBLNaVt6SR3fkmVmpdG1LBL+FtLV N+BcXmrEVwHABLtfxsjAMnAzNNa3rDDAGx7NQJeoLu2TJP9fpaCxMa3ESOja0Q5R/lIi zzpBIPMXzJr3dYV3aQBbTnW036QmA7u27YAGbn7Xz6fw5TMQJgtpnGfwx13SE4S8uAL5 oRIgUjpFe8i/6RDuhOO1UDZ3xHml08iiqQc9fJg78+1K0vwtyiMhc0lH3CVPCLu/a3aY BWig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70si4492065pla.128.2019.03.21.05.09.59; Thu, 21 Mar 2019 05:10:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728020AbfCUMJT (ORCPT + 99 others); Thu, 21 Mar 2019 08:09:19 -0400 Received: from mail-sz.amlogic.com ([211.162.65.117]:39440 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727878AbfCUMJT (ORCPT ); Thu, 21 Mar 2019 08:09:19 -0400 Received: from [10.28.18.125] (10.28.18.125) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Thu, 21 Mar 2019 20:10:25 +0800 Subject: Re: [RFC PATCH nand-next 0/2] meson-nand: support for older SoCs To: Martin Blumenstingl CC: Miquel Raynal , , , , , , , , References: <20190301182922.8309-1-martin.blumenstingl@googlemail.com> <98776767-c4d7-1207-6d42-97105f289bec@amlogic.com> <20190307140959.10092d45@xps13> <8134890a-457d-7803-01a4-1832f925f65f@amlogic.com> From: Liang Yang Message-ID: <2aebeb86-1cf6-26e9-b19b-03c2a55bff9c@amlogic.com> Date: Thu, 21 Mar 2019 20:10:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.28.18.125] X-ClientProxiedBy: mail-sz.amlogic.com (10.28.11.5) To mail-sz.amlogic.com (10.28.11.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Martin, On 2019/3/21 4:48, Martin Blumenstingl wrote: > Hi Liang, > > On Wed, Mar 20, 2019 at 4:32 AM Liang Yang wrote: >> >> Hi Martin, >> >> Thanks for your time. >> On 2019/3/20 4:27, Martin Blumenstingl wrote: >>> Hello Liang, >>> >>> On Sat, Mar 16, 2019 at 11:55 AM Martin Blumenstingl >>> wrote: >>> [...] > >> Allocating a fixed size info buffer before nand_scan_ident and attach it >> on the struct meson_nfc; Or considering not use dma for reading data >> less than 8 bytes. Both can reduce kmalloc and kfree calling. Thanks. > both suggestions sound reasonable. > however, I will search for the root cause of the unaligned address > first before changing the Meson NFC driver. That is good. And i will implement one of both mentioned above soon. > > [...] >>> [ 2.227374] ------------[ cut here ]------------ >>> [ 2.231968] WARNING: CPU: 1 PID: 1 at >>> drivers/mtd/nand/raw/nand_base.c:5503 nand_scan_with_ids+0x1718/0x171c >>> [ 2.241760] No oob scheme defined for oobsize 1280 >>> ... >>> (the "No oob scheme defined for oobsize 1280" message is expected) >>> >> miss mtd_set_ooblayout(mtd, &meson_ooblayout_ops) on function >> meson_nand_attach_chip. > thank you for the suggestion. I didn't have time to test this on my > board yet but I'll let you know about my results during the weekend. > Does the missing mtd_set_ooblayout() call also affect GXL or AXG boards? > Yes. I deleted it unintentionally. > > Regards > Martin > > . >