From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.177 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796374698; b=tWVIWcPMxcN/QxpQc3JkhxFQ31BBqkRYxH9yvDuz3SIjhcoFzcuR7cVaAucsmXcGkqmt OhVMyx1A6ewKbBa+9DD7SkObAJJwJ85kAWdgGQklPIa1Qq87diPxQx8wCj7AEgurhZJO5 y0ZLMgKQF6u5CW+gBh5Yce7U79SVeuys/r5XSOMwcJMj8sWRpefZaUF4SuXuffwV0EM0l TlU3h0f4mVsSsRQaue8wZz67XvRcLihTHM+cQsmbPi7l673p4v5kDY8omgwfCPF8Cctav ym7XW5qTqJsugF5unIFCslyrQDCdKxSh0jB80W9GfU21cXPZyxl52GRRfjAhWVk7xmw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374698; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=LCe1L1faUZxFKtpK0iTqnW1/UEOLppZNMA7j0aWiyzQ=; b=C3acwqZRdn4xhNTa16iH48o5yWRaXyB5LGFKDkquP32BZsGJoQO/X0BkRUEOPO/ysbkb znVmlI/IbTYQOZuqFlC+Kz2A1J3jZ9HlAfVSMcIKj8QDI5fpf5Lv46F2DjxnlhoOAkvEq c/pHpV2yHYQPDXuHNp2Dz6CTeWmQMAjwitPJodERAhqHvLGK2kDLECOsbNH6X2lkLi2le I0eDSdzgeKrDIHgHHkbnFXdtQrZp02aRZpD5yKFIVF050RqVQRuS760T3UOwhY3JfabV8 +X75n2aXDOAKorY7BAIPRaOsjWwB7suMoQ+Xp5wnDZe3GcA5IKgIgD3F0mxTEA2v25w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=jRHNRYMv; arc=none smtp.remote-ip=209.85.214.177 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82DE9606A32C for ; Fri, 4 Dec 2026 08:58:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 82DE9606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=jRHNRYMv Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2f03920c477so7076455ad.2 for ; Fri, 04 Dec 2026 00:58:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796374698; x=1796979498; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=LCe1L1faUZxFKtpK0iTqnW1/UEOLppZNMA7j0aWiyzQ=; b=jRHNRYMvKQ0LTNKb6lXXQHG+vWb5NaDCa5zuBuoRie5wbolokkPwZhSjvDi7q3xthF eHIqzWfrK0kY/GNzivlsW++3PcBV+NYda3wFrHWukumtRK9gWwqUaskbM+cJPomSF7o5 m8c0t93yRErN8xlpRmhnrSBJU3eb7nzz8CjmeTfyo49iI9tR78HA0i5x0tyZ9wixq/e+ qMSOXytxQjGR9qxnUFmsoftO1fhg/il89xnDKYebrutSUNoHRi2kN569ASJ/QcRpUxRB GrmFGuFlL35vzK6+ZN5bKX8eX+2EFkJaUkk+x0zgGQFmeayfU7G3HZRe5xWSbCzDAUov CkZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796374698; x=1796979498; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=LCe1L1faUZxFKtpK0iTqnW1/UEOLppZNMA7j0aWiyzQ=; b=FHc26STpcKa8+WrMo0PLsuuOaYFS6Yt90/KhH9lDFkA1bezeqvcWPq+MrDyCj0/MFn UNDiGAklfSc9J2pU35OnmArxE0DPjKjoVKF6fa84IvZlXaM1cq2IomaSSYi+OLX66iAH Y0C2TD1mAovLAw54ibZ+M//hnoSnkuYlaJgURmUURITiQcGWZr/XbJsbnxYXigrDTUYh 6elq23qNeN6SH5W0i04UwpgP62FL2C8n1InSIoejSEUPZB0DWPEdaAMd7GyL5AOcNH4V hNA/4HmnIvzLuFWVb1AMeeErITEAGNMoXTy0GYIlMI/mc8tGnnzKgdvvGR5C3XJP5Rr7 Cvjw== X-Forwarded-Encrypted: i=1; AL+hErF7toc6jH3OQQOCTKqWNb8VTKUNlexXVGBSsM5sC01YaXNMJDn73uWcMqvSJFG4mNxG2SyGh9DtH2alYXU=@vger.kernel.org X-Gm-Message-State: APuU4Z+FBS5QDqbV2S8o6EgjKkeJUR94n4wxkpEptDpsYDKYbIXRqWwx 8bNtoQusemKLHA5MUn7DyaKr0ZcUMx7kGjKerlPN0il0SlpTsbIDcyU= X-Gm-Gg: AZFdTZfex9jqni5BzdoQaqzPScFMogyC91P3a/tz+85slHPN/ZXMX+sxqn3g2B0y4lh lSjp0KJ44Gt1MRjiYTzQZuu5rg+81lKZLuxTqQdyRUQ2MIqQwObsydFg7MRncMnLMnGo3pU+DFf NNw+m/Phy+jRO5HZ1afFzyaFexy7LQZu/6DAvgAwFNurknwUxZQ3AYidUCZ61Drzr3LC3tyWc/O 6N7IKuO0CQt6SCepvLv7AgGxiAuIRZotU8eS+1ieVMWvmVrnlUM6l5E/v60FPSElfjVZ8+nuI6d yfjsjyrm3PMU9QKZwj2uu8iJI0YVX4WnO5FnCOKb+mHzfg8d/WLkk+gbUXWN0adN6rXhh2fjAme /ubd6zZSaW1cTpgxoKSRBQdI94itnPjCR+THe9iqk6I0IEsJTqqYvI9OXCflbC037FhsW7aGsdj T5Y6KbOjwrr8LvzysQ5qLY3K+r+ymav006heCX26iXWuhfTBlhIxJYViWuUe85t1a2/uWZpI2l3 ftQLBvZ2X+WCHaVgJcvJbuuN15Trf0J4EuZvnbjb7WR+gNF/4MRKd3lLxAGN0GFvLXqQipLqYaT U0H0KGQdVCyAv08TpmxpIlVyAaPKH4oBl/XwDizboL+hP7R2+l5//CCxWL9E6A== X-Received: by 2002:a17:90b:4c4d:b0:3a8:59d3:5317 with SMTP id 98e67ed59e1d1-3b5e067af58mr1074367a91.32.1796374697712; Fri, 04 Dec 2026 00:58:17 -0800 (PST) Received: from [10.1.1.198] ([71.212.222.246]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d10d11sm8426300a91.6.2026.12.04.00.58.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 00:58:16 -0800 (PST) Message-ID: <564c699b-394e-4111-b603-004be2e415e9@gmail.com> Date: Fri, 4 Dec 2026 00:58:15 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/msm/dp: skip the link teardown after a failed enable To: Liviu Nicoara , Thorsten Leemhuis , Simona Vetter , David Airlie Cc: Abhinav Kumar , Dmitry Baryshkov , robin.clark@oss.qualcomm.com, Yongxing Mou , Jessica Zhang , Sean Paul , Marijn Suijten , Dmitry Baryshkov , Xilin Wu , Gianfranco Mariotti , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev References: <20261202131230.26167-1-lnicoara@thinkoid.org> Content-Language: en-US From: Burke Cates In-Reply-To: <20261202131230.26167-1-lnicoara@thinkoid.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Wed, 2 Dec 2026 08:12:30 -0500, Liviu Nicoara wrote: > When the external DP attach fails to enable ctrl_link (-16) during > .atomic_enable() and the connector is then turned off, the unguarded > msm_dp_ctrl_off_link() in msm_dp_display_unprepare() takes an EL1 > synchronous external abort and the machine resets seconds later: Thanks for the report. That failure is in msm_dp_ctrl_on_link(), so .atomic_enable() returns before power_on is set, and with the patch msm_dp_display_unprepare() skips msm_dp_ctrl_off_link() in that case. I expect it to cover your crash. > From the disassembly of msm_dp_ctrl_off_link+0x4c, the faulting > instruction (b9400020: ldr w0, [x1]) is the first REG_DP_MAINLINK_CTRL > read inside msm_dp_ctrl_mainlink_disable(), before DP_SW_RESET is > reached. That answers the question my notes left open: the A16 resets without a log, so I could not tell which access faults. The commit message only mentions the write to REG_DP_MAINLINK_CTRL; if a v2 is wanted, I will say there that the read already faults. > I have not rebuilt with Burke's patch yet, so no Tested-by, just > confirming the regression is live on mainline X1E80100. A Tested-by would help if you find the time. One update to my earlier reply: Gianfranco Mariotti's v3, posted on 2026-12-02, now covers this path too. Its 08/11 adds dp->prepared and returns early from msm_dp_display_unprepare() when the link was never prepared: https://lore.kernel.org/all/20261202234640.9379-9-gianfranco.mariotti94@gmail.com/ That patch is part of an 11-patch series based on msm-next, and sashiko-bot raised an open eDP PHY question on it, so for -rc I think the small fix is the safer choice; 08/11 would then need a trivial rebase. The patch still applies to current mainline and drm-fixes. An AI coding assistant helped check the trees and draft this reply. Thanks, Burke