Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp325617pxb; Fri, 8 Jan 2021 06:08:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwV4zBedREtYd1Fr8cW/Y/Q+ScmlqDgWGYTqIbQ5d8XN8BZUb9tOVW38Ts/qE/dnCMigqQ0 X-Received: by 2002:a17:906:118c:: with SMTP id n12mr2806920eja.167.1610114904602; Fri, 08 Jan 2021 06:08:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610114904; cv=none; d=google.com; s=arc-20160816; b=h1v7WHbnRaedO9MSPJDe9gkDLa0LBdVEnkA78hezVk80ExSpxSY6x/qHhoNghZ+9eH aBNwXQYlsKYdAY1081O9jmuQAxQUzZn/15SKIpocrmXcCugMKs+DXeJFR2Hv0GBIQZiR q8Z8vFMZWJ2NVr0CQmFd7/x2tBYp4LwhDwsuxcz0zn9Zt606Bw7Up7EP+RR+2CtHJQxo PJOsQdEy1CUd9WzHRnftmO99kXLj9fKuULTn3FJeJJ7ix86AjIsWO0uOnGuXUKHKkjqj xz1L2qU67UW06TdJHJKMgfGBlVWTBEuE6TmbDpNkWySjWiJR3jebli0BUJ/Mol1EwDQ4 fA5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=NolXsxXc4LnP1hy9iZM7qEDax7wxHeKW7dI9mmmMmqw=; b=RLnsj6qt2iQn9h8ulRIexmfrUm3J/xaJS5JeDPycISUDFbGE3H2BxJSA6R//IdlDIi g21WEpKieOmb4YvBz+JOOUOGSxVtQgBBZYpJEyga0wcifjkmDDR4y88RxuqrKMATkJec ySxbDWcXwa7ZRiHd8nurtbkK7yaBABVUjVKO1/l2/NCs9gaTeB6XwM8TzskQFH5YRqRL Jc1SROmIl0VAemaRziiO6qQVd+YeXd6dzysXRSlO+e9S0/9vlisi9UTtt2AZBIjpp4JZ ciDUjdImpMDn5mrGQrONnMNMWgcd739FB6mufQKrxYxBKGSU9zd9fBxiantjrqHK9KxO 9/iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=jWNY2ky9; 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 si15si3601758ejb.394.2021.01.08.06.07.48; Fri, 08 Jan 2021 06:08:24 -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=@mg.codeaurora.org header.s=smtp header.b=jWNY2ky9; 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 S1727045AbhAHOGY (ORCPT + 99 others); Fri, 8 Jan 2021 09:06:24 -0500 Received: from m43-15.mailgun.net ([69.72.43.15]:33432 "EHLO m43-15.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725926AbhAHOGY (ORCPT ); Fri, 8 Jan 2021 09:06:24 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1610114765; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=NolXsxXc4LnP1hy9iZM7qEDax7wxHeKW7dI9mmmMmqw=; b=jWNY2ky9jhdKohXXxkQkgZlBMRnIYS+S0qUp52VwqhVGvK2pHXKK47/4gNCHLEtz0FH351aR CbxA6x9/LjfRgPX+4bKgRbSOQmu4ksWkIJtRcG+VPBsUzMC7ZqQbTYzbn6lXBs0Elg3CWtAH j67YsoWb0Mty97fjIXlgRve3L0U= X-Mailgun-Sending-Ip: 69.72.43.15 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n10.prod.us-west-2.postgun.com with SMTP id 5ff866ae4c4e6d4a2bc86c64 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 08 Jan 2021 14:05:34 GMT Sender: saiprakash.ranjan=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 78D35C43465; Fri, 8 Jan 2021 14:05:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan) by smtp.codeaurora.org (Postfix) with ESMTPSA id 726EDC433C6; Fri, 8 Jan 2021 14:05:33 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 08 Jan 2021 19:35:33 +0530 From: Sai Prakash Ranjan To: Konrad Dybcio Cc: robdclark@gmail.com, 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 Subject: Re: [PATCH] drm/msm: Only enable A6xx LLCC code on A6xx In-Reply-To: References: <20210108122601.14993-1-saiprakash.ranjan@codeaurora.org> Message-ID: <43c8779bc5f03be2e8072c6484dfcabb@codeaurora.org> X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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. Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation