Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1848445pxb; Thu, 16 Sep 2021 17:48:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTAS/azG+J+vsFJ8uvaciNWtu1G2ApYB+q+zIQV1yL1qD3cOZ9jSHTo3SfnF7EA20ZuX8s X-Received: by 2002:a17:906:504:: with SMTP id j4mr9021089eja.245.1631839699955; Thu, 16 Sep 2021 17:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631839699; cv=none; d=google.com; s=arc-20160816; b=J5lgnt4qcHwv0zR9ND3CfNn/swsP/Z/FpSqKcv4AHUCoH5jEOULuJ0TCtzWSeR8z3O AMqx8983dlKCT/nGsYNRDRHjG25IiDsT6sD4OSqiQlFwMQC2XwpZztATt/w4FHE7FXl+ LU2tjdFV9bc0uoOZh7TNiUY63z2qTtbusGe4toVJzLvgwfrj3NPSdJ2Mh60afrHjxjuJ 0UvJ1TRvi4J5u7zP26gYmAG5ejbxtJgahUobkroyq8+A64h2F6pdECD6cSC3baWqaP59 qvDbERlDCssckqBoyWh5Xx0LfnwihAIa/nipQ92N1G6XFH1q/D7PXk47jdgXcR2b2cao o0Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2JMuShUQgwQ11WhFb2MfF9GgqljQ/6oGqUn1Z+SGo2c=; b=U/gfF/qTZRDZfZqS/+Dcf7WDdl9X7drqTCxs338aKbZeufWtYsCTS7Jozs5xlnDYPP zAHzeIdsEzUMGkvb21cp+wXEWquk+ND66jkl/jsYW3M428nTRDH40IfRlDIjdE7NSoKj aQu6MdkW/miERC+jFmdN1eEPey/a62Cqrk/ABzUyYetD+knglELnn8ztXM/7BiDwqo2l 6porkWFQ/8Gx7djw2Mf7z64AEuofb8VhNqiMnU9QH93GARB0kmdKuV2hEJLR7KsgNEZV +13HfIYcqewhvYGnzdYCSXP7kK99ti4wq9kWR7oCIyYXO0m9ZfuOq4Lm9xiKMtcRrK2Q y5JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=T02h9dY7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si5214293edy.412.2021.09.16.17.47.55; Thu, 16 Sep 2021 17:48:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=T02h9dY7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344634AbhIPRKL (ORCPT + 99 others); Thu, 16 Sep 2021 13:10:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:34074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348558AbhIPRDB (ORCPT ); Thu, 16 Sep 2021 13:03:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9A73961246; Thu, 16 Sep 2021 16:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810044; bh=xE+/88MThaiYcrNdODqf4LqOpUydzK6zL+2gdM84GW4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T02h9dY7f5HQLZdLeQQdSsa4CSUfBr9t0gsuKT4QSHdGc5ZdNxk/f8FC/p03i+pqR tyccFZqxy/RjAVQwsJdy3tqjnVI+tM+HEr1VwICAo82ia3P8FmQaskVOFEo0JdiO1n +Krlde8dEOWIQvUv2xIaFaYg7oVo7GiQPrrw7BK0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kalyan Thota , Dmitry Baryshkov , Rob Clark , Sai Prakash Ranjan Subject: [PATCH 5.13 377/380] drm/msm/disp/dpu1: add safe lut config in dpu driver Date: Thu, 16 Sep 2021 18:02:14 +0200 Message-Id: <20210916155816.871353095@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kalyan Thota commit 5bccb945f38b2aff334619b23b50bb0a6a9995a5 upstream. Add safe lut configuration for all the targets in dpu driver as per QOS recommendation. Issue reported on SC7280: With wait-for-safe feature in smmu enabled, RT client buffer levels are checked to be safe before smmu invalidation. Since display was always set to unsafe it was delaying the invalidaiton process thus impacting the performance on NRT clients such as eMMC and NVMe. Validated this change on SC7280, With this change eMMC performance has improved significantly. Changes in v2: - Add fixes tag (Sai) - CC stable kernel (Dimtry) Changes in v3: - Correct fixes tag with appropriate hash (stephen) - Resend patch adding reviewed by tag - Resend patch adding correct format for pushing into stable tree (Greg) Fixes: 591e34a091d1 ("drm/msm/disp/dpu1: add support for display for SC7280 target") Cc: stable@vger.kernel.org Signed-off-by: Kalyan Thota Reviewed-by: Dmitry Baryshkov Tested-by: Sai Prakash Ranjan (sc7280, sc7180) Link: https://lore.kernel.org/r/1628070028-2616-1-git-send-email-kalyan_t@codeaurora.org Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -902,6 +902,7 @@ static const struct dpu_perf_cfg sdm845_ .amortizable_threshold = 25, .min_prefill_lines = 24, .danger_lut_tbl = {0xf, 0xffff, 0x0}, + .safe_lut_tbl = {0xfff0, 0xf000, 0xffff}, .qos_lut_tbl = { {.nentry = ARRAY_SIZE(sdm845_qos_linear), .entries = sdm845_qos_linear @@ -929,6 +930,7 @@ static const struct dpu_perf_cfg sc7180_ .min_dram_ib = 1600000, .min_prefill_lines = 24, .danger_lut_tbl = {0xff, 0xffff, 0x0}, + .safe_lut_tbl = {0xfff0, 0xff00, 0xffff}, .qos_lut_tbl = { {.nentry = ARRAY_SIZE(sc7180_qos_linear), .entries = sc7180_qos_linear @@ -956,6 +958,7 @@ static const struct dpu_perf_cfg sm8150_ .min_dram_ib = 800000, .min_prefill_lines = 24, .danger_lut_tbl = {0xf, 0xffff, 0x0}, + .safe_lut_tbl = {0xfff8, 0xf000, 0xffff}, .qos_lut_tbl = { {.nentry = ARRAY_SIZE(sm8150_qos_linear), .entries = sm8150_qos_linear @@ -984,6 +987,7 @@ static const struct dpu_perf_cfg sm8250_ .min_dram_ib = 800000, .min_prefill_lines = 35, .danger_lut_tbl = {0xf, 0xffff, 0x0}, + .safe_lut_tbl = {0xfff0, 0xff00, 0xffff}, .qos_lut_tbl = { {.nentry = ARRAY_SIZE(sc7180_qos_linear), .entries = sc7180_qos_linear @@ -1012,6 +1016,7 @@ static const struct dpu_perf_cfg sc7280_ .min_dram_ib = 1600000, .min_prefill_lines = 24, .danger_lut_tbl = {0xffff, 0xffff, 0x0}, + .safe_lut_tbl = {0xff00, 0xff00, 0xffff}, .qos_lut_tbl = { {.nentry = ARRAY_SIZE(sc7180_qos_macrotile), .entries = sc7180_qos_macrotile