Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp307521pxb; Fri, 8 Jan 2021 05:42:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1KgKGPMsR1Xha/wQhDkAOh3+HBcbsdlhHb6seoQAptiC3BqBWz8a9yvpJ1kkNMAwdTBz4 X-Received: by 2002:a17:906:339a:: with SMTP id v26mr2608756eja.107.1610113330656; Fri, 08 Jan 2021 05:42:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610113330; cv=none; d=google.com; s=arc-20160816; b=iPMZ76z7y7JhFeCvmHlAoKj3UofYVEm1qDYvl8in0GN7ldSix7/JdUxjbPrN6WfuhR PkG9h8DH/5YqKMYEggDduew4whPzc9M8yt1jq/cI51lH4eTWlBypgeCpra/hDQUIF0St xUCSRbYk8cokgXE3Z200DUWnYK4Mt9VM7E6SraKj3Vmf2R4kVwhvlXhyTLhXJ0QCiIUQ 7tC2sAa0K81LFVawHNC7+FyWaG5pjL/wjFSqetaOGqhzgoZaar3SVVEl2ZZeOrGjU96b IiEQ3hAnBGaAAnMq34ziySKymMyZj+9uiPt1GPo2aqLn29LyReG4Kf52v9FqqBlm9cSh HByg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=A4wAQp0OddFIECf7Ck/Ea/uXyuzmg51KDuU8isPItkU=; b=FbRyC76jkmZMa6QuFeWSEB2ytavMvT28C5cCDdT96DuoLEiA7/QcV2V+KWC8DEQp7P Gtm4IA8ZW4KnoQcc0vB6tUA8cRrvUU5k0NZQ8SYL1e4ujE9Adg3JZhPogmfw/YRN5l/k ZTzbyWMz2BqgHda1XKqqvp5KSH3TVf/BK+JBj6Aa6fPvxzBrD/V9uLDqhAQAChV56aeG JRQkwoaujcHVGCKEUWTWcA33HN9nCwF5FuF3G75ma5rKaM8GqSfpvC09+ifUYULOYMaD XO9lhk6vkjNZa0uwDzTZqYJZr94xnK2/v4Gvj0nY02FDxxWfxGOK4HS600ZMZbWWYV6x Z3DQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v21si3671613ejg.492.2021.01.08.05.41.47; Fri, 08 Jan 2021 05:42:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727213AbhAHNkw (ORCPT + 99 others); Fri, 8 Jan 2021 08:40:52 -0500 Received: from relay08.th.seeweb.it ([5.144.164.169]:33599 "EHLO relay08.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbhAHNkv (ORCPT ); Fri, 8 Jan 2021 08:40:51 -0500 Received: from [192.168.1.101] (abaf53.neoplus.adsl.tpnet.pl [83.6.169.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 252EA3F611; Fri, 8 Jan 2021 14:39:52 +0100 (CET) Subject: Re: [PATCH] drm/msm: Only enable A6xx LLCC code on A6xx To: Sai Prakash Ranjan , robdclark@gmail.com Cc: airlied@linux.ie, airlied@redhat.com, akhilpo@codeaurora.org, angelogioacchino.delregno@somainline.org, bjorn.andersson@linaro.org, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, jcrouse@codeaurora.org, jonathan@marek.ca, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, marijn.suijten@somainline.org, martin.botka@somainline.org, phone-devel@vger.kernel.org, sean@poorly.run, shawn.guo@linaro.org, smasetty@codeaurora.org, ~postmarketos/upstreaming@lists.sr.ht References: <20210108122601.14993-1-saiprakash.ranjan@codeaurora.org> From: Konrad Dybcio Message-ID: Date: Fri, 8 Jan 2021 14:39:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210108122601.14993-1-saiprakash.ranjan@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Konrad, can you please test this below change without your change? This brings no difference, a BUG still happens. We're still calling to_a6xx_gpu on ANY device that's probed! Too bad it won't turn my A330 into an A640.. Also, relying on disabling LLCC in the config is out of question as it makes the arm32 kernel not compile with DRM/MSM and it just removes the functionality on devices with a6xx.. (unless somebody removes the dependency on it, which in my opinion is even worse and will cause more problems for developers!). The bigger question is how and why did that piece of code ever make it to adreno_gpu.c and not a6xx_gpu.c? To solve it in a cleaner way I propose to move it to an a6xx-specific file, or if it's going to be used with next-gen GPUs, perhaps manage calling of this code via an adreno quirk/feature in adreno_device.c. Now that I think about it, A5xx GPMU en/disable could probably managed like that, instead of using tons of if-statements for each GPU model that has it.. While we're at it, do ALL (and I truly do mean ALL, including the low-end ones, this will be important later on) A6xx GPUs make use of that feature? Konrad