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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2EC6C636D7 for ; Wed, 8 Feb 2023 14:30:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231429AbjBHOa5 (ORCPT ); Wed, 8 Feb 2023 09:30:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231280AbjBHOay (ORCPT ); Wed, 8 Feb 2023 09:30:54 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C48D84480 for ; Wed, 8 Feb 2023 06:30:52 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id gr7so51641612ejb.5 for ; Wed, 08 Feb 2023 06:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xv/iB69rY5MDb5hV5n9uwKuD5gimFsR45T01z2ZZ+d0=; b=fRjJOhiNjdNfSD6yqiiAmA+P6IXUOtpIvMuZNsZPOdJl4VideDYpQIcH7mRY3Pt7nk ESXoz1egOJvuv8e6ZdWiCFGN9GGZenSpnzsU2fMDeSLQiAd9kGW9oukeBQI/ofypfA8b XJlX3GnSlBN4KHxrCpUQ+ioyo7koc+XceoYo35pNQG1FQ5qZG5acAlcgbQcbXCZFnUb+ dKTp07QKU7H9RqoRhhqd+/bKIVrrdCC/3DU4cJtYEq0mGZu8WOcI4Q3pEs4pLUt+r2qu QJQoLp64LFTUDMhShbRh0Dw3xj9D5fW5YQeBO183UpTZJydq4m7cUE3UK5vv2LMtB3lH P2rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xv/iB69rY5MDb5hV5n9uwKuD5gimFsR45T01z2ZZ+d0=; b=mARJ0J0qegF22pzYVp64eKUpdcMkUfotwG6GP/Kdd74wwdOPJMBJ2xCjFtYNj3RUmQ Mk0RMLmcyqDhVLQYCy4ylIoNA5mUtK7ln2doecuny/CPf28pcx71gUC6365XEZjF+e84 upDRyAl+hSmD3jWL3JGTu1QQQJYkDc3nHxhbO14HpOtcNc9b4aqlRncZz0sjQPGcO+Ty 6pvHXYDjL4QZN6RHVsaSk9hPs9L6Za5s7S88ra8gr499LD7hrPpOinwaoi2R4g4+HbJ1 W8uZwaEms0J/mLiSqfVwCxAyN7AZNd9LilUd8hc9Ni7JG3ILrA9fngyBIQUuklK+OzQv rg0Q== X-Gm-Message-State: AO0yUKUInMVt8tfI0ckNKscPXqovxwi6FoY1Ou7g8MeiJFpxegNTCt27 uAfvg+mD9kaotd5oBZuECcegBQ== X-Google-Smtp-Source: AK7set/x2EDXjkMHYEQ6OzaRfTTMLZbpxjwchkhKBdHZQ4ZwIulS4CtS3mq/FdWV0ffPIP835Uo65w== X-Received: by 2002:a17:907:8d6:b0:8aa:1634:ba2a with SMTP id zu22-20020a17090708d600b008aa1634ba2amr5819792ejb.18.1675866651357; Wed, 08 Feb 2023 06:30:51 -0800 (PST) Received: from ?IPV6:2001:14ba:a085:4d00::8a5? (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id lv3-20020a170906bc8300b00883410a786csm8258763ejb.207.2023.02.08.06.30.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Feb 2023 06:30:50 -0800 (PST) Message-ID: Date: Wed, 8 Feb 2023 16:30:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v3 4/4] drm/msm/dpu: reserve the resources on topology change Content-Language: en-GB To: Kalyan Thota , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, robdclark@chromium.org, dianders@chromium.org, swboyd@chromium.org, quic_vpolimer@quicinc.com, quic_abhinavk@quicinc.com, marijn.suijten@somainline.org References: <1675863724-28412-1-git-send-email-quic_kalyant@quicinc.com> <1675863724-28412-5-git-send-email-quic_kalyant@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <1675863724-28412-5-git-send-email-quic_kalyant@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/02/2023 15:42, Kalyan Thota wrote: > Some features like CTM can be enabled dynamically. Release > and reserve the DPU resources whenever a topology change > occurs such that required hw blocks are allocated appropriately. > > Signed-off-by: Kalyan Thota > --- > Changes in v1: > - Avoid mode_set call directly (Dmitry) > > Changes in v2: > - Minor nits (Dmitry) > > Changes in v3: > - avoid unnecessary modeset check call (Dmitry) > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 2 ++ > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 24 +++++++++++++++++++----- > 2 files changed, 21 insertions(+), 5 deletions(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry