Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp440487pxb; Fri, 8 Jan 2021 08:47:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhJI251jwGcN5mhOL2R2/M29HyHOg34q19Z8SRJxYjSGsDfDOse4QM+2OrJWFCHDgzDKn1 X-Received: by 2002:aa7:d7d2:: with SMTP id e18mr6047882eds.256.1610124424916; Fri, 08 Jan 2021 08:47:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610124424; cv=none; d=google.com; s=arc-20160816; b=Etc/rHYDK4PJIRZH2voyYuvfomTiTZdS2osGkCbZSnrCI5xyuAMNyoGyxujJ3Kf2R1 C2wRqat/SF+LuXwzg+pco8YtHLp5GDZ0bbK5iRYryfQwQR8dKElERyEJr86f3TFONRvq Z50XpWF/Lz/FgCTUlnJcdyYR4/3VeBWvEWbBqnpt35xve83Amkt5z5OV7CD0YqgVOkTQ DvrtDsWPfPpaQs6Sbfm4oHOg7+y4LrK14Y/CKGwBjD86WcC2ckyEIGMDJl+HPr3cGuOB 14g+QYyxXQqBVfImwBOWKf9qa7VhZQgETxvwNSVaF6Tn7eBkOL5hhwRnTENvQVhcsX7n P7AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wEYZtFdJL8UqOaXWXQmAQtp/FUt4d1Fh9znRYtE/2NQ=; b=Hmk77oDUjmQEcRznZbMb60biumAPmXgHNeQwWOFblnwQSwz4kWNlkuxao93tWj71yy s/bNiEzjDur9NV7pNmF44mWSUqef8aQDDlYpsXDpadSiGfl+OfXW2IwVS81CBkufjCgc jlRXV/USlMX0R1xCDbWqq1YxgTXgT9rb5kBNY2nH9vIoUfK/5vw3XMxk0MVGpx8ALBc8 dej7Bxf4Kfv3HJdNCpirLPugUsDC7sfGlCcgY94jIOHormx5VEnQJEcZe6TkvpZEkyYu POuVAZu01ckAEMu4/E8abDkcpj96xB6zPgsVyTO0kO4CS10DB0jflRiiKcI3bGAAoj8T VZIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TeeWZzx4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si3849515edd.267.2021.01.08.08.46.41; Fri, 08 Jan 2021 08:47:04 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TeeWZzx4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727252AbhAHQpQ (ORCPT + 99 others); Fri, 8 Jan 2021 11:45:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbhAHQpP (ORCPT ); Fri, 8 Jan 2021 11:45:15 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39296C061380; Fri, 8 Jan 2021 08:44:35 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id r3so9649988wrt.2; Fri, 08 Jan 2021 08:44:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wEYZtFdJL8UqOaXWXQmAQtp/FUt4d1Fh9znRYtE/2NQ=; b=TeeWZzx4kG8U/PycJTvDXWk/fVXG6AnGbIYISEzLhpY7z1Bkb1aSo8GkQNnArh6vC8 k/OFv/yyZjUOUrz2OxbFwZdr8e5lXRUhY7ch7nXF7pKdMtSGPYmRWfW+hssGMoptMqq5 lcOg/61PpUUDeKPOn3j45r+z7ODVCyDF7J58ZBS0wQc/3kEZ7S0YK14k7i+Zor0GFUh8 eVTlQMeS2JaiBUm8Nhs6P/5f/FEl8nO/Nmp3vf2AF436FYvoetGTtbVrg4nyVSwFcjfa fRhCObznsFLK179CNjbAuIHuyl4eoscRxB3TgJBhvv+1vQodY77TALD1wmxPGoHVkgU6 4WcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wEYZtFdJL8UqOaXWXQmAQtp/FUt4d1Fh9znRYtE/2NQ=; b=rDfJiPdN9teXiHglSt/bhJAIxH/iAEC8Ii4eSgX3fYrK50ngphwCNxNV3k/9fhwX9+ oUHMa2s8b3RYJyB55skJn2xC06Y7O33jgWpFJGCjwiifgj50YLV3ZorOe8oXrk898THa uh7hAlMHfEhqUuGH+SgzGlqsIr+9knJF8bsrcJDFg2nI+ELAbC9kIccuVQgdEaQjs1q6 LDzPKZGre/kqRWsVEf6PSxWrMZvUtPP5/EXaOpYjTOM0eDHnOdES5HsWCQPZVRWnTQT1 6XxtdMzdmLzqXSXHR9z6qaAKU7/dMtpST8IIrZRdExhjTMDnYd3N1VH0fbPlU5NLAegQ zONA== X-Gm-Message-State: AOAM53083GgwoRxiL1ANvJtlkUCju7kVz1gx61MUOpkNTbAMXitPeQOr XNNfu494qhcCqXEOmguCbKwpAfAQ1DErwmCUcsU= X-Received: by 2002:a5d:54cc:: with SMTP id x12mr4558937wrv.132.1610124273846; Fri, 08 Jan 2021 08:44:33 -0800 (PST) MIME-Version: 1.0 References: <20210108122601.14993-1-saiprakash.ranjan@codeaurora.org> <43c8779bc5f03be2e8072c6484dfcabb@codeaurora.org> In-Reply-To: <43c8779bc5f03be2e8072c6484dfcabb@codeaurora.org> From: Rob Clark Date: Fri, 8 Jan 2021 08:46:52 -0800 Message-ID: Subject: Re: [Freedreno] [PATCH] drm/msm: Only enable A6xx LLCC code on A6xx To: Sai Prakash Ranjan Cc: Konrad Dybcio , Sean Paul , Jordan Crouse , Jonathan , David Airlie , linux-arm-msm , Sharat Masetty , martin.botka@somainline.org, Akhil P Oommen , dri-devel , Bjorn Andersson , Shawn Guo , marijn.suijten@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, Daniel Vetter , angelogioacchino.delregno@somainline.org, Dave Airlie , phone-devel@vger.kernel.org, freedreno , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 8, 2021 at 6:05 AM Sai Prakash Ranjan wrote: > > On 2021-01-08 19:09, Konrad Dybcio wrote: > >> 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!). > > > > Disabling LLCC is not the suggestion, I was under the impression that > was the cause here for the smmu bug. Anyways, the check for llc slice > in case llcc is disabled is not correct as well. I will send a patch for > that as well. > > > The bigger question is how and why did that piece of code ever make it > > to adreno_gpu.c and not a6xx_gpu.c? > > > > My mistake, I will move it. Thanks, since we don't have kernel-CI coverage for gpu, and there probably isn't one person who has all the different devices supported (or enough hours in the day to test them all), it is probably better/safer to keep things in the backend code that is specific to a given generation. > > 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? > > > > I do not have a list of all A6XX GPUs with me currently, but from what > I know, A618, A630, A640, A650 has the support. > From the PoV of bringing up new a6xx, we should probably consider that some of them may not *yet* have LLCC enabled. I have an 8cx laptop and once I find time to get the display working, the next step would be bringing up a680.. and I'd probably like to start without LLCC.. BR, -R > Thanks, > Sai > > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a > member > of Code Aurora Forum, hosted by The Linux Foundation > _______________________________________________ > Freedreno mailing list > Freedreno@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/freedreno