Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37654432rwd; Tue, 11 Jul 2023 18:10:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGS2SvZycEYKWAyV7M7VGvy8fWJIagoA0EjKtg17EoDL2p2JiJg1wiPsKzEKJAwdnFeMp1 X-Received: by 2002:a17:90b:1bd0:b0:262:fc42:c7bc with SMTP id oa16-20020a17090b1bd000b00262fc42c7bcmr13808624pjb.32.1689124223269; Tue, 11 Jul 2023 18:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689124223; cv=none; d=google.com; s=arc-20160816; b=d1PHVBV419t0r8QZWBZeoSXAW2Mgljr4klFkV/jbaFf51k+wwfOZJFoYPvIlSYvCBk DhSJYzmh8qn6or0543Wir1b7iYw1pc6kJZI3fPAUWrtQO+ForV9TRrYPhdfLyT4H7LWE QFsM6qlnWP+vMVoEL4XCMdi63vJ8cv7SGE0AQPTJRrVp0EecjGfvZDn88hZRjNbcHR0a jCuFscMxWknRmUaGokcbSZBPjY0Yv0bDeKWbY8a5HnD2gBdycff+P824eha1YuQmCNaN 7ncakhHDQlJCsKgqkf3f3cKmg+lxrbfvJkvM3X1wb96R+umN+nbOCS3amqFD4mYOPX/9 UsIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UIi82mIav50rgl7/i1S6zJ35MB2YBgS4vD10tupyiIM=; fh=mB4qFkP/ID9XUKZ1I8dOv1WUrZ9+bnC9Ndpu79x2BEE=; b=D8QcLDITeSM83UAILXd9qVpjBGiy51rbyvTBAlr1I50huK4bfacGh9mevmdHgp2/xL ptofHSby6H/zkZ1bpipCkT4JoFW39V/fJ7aT2SGV5hZouCZmqorNu9F/eiFYkJpSB/8l EdgFvLawIGzMtmWV9ghsrlTzP3eC2vjoC2rdgnbOq5Cj20spPb6lui5vHW3t409BoUq5 2zqsglRbVES/wElaFArumcnQi06Gk4xwwIQhARV5xCMrCd9dSRaFi4G3/f79HOwa6Om9 NvuqyOktk3c82hXJzBVnr5jwUyFRXjGC6CaG81n6mF3rfOB+GfnLio2RkSSEFVHQ52LC rMTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PMX60v9W; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a17090ad50200b00262d8c82bddsi9641901pju.157.2023.07.11.18.10.11; Tue, 11 Jul 2023 18:10:23 -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=@linaro.org header.s=google header.b=PMX60v9W; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbjGLAhe (ORCPT + 99 others); Tue, 11 Jul 2023 20:37:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbjGLAhd (ORCPT ); Tue, 11 Jul 2023 20:37:33 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 625F9BF for ; Tue, 11 Jul 2023 17:37:32 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b708e49059so99855851fa.3 for ; Tue, 11 Jul 2023 17:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689122250; x=1691714250; 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=UIi82mIav50rgl7/i1S6zJ35MB2YBgS4vD10tupyiIM=; b=PMX60v9Wj4yVzlU7csKWO8NovlgC1PmkVLLiEJVDHC6MSuQz9p2Y+P2trZTa2umiEe 44r3S9irSJmOOxPFL3XPujI6CP/1adARtpT2FcKr2hmP7l0+hS8BPxHNeRvA2ZW5tPRt 27u6LPMN5CGsBVKslfhCvtK3SBgrE+qLQ8Qvrb+9VSSSaV7ZAxjoRAblWPmCn0EWet8f q5TpqOB4ZLkgRwDnIoLMFVhv8Wt3pf96B03wbPspp8ZA+WJ148cYG/jqrB6vqjREOmIT /hJcWhK0MyVg8/DgeZs5JVKRIkna2aqyazlKDk3Bbrwc3D7VD8lhHfbnan1OqlDKlQOc ZIEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689122250; x=1691714250; 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=UIi82mIav50rgl7/i1S6zJ35MB2YBgS4vD10tupyiIM=; b=eM5xL/QLEfRn3JD+DDZZ44CMk5MCJNI5Catzl/OqCEmDGxggIhqQj7aQOYytrJSyBk F+gMJr6wRVZTzgCDOwZ06oxx26U7aJ76HtOXoMWeCiReQENMt9tzCVo69RCnarNI2W3i 83HNpbxbGX9LNIIo2s5ZPaaFUmNSXga/Mf199BqT7AnvaVM/XXvStblpH0pqIm8wxIL9 WT7+XZFtAk8sjoHg51YMNvosHSi2dzNg8fvFA9kPxxVLbNanQsuAwd6EfHv06b45KOg8 +Om67gsXn7ceD4dIZfy3TYYjsChYY29tkg1TmftL81IEtNKX3X84JJgPrwXd5lqWa100 PB1Q== X-Gm-Message-State: ABy/qLakKi5JRMzkWW7tLS6qQtWr5mb6fLKs4gOpnUrEtufQLuc5F19S f308hM4nNzHYZ4/FNw1+43oNqQ== X-Received: by 2002:a05:6512:b8c:b0:4f9:556b:93c2 with SMTP id b12-20020a0565120b8c00b004f9556b93c2mr17499239lfv.1.1689122250780; Tue, 11 Jul 2023 17:37:30 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id h4-20020a05651211c400b004fb743b3ea0sm496552lfr.115.2023.07.11.17.37.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 17:37:30 -0700 (PDT) Message-ID: <7fecc1b5-0c06-fae2-bced-990006c02fcc@linaro.org> Date: Wed, 12 Jul 2023 03:37:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v4 2/4] drm/msm/dpu: use dpu core's major version to enable data compress Content-Language: en-GB To: Abhinav Kumar , freedreno@lists.freedesktop.org, Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, quic_jesszhan@quicinc.com, andersson@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230712003310.31961-1-quic_abhinavk@quicinc.com> <20230712003310.31961-3-quic_abhinavk@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <20230712003310.31961-3-quic_abhinavk@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On 12/07/2023 03:33, Abhinav Kumar wrote: > Instead of using a feature bit to decide whether to enable data > compress or not for DSC use-cases, use dpu core's major version > instead by assigning the enable_compression op based on the > dpu core's major version. > > To make this possible pass the struct dpu_mdss_version to > dpu_hw_intf_init(). > > This will avoid defining feature bits for every bit level details of > registers. > > changes in v4: > - split renaming of enable_compression into another change > - pass struct dpu_mdss_version to dpu_hw_intf_init() to > assign the enable_compression op based on dpu's core revision > > Signed-off-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 8 ++++---- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 3 ++- > drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 2 +- > 3 files changed, 7 insertions(+), 6 deletions(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry