Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1180520rdb; Fri, 16 Feb 2024 07:38:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWk+imUU5a0ZYqc3Ewxy6HcijaO+40qGCzAYNBmyDvxb6KmFayeu0clXRk4fjXCElwTdXTJRtYPz2MHPnW3DGD6tIXPmDfXp8Hzo1PtTg== X-Google-Smtp-Source: AGHT+IH168NTUxzEzmcvZYgSoimXEJs+l+EA4bhvlGCNeZ2VJOD7w0uum2NdUWchgaC739uJC43n X-Received: by 2002:a05:6a21:2d0b:b0:19c:8a1a:d9a8 with SMTP id tw11-20020a056a212d0b00b0019c8a1ad9a8mr5566343pzb.42.1708097887689; Fri, 16 Feb 2024 07:38:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708097887; cv=pass; d=google.com; s=arc-20160816; b=RWd3nY20c9MpAs/YacanBIqdNvpQTn6MdVxNNwrEmmnA/kB5NTYs+xqrAHYPF+JKNT 6m1WEAmgiznmEv+DfDh4LXbWvzr/1N0dfmuw50EbpNKkC+pufzeJP/2H5gLzA7nMj0MV FMa+THiHj5CzkyMtxNzocsBGScha60TiVvSNmOFuPM+X8qVlq7+IEk8QGyOb+eAEbhWR 0WgLBc5IZ81rJtTuyCPvYEb6ury99C+Uouy3D7llVAbgbItYJEm7IWotgFn2Op/D7LW9 2chckdXFcM1KaKqa7GhppKUTK/ynIpn3gb9/eJjp8rsKXbWvJW8Y7p5InSsU8OxUD99m 8N5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=zqvzBEiASnSWsOyAXgOzbNtdSKBBKn93ZIiKcXFlZbY=; fh=l48UpTb7bs7zobDLzSunFHXLF3fMQXCTTzajfeREfA0=; b=P94n4Q+n0Y3f5QQFw+31GawQ6vM7w5TYkRVUrnhcVYxw7Ji68wJikZ8/EDXamOFDcv /0NDnHjotMAN6xYxvUSytmWnz3iGRjk8y/ruuOHdgP7UTS8gmkrfcWK7e6IezSiqM4j4 Z/UZKDmtP7uvcFv+Lw6clufu+7R5tx84khn+OwZqIP/2kjJSSzrA4Tg4TLBDTz9pXyr3 ZZXXagvK9V575ejslbaPNXmdmETUWqY48LvB+3RvkUBoX/KWvMXFu4UtULJQTTFCgx5R EbA50RiRV0fmSQks8PT2GIodWfbOleN8FVjQN4mBV/Xl0fTH1XslCzsGHqCq0pw3oyaR 1hzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EN+PO7Ts; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-68881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x31-20020a056a000bdf00b006e102e26ea8si92682pfu.49.2024.02.16.07.38.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:38:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EN+PO7Ts; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-68881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 51FB92827A9 for ; Fri, 16 Feb 2024 15:38:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF72312FF9B; Fri, 16 Feb 2024 15:30:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="EN+PO7Ts" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10BD9146915 for ; Fri, 16 Feb 2024 15:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708097429; cv=none; b=gzR7B4m/Js9Gt6Gh2ZshdYytJvc6lpo1Nm99XSdpilIJtYIhjTtMyLoT+43zfu/Gi8DR/wx4YfylJzaR7PQTBJViJ+VMcfwqk/IL4pGiu3gceiFiN9xqYDD+8jU3iJn6dZc5WGbCBZmAZty3YF7lvb0YqhYk8+S5v8L14KNwH9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708097429; c=relaxed/simple; bh=zqvzBEiASnSWsOyAXgOzbNtdSKBBKn93ZIiKcXFlZbY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fzKQuRIom8dgHt25HZx2PK/cLD7hQLlGvzaCD/s9SrDcUGa11vM3pK0Hss95T7rbiRHCzu7209m45rXVXag/LsrbGn2jyahGbmA76YyZoNlZ0feUyZFJzu897/njxELY8wXLjsORCmopypTSEK4te3SxPhtmT00/l3RS3v9qNDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=EN+PO7Ts; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a26ed1e05c7so298851266b.2 for ; Fri, 16 Feb 2024 07:30:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708097423; x=1708702223; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zqvzBEiASnSWsOyAXgOzbNtdSKBBKn93ZIiKcXFlZbY=; b=EN+PO7TsNVn/CawgaaFLeVZUl8HFMMlMOhl91A2SRr8Wdp7p2G4lPPQ0p82HQtEN4U RCm/1VBEMmnTS290l/pRv94MngNQ8OTEN6EF3iXm80lPHwRo5UyX2AlV7ZoHhv4rPPzG xXGmi2oaSkV8hdJNOWgMdWoz/dXDYmfA6LU6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708097423; x=1708702223; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zqvzBEiASnSWsOyAXgOzbNtdSKBBKn93ZIiKcXFlZbY=; b=lQunlu6WM87MJq1xVvTjvKNJOd06504okjr3hIZ1Lro1+c082+NPUGVfAFuckpbLPI szM+c0Rh7orAvBgs4Gd0Ye4iCjmNhxmt2SKDL14bvpR8FSgOqLoz8FMOk4PUlwPNqCSo wRCgwjMhJ0JYemGi52FbLPD7dYBoKVhZjBdRgkaAbypgBpCIyjJkWrVyFtZ6FSdomkB+ sO8U3yFU8nL4Q5MrTS+2s8LHPXUQ/f2C5fsZfk3uWYKM9sg/GmgJoMlRShMiNWtKcadY GdAYAxLle2rZQMZQiisTqfvRdpcUqH84zZCv8a1ZqSIXDctdG0RPyeBPPORaKe3lJHa/ yFsw== X-Forwarded-Encrypted: i=1; AJvYcCWQD0fXNQM/AY4KDMMNx6sd+Qot/Wyj3l+vth03qmoDc0Ymc/qU1Bqm/rsYvJPyDE3roWflcG/Qz6SU+m6MyORmr7Tr4b3gfaQinBWO X-Gm-Message-State: AOJu0Yx5yk4dEo473xSzrLmGD/jXOUnWhL4cHyT61oHHasX83Kdd15kq 2HQYwTgWR52RbJsD8odA9Y1HXFx+o1wP+qvQhGFU16CXqcm5n88/9baxys4Q+NnVbHUmRoWWRpE G8x68 X-Received: by 2002:a17:906:aecb:b0:a3d:68aa:5e3 with SMTP id me11-20020a170906aecb00b00a3d68aa05e3mr3279972ejb.77.1708097423576; Fri, 16 Feb 2024 07:30:23 -0800 (PST) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com. [209.85.208.42]) by smtp.gmail.com with ESMTPSA id vb7-20020a170907d04700b00a3d23a4e8fdsm46276ejc.90.2024.02.16.07.30.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Feb 2024 07:30:22 -0800 (PST) Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-563dfa4ccdcso10764a12.1 for ; Fri, 16 Feb 2024 07:30:21 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCURGKlNTbnVV4TjHUIAvnkpD2p4xAYS4o2V6DHQO66hyWTAxl+9QYdYEhWR13TqJKT4/SdtnaevOljiOXHu5/w3ROVzT14QZwGeCywk X-Received: by 2002:a50:cd8c:0:b0:562:70d:758 with SMTP id p12-20020a50cd8c000000b00562070d0758mr205798edi.2.1708097421181; Fri, 16 Feb 2024 07:30:21 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240202141109.1.I24277520ac754ea538c9b14578edc94e1df11b48@changeid> <87sf1u58k0.fsf@intel.com> <87frxskef7.fsf@minerva.mail-host-address-is-not-set> In-Reply-To: <87frxskef7.fsf@minerva.mail-host-address-is-not-set> From: Doug Anderson Date: Fri, 16 Feb 2024 07:30:03 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/dp: Don't attempt AUX transfers when eDP panels are not powered To: Javier Martinez Canillas Cc: neil.armstrong@linaro.org, Jani Nikula , Maxime Ripard , Thomas Zimmermann , Maarten Lankhorst , Hsin-Yi Wang , dri-devel@lists.freedesktop.org, eizan@chromium.org, Ankit Nautiyal , Daniel Vetter , David Airlie , Heiner Kallweit , Imre Deak , Jessica Zhang , Sam Ravnborg , Stanislav Lisovskiy , linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Johan Hovold , Steev Klimaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, Feb 16, 2024 at 12:21=E2=80=AFAM Javier Martinez Canillas wrote: > > > The kernel tree we landed on was the v5.15 tree, which is currently > > serving all Qualcomm sc7180-based Chromebooks, all Mediatek 8173 > > Chromebooks and all Mediatek 8186 Chromebooks. There are also a pile > > of x86 Chromebooks running our v5.15 kernel. This code shouldn't > > affect them because (unless I'm mistaken) they don't use the two > > affected panel drivers. In any case, I haven't heard any screams from > > them either. Given my landing plans of "the week of the 26th", this > > still gives another 1.5 weeks for any screams to reach my ears. > > > > ...or are you looking for non-ChromeOS test reports? I'm not sure how > > to encourage those. I suppose sometimes folks at Red Hat end up > > stumbling over similar panel problems to those of us in ChromeOS. > > Maybe +Javier would be interested in providing a Tested-by? > > > > I do have a SC7180 based HP X2 Chromebook and could test your patch (not > today but I could do it early next week), although I haven't followed so > if you could please let me know what exactly do you want me to verify. > > AFAIU the problem is that the fwupd daemon tries to scan DP busses even i= f > the panel is turned off and that's what takes a lot of time (due retries)= , > and your patch makes the driver to bail out immediately ? If that's the > case, I guess that just starting fwupd daemon with an without your patch > while the panel is turned off could be a good test ? Sorry! I wasn't trying to sign you up for extra work. I'm not convinced that any extra verification on a Chromebook is all that valuable since that's pretty covered by the fact that we've already pushed this patch out to real users on Chromebooks. I think Neil was hoping for some confirmation that my patch didn't break someone else's hardware. I think maybe good enough is if you have some type of hardware that uses eDP and that you could verify that my patch does break anything about it? I'm not aware of anyone with extensive DP AUX character device usage. I guess I thought of Javier because I remembered him at least also using fwupd and some of the fwupd plugins try to talk to DP things over the DP AUX character device. If someone is really in a testing mood and wanted to stress the char device, I guess something simple like "hexdump -C /dev/drm_dp_aux*" for whatever eDP AUX is associated with eDP would at least do some reading. You could stress turning the display on and off while doing that with and without my patch. Presumably it will be better (error out more quickly) with my patch. If you wanted to stress the i2c path, you could do something like this (the grep assumes you're using ti-sn65dsi86 as your eDP bridge chip, but hopefully easy to adjust): bus=3D$(i2cdetect -l | grep sn65 | sed 's/i2c-\([0-9]*\).*$/\1/') i2cdump ${bus} 0x50 i That should dump your EDID. Again it should error out quickly when the panel is off after my patch but should start working again when the panel is on. Hmmm, thinking about all the above, I guess there is one case that _could_ be broken by my patch. I really hope not, though. If someone has a panel that's on an always-on rail or on a shared rail with some other device (like the touchscreen) that's keeping the panel power on then without my patch it would be possible to do DP AUX transactions even when the panel was "off" from Linux's point of view. It would have worked mostly due to luck, but now luck will run out and it will stop working. I really hope nobody has userspace that is relying on this, but I suppose it's always possible that somewhere, someone's userspace is. If you are or know of someone who is then please shout. -Doug