Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6081695rwb; Mon, 14 Nov 2022 14:05:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf61SlYvA+wwPfZe/iWQkTQcEZg+jGK90K40LyyoxlOmRKb8Y9eaV3bd88fTtOkLYLcWK9fK X-Received: by 2002:a05:6402:1642:b0:461:aa10:cb0c with SMTP id s2-20020a056402164200b00461aa10cb0cmr12946278edx.383.1668463519748; Mon, 14 Nov 2022 14:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668463519; cv=none; d=google.com; s=arc-20160816; b=KRY3Lunp8lCXPQM4eY4PiLkLmYfd7P3w7wik0uCBoK+AeIWAZSdk77/2nLnnMvr7Ms njSe2fIoZQD9kcdnKY9zNkPbDafTxXzIR2UDY13K+D4j+6f8oM2mWwdHh0V1gIXhxdhO DdDkZtumMMBUkscbTaJ3eimDuIEiM4GM+4AkUJKO3Xq/f4MMPaO0EvuNZ+F/+qHO2nty 7HXLEMXi5Xj2jTpc4l/AY8r0T7Mq562y6TVk5XmD+IwpzyzSCA6gcdNG3GhX/TE8LSh9 7VmK+Nm+k8A+GP1fKAevSTBZ1D0nnL5+LMshJHer7loKgoOXNgoOtotbUttgqAxXCMjY zCFg== 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=/zs5GFS4zX5I6/Faq+e+SUg4iVEYXlwxarNYXij8AkM=; b=Ruq6akcPk1pEEMm7EhHEV4gC2MK4r9izBPqZisbdeQbGl4J6lhhkFrCI61h61dY+PQ XeRVT6Sl3WmYhNjeW5Unlzn4H8cKWNtlJc1gfUG/CPTf/qHtwWtiOs8KI9hy1rbTEjU1 YwZyIHoq6PV28rwIqnbt6GMWNOpTzd1EDJKOQh7Wu+v0y2TAwpIHtfVqdBzuu8bYs6gQ pKtQL2KfxLMWZkCT6B5qCQcmuBQnxUzsZym9V/dkmLBPYQuNhdtMeimH6rztHQihyeeh 5fqp46Kjf9uIsa3G8cpFARBU+XZFxdL+R91/oGQecPv8Rv5GrzM8J/YiB4i53UzWonKM FFew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ImPaTYpH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu14-20020a170906eece00b007a8dddc7ec8si10382278ejb.382.2022.11.14.14.04.57; Mon, 14 Nov 2022 14:05:19 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=ImPaTYpH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235591AbiKNUt2 (ORCPT + 88 others); Mon, 14 Nov 2022 15:49:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236205AbiKNUt0 (ORCPT ); Mon, 14 Nov 2022 15:49:26 -0500 Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08F3D1583C; Mon, 14 Nov 2022 12:49:26 -0800 (PST) Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-13ba86b5ac0so13918952fac.1; Mon, 14 Nov 2022 12:49:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/zs5GFS4zX5I6/Faq+e+SUg4iVEYXlwxarNYXij8AkM=; b=ImPaTYpH20pxonMgoWCi8i5Qs38yYeoMefN7Ur6gCETa7/kYYYRJoRy4jpTu1Vpzn3 hWLLOgAeDNUPVTO+5huo0TYVcwfWujK0Aw1JE/wJwtx//tDBo9QX57HtwqowqYi+65MH 3v3CO/F0ngn4sRyzWvOXMehFGzagpS0FBLRlphqddJCIOtVf0miMSb3Qsx6VfbltPPPz rwAVxmLlrArcsS97jBiWyztSuCfBFEehxgy0Ck+9LbqJHYbe//kCtwbRZsJQNO6veN/7 J3DXqrlpMQxiGuUN9aDF4KMoC6Ld18+V4aHI/oXi83S5KpWO/sq5NJt+6H9JILlgOhOk 3a/g== 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=/zs5GFS4zX5I6/Faq+e+SUg4iVEYXlwxarNYXij8AkM=; b=UrcSgWLc7UQBi2DM6ormDDgYFtFxg6V8WZMSXGXQehwxcEg42cLkZsR7AbsTqizDwz HZWopCOffr72dYrTh202HYdS+WFtzPtaoRTmTPLWd0j40u++ZRbRpnLx7wqLs3sWCTa/ NGUJ1GrHDwUhHv+kcOHJlCI9uyYRvbEbOsrIW0ew6WuA62m1DDIKDlq3EN04XnxHiC+w vYT6oah4cclVpninIAWPSE6AD0iYVemYp6VKHfFRmABLWKedDacdnNzoUzA0W1Ftliun 37co6w7oKtAJd7CB7hw77Qye0oePUD6IkazFKOM8nt8h631Wuc3iBjiqg0pceyFIF79v 4Sng== X-Gm-Message-State: ANoB5pmTx+dVi3CUCfv2EU2amXJW8l1dj1EC/VQQqo8ChUtJFD2L0j79 wYYa41Lol2y1hSVhvj6Q8ek8/8CuF1GEIk0eSuk= X-Received: by 2002:a05:6870:b87:b0:13d:51fe:3404 with SMTP id lg7-20020a0568700b8700b0013d51fe3404mr7667561oab.183.1668458965345; Mon, 14 Nov 2022 12:49:25 -0800 (PST) MIME-Version: 1.0 References: <20221114194133.1535178-1-robdclark@gmail.com> <97429a67-e763-4226-828c-8381a2abe9f9@quicinc.com> In-Reply-To: <97429a67-e763-4226-828c-8381a2abe9f9@quicinc.com> From: Rob Clark Date: Mon, 14 Nov 2022 12:49:45 -0800 Message-ID: Subject: Re: [PATCH] drm/msm/a6xx: Fix speed-bin detection vs probe-defer To: Akhil P Oommen Cc: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Chia-I Wu , Konrad Dybcio , Douglas Anderson , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Mon, Nov 14, 2022 at 11:59 AM Akhil P Oommen wrote: > > On 11/15/2022 1:11 AM, Rob Clark wrote: > > From: Rob Clark > > > > If we get an error (other than -ENOENT) we need to propagate that up the > > stack. Otherwise if the nvmem driver hasn't probed yet, we'll end up with > > whatever OPP(s) are represented by bit zero. > > > > Fixed: fe7952c629da ("drm/msm: Add speed-bin support to a618 gpu") > > Signed-off-by: Rob Clark > > --- > > drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > > index 7fe60c65a1eb..96de2202c86c 100644 > > --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > > +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c > > @@ -1956,7 +1956,7 @@ static int a6xx_set_supported_hw(struct device *dev, struct adreno_rev rev) > > DRM_DEV_ERROR(dev, > > "failed to read speed-bin (%d). Some OPPs may not be supported by hardware", > I just noticed and was going to send a similar fix. We should remove ". > Some OPPs may not be supported by hardware" here. > > Reviewed-by: Akhil P Oommen > > Btw, on msm-next-external-fixes + this fix, I still see boot up issue > in herobrine due to drm_dev_alloc() failure with -ENOSPC error. Could you track it down one level deeper? I wonder if there is some missing cleanup in the probe-defer path and we end up failing in drm_minor_alloc() or something along those lines BR, -R > -Akhil. > > ret); > > - goto done; > > + return ret; > > } > > > > supp_hw = fuse_to_supp_hw(dev, rev, speedbin); >