Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1939463rdb; Tue, 5 Sep 2023 09:19:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFC4AhxfvtTe4aNN8xRzruSXdFgkmy8hgaaSafUX45v0WPkAH3o3h1fkNzg/15N3hRlgIE4 X-Received: by 2002:a17:906:cc4e:b0:9a1:bd82:de30 with SMTP id mm14-20020a170906cc4e00b009a1bd82de30mr265464ejb.2.1693930775673; Tue, 05 Sep 2023 09:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930775; cv=none; d=google.com; s=arc-20160816; b=CSQV4dDl2rniuatldnu4cKmMG3WdbR3D3jCE4auyAF8UGn5Vsw/q7e11vPMF9bLUKm Oakxeu0Hiug3p4ZpUYPzDKbGzZxBl/CdbH/TniTwDUwd8gA89koG4DRpcbyuJdzUzU+q HQb/5EqUeuX8ef25lpoB4MFd1GHdC7txblRYx9EbXvB9maQ+dR1fCRvvN6qTBpOswicX fInMOHsd/EJE4Y6/trOL2AMBb89rgcGY9WT9IXo6UkYrHivQqEsOGVwP9x3LNPl8ewCo l4gvAq66ZK/nO1M/TusngfIaGDoxXsaIi2SsTP5UVnzP/oCJHt9oE+mUJhJ0qPOBaYmo Rb0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BCiPgoXQWEUQbwvtwHdYNndBee5s7p9DuINjKcE7kL8=; fh=mv75GX0eaaImDVjDTuMYczUQ/+IbnA15cu4RNe5SEYc=; b=Qos0nzkkWYNTOv+lPFQ/mGSU4LWXPx/9ejR3DONm/vaCX7fTwLDBuhoMOy+w07y7lt BOfXmxq4BbYCw6mf4iOjliietMPrMOLm48WRv4iLaOB26+bVrnoLYqTyFEkAB5zwVqGX 7Tn5wjirIIX8oy4rWLcA87UtvL5m8opmkWoDHQbk/B+C80v+QG9dZugkABPJZwjEFpL7 Sba8+hTrYp/u6trE2bbWwbVK3SgboxuaGL8uyeCnhjxC0kRv5gfQEcW0gRWMD7uUGqlK xHuK+2I9vdHVTbexyABADlcBtY4CFmigUGrhgNrrBim8U45uY3e8QC7daJ9lvo7Vehai dYyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Wpme7mRR; 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 k22-20020a170906a39600b00997e8ac3332si7548775ejz.340.2023.09.05.09.19.28; Tue, 05 Sep 2023 09:19:35 -0700 (PDT) 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=20221208 header.b=Wpme7mRR; 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 S241678AbjHaTga (ORCPT + 8 others); Thu, 31 Aug 2023 15:36:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbjHaTga (ORCPT ); Thu, 31 Aug 2023 15:36:30 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8A3C1BF for ; Thu, 31 Aug 2023 12:36:27 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6b9a2416b1cso983248a34.2 for ; Thu, 31 Aug 2023 12:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693510587; x=1694115387; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BCiPgoXQWEUQbwvtwHdYNndBee5s7p9DuINjKcE7kL8=; b=Wpme7mRRYRB8Eu9z0Ix1CQjvYIsWPZGDFBuxX2QyhD+a5v9I6tvBy6dSTCKusIdqOv 9BHuMccLwBLgbNvoj7UUxfKZZoz982sKDvYDamyb4izRvVNAke5kRt+Y3th2W0pvZcrC FrEHm6AQHNWozBhcsoDGfY3KinFPr5E3GQVaLZyuELhnAIlN1TPop10WuAoCwv7ItlJu eq1MhqGJxfad1y7Bgvz42S/ifKCmUQhG64CwXGfAsq6QhLN6A6Y3Qrs17IvZrdOkTbpH ap0Jz+41q2gmrrKGaNKp7s8vfmSbiD80uMpfJNnaV574wYBrq8bP+LmRQSrGpRy/77yX 4AQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693510587; x=1694115387; h=content-transfer-encoding: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=BCiPgoXQWEUQbwvtwHdYNndBee5s7p9DuINjKcE7kL8=; b=EJwU/HKhiG3p0BSsm8xNDe7JkHxmvtu9Yb76vSnVGepDqKAmKdcUP6Mjc1a7je2xic eBYk/qd+H2DVlUK4K1oQ2++8G2fhP53bbfe3Hqu4KuAL2Ll90CXROnGajv/oWjrWbr5+ idgVZTLQkuQubDcwC03hxw7kWR65m2/u7pQb8lVqoQvwQUTkpVzzdXtDeRlDMwKpaDvS urOG3ZW6CXywSSpt7qkqcjtR18/Oyqv/7+YgkE+P8G2Opp2mcd5cpf0A9BK0cmTWXwWO VIAXfRDeFkNR5KqSnQrS6Hv9LhRfSPLgwLYmzYJkzfUS9t9ynI7duVxx8ckm/SPAvFUz GBcg== X-Gm-Message-State: AOJu0YxuNtTfpJn/qP9jmgukHqzTa2wtGSUAq+MW3NnegG+9XfO0VnO7 69eevokzSPRSy8Q8mRUMBaMZqZouATt28oNoixI= X-Received: by 2002:a05:6870:8288:b0:1bf:7e94:bbb5 with SMTP id q8-20020a056870828800b001bf7e94bbb5mr472364oae.7.1693510586972; Thu, 31 Aug 2023 12:36:26 -0700 (PDT) MIME-Version: 1.0 References: <20230830140103.311752-1-dii@itb.spb.ru> <3ba3a7da-77d7-4a13-899c-e7a1f5b68a42@amd.com> In-Reply-To: <3ba3a7da-77d7-4a13-899c-e7a1f5b68a42@amd.com> From: Alex Deucher Date: Thu, 31 Aug 2023 15:36:15 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: remove useless check in should_enable_fbc() To: Harry Wentland Cc: Dembskiy Igor , Alex Deucher , lvc-project@linuxtesting.org, Leo Li , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, hersen wu , amd-gfx@lists.freedesktop.org, Alexey Khoroshilov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_BLOCKED,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 Applied. Thanks! Alex On Thu, Aug 31, 2023 at 2:48=E2=80=AFPM Harry Wentland wrote: > > On 2023-08-30 10:01, Dembskiy Igor wrote: > > It does not make sense to compare a pointer to array element with NULL. > > > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > > > Fixes: 65d38262b3e8 ("drm/amd/display: fbc state could not reach while = enable fbc") > > Signed-off-by: Dembskiy Igor > > Reviewed-by: Harry Wentland > > Harry > > > --- > > drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 --- > > 1 file changed, 3 deletions(-) > > > > diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.= c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c > > index 6966420dfbac..e87cf54ec658 100644 > > --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c > > +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c > > @@ -1992,9 +1992,6 @@ static bool should_enable_fbc(struct dc *dc, > > > > pipe_ctx =3D &res_ctx->pipe_ctx[i]; > > > > - if (!pipe_ctx) > > - continue; > > - > > /* fbc not applicable on underlay pipe */ > > if (pipe_ctx->pipe_idx !=3D underlay_idx) { > > *pipe_idx =3D i; >