From patchwork Wed Mar 10 21:47:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 12129499 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D81DC433DB for ; Wed, 10 Mar 2021 21:48:57 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2F86264FAB for ; Wed, 10 Mar 2021 21:48:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2F86264FAB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=poorly.run Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D1F66E3AA; Wed, 10 Mar 2021 21:48:53 +0000 (UTC) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by gabe.freedesktop.org (Postfix) with ESMTPS id F104B6E16D for ; Wed, 10 Mar 2021 21:48:51 +0000 (UTC) Received: by mail-qt1-x82f.google.com with SMTP id o1so14247029qta.13 for ; Wed, 10 Mar 2021 13:48:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4M0snmyFx3hntMnqGoLjjCIdkC5MkJRcZ5aksVvCkcs=; b=A058PlQjS8f+i8KgiZvSCdvzp+QM7sPi1eemy7DArrEpjqqW1X/jOjfqIDfdbN8DTk YQ5+yx/C2ecIGPeAdNZntmf4uAaJTz9TbMlIBE/3ymyS5AMZMXRPKqqt0O8cDoDIV6NG T2xsBwgIYc3t9PIrJiZ5f9McK+bYNl0zs3Hhx8JkdU/xpsUdHqAfvGZdStUh+GOLTehp K4wi4VwavZxAJKsGpyeP0xrnGr/jpU5iZxreJDmLoYanGhWoAXG0YoiGUlSa5eeqbTqc QYxLajJs7U0c8ahKJ+yTRPoaVoDe7+MMpsMC1jMdHpBJNJeBWD22jfp48KmCBDR/B/rX rG4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4M0snmyFx3hntMnqGoLjjCIdkC5MkJRcZ5aksVvCkcs=; b=iV2vq82hNHbZ8hPHlkToVY0Pli2jsm7pCXd8yYbmyeGbVIwLyxV9X2YDQEW2md5any MbiTboT+CBoQDiyNdylRPvbZsUQhPFKf4AEC1QmG6nYWcQAx+pEguUXb/gVSHw53nPXd QULnI/LiR5v1S1PaSpcT3yMAsAE8otiyO629n3nTsUvH7vV8kMgdjgMnd0I2iA4HbogQ Ogtv9ta1PxxjtUwaSs4pbKholmEsU5gGCmCC75dJix6LLSZM2e+DVBExCuU4icuWDwQm qCDVN50Vti/gmEpqqAMKWVf+yq3MyckAXPIxsu9e6OJrezptvfls/k6b3KVrRQ2UW6Y+ pDXg== X-Gm-Message-State: AOAM530EprJ1fhmNFPmIsIsEw6NCCW8mZ8UsaLTQVn0CjmOyJz+bek21 /8JNJG1/4LVDdAI/DWqARWqf0yN0yRzf9A== X-Google-Smtp-Source: ABdhPJyHY89MsBP5lyi4K4qxKFlHW+zevtUyAzkwMzPyPaWqSKFasX65M7E8uIZXZyDYY7CWqrUKBA== X-Received: by 2002:ac8:1413:: with SMTP id k19mr4627017qtj.379.1615412930888; Wed, 10 Mar 2021 13:48:50 -0800 (PST) Received: from localhost ([172.58.155.143]) by smtp.gmail.com with ESMTPSA id s19sm456801qks.130.2021.03.10.13.48.50 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Mar 2021 13:48:50 -0800 (PST) From: Sean Paul To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Wed, 10 Mar 2021 16:47:56 -0500 Message-Id: <20210310214845.29021-1-sean@poorly.run> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 1/2] drm/i915/dp_link_training: Add newlines to debug messages X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sean Paul Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Sean Paul This patch adds some newlines which are missing from debug messages. This will prevent logs from being stacked up in dmesg. Signed-off-by: Sean Paul Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp_link_training.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c index 892d7db7d94f..ad02d493ec16 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c +++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c @@ -29,7 +29,7 @@ static void intel_dp_dump_link_status(const u8 link_status[DP_LINK_STATUS_SIZE]) { - DRM_DEBUG_KMS("ln0_1:0x%x ln2_3:0x%x align:0x%x sink:0x%x adj_req0_1:0x%x adj_req2_3:0x%x", + DRM_DEBUG_KMS("ln0_1:0x%x ln2_3:0x%x align:0x%x sink:0x%x adj_req0_1:0x%x adj_req2_3:0x%x\n", link_status[0], link_status[1], link_status[2], link_status[3], link_status[4], link_status[5]); } @@ -731,7 +731,7 @@ intel_dp_link_train_phy(struct intel_dp *intel_dp, out: drm_dbg_kms(&dp_to_i915(intel_dp)->drm, - "[CONNECTOR:%d:%s] Link Training %s at link rate = %d, lane count = %d, at %s", + "[CONNECTOR:%d:%s] Link Training %s at link rate = %d, lane count = %d, at %s\n", intel_connector->base.base.id, intel_connector->base.name, ret ? "passed" : "failed", From patchwork Wed Mar 10 21:47:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 12129501 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78B6CC433E0 for ; Wed, 10 Mar 2021 21:49:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 35FCB64E27 for ; Wed, 10 Mar 2021 21:49:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 35FCB64E27 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=poorly.run Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D23DE6E3AC; Wed, 10 Mar 2021 21:49:07 +0000 (UTC) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by gabe.freedesktop.org (Postfix) with ESMTPS id B4B3B6EA6B for ; Wed, 10 Mar 2021 21:49:06 +0000 (UTC) Received: by mail-qv1-xf2e.google.com with SMTP id 30so1595492qva.9 for ; Wed, 10 Mar 2021 13:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QEd5AsA5xg18eVkLGLl1ZQeCR2oZqmgoHrlt2YFADVM=; b=TSm1Aof5H44JIYwWrR5poEzpmEUdulZ0a0a+yJfZJv0fnNS8/uW1B6RJWyiXYGHj0P 4kA5j0l62xNPC5ghGmVMoTZI9GJOoj0bsaLucnlV1UXcRt2h9uxREgwW1quyj2EnWa4j UGuOrR7NeMHXxim7do+7QPgGxs5IGC7PgsnfffbuZhymIYDFPkAmQi4wU5VfbUftKvIL GebztBkmh2rFMtLsm/g5uptsQW5vVlky6d2Kl216jhW0PFlu1NUCeT0E7nA9H5FDhUgd oWAm70QgbyNa0wPc49RHx7xd5hBG4+8AG4KHm7pnkjtZeFknGTG9DKk/YbaY3cEUfQLU 3U3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QEd5AsA5xg18eVkLGLl1ZQeCR2oZqmgoHrlt2YFADVM=; b=qJylgw7lgv74gjy06n3jbOMufbpk50SkIecwz+O12S7d30AAGRdj2/lcaGyNjWYZ2y x63IMDelZ1gj4tjNrnsKHejMGE6bfgtSO2lb6jxkGITm+daxXnz2LgHe8mxdO8PVmKnX 7CNEwEilPIToLbnjZ9met1kDW+HIB2S77UqLtcmSUeBAO2kM7c4mDxb3eNDDAKe05dj8 sFj3M0pTnf9wXJbK+eiLIBlVvqD8RFBtHK6w5l4kALwY2OWeOdhlp82RXiw3j75ZMiDT JxCJUMxMzqrixdyoD4UHahFODmi5pyFROb7li9r3VdnB1bMDUWcjshn7oTGXD2EF/1tn 6H8A== X-Gm-Message-State: AOAM533x9uIi1P+mAJ0Fqzz0JqfqE8RVIMkcroye7qfcWyzXmBJyTh1L lktJ/Q8+rn6Nf/19xnV81Sg6iWveG4NnpA== X-Google-Smtp-Source: ABdhPJzQXO4kE3VQdkvVOwo/o1DDoChi4gZkl7dHDwEGtnHOUlIMQD16l7a194B1N1dIXu+9uvDo/Q== X-Received: by 2002:a05:6214:2464:: with SMTP id im4mr4873762qvb.61.1615412945747; Wed, 10 Mar 2021 13:49:05 -0800 (PST) Received: from localhost ([172.58.155.143]) by smtp.gmail.com with ESMTPSA id c125sm482464qke.117.2021.03.10.13.49.05 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Mar 2021 13:49:05 -0800 (PST) From: Sean Paul To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Wed, 10 Mar 2021 16:47:57 -0500 Message-Id: <20210310214845.29021-2-sean@poorly.run> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210310214845.29021-1-sean@poorly.run> References: <20210310214845.29021-1-sean@poorly.run> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 2/2] drm/i915/dp_link_training: Convert DRM_DEBUG_KMS to drm_dbg_kms X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sean Paul Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Sean Paul One instance of DRM_DEBUG_KMS was leftover in dp_link_training, convert it to the new shiny. Signed-off-by: Sean Paul Reviewed-by: Ville Syrjälä --- .../gpu/drm/i915/display/intel_dp_link_training.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c index ad02d493ec16..19ba7c7cbaab 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c +++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c @@ -26,12 +26,13 @@ #include "intel_dp_link_training.h" static void -intel_dp_dump_link_status(const u8 link_status[DP_LINK_STATUS_SIZE]) +intel_dp_dump_link_status(struct drm_device *drm, + const u8 link_status[DP_LINK_STATUS_SIZE]) { - - DRM_DEBUG_KMS("ln0_1:0x%x ln2_3:0x%x align:0x%x sink:0x%x adj_req0_1:0x%x adj_req2_3:0x%x\n", - link_status[0], link_status[1], link_status[2], - link_status[3], link_status[4], link_status[5]); + drm_dbg_kms(drm, + "ln0_1:0x%x ln2_3:0x%x align:0x%x sink:0x%x adj_req0_1:0x%x adj_req2_3:0x%x\n", + link_status[0], link_status[1], link_status[2], + link_status[3], link_status[4], link_status[5]); } static void intel_dp_reset_lttpr_count(struct intel_dp *intel_dp) @@ -642,7 +643,7 @@ intel_dp_link_training_channel_equalization(struct intel_dp *intel_dp, /* Make sure clock is still ok */ if (!drm_dp_clock_recovery_ok(link_status, crtc_state->lane_count)) { - intel_dp_dump_link_status(link_status); + intel_dp_dump_link_status(&i915->drm, link_status); drm_dbg_kms(&i915->drm, "Clock recovery check failed, cannot " "continue channel equalization\n"); @@ -669,7 +670,7 @@ intel_dp_link_training_channel_equalization(struct intel_dp *intel_dp, /* Try 5 times, else fail and try at lower BW */ if (tries == 5) { - intel_dp_dump_link_status(link_status); + intel_dp_dump_link_status(&i915->drm, link_status); drm_dbg_kms(&i915->drm, "Channel equalization failed 5 times\n"); }