From patchwork Wed Mar 24 15:00:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 407846 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp484816jai; Wed, 24 Mar 2021 08:00:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6i1LrmOWRIh1EukBgIMHKgeAlSU7R6za0F2qzwyZn3ggK2+ODtj9c9JnYzx/pz5rP5m6g X-Received: by 2002:a63:5f0f:: with SMTP id t15mr3362042pgb.225.1616598049569; Wed, 24 Mar 2021 08:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616598049; cv=none; d=google.com; s=arc-20160816; b=am47gwseliFeWBveUcLyhfTV8Ai/rr8FAsxSWx1ymAyR5F58PaiuTxUoILlImx9TAP RlKMAWCfHVChmui8sqMAG3IEtWtFSMgF3OspZtRp6cI+MLjsGfVXuJf2VfecOaWW+RJq DkqeN5Asoe/g8/cpda0s89tc9xGRumZKX3IBIbYpNQaVSY5/ZMUhHnbmCaRHc5mTyCPn w7Mmo1POMbC2XwiVJUfsoIjkUxAmJ8lvGwW7XOClvW9PI1vPKeRmI7ImPoow8xogER/X 71KqeaTjWmlEpGdbHNLaU+4EQO8YV0IafhPwGByxNx7WjbFH+PJ+nhCj26BxFm6ET7EG 2JaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=fmdc2OuapKarASjIN9t1XMXtN0w2Q7Z3BWPQca3ZdYw=; b=aJ7yu2On4/MrziSJrWLYzsMWdRXg+6cuYoFRE1HuX3oUNI3+f/BaONtV7CNV6NZFet 9gGn7KJb8z3YZO5UpBfJ+pGCpBINGYQIDq7KTkmBzI5emhq/vNHukwsUp0u5DEXwxu4q nW9XrKf3WLd3RcdgZu85skdxzQvZvYgyqS8AxcHaHkNMPi8mAOe5si1T52/dMQA6R4xX YIaRVnk8oIbJOGelqdwMDjMBcf1K97wOizLNt4ncO0ygg1Ms4jr8Tk9ZtNV2URq+HjLz 4o/N7nBuwdtvPSYeXsug45xBYo5jr/HyVBKUG10gqnp/ZXQsgQs/xCeyyHFWSwmNrkg1 2g6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cxYmsvKj; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id w6si2387658plg.218.2021.03.24.08.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 08:00:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cxYmsvKj; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 B1DB16EC56; Wed, 24 Mar 2021 15:00:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by gabe.freedesktop.org (Postfix) with ESMTPS id 085286EC06 for ; Wed, 24 Mar 2021 15:00:41 +0000 (UTC) Received: by mail-lj1-x234.google.com with SMTP id u4so30586893ljo.6 for ; Wed, 24 Mar 2021 08:00:40 -0700 (PDT) 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=AHRJn3HeD8IJU2kEBHlBE7mssbK+pfVkIEgT2l1YUTM=; b=cxYmsvKjXhJjLy3e9DksD1CayKvLvTfTmZH0sVaTZ7cB7jjVCe9KeRuYSijoLFMyKZ X9v9Jp09fef0JVJiKf5rwZLtgN+k+4B14w1RQD0qS8cLZPKxHS3ULBIhUCJ/QG+fSpze I71JnFaX/hjoQsXf4O7PQ6p8u4BelyoJsr5IuKr/Berx4JNttfJvaCKtzRLJHjoG0HHu DSH+qzfRUH7LQr4ODgP2TeWHXBoJhDBWiFE4A2WbF59l6vCZZJC9nmy1Y+TYigEygOdA cdb58TQ0+SfWDyCYYpZEIriXa7mlYz5bBGrR2poKk9ToK62dCcooaoA71ejbqCu9JvaB CRpA== 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=AHRJn3HeD8IJU2kEBHlBE7mssbK+pfVkIEgT2l1YUTM=; b=bGkf05rNazdQV9F26GqGrEx9xT3nUKj+nAlVC0M29kGvQj0wP0pRkie486EwdA0cNu 7HjlgJ8/fUFU4lnxayoHX1xt01WSIqLV8X0ROjxgu2xWjg77J2liRgHy9pgCPdbwk1Wq LkDcFFYISJFclQga+hlRm+45QkkIe8gX9KPvAb3+N4/R6uysHeoyJlM8stNH6B46xnSM SHoHmUFI+DbYJ/PY+eeMa0BCti7ohld7JmQXDmpu/SrSThQNLj5h2Wsf7MFcdzy5h85A hjb7XWoKMxMTVLQ1YcBKSf8zOMYLftSJtYjW6PnPxMGK9y5E9tqWIWvPpEOSBDGzN3Y6 tsRA== X-Gm-Message-State: AOAM531gWgORDMHeDbTVMwIa6NI/2p84bVe8wEoTlDJeBsA1KfBgNfRM F3fFBVGMO26bjKi9Q56a3CimXFkM9ezIhQ== X-Received: by 2002:a2e:b0d4:: with SMTP id g20mr2400673ljl.127.1616598039471; Wed, 24 Mar 2021 08:00:39 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id p5sm252463lfe.154.2021.03.24.08.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 08:00:38 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Jonathan Marek Subject: [PATCH 07/21] drm/msm/dpu: drop unused lm_max_width from RM Date: Wed, 24 Mar 2021 18:00:10 +0300 Message-Id: <20210324150024.2768215-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210324150024.2768215-1-dmitry.baryshkov@linaro.org> References: <20210324150024.2768215-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" No code uses lm_max_width from resource manager, so drop it. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 12 ------------ drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 4 ---- 2 files changed, 16 deletions(-) -- 2.30.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c index 7792dff60bcd..dbcf4929810b 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c @@ -134,18 +134,6 @@ int dpu_rm_init(struct dpu_rm *rm, goto fail; } rm->mixer_blks[lm->id - LM_0] = &hw->base; - - if (!rm->lm_max_width) { - rm->lm_max_width = lm->sblk->maxwidth; - } else if (rm->lm_max_width != lm->sblk->maxwidth) { - /* - * Don't expect to have hw where lm max widths differ. - * If found, take the min. - */ - DPU_ERROR("unsupported: lm maxwidth differs\n"); - if (rm->lm_max_width > lm->sblk->maxwidth) - rm->lm_max_width = lm->sblk->maxwidth; - } } return 0; diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h index a618c0ef43db..3f68a1c0dc1e 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h @@ -18,15 +18,11 @@ struct dpu_global_state; * @mixer_blks: array of layer mixer hardware resources * @ctl_blks: array of ctl hardware resources * @intf_blks: array of intf hardware resources - * @lm_max_width: cached layer mixer maximum width - * @rm_lock: resource manager mutex */ struct dpu_rm { struct dpu_hw_blk *mixer_blks[LM_MAX - LM_0]; struct dpu_hw_blk *ctl_blks[CTL_MAX - CTL_0]; struct dpu_hw_blk *intf_blks[INTF_MAX - INTF_0]; - - uint32_t lm_max_width; }; struct dpu_kms;