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 2D847C636D6 for ; Thu, 23 Feb 2023 14:49:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234300AbjBWOtJ (ORCPT ); Thu, 23 Feb 2023 09:49:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234711AbjBWOs5 (ORCPT ); Thu, 23 Feb 2023 09:48:57 -0500 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36AF5769B for ; Thu, 23 Feb 2023 06:48:48 -0800 (PST) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-536c02eea4dso187961857b3.4 for ; Thu, 23 Feb 2023 06:48:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4pa8WhVoMTas4nD3mKBiwC/IIvOKuMqZMgApILYBrlg=; b=sq2yEKIzAfYxhUjTGZscUcBKjbRg/XDm6/OwDMuFPcEmkYSC5SZuAHJTff953rBxec LXLsNugN1pCBzThSfJuKLff6xwek+18mho5HTV7Faj9nXCmrf6il/5KmHnZsEES5UNBt eTmKrtOonZITSNMLxOnPamdZEaODB4Xww/33QpFmi0aWhtDuS7c1gn6NQd3laKkB6FGe rM8cIi09jTeip4eoTTIIOa/qTQO10Q2eNX6IY7E1S4Lff6byWPaH/8qwSu7FCUE6kj2a hy4hlom66L8I40nNa9KzkVoJDtSzNybkpPR3SQ+ncXT6v3HMCM4M0JA8RWfKX9cRHBHp BtXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4pa8WhVoMTas4nD3mKBiwC/IIvOKuMqZMgApILYBrlg=; b=LbyWIAbfwMsIytEuXt1caflzpP/0XVF7JvBhNYMe6vmq4p0TVCBuUVN92kCORP1jvG iHHqQZ8nc5aiiGcePgKv0f9/b4KpIFmTfoQ8thcY18buYulb62qZyjGvvXExUJmUM7jo GHZCKBLShcWqYelaL5WBIk9pik8nVqYCqZ5PDdJCW9jWNPLlg5L5IYUF9F8/+8Lg5Xhn 5fL2SB3QukapYnpg7k6x7qQ06I1FLsXtvpTaM90w5/CvuCcvdeNyzf16wIAeDXfw43Sx fYjHtUTH1zVc3HF9Jkgq29HMYp2EvlBYsLNEsU64bjyFL3KjjaDW8t9BvGUBQggoFQb+ dMFQ== X-Gm-Message-State: AO0yUKVJEKCRzwnRtXQ8iQs/hQP/F8AJAC8rfs5xcjDKqOeQQYn8x9Mk hmU/XLk3VAc9OEvhMPoGdX0rmL6qcQ1sPNsBaXCSyg== X-Google-Smtp-Source: AK7set9VUZNRZCaLDXrLLy8mHGx5HocaLmAlWGX8los92wGIp1ZTneOSgYrN2Af2BE5NJykwArXcAFeSMswQ6RhmvHI= X-Received: by 2002:a25:9bc2:0:b0:9fe:195a:ce0d with SMTP id w2-20020a259bc2000000b009fe195ace0dmr1724279ybo.10.1677163727331; Thu, 23 Feb 2023 06:48:47 -0800 (PST) MIME-Version: 1.0 References: <20230223-topic-gmuwrapper-v3-0-5be55a336819@linaro.org> <20230223-topic-gmuwrapper-v3-10-5be55a336819@linaro.org> <761e0aba-9364-557a-e6e5-e21494597dbc@linaro.org> In-Reply-To: <761e0aba-9364-557a-e6e5-e21494597dbc@linaro.org> From: Dmitry Baryshkov Date: Thu, 23 Feb 2023 16:48:36 +0200 Message-ID: Subject: Re: [PATCH v3 10/15] drm/msm/a6xx: Fix A680 highest bank bit value To: Konrad Dybcio Cc: Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Akhil P Oommen , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Clark Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Feb 2023 at 15:49, Konrad Dybcio wrote: > > > > On 23.02.2023 14:06, Dmitry Baryshkov wrote: > > On Thu, 23 Feb 2023 at 14:07, Konrad Dybcio wrote: > >> > >> According to the vendor sources, it's equal to 16, which makes hbb_lo > >> equal to 3. > > > > I think we might be stricken with the ddr kind difference here, but I > > would not bet on it. > It totally is, but it also seems to be SoC-dependent.. > I think all 8180x devices shipped with LPDDR4X FWIW I think so too. However sdmshrike dts uses LPDDR5. > > Konrad > > > >> > >> Fixes: 840d10b64dad ("drm: msm: Add 680 gpu to the adreno gpu list") > >> Signed-off-by: Konrad Dybcio > >> --- > >> drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 8 +++++++- > >> 1 file changed, 7 insertions(+), 1 deletion(-) > >> > >> diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > >> index b5017c56fa1b..2c4afecdd213 100644 > >> --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > >> +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > >> @@ -885,12 +885,18 @@ static void a6xx_set_ubwc_config(struct msm_gpu *gpu) > >> hbb_lo = 2; > >> } > >> > >> - if (adreno_is_a640_family(adreno_gpu)) { > >> + if (adreno_is_a640(adreno_gpu)) { > >> amsbc = 1; > >> /* HBB = 15 */ > >> hbb_lo = 2; > >> } > >> > >> + if (adreno_is_a680(adreno_gpu)) { > >> + amsbc = 1; > >> + /* HBB = 16 */ > >> + hbb_lo = 3; > >> + } > >> + > >> if (adreno_is_a650(adreno_gpu) || adreno_is_a660(adreno_gpu)) { > >> amsbc = 1; > >> /* TODO: get ddr type from bootloader and use 2 for LPDDR4 */ > >> > >> -- > >> 2.39.2 > >> > > > > -- With best wishes Dmitry