Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D21ACC433EF for ; Tue, 22 Feb 2022 21:52:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ABB8A10E7E8; Tue, 22 Feb 2022 21:52:55 +0000 (UTC) Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id BB3EC10E7E8 for ; Tue, 22 Feb 2022 21:52:54 +0000 (UTC) Received: by mail-lj1-x230.google.com with SMTP id v28so14301093ljv.9 for ; Tue, 22 Feb 2022 13:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=DnQVyyMn8RG++Vgl/Pa8NzULdHKj/pUJucwQb5cYs+g=; b=s8yuX9EfwrdMsKsJdaHldrNLwhygAeMsozgvqodkSh6UwTSPwjMUpMOItZE4zbbICi nyl66PhI3+bsqrWnNUMc6Abr3kUid1/cO5/95pY2eC38/+MW60dZx8HuMsrxViYNlK1z CCg4K6PsA+CEt+2ArTHWYJe6w5N8liXkDk5JT0TouKwhyd5/0EOWN2S60MmjbAOFs9wm Jf2WD0lNSpxfxmZp4dFydIGaqJcJot9b1o/LnQZNWNf8zLyb5zpObJgNCOAOnzf7w/RY TuKd9zHJ7sUkv1A8uCo3PLTCG0HtMGHxaFRX8h6MRG1StVcPS0WcthPy2ykUREpUZO+i KEdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=DnQVyyMn8RG++Vgl/Pa8NzULdHKj/pUJucwQb5cYs+g=; b=x9seVG1EBGTyndKjDwf85fZ1GWd4Q9tBH5NXzXw4NgWWmvp3KT+sb257qa79EYRkCT oqqWeNMNNLhOh55UGEoRaUbTVOktZjJ6q7yVJsGPNOvtKDldApznuC16hwFufD059Ca7 E354QI0EtpC3xVYfIPUe+V/VsI7o3GzJ6jk/FmwQeRHyGAQl+eRzoFTnpmtwjVbgc8n2 ezsB3RgEyglhe9fMXRNmF10IVGC18Ri75a/1tLrGa0/b2sG+PmYoDNpi+pIKT0R4sIVa Jeqkdokqoa3pB9+6IQSIDSHqcmmz8a7GSkkljoDmMOawjg0zOl6pOwA4wZ9xeFsHX1t9 HFmA== X-Gm-Message-State: AOAM533BnA5qBd1LGtSlqYDvLnU0kdVeNbytpt/JfgIrAwGYqs+hGUfI PPd2n6fiYrcFPjgWnD2gHzRN4Q== X-Google-Smtp-Source: ABdhPJxpf7TacdvKOq8G88nEdBuaCHZdQKLsTEYszp+u/DF9UoUbIm7a2znK9UJSTxFT+YEjSMKjKw== X-Received: by 2002:a05:651c:12c5:b0:23e:1f55:35b4 with SMTP id 5-20020a05651c12c500b0023e1f5535b4mr18221737lje.58.1645566772827; Tue, 22 Feb 2022 13:52:52 -0800 (PST) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id a7sm1485675lfr.12.2022.02.22.13.52.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Feb 2022 13:52:52 -0800 (PST) Message-ID: <490deb0b-aecb-c4a8-ea02-2c687a8da57b@linaro.org> Date: Wed, 23 Feb 2022 00:52:50 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v2 1/4] drm/msm/dp: Add basic PSR support for eDP Content-Language: en-GB To: Doug Anderson References: <1645455086-9359-1-git-send-email-quic_vpolimer@quicinc.com> <1645455086-9359-2-git-send-email-quic_vpolimer@quicinc.com> From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: quic_kalyant@quicinc.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Sankeerth Billakanti , Sam Ravnborg , Krzysztof Kozlowski , David Airlie , linux-arm-msm , Stephen Boyd , quic_vproddut@quicinc.com, LKML , dri-devel , Vinod Polimera , Rob Herring , Andy Gross , Sean Paul , Thierry Reding , Bjorn Andersson , freedreno Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 23/02/2022 00:32, Doug Anderson wrote: > Hi, > > On Tue, Feb 22, 2022 at 1:23 PM Dmitry Baryshkov > wrote: >> >> On 22/02/2022 22:25, Doug Anderson wrote: >>> Hi, >>> >>> On Mon, Feb 21, 2022 at 7:12 PM Dmitry Baryshkov >>> wrote: >>>> >>>>> +static int dp_link_psr_status(struct dp_link_private *link) >>>>> +{ >>>>> + u8 status[2]; >>>>> + >>>>> + drm_dp_dpcd_read(link->aux, DP_PSR_ERROR_STATUS, status, 2); >>>>> + >>>>> + if (status[0] & DP_PSR_LINK_CRC_ERROR) >>>>> + DRM_ERROR("PSR LINK CRC ERROR\n"); >>>>> + else if (status[0] & DP_PSR_RFB_STORAGE_ERROR) >>>>> + DRM_ERROR("PSR RFB STORAGE ERROR\n"); >>>>> + else if (status[0] & DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR) >>>>> + DRM_ERROR("PSR VSC SDP UNCORRECTABLE ERROR\n"); >>>>> + else if (status[1] & DP_PSR_CAPS_CHANGE) >>>>> + DRM_INFO("PSR Capability Change\n"); >>>> >>>> DRM_DEBUG_DP >>> >>> Not sure I'll have time to go back and review the series, but one >>> thing that caught my eye as this flashed through my inbox is that I >>> think all of these "shouting" are deprecated. It's even officially >>> documented now as of commit d2f0a8afc1be ("UPSTREAM: drm/print: Add >>> deprecation notes to DRM_...() functions"). >> >> Agreed. But not the DRM_INFO too. > > You're saying that DRM_INFO _isn't_ deprecated? I was pretty sure that > it was, too. If not, can you please submit a patch to `drm_print.h` > clarifying since my patch (which folks Acked) marked it as deprecated: It is deprecated > My understanding (also in the description of my patch) was that > DRM_INFO() by itself didn't add much so we should just use the > standard pr_info(). If pr_info() wasn't to your liking then it was > better to do drm_info(drmdev, ...) or drm_info(NULL, ...); I don't think we should get this message at all, unless debugging is enabled. Thus I asked to change DRM_INFO to DEBUG. Regarding your point, I'm fine with either of them. Hopefully when Kuogee's patches are in, we can use drm_dbg_db w/o any issues. -- With best wishes Dmitry