Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp777523pxv; Fri, 9 Jul 2021 08:47:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5W/HbelVgWuR86UjR3MYY4ZssHtOrwDPO1diyvRKVRT7+MtDz0Kdz32EnrP7n9uLLWEO2 X-Received: by 2002:a05:6402:198:: with SMTP id r24mr48030348edv.93.1625845624057; Fri, 09 Jul 2021 08:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625845624; cv=none; d=google.com; s=arc-20160816; b=GMw9026itFMBTtJ7cPxxL/DHDWUNRX92JVwd8//ikgiRUmRU8ybQVVFfYF7ztdLWGm 86PmZWtWszllePev5CLsCFRT6YGx+C79EAsoqTZyzqUfsEkwiMxYxMv5zO48m+GmVL8J Cxa5X0Bvj06cZS39I32D48TTXiYu4EWVhwN7kDe8MdIqsFpfFArWrnGiBy1Ig+k5IQKd PCouNf7D/IRSn5921AfN1U6zVDu0adqHGlq+6dZsTMqPpzDj3wabtmc++TyH2m2Sh/bP leLsghpaXtHfHGkjaDnKkE5TCSVEcEBRxjOhSUV9kkm2gZQvnCj4qiRGUdzX9IH7bOrn Q01g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Xr/oo6QaKEF3yyBzroogqbeO+TEDdTjBQ/ohjUC5aco=; b=eI9Dh6QDa4ZIL+EvNH3nupquPBDXxnqR2H5oHJq5XGgy9M6P4je8qh4HhvfC2dU2ms kvsWGpGT79z7R2ADcnPI5cIpWNytAzYBDlP8cvZZ12Qf843AP9VrSJ9f256FLOt7cN88 utirCpeujGzz4BLqno3hlrIqZBCpPMYp6QKeIEFdOfCrwVrw2pn1q+ceMZxGwenKkFT2 73gWHaxKYTXwZ86XyLrIorG7K5ggMP8AzFrxCoy92tr6kqRJEvK3z6YKAsr1jrwHbpMs sZAjAGJJxXHHWi7nQ+8U8hvKwpUpNJAV9Gz7nGSSgl3ZJNRLysKQ4GZ9R5v8S5IF3F6N cfWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gNm9KR7N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si7563482edy.571.2021.07.09.08.46.40; Fri, 09 Jul 2021 08:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gNm9KR7N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232363AbhGIPs3 (ORCPT + 99 others); Fri, 9 Jul 2021 11:48:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232269AbhGIPs3 (ORCPT ); Fri, 9 Jul 2021 11:48:29 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B9FBC0613DD for ; Fri, 9 Jul 2021 08:45:46 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id p4-20020a17090a9304b029016f3020d867so6283888pjo.3 for ; Fri, 09 Jul 2021 08:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xr/oo6QaKEF3yyBzroogqbeO+TEDdTjBQ/ohjUC5aco=; b=gNm9KR7Nl8b9kI9wKWmASc8pm+nB7atspkpJFn7eECRe/lnLCs4xSNPxz58yuIa1OK R/vZghjGU4MRZtmnPjYdWXKqguGp+KH3Zx9PvkHubZupsYJxxK1hWxywGPCbQsyJwaM3 xkym/IhEZz/64BDNO0BDoiNpBDquYRtarrFQ2VI4LLDwhpkzZEtrMRK2JurOaADNG+o0 KBm+6blpXBJT8pwmAbekJEnr0U7c1mFvv7whPja26P2EJLmbsX3mCvBkFN7JR71p6Jw7 oaazMaMkY6Rw8uENKdeQBZ6MRuK+UHBaKg7tPQ8qGcLTrc/rmn2ropvAlqS6Al6OeEmk n1cw== 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=Xr/oo6QaKEF3yyBzroogqbeO+TEDdTjBQ/ohjUC5aco=; b=I1K1Cu1wBYPwwgOEAnsB5BNjmjrcmXrwkxm+cU116VhnTNdn3W5G8qNqevYaCZflDI 5NYwF/jZlcLDJl4DVTRGpBkA4ihFrxiiHZuMctbMazx4GOlA5pp23BRpFH4jvEFGExdY dgYbomlB47tsDl1yDV2fMXSjnFCPX1P1o1+mYgWATHZQJkIKOi4pGJkhRiK47FHI+h7e cZJAScMtVfTHZ0ZJaMJgV4Z2LB6H4714R7fhiI2lyhiHUdDrluxxFCb302VmQX7dS94Z JXW2WaPNoRxYLX9E7av4iS0BCpauasxwOzo8TK2iM4XXPh9aWMiVZDQnLFz319ieuuTp M7gQ== X-Gm-Message-State: AOAM531fwYm9cqUjIzaUh9H8GZhYNUyy/y4yoFdeXZ0HP4bg3PcD4ioc 8s9QiOpsp0MUXdKB8CKCERiLcAyICE5u28INUECSXLvaWBjudA== X-Received: by 2002:a17:90b:3647:: with SMTP id nh7mr4697326pjb.228.1625845545524; Fri, 09 Jul 2021 08:45:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andy Shevchenko Date: Fri, 9 Jul 2021 18:45:06 +0300 Message-ID: Subject: Re: parallel panel display stopped working To: Linux Kernel Mailing List , Miguel Ojeda , Lars Poeschel Cc: Andy Shevchenko , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 9, 2021 at 5:54 PM Andy Shevchenko wrote: > > On Fri, Jul 9, 2021 at 5:40 PM Andy Shevchenko > wrote: > > > > Parallel (4 bits) panel display stopped working. > > I have no time right now to bisect but I have noticed there was quite > > a pile of patches from Lars to the driver recently (yeah, it seems for > > a few months I haven't run my tests against the AUX display driver). > > > > I believe the issue is there somewhere. > > > > Moreover on the removal I have got an oops > > > > [ 218.825445] kernel tried to execute NX-protected page - exploit > > attempt? (uid: 0) > > [ 218.832965] BUG: unable to handle page fault for address: ffff8f8f06559dc0 > > [ 218.839863] #PF: supervisor instruction fetch in kernel mode > > [ 218.845540] #PF: error_code(0x0011) - permissions violation > > [ 218.851132] PGD e601067 P4D e601067 PUD e602067 PMD 645a063 PTE > > 8000000006559063 > > [ 218.858587] Oops: 0011 [#1] SMP PTI > > [ 218.862099] CPU: 0 PID: 7 Comm: kworker/u4:0 Tainted: G C > > 5.13.0+ #23 > > [ 218.869870] Hardware name: Intel Corporation Merrifield/BODEGA BAY, > > BIOS 542 2015.01.21:18.19.48 > > [ 218.878681] Workqueue: kacpi_hotplug acpi_device_del_work_fn > > [ 218.884380] RIP: 0010:0xffff8f8f06559dc0 > > [ 218.888328] Code: ff ff d2 2b 21 8c ff ff ff ff 08 00 00 00 00 00 > > 00 00 78 34 fa 02 8f 8f ff ff 00 00 00 00 00 > > 00 00 00 00 00 00 00 00 00 00 00 <72> 65 67 75 6c 61 74 6f 72 3a 72 65 > > 67 75 6c 61 74 6f 72 2e 30 2d > > [ 218.907138] RSP: 0000:ffffad36c0043c90 EFLAGS: 00010246 > > [ 218.912387] RAX: ffff8f8f06559dc0 RBX: ffff8f8f062cbc00 RCX: ffff8f8f01239fc8 > > [ 218.919542] RDX: 000000002a3cccf8 RSI: 0000000000000001 RDI: ffff8f8f06559480 > > [ 218.926701] RBP: ffffffffc037e279 R08: 00000000d5832520 R09: 0000000000000001 > > [ 218.933856] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8f8f062cbc00 > > [ 218.941010] R13: ffffffffc038e028 R14: ffffffff8c5e0b60 R15: 00000000fffffffd > > [ 218.948166] FS: 0000000000000000(0000) GS:ffff8f8f3e200000(0000) > > knlGS:0000000000000000 > > [ 218.956286] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > [ 218.962053] CR2: ffff8f8f06559dc0 CR3: 0000000002ef4000 CR4: 00000000001006f0 > > [ 218.969208] Call Trace: > > [ 218.971678] ? hd44780_common_clear_display+0x17/0x30 [hd44780_common] > > [ 218.978252] ? charlcd_write_char+0x21a/0x810 [charlcd] > > [ 218.983519] ? charlcd_puts+0x30/0x60 [charlcd] > > [ 218.988083] ? charlcd_unregister+0x24/0x70 [charlcd] > > [ 218.993167] ? hd44780_remove+0x1e/0x30 [hd44780] > > [ 218.997901] ? platform_remove+0x1f/0x40 > > ... > > > > Just for your information and with hope that somebody may test and/or > > reproduce this and fix it. Later on I might find time to bisect the > > other issue I mentioned above. > > For time being confirmed the following: > 1. a2060f288e15 ("auxdisplay: Call charlcd_backlight in place") has a > remove bug (above), while panel works > 2. 66ce7d5c1e12 ("auxdisplay: Use an enum for charlcd backlight on/off > ops") everything works as expected > > So, the oops introduced in between those two. The culprit (*) is 01ec46dfa633 ("auxdisplay: Move init_display to hd44780_common"). *) Obviously it's not. It reveals the design issue on how the modules were split. How this had been tested if tested at all? P.S. If we don't get a fix in time, I will ask Miguel to revert the entire pile. -- With Best Regards, Andy Shevchenko