Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3122470rwb; Mon, 15 Aug 2022 18:40:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Q4AF8cj8cITDQ/sCw7UATXNrz7Ln1G5rUEt70HXaKFJ89Isdj23sqmePOVMZhAw3qmVWg X-Received: by 2002:a05:6402:50c9:b0:43e:42b0:f84a with SMTP id h9-20020a05640250c900b0043e42b0f84amr16792561edb.72.1660614040477; Mon, 15 Aug 2022 18:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660614040; cv=none; d=google.com; s=arc-20160816; b=bF0wK6TGEeoyYjz4H21PvLIHDz04kPrxlKQwPGddpAG4aOJMkCdG9QqiUdpX2jmzpt ZBi1BO/MmJDrcdFpMqLnPDpLFox4ZqjssHf2KGrzoCmqsWk6Y0zfNevs/FQdjOO8IdYF hlalAusKcaTG4IU/YCyOTd9+4n7ooePYB2NOZSH88rN4y5sRLcNz3KC/zCYbTpaH6QEB OsPT/nGLqXRwB0dvEXojYEjqNM3jM8wQEhkqmaQkwzYdNXpWTmgX9Wg4t8NztU04i3wf wlsaZ53ax70qg0ECqa6mLPZtlArkre4fEJMSPMyv9t47SROK0jO9ItzBFeQ/sC0+/W1H xtMQ== 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=f1JgxOa/M3LvFiYdiZPGBQVN1r6AqAWCnmOZ1Ko5OIo=; b=liYbLdCRC/vkSwqwoTOchfspHg8W+/PffZ0yFefUZk9dVe8PLrhpb5UrG7NQesJfm4 4mPBtGdH9j478BqB/6NdS1M3XKgkQTzeRnI4JTlum9kxx/5gWAmF1phurg/u3H2m1uY6 mbrCvC2+GP7IeVP7QSppUNP1nDGgEGA9fzuNycqxtrFwkTEAdEWfUGdxAjxJk7Nq5myL 0htuVs9BRTwtMdu5Bkjy2914XDwB9+O2lG7QAB5b3ksLors0pxDo/itdgjY0gWJL0H22 py6SK4uo//CQy+9G76sMCb/SfWuBBRSGTJibqL44E28ZJKeDPyuquASFluWyD2un3y5p hqmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mP2NhYVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a056402084800b0043defd3ed96si11073932edz.237.2022.08.15.18.40.15; Mon, 15 Aug 2022 18:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mP2NhYVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1354611AbiHOXsz (ORCPT + 99 others); Mon, 15 Aug 2022 19:48:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354539AbiHOXmY (ORCPT ); Mon, 15 Aug 2022 19:42:24 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3F4A49B7B; Mon, 15 Aug 2022 13:13:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id C1F07CE1262; Mon, 15 Aug 2022 20:13:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5208C433C1; Mon, 15 Aug 2022 20:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594416; bh=ltOldmr4MWN325/ydtP+kHo/ym5G4Awzre5cMSNIyXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mP2NhYVC8yzrk/iieuJrKKSYc4CLxs85/Hu2Z5YKIMFg6QDHrEYUGDNiRETQmBNn5 aKfkvxMqri9uVU9zOwLn3EJHfQnjCSSiiTgAobNsdR04XGh7vXq7YD5SfzKZcUAFZr y0nrPu0I1rGvqkMGdUCT/+pJdycnXuLk4WrED0vs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Abhinav Kumar , Dmitry Baryshkov , Sasha Levin Subject: [PATCH 5.19 0438/1157] drm/msm/dpu: remove hard-coded linewidth limit for writeback Date: Mon, 15 Aug 2022 19:56:34 +0200 Message-Id: <20220815180457.156506873@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Abhinav Kumar [ Upstream commit 4edea8d305873336a626c5f4ce17cb8751059054 ] Remove the hard-coded limit for writeback and lets start using the one from catalog instead. changes in v3: - correct the Fixes tag Fixes: d7d0e73f7de3 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback") Signed-off-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/489888/ Link: https://lore.kernel.org/r/1655406084-17407-3-git-send-email-quic_abhinavk@quicinc.com Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c index 0ec809ab06e7..15919e1a8dc3 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c @@ -20,8 +20,6 @@ #include "dpu_crtc.h" #include "disp/msm_disp_snapshot.h" -#define DEFAULT_MAX_WRITEBACK_WIDTH 2048 - #define to_dpu_encoder_phys_wb(x) \ container_of(x, struct dpu_encoder_phys_wb, base) @@ -278,9 +276,9 @@ static int dpu_encoder_phys_wb_atomic_check( DPU_ERROR("invalid fb h=%d, mode h=%d\n", fb->height, mode->vdisplay); return -EINVAL; - } else if (fb->width > DEFAULT_MAX_WRITEBACK_WIDTH) { + } else if (fb->width > phys_enc->hw_wb->caps->maxlinewidth) { DPU_ERROR("invalid fb w=%d, maxlinewidth=%u\n", - fb->width, DEFAULT_MAX_WRITEBACK_WIDTH); + fb->width, phys_enc->hw_wb->caps->maxlinewidth); return -EINVAL; } -- 2.35.1