Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1410563lql; Tue, 12 Mar 2024 17:14:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUT/v21zwcXd7gS30UIO0mWtF72NA/4nh4iClaiAQuQcb73kVvgrjxifuHwyqmZKj0NcixgZUL48WD9KZyVV7L3jsa0bgz2AykcSBFFVw== X-Google-Smtp-Source: AGHT+IF7rlZ4m1nrlFwMBZUOwaxbK8TAA7MKme+g5lL98kYvLQ5wIDVTX3LAP2TVsEA8yIXU8Ofy X-Received: by 2002:a2e:b8cb:0:b0:2d3:22de:1e4d with SMTP id s11-20020a2eb8cb000000b002d322de1e4dmr8698668ljp.38.1710288848890; Tue, 12 Mar 2024 17:14:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710288848; cv=pass; d=google.com; s=arc-20160816; b=kxr4CGkxWCZezEpvEQMWBQ6o3SXSqGqNLoARLf0xBcAtNkowXAAgdLR8yA0gKz13og Cb9fR+hwsh6Kgslqnvu/TPs+rBOYkN0fjTZLcnpbq8AAs4wZfs5MJZkQr1fgyLeoPHdI 0tNMmU7MNAStnq50BO77StC9aSf4H4uCrrLgqwcg4r8AR26NsasamlqhKQVNwQVQpdYy rnSI0rFJBD1NEdBvH7x6AQwPnfTlQLiOlOp++sGbkut0WSzc2DsxCUFIekp+gTc6PjBw qKdSpesloUtLHIPd41fCQTGZJlCiJqPijTw4hR8sAXOA+/2d0cI2/AqRYSLuRsZtccFg LTuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=roioUGnaxY6AvjIUwtL2u9LanxRAGecYCXou90dLIu4=; fh=g5F6Dy0CAmSrJ+dXIX2ajKpJma8g+G+A/vPEuTXr3Xw=; b=fqTuFXKSqc8syVcMpRo2E1Rh2HFYUncAOhX8/Ce8lLSr8hhSOB0vKUP3QQtcmkpFhr Tqc82qpW8wKosGxB3tCaW6nT/ljz5t9CXl8w+ndusQLTgpPRAz0V/9LryXkCgUIzktXb bCvUez97xCq0sQQo0KNAAxLY8GRl1c5ZXrAPDOg829Pa8PK78je4o9BTkmryrIIg2udf AHNTAjqS6lynC2Synf4tYKzA/Y8Wffj8NW6IYZ5ZIawpAaU5ygLqXzOZkzs0qcrLsgxa W7aV1tgZd0Yr1YxoHEXRsgB5Qm14DrcFOhgNQoumCWPE6/Hp1N8h+U+sgjMgVpyF76Nq NnRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="N/gaq8L0"; 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-100955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dz11-20020a0564021d4b00b00566b0a1db0bsi3926661edb.304.2024.03.12.17.14.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 17:14:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="N/gaq8L0"; 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-100955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100955-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8FCD11F2335F for ; Wed, 13 Mar 2024 00:14:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21AC833F9; Wed, 13 Mar 2024 00:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="N/gaq8L0" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 CEEFA2F30 for ; Wed, 13 Mar 2024 00:13:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710288839; cv=none; b=btf+cTqAwR0UKp3Gtb+4nWC7jiQrgahDqJ+tdexjCG7mE5OC+JnINemJiXhw+4UmDJCNGjxE9hha0248ETAJVu+nPafX0QFFYwhR0tuZ8Vcs03duVYN1KF6XkM1Znk7VQgZTY8Kmq7wfJQ7cbyYAAWcBGduCDi/lTY2857EJ0Ss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710288839; c=relaxed/simple; bh=rwYPXCtiTeR6fKvXaEuMTY9ji0JXdvlkZcS1H9kz3t8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XcYm/wUUZJ9LknJMi5+b6w0vR+45rY7USX8iJ2Nn4TP1sSe2njQRCmzqY5iwbxF4JxCvXg2BEAHEh/MAYcj6J0iV6Wbg7yuHiQH8ekvhdE9Auv+wW9flg5SxRDCTbNSwAuoP567dgfg5FvTx1z+91bsOWWXEFCgwdu2qcS8hNgI= 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=N/gaq8L0; arc=none smtp.client-ip=209.85.214.173 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-pl1-f173.google.com with SMTP id d9443c01a7336-1dc5d0162bcso36596805ad.0 for ; Tue, 12 Mar 2024 17:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710288837; x=1710893637; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=roioUGnaxY6AvjIUwtL2u9LanxRAGecYCXou90dLIu4=; b=N/gaq8L0nEqVztaZuE8HD11lCC8W0BIiRjGFerOI77j/VsotfBRKTJEFc4EqsCcKnD T/xSs32IyZNipsKewQQAydMKtf8K/z3cqA0O2wj5MvOraI3DDwsYKwSAc3HDDbtMw/4y +zm/tDipykRSMzqOfuI2PikAuVSz3W/MckL7o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710288837; x=1710893637; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=roioUGnaxY6AvjIUwtL2u9LanxRAGecYCXou90dLIu4=; b=egyHGxKZ/Jqo0VKRWfOdGeDw9at9BiIvx3W3sD0wWf9+SmwkpXH12I80f3PDmi4Smn Z+eCTT5Qjm1Ua1QSjFNGp+W3cR+ahLRyvqW+bKo+sKqhBdh8pg7BvGYFBpbuRFDrwZT2 QfqflV+jJCuEXxBZIKtGN/lzgGDRX1lNvyGCgLg8iWBWnYXdF9BPGqXPvk8tdL9reLsN PROqvl/u+71uxJoAAsOQ71u/6CnaOZPMD+6GOQsB0uATtG8tw+S4wxHCu1l+R8fj2Qbs oK4Oc3Qt5AHOf1iLmMzIHV5ahThPqrD1PkAeHelsfbVBaIkSWHMUnHsy11ZVTlYAkXwj kQPw== X-Forwarded-Encrypted: i=1; AJvYcCX5jo6L3uPX5/X7C2CVRqxpL3pxx2o8jYpXPBA5Rh9a/gX6fPw+TkT97NOXSGS+FG20KmFybYUyItJZOuoQc/0IuuUL0ykvldIM3c2H X-Gm-Message-State: AOJu0YxkFcy8VRR9do1BBSQ78ns8c6EXOmQJ02Di5vSvxzkucBj9ZxLf ol/bPprErivtYooHbSHC5QZQl6eGlNEQiOjYLTd8p0Q289nNNlq3Om/9yKeMHA== X-Received: by 2002:a17:902:c947:b0:1dd:8daf:99b2 with SMTP id i7-20020a170902c94700b001dd8daf99b2mr9535150pla.13.1710288837058; Tue, 12 Mar 2024 17:13:57 -0700 (PDT) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:f8dd:895c:e876:6edb]) by smtp.gmail.com with ESMTPSA id x8-20020a170902a38800b001dd761faec3sm7432924pla.251.2024.03.12.17.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 17:13:56 -0700 (PDT) From: Douglas Anderson To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov Cc: Douglas Anderson , Bjorn Andersson , Daniel Vetter , David Airlie , Guenter Roeck , Kuogee Hsieh , Marijn Suijten , Sankeerth Billakanti , Sean Paul , Tanmay Shah , Vinod Polimera , dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] drm/msm/dp: Improve DP AUX transfer vs. HPD interactions Date: Tue, 12 Mar 2024 17:13:15 -0700 Message-ID: <20240313001345.2623074-1-dianders@chromium.org> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The main goal of this patch series is to avoid problems running "fwupd" on Qualcomm devices. Right now several of the plugins used with fwupd try talking over all DP AUX busses and this results in a very long timeout on Qualcomm devices. As part of fixing this, I noticed a case where the MSM DP code wasn't respecing the timeout properly when asked to wait for HPD. I also noticed that, now that we've implemented wait_hpd_asserted(), we no longer need the long hardcoded timeout / special cse for eDP in the AUX transfer function. NOTE: I no longer have any hardware setup that uses this driver for eDP so I've only tested the DP case. The eDP changes are straightforward so hopefully there are no problems there. Douglas Anderson (3): drm/msm/dp: Avoid a long timeout for AUX transfer if nothing connected drm/msm/dp: Account for the timeout in wait_hpd_asserted() callback drm/msm/dp: Delete the old 500 ms wait for eDP HPD in aux transfer drivers/gpu/drm/msm/dp/dp_aux.c | 21 ++++++++------------- drivers/gpu/drm/msm/dp/dp_catalog.c | 17 ++++++++++++++--- drivers/gpu/drm/msm/dp/dp_catalog.h | 4 +++- 3 files changed, 25 insertions(+), 17 deletions(-) -- 2.44.0.278.ge034bb2e1d-goog