From patchwork Wed Dec 1 22:26:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 519738 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp901454imb; Wed, 1 Dec 2021 14:26:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxBtMiZ7fab64sp4JvFZDOYkz9eKE51MKHKGCnPOySkxQGvKLo6jVyupCQSx4RKBG5wdaE X-Received: by 2002:a17:90a:ac0b:: with SMTP id o11mr1251118pjq.143.1638397614896; Wed, 01 Dec 2021 14:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638397614; cv=none; d=google.com; s=arc-20160816; b=q0fb+hPBOVZzgqC+4qqv4t3W7g7u0kYfhS/RzVxLFtrMTiutsZcTTqLsOdv+JXIWNe r521hLthoaeTNxa5rSgvZDkIkUFW55dBMUO/2v8orUHqHVBeWOj7SESKmPdkYM5IjdWn INBPwIV5697gyzix0xvXFZMWip1rpcGRXTZv6iTMN1hdzYZM87/dqFj5j4RK0MQTHVXW svW2dpbwhokTOs9XTfezdbqs1X2Sg5U2X6UpxAz83kKsZ8h6mfQbnD75OnC8e0u3ZuVl CS6tWlXUYt52jlqz0CUIJ/lwQTAOKq+89bWaKHaKHR7Z9UJxuBM83hRyN+VOSq4jf46z YJ0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=QyBeyBWo65CT6xBgTBhfrozb0bd0F4LFSrE6RAMpJzI=; b=E0uSwQo4/RoPkF+7kRgf1V2ePF5u4OLUcC3egt6em7gD5w+NUuwUVIA07aULd2PSXD gd2epW4no4gFF29FX0p4W9QogG6LiT7wIo7mryNxvrZ+VU0/Yj42hxlRWzGG37Wmmu9a fFzidN0OaGBSrTdkmgfG7ddHABGjr0ViVfLm2U2EAEzKS7Cztdqgkwpr5bbDNwrBrnKC HPYdnDYqW7an7wL+nEhbf6DKiP6AMF0rP58p+JqtWWKSnJydd7jp+y5kPAhJQQY9O3Yo kad8Qc79xS37pcU/3BNNCB1lXPSXX2E3dDsQ0rzCF+M9sBz+fpTC48oFF61NfqGmiFpr vArw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=sK7eFA3m; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id x7si739241pjv.149.2021.12.01.14.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 14:26:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=sK7eFA3m; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 586D76E8BC; Wed, 1 Dec 2021 22:26:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id C94436E5A1 for ; Wed, 1 Dec 2021 22:26:39 +0000 (UTC) Received: by mail-lj1-x22d.google.com with SMTP id 207so51020373ljf.10 for ; Wed, 01 Dec 2021 14:26:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QyBeyBWo65CT6xBgTBhfrozb0bd0F4LFSrE6RAMpJzI=; b=sK7eFA3m+/qIm4InYAdUjHyflgJOPhbZO0tlnNIjvXk2ys/rqr1BOKT3XPAh/NHoPB +n8pPsvqHQFOH0aLEJhEbX0oroiWtMp1eSv7/Sj/k126jPjoSqTC08BUX8wKrJCAcS8z gdI7sHJ7QRFnhqwXg0czGXLa8wBGaBNmRakIWicAgIJOsgGz2NYfgRRo2JaINCaYZUuE NcqHEnffPSufbrhvCAJgCSsF++f+wstM81yAjFyVu3O00oQGzgQZvi65UNgiFrtlvCDR fxm7lUOSk85c1GTzCQiJewtCqGOLHv8FJc36PUI/6ON1z5J4uaj2MbKcgapsogFYwDLg 5ftg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QyBeyBWo65CT6xBgTBhfrozb0bd0F4LFSrE6RAMpJzI=; b=g5HS7+Ix/gCE2v15t53St0limPxktBuojdTJyziPlp7iI187iPrCOBUuWgavBUyUc+ GvSQEWhklOeid9x/R/k2jXHg/r1b6/Bjpr42joaVGkocea8C5pYWFt5ReH+neJEpSFSC 4xiEWlPGlFk1rs3VkcwqhOuUDsbgHzTytE8Hya57nt+3xYnUHBvYvK8wWF+EIHUglWY7 qYrZ/gtiGdYJpo9cfL4IKiqQaDaFhWMs411ZFMzjyVb6XowBfWDVGfz1MPWtTIpPKn5a TxoM3Bfg/VfRCkJvodbvAQZfL0KT+Ns/Z5B2yu49LTNFw1Ewq4O4nlxJnJt3zrzlTTAM qISg== X-Gm-Message-State: AOAM532uqri3B2NiJaBxNS7kGTaiZf1eJ9C7SgEW17IzP7Ep7qz6YjhF fIqQYw0xpf4GFnmqKJCIe0Yw8g== X-Received: by 2002:a05:651c:1696:: with SMTP id bd22mr8162728ljb.57.1638397598092; Wed, 01 Dec 2021 14:26:38 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id u7sm117004lfs.144.2021.12.01.14.26.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 14:26:37 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Subject: [PATCH v1 2/8] drm/msm/dpu: fix safe status debugfs file Date: Thu, 2 Dec 2021 01:26:27 +0300 Message-Id: <20211201222633.2476780-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211201222633.2476780-1-dmitry.baryshkov@linaro.org> References: <20211201222633.2476780-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 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: Stephen Boyd , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Make safe_status debugfs fs file actually return safe status rather than danger status data. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 259d438bc6e8..e7f0cded2c6b 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -73,8 +73,8 @@ static int _dpu_danger_signal_status(struct seq_file *s, &status); } else { seq_puts(s, "\nSafe signal status:\n"); - if (kms->hw_mdp->ops.get_danger_status) - kms->hw_mdp->ops.get_danger_status(kms->hw_mdp, + if (kms->hw_mdp->ops.get_safe_status) + kms->hw_mdp->ops.get_safe_status(kms->hw_mdp, &status); } pm_runtime_put_sync(&kms->pdev->dev);