Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1575842ybi; Sat, 8 Jun 2019 13:02:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNDL7iy9kii6saj9SJ1WtAcTU4Yr2n0y4IpVfo85Kn+rsV7CV8NTQ06wTAfdrSANyl324F X-Received: by 2002:a17:90a:6544:: with SMTP id f4mr12819832pjs.17.1560024125264; Sat, 08 Jun 2019 13:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560024125; cv=none; d=google.com; s=arc-20160816; b=KcEuGJOAKSleKFC80SCn1SWsqhIbrXrMoqvKmqK811ILubLsbEkmcjIA8M0RA9g0+z UhIqvjwySq3jGv6L9+4PfeCgQWK/bysV0v9WZXTQ4FGTf1JFf43111Cvj57tzfXRNWXq lilR+7uRwgx750O0fDKnn+uTDbkjg7etpL/gKnSQTz8Y7Y9Kfxw6wD8wHoVFu1ixEKOD L9aTouGD0LkqJu5+a12Z8EBIjeXQV3zIFKv689Jufx+6hfhY5dbKaOgmRzvmVn4wfoeq VrHIe7qoH9TIbbf31eXDYqcKGBRvK4Fsf6bLuEqIk5yitO7F1sYvGCVqf8ZCNPrs2hEg 0ugw== 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=wvkpFaao1bpKQ1FWayC3EusodSIMGE6w694SSNfMEPA=; b=n+I/2zZ/hg6zdqHuRNwT9qI8YDskdcUbSPxDu+ooWBMLfdnIKMF1CZRGuxybJM/0F4 lh5A7YGDEbj75D8J4aKb/dCqc+OpnhYcWfZvlDR699SS3i21ILK7kp8YbZeKN8Q4zabw lfU9g7Owl889DKSd5DhpeFFVyqb/x2cSNQjODpBcGLk1Oo9STJBtXpln10mCQUb2H/71 XUYMAWNvgp/iurOuz/I4s5feq0kLvEfrCZOZXs2xhXVqfGoEy5DogY7loYdtOpVPEwwM YiE2nLHlMM2prn79k23es9o8GT4Ip4Ah1qxxAsJsIZj369hpyWHLLHYG/nvK9+4nuNA5 o4Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=iCm+4VqZ; 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 a11si5462797pgj.537.2019.06.08.13.01.48; Sat, 08 Jun 2019 13:02:05 -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=iCm+4VqZ; 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 S1727437AbfFHUAo (ORCPT + 99 others); Sat, 8 Jun 2019 16:00:44 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40044 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727215AbfFHUAn (ORCPT ); Sat, 8 Jun 2019 16:00:43 -0400 Received: by mail-ot1-f68.google.com with SMTP id x24so4947904otp.7 for ; Sat, 08 Jun 2019 13:00:43 -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=wvkpFaao1bpKQ1FWayC3EusodSIMGE6w694SSNfMEPA=; b=iCm+4VqZSt6kP2oAqKNK9ttO+n1BscayXijHYPF97LlKXKRTy/SQJZN8g6ptnB37GY 2qpvcyeM4ipaUGv65IBoJk02Qm02N2zjp1eUXMCq+AN4trMiVdYmCSqfFUNnpqCeLs73 Hp2SAEt7Mvr8wKtGNmb72g6Av+lQZbvcgd3MLPNKA40YmEdhRMR+1oBXTPPWTEwvlJzj tt/CdN305EsiUJ9JuqpVD3D7V7QibejrzDVzpZwMPG3HBT3xKfgfibme2CBG/1ZgwDvL bvRP90LTWNSXGucxuU1L5uvWJLtOO0uXdC4As8XsFXZ4rsoY6xw7ij12LQADBI9QEXzN hF4Q== 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=wvkpFaao1bpKQ1FWayC3EusodSIMGE6w694SSNfMEPA=; b=oiYNN6ERf4eaILlA5vNEIRAk+dAbn5Ssis+qeHl4265DDqhfWmsXO3RPMofLxq17Zb 5w8eTaqfss+qQggH7IMqlGgCNOXaot3NeO6fDuRtyoSmvb3qkd1RN2O83ahSFaE1OBhK 5+fbNYofWqxfvFqIsmkXS/Evul/myv45mZyVpGDyVqOnQSi+8uFAsGobIJl6d388nF91 As9amhgjlppzGOnYfdAyYYiAN76RutSLKS50KLqc25fRvppwYtpC8b22uOTNb9wlRWSV +WT7AY4fs+/sDcWdgAw/EcjHCb7mLc33JgMK6HOugI2ftWhN/n6SEf8N0OcBgFvTb5Og lEbQ== X-Gm-Message-State: APjAAAWLf54onRBAqUwlnJGCjLggqRCCN7ZXLjQT/XedZFFeN4w5pyWT HfkSTYgzfYPK9x1P2Z5UfX+Tg2OJALL91Fyf1E0= X-Received: by 2002:a9d:6d8d:: with SMTP id x13mr23458026otp.6.1560024042878; Sat, 08 Jun 2019 13:00:42 -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> <45ce172c-5c76-bb69-31c8-af91e8ffdd68@amlogic.com> In-Reply-To: <45ce172c-5c76-bb69-31c8-af91e8ffdd68@amlogic.com> From: Martin Blumenstingl Date: Sat, 8 Jun 2019 22:00:31 +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 Thu, Apr 11, 2019 at 5:00 AM Liang Yang wrote: > > Hi Martin, > On 2019/4/11 1:54, Martin Blumenstingl wrote: > > 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? > > > You are right.take the early meson NFC driver V2 on previous mail as a > reference. > > > 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). > > > All right. I am also waiting for the answer. do you have any update on this? Martin