Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp539737imm; Fri, 5 Oct 2018 07:53:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV62IsnoN4lPJ1/jn6taQM/zRxEp8yv52ABAnILrIoTshfCpeFBDY0f35C+zhNa4OTqTWcfEP X-Received: by 2002:a63:34c7:: with SMTP id b190-v6mr10288943pga.184.1538751188584; Fri, 05 Oct 2018 07:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538751188; cv=none; d=google.com; s=arc-20160816; b=DyCa8w8WuWM0/At/xQRxWI63JB9zwLuZ2wUxJF5zokhzrwfoGRnILrdILAR6cBB3P3 3izUq3Cdw65X9Rpvb77Sv5c/VIRhuwcs+T/72UUCaAVnd4ApimtxxbS1e4WPbQvZuXaH tNMiCV0wY7H6T6ae+5p/vO2H6zqxntEla5xoblvwNwoQRWV11IUQizCUH+6C4hPUZkHs cZmooIhTpqRhX+a+BEdjFMfWEIbx8wtuGz7oB0QlhJuDPpBGia48UbepjVddRGx+Tnsl Erfpk2Zl/8K2T0NXmL09RmeyGVZxqQpJngTUpK7r74XNjiB+VcyYHCZf2pMci1v4spVO wbeQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=2rRlIoyPSY6gRJ4o9KEI0kjnCGj2mSyIItf2AxteVSU=; b=U5nciWKia725UXj/O8xNaLSCmPTOSw1ZgFOC2IWyfKMEBYTENjaC0u01o38pXKFVmg 3FxcPtSUZwsfmKmkb6BFXkwf1pCS97916cfSm492jEvaYUTI7MI06UQsnWmWRAgxKyOH K1gLcz4m79cZNXsZ4NrAtQ5FGS8XEuVIc+lg9XZJ23x6+DAHN4HexCFE4+BwVWvsZSEX sFX97Dljcd9xYybGgAPKXsKq40pj/yF6SXZI0XK2CBXjo3ExgJq7ROz1+7/bE3FId5Aa BPl5OIsJeNcQJJEnK2RLJR3F9QaWcf9s508HS4ab7/H1JgXN1gK/sMJKVuaWJPkv91lb eBTg== 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 y34-v6si8488466pgk.479.2018.10.05.07.52.52; Fri, 05 Oct 2018 07:53:08 -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 S1728852AbeJEVvt (ORCPT + 99 others); Fri, 5 Oct 2018 17:51:49 -0400 Received: from mail.bootlin.com ([62.4.15.54]:48047 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728522AbeJEVvt (ORCPT ); Fri, 5 Oct 2018 17:51:49 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 1E9C32073D; Fri, 5 Oct 2018 16:52:44 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id CA2B4206A1; Fri, 5 Oct 2018 16:52:33 +0200 (CEST) Date: Fri, 5 Oct 2018 16:52:34 +0200 From: Boris Brezillon To: Ricardo Ribalda Delgado Cc: David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Zhouyang Jia , linux-mtd@lists.infradead.org, LKML Subject: Re: [PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices Message-ID: <20181005165234.468d2397@bbrezillon> In-Reply-To: References: <20181004142942.11887-1-ricardo.ribalda@gmail.com> <20181004142942.11887-2-ricardo.ribalda@gmail.com> <20181005002125.12fd229f@bbrezillon> <20181005090811.6b7e9957@bbrezillon> <20181005103730.57d52e3c@bbrezillon> <20181005121235.7e64b64a@bbrezillon> <20181005141057.0f1b0a9b@bbrezillon> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Oct 2018 16:06:57 +0200 Ricardo Ribalda Delgado wrote: > Hi again Boris > > > On Fri, Oct 5, 2018 at 2:10 PM Boris Brezillon > wrote: > > > > On Fri, 5 Oct 2018 14:04:52 +0200 > > Ricardo Ribalda Delgado wrote: > > > > > Hi Boris > > > On Fri, Oct 5, 2018 at 12:12 PM Boris Brezillon > > > wrote: > > > > > > > > On Fri, 5 Oct 2018 11:54:18 +0200 > > > > Ricardo Ribalda Delgado wrote: > > > > > > > > > Hi Boris > > > > > > > > > > Just seen that you already did the rebase at > > > > > https://github.com/bbrezillon/linux-0day/commits/mtd/physmap-cleanup > > > > > > > > > > Thanks for that. > > > > > > > > > > I am about to test it in real hw (unless you want me wait) > > > > > > > > Sure, go ahead and test it. > > > > > > > > Thanks, > > > > > > > > Boris > > > I had to change this on your patchset to have it working on hw: > > > https://pastebin.com/78A7yhJ9 > > > > > > If you send the patchset to the mailing list I can review it patch by patch. > > > > > > Also > > > mtd: maps: Prepare merging of physmap and physmap_of > > > > > > I do not think that can be bisected. (Not sure, I have to test it) > > > > Okay, I'll have a look. > > > > > > > > I add the diff to the mail, but gmail will probably scramble the > > > lines(yes I know I have to use other mail client) > > > > The diff looks good, I'll fix that an send a push a new version. > > Also fix on physmap_flash_remove > > physmap_data->exit(dev); must be called BEFORE > map_destroy(info->mtds[i]); Hm, that's weird. That shouldn't happen. Do you have a non-NULL ->exit()? Can you detail why you think ->exit() call is the cause of this OOPS? > > otherwise OOPS > > Cheers! > > [ 162.700421] Unable to handle kernel paging request at virtual > address 7974696e6966a6 > [ 162.705461] Mem abort info: > [ 162.713171] Exception class = DABT (current EL), IL = 32 bits > [ 162.715678] SET = 0, FnV = 0 > [ 162.721588] EA = 0, S1PTW = 0 > [ 162.724703] Data abort info: > [ 162.727767] ISV = 0, ISS = 0x00000004 > [ 162.730879] CM = 0, WnR = 0 > [ 162.734436] [007974696e6966a6] address between user and kernel address ranges > [ 162.737567] Internal error: Oops: 96000004 [#1] PREEMPT SMP > [ 162.744674] Modules linked in: qtec_m43 qtec_mem qt5023_video > qtec_white qtec_cmosis arc4 snd_soc_hdmi_codec ath10k_pci ath10k_core > venus_dec venus_enc ath mac80211 q6asm_dai cfi_cmdset_0002 q6routing > q6afe_dai cfi_probe q6adm cfi_util q6asm gen_probe q6afe q6dsp_common > q6core physmap gpio_xilinx qtec_pcie qtec_clk apr qrtr_smd rpmsg_char > imx214 ad5820 v4l2_common joydev cfg80211 msm venus_core hci_uart > qt5023 qcom_camss btqca v4l2_mem2mem drm_kms_helper videobuf2_dma_sg > v4l2_fwnode videobuf2_memops videobuf2_v4l2 bluetooth drm > videobuf2_core videodev ecdh_generic i2c_qcom_cci media rtc_pm8xxx > leds_qcom_lpg qrtr crc32_ce qcom_adsp_pil crct10dif_ce qcom_common > snd_soc_apq8096 qcom_glink_smem qcom_sysmon remoteproc qmi_helpers > rmtfs_mem mdt_loader sch_fq_codel > [ 162.795188] CPU: 2 PID: 1 Comm: systemd-shutdow Not tainted > 4.14.53-qtec-linaro #34 > [ 162.817417] Hardware name: Qtechnology QT5506 (DT) > [ 162.824793] task: ffff8000baac8000 task.stack: ffff000008058000 > [ 162.829671] PC is at cfi_amdstd_reset+0xb4/0x188 [cfi_cmdset_0002] > [ 162.835474] LR is at cfi_amdstd_reset+0xb4/0x188 [cfi_cmdset_0002] > [ 162.841721] pc : [] lr : [] > pstate: 40000145 > [ 162.847885] sp : ffff00000805bc80 > [ 162.855433] x29: ffff00000805bc80 x28: ffff8000baac8000 > [ 162.858648] x27: ffff000008b51000 x26: 000000000000008e > [ 162.864030] x25: 0000000000000124 x24: 0000000000000014 > [ 162.869324] x23: 0000000000000000 x22: 0000000000000000 > [ 162.874619] x21: 5f7974696e696666 x20: ffff8000b3178a18 > [ 162.879915] x19: ffff8000b5215800 x18: 0000000000000000 > [ 162.885209] x17: 0000ffffa46d1768 x16: ffff0000080f9960 > [ 162.890504] x15: 0000000000000010 x14: ffffffffffffffff > [ 162.895800] x13: ffff0000896355e7 x12: ffff0000096355ef > [ 162.901094] x11: ffff00000944a000 x10: ffff00000805b9b0 > [ 162.906389] x9 : 0000000000000039 x8 : 000000000000000d > [ 162.911686] x7 : ffff00000805ba2c x6 : 0000000000000491 > [ 162.916980] x5 : 0000000000000000 x4 : 0000000000000000 > [ 162.922275] x3 : ffffffffffffffff x2 : ffff00000944a278 > [ 162.927570] x1 : ffff8000baac8000 x0 : 0000000000000028 > [ 162.932867] Process systemd-shutdow (pid: 1, stack limit = > 0xffff000008058000) > [ 162.938164] Call trace: > [ 162.945191] Exception stack(0xffff00000805bb40 to 0xffff00000805bc80) > [ 162.947538] bb40: 0000000000000028 ffff8000baac8000 > ffff00000944a278 ffffffffffffffff > [ 162.954136] bb60: 0000000000000000 0000000000000000 > 0000000000000491 ffff00000805ba2c > [ 162.961949] bb80: 000000000000000d 0000000000000039 > ffff00000805b9b0 ffff00000944a000 > [ 162.969762] bba0: ffff0000096355ef ffff0000896355e7 > ffffffffffffffff 0000000000000010 > [ 162.977574] bbc0: ffff0000080f9960 0000ffffa46d1768 > 0000000000000000 ffff8000b5215800 > [ 162.985386] bbe0: ffff8000b3178a18 5f7974696e696666 > 0000000000000000 0000000000000000 > [ 162.993200] bc00: 0000000000000014 0000000000000124 > 000000000000008e ffff000008b51000 > [ 163.001011] bc20: ffff8000baac8000 ffff00000805bc80 > ffff00000107fe44 ffff00000805bc80 > [ 163.008823] bc40: ffff00000107fe44 0000000040000145 > 0000000000000b5b ffffffffffffffff > [ 163.016637] bc60: 0000ffffffffffff 0000000000000000 > ffff00000805bc80 ffff00000107fe44 > [ 163.024454] [] cfi_amdstd_reset+0xb4/0x188 > [cfi_cmdset_0002] > [ 163.032264] [] cfi_amdstd_reboot+0x10/0x98 > [cfi_cmdset_0002] > [ 163.039386] [] notifier_call_chain+0x54/0x90 > [ 163.046583] [] blocking_notifier_call_chain+0x54/0x78 > [ 163.052399] [] kernel_restart_prepare+0x1c/0x40 > [ 163.058910] [] kernel_restart+0x14/0x60 > [ 163.065158] [] SyS_reboot+0x208/0x230