Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5135134yba; Wed, 10 Apr 2019 12:08:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNkp9vkg6CHqgfYXbxklhxNkNYWSmqFaVDGcIE2LdYuCB/BLQqH07CEBrMc+8jckZ/P9Li X-Received: by 2002:a62:6f02:: with SMTP id k2mr30273941pfc.136.1554923282876; Wed, 10 Apr 2019 12:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554923282; cv=none; d=google.com; s=arc-20160816; b=htC1JZXnL4HwKVVOpTBx/fRzaTcyTxtwPjyiWuSv6vfh48byMfwuXmkixJJamxOUee gG9sIVuYk4NUisnXOlJtwFdhaI9umhE4KVgVuIrmQ0xXHenAVQ+qA7lP/jyBVcMStNgp dUMsD87DGTxHN0LwM+6oUT8guryu4feDUn9iN5AMEj1sMBUTlgdiBunezh7NQhVNg516 IMWCTLWSyoDoeDTpFzI1M+l2yiCZ0zncGo/W4UayYh89QjeYuF2ouNT6gD2tLvLtDBRT SZStvIiPUONOmD8OULyawLF2OoV/xTj0kkrTm4z0681GXHqKx8S24HkDQjZkOHEfkRug oAMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=za2E/pLJgKbwiV1dsXtjcDsjWlrh7jaWMTWufoDKu5o=; b=Ki7ctO6664GUycr+gZ1MHXuh4WSIiveEathKw9aqtzhmR4wg5kvJ/VDAm0UapOEzRk 67FxaCofstRC+IvqqcND5xVlVAnzs5lOc3pb9iDJ2sk1hg0gS9Pvn+qfVWFymPSpjRCK XAcAf8QhhYPRNHe61AJDjf4TR4Hk0Ca5OmRDemrtDtNC77FgJAJZvHSfjmIJ1P99iBTR fqBak4tesG0TteqBTBAD2PHW6bYW3+gUu2+/tvkFx4wNflk/kGmcDW5X8lMqtX5blswE 47gDnqCu+SxukV3oCDVeQtTewvBDMpoLdX6VvPqOnbUkhqLvQroAKHMiRXEGjvu7CIOl wKtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=g46iFH89; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12si32945574plr.434.2019.04.10.12.07.47; Wed, 10 Apr 2019 12:08:02 -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; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=g46iFH89; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730695AbfDJRzL (ORCPT + 99 others); Wed, 10 Apr 2019 13:55:11 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:43199 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729571AbfDJRzL (ORCPT ); Wed, 10 Apr 2019 13:55:11 -0400 Received: by mail-ot1-f66.google.com with SMTP id u15so2728845otq.10 for ; Wed, 10 Apr 2019 10:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=za2E/pLJgKbwiV1dsXtjcDsjWlrh7jaWMTWufoDKu5o=; b=g46iFH89Et3jdAxwN3daHsdlaI1+zHIcOv5/gHFIApHJYqE8yvgRmyHw0Xm9H9cHCg IbwNLoYGu7QZ4nov9UfQpYh0y3WNWrStUed2N8aEI+IfeQqjVQKRMuMPbD6nUYfKDe3l hHVmaeD7BTnuqlv5g4BM7uFKJGPu9DQxFhsqVExKE2tN2OqMZv/GmMpPer7lq7oV7lLM nwAa07MYGs45q9tdLFFzNTJQtSy9jlmVb5G3smCrW7uPw+YMSiqI87FIc9B9Lus+KptW N0al/hgirxv4udjxdPowSfRRu0zMzs0t3MGfWPPnRdKgE9/PNVfW3MNBiBi3OQS1bH6Y 7CmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=za2E/pLJgKbwiV1dsXtjcDsjWlrh7jaWMTWufoDKu5o=; b=pl9uqIM2Nysp0l/MAUKv/On+eUMvEQOzGZi+AL3DevBmrkqgFXdkUn45PnbzsvpRGZ 6UthMo9+hkflqMu+DrcpRsMRXYvsL+lXkwgKUXAu9BeL6Wh3C5YflhFCYeycy8VJnUJq mgh2wCnd5M593Mr6Yspd0JInR4xxyPUO2ndub6l6RmLZkzD2w9U/bcKF3+dnQvzCEh4X N9x0mx92x72xi6sy6LNfWp682o6IMqHEf3LzFX1LjZP+Y2DIlDQWvJw4BbKMm1saXlhq xEe9XjRzGvLVrAEJyf1xcL+WdxNwyffTu+93fJOXkrMKO8EENl078WcWUHku/MkShQKN nXsg== X-Gm-Message-State: APjAAAULAauigWuyAqV07VSN4SDaKXtPojibfw3I7ZYOeYkvRjEKHpg+ +VPZRqqjkJwCELnH8ClnNXPTK3fB8XlnAovZRxw= X-Received: by 2002:a9d:6e88:: with SMTP id a8mr2804549otr.117.1554918910311; Wed, 10 Apr 2019 10:55:10 -0700 (PDT) MIME-Version: 1.0 References: <20190321214401.GC19508@bombadil.infradead.org> <5cad2529-8776-687e-58d0-4fb9e2ec59b1@amlogic.com> <32799846-b8f0-758f-32eb-a9ce435e0b79@amlogic.com> <79b81748-8508-414f-c08a-c99cb4ae4b2a@amlogic.com> <8cb108ff-7a72-6db4-660d-33880fcee08a@amlogic.com> In-Reply-To: <8cb108ff-7a72-6db4-660d-33880fcee08a@amlogic.com> From: Martin Blumenstingl Date: Wed, 10 Apr 2019 19:54:59 +0200 Message-ID: Subject: Re: 32-bit Amlogic (ARM) SoC: kernel BUG in kfree() To: Liang Yang Cc: Matthew Wilcox , mhocko@suse.com, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, rppt@linux.ibm.com, linux-mm@kvack.org, linux-mtd@lists.infradead.org, linux-amlogic@lists.infradead.org, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Liang, On Wed, Apr 10, 2019 at 1:08 PM Liang Yang wrote: > > Hi Martin, > > On 2019/4/5 12:30, Martin Blumenstingl wrote: > > Hi Liang, > > > > On Fri, Mar 29, 2019 at 8:44 AM Liang Yang wrote: > >> > >> Hi Martin, > >> > >> On 2019/3/29 2:03, Martin Blumenstingl wrote: > >>> Hi Liang, > >> [......] > >>>> I don't think it is caused by a different NAND type, but i have followed > >>>> the some test on my GXL platform. we can see the result from the > >>>> attachment. By the way, i don't find any information about this on meson > >>>> NFC datasheet, so i will ask our VLSI. > >>>> Martin, May you reproduce it with the new patch on meson8b platform ? I > >>>> need a more clear and easier compared log like gxl.txt. Thanks. > >>> your gxl.txt is great, finally I can also compare my own results with > >>> something that works for you! > >>> in my results (see attachment) the "DATA_IN [256 B, force 8-bit]" > >>> instructions result in a different info buffer output. > >>> does this make any sense to you? > >>> > >> I have asked our VLSI designer for explanation or simulation result by > >> an e-mail. Thanks. > > do you have any update on this? > Sorry. I haven't got reply from VLSI designer yet. We tried to improve > priority yesterday, but i still can't estimate the time. There is no > document or change list showing the difference between m8/b and gxl/axg > serial chips. Now it seems that we can't use command NFC_CMD_N2M on nand > initialization for m8/b chips and use *read byte from NFC fifo register* > instead. thank you for the status update! I am trying to understand your suggestion not to use NFC_CMD_N2M: the documentation (public S922X datasheet from Hardkernel: [0]) states that P_NAND_BUF (NFC_REG_BUF in the meson_nand driver) can hold up to four bytes of data. is this the "read byte from NFC FIFO register" you mentioned? Before I spend time changing the code to use the FIFO register I would like to wait for an answer from your VLSI designer. Setting the "correct" info buffer length for NFC_CMD_N2M on the 32-bit SoCs seems like an easier solution compared to switching to the FIFO register. Keeping NFC_CMD_N2M on the 32-bit SoCs also allows us to have only one code-path for 32 and 64 bit SoCs, meaning we don't have to maintain two separate code-paths for basically the same functionality (assuming that NFC_CMD_N2M is not completely broken on the 32-bit SoCs, we just don't know how to use it yet). Regards Martin [0] https://dn.odroid.com/S922X/ODROID-N2/Datasheet/S922X_Public_Datasheet_V0.2.pdf