From patchwork Tue Jan 16 21:47:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 861910 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axentiatech.onmicrosoft.com header.i=@axentiatech.onmicrosoft.com header.b="ofaydUeV"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zLkNf03Zvz9s82 for ; Wed, 17 Jan 2018 08:48:02 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752206AbeAPVrq (ORCPT ); Tue, 16 Jan 2018 16:47:46 -0500 Received: from mail-eopbgr30109.outbound.protection.outlook.com ([40.107.3.109]:24992 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752205AbeAPVrj (ORCPT ); Tue, 16 Jan 2018 16:47:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iP2PLZ/227FCrpDtnoB0cwjrsKb6v3+QfMEvpNUlEG0=; b=ofaydUeVThSUT2mzGAqYF8fz9H/CjTfKx1DpWSvL51V0NyFFXZhvAANi6O5+7DzPBTfQMFx9lEyLAEmj/n5EqW2aWfn+5s8kMLEm5k629hXdMCLugwccuvWqskadcOPs+1gEXzEvhqh1qEi3hKIUzfJ6WQaXb56kc8ohS6Nu6Jo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from [192.168.13.3] (85.226.244.23) by VI1PR0202MB2782.eurprd02.prod.outlook.com (2603:10a6:800:db::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 21:47:35 +0000 From: Peter Rosin Subject: [REGRESSION] mux/gpio.c is not able to get any gpio pins Organization: Axentia Technologies AB To: Andrew Jeffery , Charles Keepax , Linus Walleij Cc: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Message-ID: <6c711f96-e412-f7a6-125b-59c61829d802@axentia.se> Date: Tue, 16 Jan 2018 22:47:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Language: en-US X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: AM4PR0202CA0020.eurprd02.prod.outlook.com (2603:10a6:200:89::30) To VI1PR0202MB2782.eurprd02.prod.outlook.com (2603:10a6:800:db::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 69c2c8fe-df9e-4c24-69dc-08d55d2ac1c4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0202MB2782; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2782; 3:vblBDKRA6RW35NdokimEent65hqzBwPtUZjKQPvECXJ1FsIrjpH84BSWZ8qoIvQhXwoKfRB29ComzlSs3A3+1Xr0l5GXshFLS/YPsDz+2/U2BA/pjjKk0FUjvWHKrdBNIXzrqTxTMH4AKnu4kKQ1IRiN4zweuaDUqerxzZlSDAGCGPwG6B7ikKmhqNAMFnKBoaoJEO00PKhk2uBg+bmmP8DDFEra6ZB6b6EC2s52lGLgTneUzR1dw2hOJWwNCS6s; 25:dqljs8VqFILMcbvViYRIKo641zSyfdt2zbweNhESZJS9AZMNlt+7L9adsFPGcoRbXvHPHTGFP6Q3kHO6va0kICX9nuK2/txGhIXzAsynPtz9m9/t3eO/siVMKWlHESdji5e11hOMwuM4OIHKKKOX63+rNHNk5eJTZ96IYZV7Cs6ZOlh7zblSldQLERif9jU+z4dT5r8LHWWqSJwLXeC9w2XlJRB0NqKj6SRW9onw083CaBX6Db/gsvs7L8WxVpX1aHQvy+aPmXcTGqfpo+aZFmdC5J1KYo/Z38eRiNh6msAbKOr89QHqFv0PgmDGGSBHEz40buzGpy0nJVH4QGX+wA==; 31:0law4OdzCHYl5XW9H/MSr3pdx37BZZWJyK8Xxpf1RvxjTNRuNxyNNfzjgFhl92zssYiZb213y70dr/nCNy5VY0MzX4Pe8ilNgn6nz1vvvITw348uk+hKb9zq9N2YXSlv617yjCDhnrpRNq8W7zTmjalh01vojjiNh4qetT5cRiFG34E/fmm6PIOLyLkqF5jGgLy13yQX6O+LLqiw93C/IvM63iQVnmRO5g19s7ib6Mo= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2782: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231023)(944501161)(10201501046)(3002001)(6041268)(2016111802025)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6043046)(6072148)(201708071742011); SRVR:VI1PR0202MB2782; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR0202MB2782; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2782; 4:LqL7rQIPEow3cReU0aRHwcCXjcRJBhWDrRgPq6IZzCjB8YCRMpZV4lYV10XEAh45YoNgOFzlK21vb0s4zDg3nepyQRXpSlSZ8HpexWaXf7kkSlrfQERXNzVjAFHRsIlHRM1ocPuU8Gv1p7MEij3+HvrjOsKZd7WXZbGwKACLIpdzIvwU1JE8Wf6xeu4C2/kztPTO2NSee53B5Cs1IPtYPxpGvX9d3f3ZeXIFu/11+06cGAPlYQn7OZtAXFV2iRV5uOpBw3PehOGpzRWS1fo7CA== X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6049001)(376002)(39840400004)(366004)(346002)(39380400002)(396003)(377424004)(199004)(189003)(16526018)(7736002)(5890100001)(8676002)(5660300001)(65826007)(25786009)(3260700006)(68736007)(106356001)(117156002)(74482002)(58126008)(110136005)(26005)(97736004)(305945005)(81156014)(230700001)(105586002)(16576012)(83506002)(54906003)(81166006)(6486002)(3846002)(52116002)(53936002)(6116002)(8936002)(86362001)(575784001)(65956001)(2486003)(52146003)(23676004)(36916002)(59450400001)(386003)(4326008)(6666003)(77096006)(2906002)(478600001)(50466002)(65806001)(47776003)(66066001)(31686004)(316002)(64126003)(36756003)(31696002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2782; H:[192.168.13.3]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BVI1PR0202MB2782=3B23=3AAU?= =?utf-8?q?EWtHAiWT7i1gMRzToAIor82AJhYzVlJfb4/i/OHOh61xec9k3dJJ6pLv?= =?utf-8?q?mduHCgfRSGo9AZ7WI6/7SFbwfxrpoGnkph27zbSNwLwouLvkPMoVam2l?= =?utf-8?q?jFS4gNBz5KbCJjuBJx374JCaZ18YCDBjCrj/6vIEon0Q3q6kq+85og3v?= =?utf-8?q?+x/3+rNfTipxej9qZRnJCvjXb9/zkwPIYRkl+gHELvnHqEH43N7+ph0m?= =?utf-8?q?D3h4M5HXQPIBAJPnDbP3338sxA9POQsQ1qSzCPmTiwxGAXqD/o0riL+C?= =?utf-8?q?fXYouPgK9byCiHDw+0PBxIDSylZ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RPQjEJ0eSyE28LEH5eOqgBIOHT/JsHKeqVScpKn3myLwTJv8CA2f04NTSN+VzMOqTxElLGJUzhum6YoNciSRXqTsk/PH4VnLzWAQThMUpQcqEjFFIPJCfJFRn6j/kQelZWrJzy/6T0v+AAJD1x9flnU64UsH48k6VjH3fcLvDywQsX2zrHePS5MKLCCTFm5nljAZnQau4ugjQA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 21:47:35.9771 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 69c2c8fe-df9e-4c24-69dc-08d55d2ac1c4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2782 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Hi! I have found that the drivers/mux/gpio.c driver fails to get the required gpio pins when I test with next-20180116. The driver calls devm_gpiod_get_array() during probe and that request returns -EPROBE_DEFER in three probes long after the pinctrl driver has been registered (verified with a few extra traces, see below), then the kernel gives up since the defers does not seem to get resolved. End result: a booted system w/o the required mux driver. I.e. things just don't work correctly at all. I have bisected this bug to: e10f72bf4b3e8885c1915a119141481e7fc45ca8 is the first bad commit commit e10f72bf4b3e8885c1915a119141481e7fc45ca8 Author: Andrew Jeffery Date: Thu Nov 30 14:25:24 2017 +1030 gpio: gpiolib: Generalise state persistence beyond sleep General support for state persistence is added to gpiolib with the introduction of a new pinconf parameter to propagate the request to hardware. The existing persistence support for sleep is adapted to include hardware support if the GPIO driver provides it. Persistence continues to be enabled by default; in-kernel consumers can opt out, but userspace (currently) does not have a choice. The *_SLEEP_MAY_LOSE_VALUE and *_SLEEP_MAINTAIN_VALUE symbols are renamed, dropping the SLEEP prefix to reflect that the concept is no longer sleep-specific. I feel that renaming to just *_MAY_LOSE_VALUE could initially be misinterpreted, so I've further changed the symbols to *_TRANSITORY and *_PERSISTENT to address this. The sysfs interface is modified only to keep consistency with the chardev interface in enforcing persistence for userspace exports. Signed-off-by: Andrew Jeffery Reviewed-by: Charles Keepax Acked-by: Rob Herring Signed-off-by: Linus Walleij I feebly tried to revert that on top of next-20180116, but that appears to be a bit involved and I gave up. The pinctrl driver that fails is pinctrl-sx150x.c and I have a sx1502 chip. I used this diff to trace: Cheers, Peter --- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mux/gpio.c b/drivers/mux/gpio.c index 468bf1709606..67e7b98fd608 100644 --- a/drivers/mux/gpio.c +++ b/drivers/mux/gpio.c @@ -73,8 +73,7 @@ static int mux_gpio_probe(struct platform_device *pdev) mux_gpio->gpios = devm_gpiod_get_array(dev, "mux", GPIOD_OUT_LOW); if (IS_ERR(mux_gpio->gpios)) { ret = PTR_ERR(mux_gpio->gpios); - if (ret != -EPROBE_DEFER) - dev_err(dev, "failed to get gpios\n"); + dev_err(dev, "failed to get gpios: %d\n", ret); return ret; } WARN_ON(pins != mux_gpio->gpios->ndescs); diff --git a/drivers/pinctrl/pinctrl-sx150x.c b/drivers/pinctrl/pinctrl-sx150x.c index fb242c542dc9..a463b7337dca 100644 --- a/drivers/pinctrl/pinctrl-sx150x.c +++ b/drivers/pinctrl/pinctrl-sx150x.c @@ -1230,6 +1230,7 @@ static int sx150x_probe(struct i2c_client *client, dev_err(dev, "Failed to register pinctrl device\n"); return PTR_ERR(pctl->pctldev); } + dev_err(dev, "reg"); return 0; } With the above, and on the commit just before the above bisection result, I get this good boot log: CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache OF: fdt: Machine model: Axentia Linea-Nattis v2 Natte v2 Memory policy: Data cache writeback CPU: All CPU(s) started in SVC mode. random: fast init done Built 1 zonelists, mobility grouping on. Total pages: 16256 Kernel command line: console=ttyS0,115200 rw consoleblank=0 ip=none root=ubi0:rootfs ubi.mtd=6 rootfstype=ubifs noinitrd mtdparts=atmel_nand:256k(at91bootstrap),384k(barebox)ro,256k@768k(bareboxenv),256k(bareboxenv2),128k@1536k(oftree),5M@2M(kernel),-@8M(rootfs) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 56252K/65536K available (5120K kernel code, 182K rwdata, 1052K rodata, 1024K init, 109K bss, 9284K reserved, 0K cma-reserved) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc4800000 - 0xff800000 ( 944 MB) lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) .text : 0xc0008000 - 0xc0600000 (6112 kB) .init : 0xc0800000 - 0xc0900000 (1024 kB) .data : 0xc0900000 - 0xc092da8c ( 183 kB) .bss : 0xc092da8c - 0xc0948f8c ( 110 kB) NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 clocksource: pit: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 14479245754 ns sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns Console: colour dummy device 80x30 Calibrating delay loop... 351.43 BogoMIPS (lpj=1757184) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok Setting up static identity map for 0x20100000 - 0x20100060 devtmpfs: initialized VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 256 (order: -1, 3072 bytes) pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations AT91: PM: standby: standby, suspend: ulp0 No ATAGs? gpio-at91 fffff200.gpio: at address c485a200 gpio-at91 fffff400.gpio: at address c485c400 gpio-at91 fffff600.gpio: at address c485e600 gpio-at91 fffff800.gpio: at address c4881800 gpio-at91 fffffa00.gpio: at address c4883a00 pinctrl-at91 ahb:apb:pinctrl@fffff200: initialized AT91 pinctrl driver clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 115833966437 ns at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy set slave ), 8 channels at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy set slave ), 8 channels AT91: Detected SoC family: sama5d3 AT91: Detected SoC: sama5d31, revision 2 usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb at91_i2c f0014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers sx150x-pinctrl 0-0020: reg at91_i2c f0014000.i2c: AT91 i2c bus driver (hw version: 0x402). clocksource: Switched to clocksource tcb_clksrc NET: Registered protocol family 2 TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 Initialise system trusted keyrings workingset: timestamp_bits=30 max_order=14 bucket_order=0 Key type asymmetric registered Asymmetric key parser 'x509' registered io scheduler noop registered (default) io scheduler mq-deadline registered io scheduler kyber registered f001c000.serial: ttyS1 at MMIO 0xf001c000 (irq = 22, base_baud = 4125000) is a ATMEL_SERIAL ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 30, base_baud = 8250000) is a ATMEL_SERIAL console [ttyS0] enabled loop: module loaded ssc f0008000.ssc: Atmel SSC device at 0xc489c000 (irq 19) ssc f0008000.ssc: failed to auto-setup ssc for audio at24 0-0051: 8192 byte 24c64 EEPROM, writable, 32 bytes/write at24 0-0050: 256 byte 24c02 EEPROM, writable, 16 bytes/write [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517 atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-atmel: EHCI Atmel driver atmel_usba_udc 500000.gadget: MMIO registers at 0xf8030000 mapped at c48ac000 atmel_usba_udc 500000.gadget: FIFO at 0x00500000 mapped at c4900000 g_serial gadget: Gadget Serial v2.4 g_serial gadget: g_serial ready at91_rtc fffffeb0.rtc: registered as rtc0 at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver. i2c /dev entries driver AT91: Starting after wakeup atmel_mci f0000000.mmc: version: 0x505 atmel_mci f0000000.mmc: using dma0chan2 for DMA transfers atmel_mci f0000000.mmc: Atmel MCI controller at 0xf0000000 irq 18, 1 slots atmel_aes f8038000.aes: version: 0x135 atmel_aes f8038000.aes: Atmel AES - Using dma1chan0, dma1chan1 for DMA transfers atmel_sha f8034000.sha: version: 0x410 atmel_sha f8034000.sha: using dma1chan2 for DMA transfers atmel_sha f8034000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512 atmel_tdes f803c000.tdes: version: 0x701 atmel_tdes f803c000.tdes: using dma1chan3, dma1chan4 for DMA transfers atmel_tdes f803c000.tdes: Atmel DES/TDES usbcore: registered new interface driver usbhid usbhid: USB HID core driver nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac nand: Micron MT29F4G08ABBDAHC nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 Bad block table found at page 262080, version 0x01 Bad block table found at page 262016, version 0x01 7 cmdlinepart partitions found on MTD device atmel_nand Creating 7 MTD partitions on "atmel_nand": 0x000000000000-0x000000040000 : "at91bootstrap" 0x000000040000-0x0000000a0000 : "barebox" 0x0000000c0000-0x000000100000 : "bareboxenv" 0x000000100000-0x000000140000 : "bareboxenv2" 0x000000180000-0x0000001a0000 : "oftree" 0x000000200000-0x000000700000 : "kernel" 0x000000800000-0x000020000000 : "rootfs" gpio-mux mux-controller: 8-way mux-controller registered NET: Registered protocol family 10 Segment Routing with IPv6 sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver NET: Registered protocol family 17 Loading compiled-in X.509 certificates [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. atmel-hlcdc-display-controller atmel-hlcdc-dc: fb0: frame buffer device [drm] Initialized atmel-hlcdc 1.0.0 20141504 for atmel-hlcdc-dc on minor 0 i2c i2c-0: Added multiplexed i2c bus 3 i2c i2c-0: Added multiplexed i2c bus 4 i2c i2c-0: Added multiplexed i2c bus 5 i2c i2c-0: Added multiplexed i2c bus 6 i2c i2c-0: Added multiplexed i2c bus 7 i2c i2c-0: Added multiplexed i2c bus 8 i2c i2c-0: Added multiplexed i2c bus 9 i2c i2c-0: Added multiplexed i2c bus 10 i2c-mux-gpmux i2c-mux: 8-port mux on AT91 adapter ubi0: attaching mtd6 random: crng init done ubi0: scanning is finished gluebi (pid 1): gluebi_resized: got update notification for unknown UBI device 0 volume 0 ubi0: volume 0 ("rootfs") re-sized from 232 to 3948 LEBs ubi0: attached mtd6 (name "rootfs", size 504 MiB) ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 ubi0: good PEBs: 4028, bad PEBs: 4, corrupted PEBs: 0 ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1841681945 ubi0: available PEBs: 0, total reserved PEBs: 4028, PEBs reserved for bad PEB handling: 76 ubi0: background thread "ubi_bgt0d" started, PID 638 input: gpio-keys as /devices/platform/gpio-keys/input/input0 at91_rtc fffffeb0.rtc: setting system clock to 2007-01-01 00:00:10 UTC (1167609610) atmel_usart ffffee00.serial: using dma1chan5 for rx DMA transfers UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 650 UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS (ubi0:0): FS size: 258650112 bytes (246 MiB, 2037 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID EE0CFC57-BFC0-42A6-A803-2411C6488ED6, small LPT model VFS: Mounted root (ubifs filesystem) on device 0:14. When on the offending commit, I this bad boot log: CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache OF: fdt: Machine model: Axentia Linea-Nattis v2 Natte v2 Memory policy: Data cache writeback CPU: All CPU(s) started in SVC mode. random: fast init done Built 1 zonelists, mobility grouping on. Total pages: 16256 Kernel command line: console=ttyS0,115200 rw consoleblank=0 ip=none root=ubi0:rootfs ubi.mtd=6 rootfstype=ubifs noinitrd mtdparts=atmel_nand:256k(at91bootstrap),384k(barebox)ro,256k@768k(bareboxenv),256k(bareboxenv2),128k@1536k(oftree),5M@2M(kernel),-@8M(rootfs) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 56252K/65536K available (5120K kernel code, 182K rwdata, 1052K rodata, 1024K init, 109K bss, 9284K reserved, 0K cma-reserved) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc4800000 - 0xff800000 ( 944 MB) lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) .text : 0xc0008000 - 0xc0600000 (6112 kB) .init : 0xc0800000 - 0xc0900000 (1024 kB) .data : 0xc0900000 - 0xc092da8c ( 183 kB) .bss : 0xc092da8c - 0xc0948f8c ( 110 kB) NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 clocksource: pit: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 14479245754 ns sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns Console: colour dummy device 80x30 Calibrating delay loop... 351.43 BogoMIPS (lpj=1757184) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok Setting up static identity map for 0x20100000 - 0x20100060 devtmpfs: initialized VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 256 (order: -1, 3072 bytes) pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations AT91: PM: standby: standby, suspend: ulp0 No ATAGs? gpio-at91 fffff200.gpio: at address c485a200 gpio-at91 fffff400.gpio: at address c485c400 gpio-at91 fffff600.gpio: at address c485e600 gpio-at91 fffff800.gpio: at address c4881800 gpio-at91 fffffa00.gpio: at address c4883a00 pinctrl-at91 ahb:apb:pinctrl@fffff200: initialized AT91 pinctrl driver clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 115833966437 ns at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy set slave ), 8 channels at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy set slave ), 8 channels AT91: Detected SoC family: sama5d3 AT91: Detected SoC: sama5d31, revision 2 usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb at91_i2c f0014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers sx150x-pinctrl 0-0020: reg at91_i2c f0014000.i2c: AT91 i2c bus driver (hw version: 0x402). clocksource: Switched to clocksource tcb_clksrc NET: Registered protocol family 2 TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 Initialise system trusted keyrings workingset: timestamp_bits=30 max_order=14 bucket_order=0 Key type asymmetric registered Asymmetric key parser 'x509' registered io scheduler noop registered (default) io scheduler mq-deadline registered io scheduler kyber registered f001c000.serial: ttyS1 at MMIO 0xf001c000 (irq = 22, base_baud = 4125000) is a ATMEL_SERIAL ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 30, base_baud = 8250000) is a ATMEL_SERIAL console [ttyS0] enabled loop: module loaded ssc f0008000.ssc: Atmel SSC device at 0xc489c000 (irq 19) ssc f0008000.ssc: failed to auto-setup ssc for audio at24 0-0051: 8192 byte 24c64 EEPROM, writable, 32 bytes/write at24 0-0050: 256 byte 24c02 EEPROM, writable, 16 bytes/write [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517 atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-atmel: EHCI Atmel driver atmel_usba_udc 500000.gadget: MMIO registers at 0xf8030000 mapped at c48ac000 atmel_usba_udc 500000.gadget: FIFO at 0x00500000 mapped at c4900000 g_serial gadget: Gadget Serial v2.4 g_serial gadget: g_serial ready at91_rtc fffffeb0.rtc: registered as rtc0 at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver. i2c /dev entries driver AT91: Starting after wakeup atmel_mci f0000000.mmc: version: 0x505 atmel_mci f0000000.mmc: using dma0chan2 for DMA transfers atmel_mci f0000000.mmc: Atmel MCI controller at 0xf0000000 irq 18, 1 slots atmel_aes f8038000.aes: version: 0x135 atmel_aes f8038000.aes: Atmel AES - Using dma1chan0, dma1chan1 for DMA transfers atmel_sha f8034000.sha: version: 0x410 atmel_sha f8034000.sha: using dma1chan2 for DMA transfers atmel_sha f8034000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512 atmel_tdes f803c000.tdes: version: 0x701 atmel_tdes f803c000.tdes: using dma1chan3, dma1chan4 for DMA transfers atmel_tdes f803c000.tdes: Atmel DES/TDES usbcore: registered new interface driver usbhid usbhid: USB HID core driver nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac nand: Micron MT29F4G08ABBDAHC nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 Bad block table found at page 262080, version 0x01 Bad block table found at page 262016, version 0x01 7 cmdlinepart partitions found on MTD device atmel_nand Creating 7 MTD partitions on "atmel_nand": 0x000000000000-0x000000040000 : "at91bootstrap" 0x000000040000-0x0000000a0000 : "barebox" 0x0000000c0000-0x000000100000 : "bareboxenv" 0x000000100000-0x000000140000 : "bareboxenv2" 0x000000180000-0x0000001a0000 : "oftree" 0x000000200000-0x000000700000 : "kernel" 0x000000800000-0x000020000000 : "rootfs" gpio-mux mux-controller: failed to get gpios: -517 NET: Registered protocol family 10 Segment Routing with IPv6 sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver NET: Registered protocol family 17 Loading compiled-in X.509 certificates [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] No driver support for vblank timestamp query. atmel-hlcdc-display-controller atmel-hlcdc-dc: fb0: frame buffer device [drm] Initialized atmel-hlcdc 1.0.0 20141504 for atmel-hlcdc-dc on minor 0 gpio-mux mux-controller: failed to get gpios: -517 ubi0: attaching mtd6 random: crng init done ubi0: scanning is finished gluebi (pid 1): gluebi_resized: got update notification for unknown UBI device 0 volume 0 ubi0: volume 0 ("rootfs") re-sized from 232 to 3948 LEBs ubi0: attached mtd6 (name "rootfs", size 504 MiB) ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 ubi0: good PEBs: 4028, bad PEBs: 4, corrupted PEBs: 0 ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1841681945 ubi0: available PEBs: 0, total reserved PEBs: 4028, PEBs reserved for bad PEB handling: 76 ubi0: background thread "ubi_bgt0d" started, PID 589 input: gpio-keys as /devices/platform/gpio-keys/input/input0 at91_rtc fffffeb0.rtc: setting system clock to 2007-01-01 00:00:09 UTC (1167609609) gpio-mux mux-controller: failed to get gpios: -517 atmel_usart ffffee00.serial: using dma1chan5 for rx DMA transfers UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 601 UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS (ubi0:0): FS size: 258650112 bytes (246 MiB, 2037 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID EE0CFC57-BFC0-42A6-A803-2411C6488ED6, small LPT model VFS: Mounted root (ubifs filesystem) on device 0:14. diff between the two: --- bootlog.good 2018-01-16 22:39:29.196022434 +0100 +++ bootlog.bad 2018-01-16 22:39:51.474264534 +0100 @@ -118,7 +118,7 @@ 0x000000180000-0x0000001a0000 : "oftree" 0x000000200000-0x000000700000 : "kernel" 0x000000800000-0x000020000000 : "rootfs" -gpio-mux mux-controller: 8-way mux-controller registered +gpio-mux mux-controller: failed to get gpios: -517 NET: Registered protocol family 10 Segment Routing with IPv6 sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver @@ -128,15 +128,7 @@ [drm] No driver support for vblank timestamp query. atmel-hlcdc-display-controller atmel-hlcdc-dc: fb0: frame buffer device [drm] Initialized atmel-hlcdc 1.0.0 20141504 for atmel-hlcdc-dc on minor 0 -i2c i2c-0: Added multiplexed i2c bus 3 -i2c i2c-0: Added multiplexed i2c bus 4 -i2c i2c-0: Added multiplexed i2c bus 5 -i2c i2c-0: Added multiplexed i2c bus 6 -i2c i2c-0: Added multiplexed i2c bus 7 -i2c i2c-0: Added multiplexed i2c bus 8 -i2c i2c-0: Added multiplexed i2c bus 9 -i2c i2c-0: Added multiplexed i2c bus 10 -i2c-mux-gpmux i2c-mux: 8-port mux on AT91 adapter +gpio-mux mux-controller: failed to get gpios: -517 ubi0: attaching mtd6 random: crng init done ubi0: scanning is finished @@ -150,11 +142,12 @@ ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1841681945 ubi0: available PEBs: 0, total reserved PEBs: 4028, PEBs reserved for bad PEB handling: 76 -ubi0: background thread "ubi_bgt0d" started, PID 638 +ubi0: background thread "ubi_bgt0d" started, PID 589 input: gpio-keys as /devices/platform/gpio-keys/input/input0 -at91_rtc fffffeb0.rtc: setting system clock to 2007-01-01 00:00:10 UTC (1167609610) +at91_rtc fffffeb0.rtc: setting system clock to 2007-01-01 00:00:09 UTC (1167609609) +gpio-mux mux-controller: failed to get gpios: -517 atmel_usart ffffee00.serial: using dma1chan5 for rx DMA transfers -UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 650 +UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 601 UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS (ubi0:0): FS size: 258650112 bytes (246 MiB, 2037 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)