Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2666266rwb; Mon, 15 Aug 2022 09:12:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR7PFbyNcyIu1yQ2wsvuaP99EroDzhhqF9UyNfza7/ULg+eKWVD5C3DIKCB6GyznSvcAvB5o X-Received: by 2002:a17:902:b489:b0:171:5091:d53b with SMTP id y9-20020a170902b48900b001715091d53bmr17902682plr.44.1660579957961; Mon, 15 Aug 2022 09:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660579957; cv=none; d=google.com; s=arc-20160816; b=BlFkvVLBCx8KlEH8mo7HYL8BfSEVwzlMl541GObRnAz1ODvg5cH/U6l34VLFLMrQd+ VPtd2Yxw41Idc2PwDXQW7/IPB85ejatREkfOLcEZ2hUm42CuOMHeufFQlMKXuRwUUahn E/tIJYfruciKIu9oK9zViAaMftquaQRGb0oFn027dzE9+NybQHGNKShMRP67GhIg1/LX Q8vjtMm0LcG1WVW+PU9ZFZElTG2KBeYvmk/YiRtecdqVjkyH0m0lT07frYofMROoZyrZ xmsY6VkoHLiK/ih8em6s6rEp5rdEz0mK6Bx66XeFFQpuQUWk9QzH9330lAxDa51h5XoM 0fyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=rsucpEsc5D3CWajO1pTl308RBgWxNbG9t1oS7UmiC60=; b=IjvH4wUsGjV4xZNztuTmM3oR2yZVY8c7+V0XRRGhDLNIu6lor1HxGGVMKYok+ksbZw rgHVhlidC0aZNfQYatX3vzIKZcZTvdfK5anavjYRR5o30JIhAQ4k/5nq6SRszSu4AYYd P33Qb/gbWa7INVRnwY3rwG6X69LjWNml/GEWYA0T0D6KmWtARowtdYbZ64qwOnYfFQhm l+SZD0CV9ktnm46vXIGtRYDso64SHo25Cr8TRJDCQ7W1I7av7WElbImbm5lG5C/ST8XO O1LOBWFi02Al4M1GT8mGAmdHrXCKz0/5FQrBzvPqs4RfpkjNvFOye9wSff8Jno7aqtQW 2WYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="c9IES/GU"; 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 a3-20020a656043000000b0041bc0b2c95bsi5947622pgp.359.2022.08.15.09.12.25; Mon, 15 Aug 2022 09:12:37 -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=20210112 header.b="c9IES/GU"; 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 S231932AbiHOPyI (ORCPT + 99 others); Mon, 15 Aug 2022 11:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiHOPyG (ORCPT ); Mon, 15 Aug 2022 11:54:06 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48DAF17077 for ; Mon, 15 Aug 2022 08:54:06 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id s5-20020a17090a13c500b001f4da9ffe5fso14801805pjf.5 for ; Mon, 15 Aug 2022 08:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=rsucpEsc5D3CWajO1pTl308RBgWxNbG9t1oS7UmiC60=; b=c9IES/GUi/YRTnq8ntFq9iy84T/2qbs+aIfYv0AyQOVaTtypUcAHdLJICt2zAB4X/B 4dYwLy7OnU1nSzGDcBqno4X26p9T2Rg3umFQoxDVNUxYdxj86i442PX0qvGtXBZBJT5O 3sQ5JTHhnGZBS32J/RkD8vUQ6rKmI+qWTjOgzPlT90vKfz4HJTgGYUiLH6LhUxHnPRWg M503lWMUUWF75jkVCwy+h4wAHiI/g8EqkepRunM5afsGvgMLb76BvDnja1k0sJtz48N1 KfPpIcLxyCXHahCV+A1E+VmS4mGWbTJ5B6r4dj8WQC7yHITiP6iEfPkTD4I+ua+M2mn4 ob2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=rsucpEsc5D3CWajO1pTl308RBgWxNbG9t1oS7UmiC60=; b=EdraPRyQeFCan2wO2loIlFbitEvrg1XsqR94gFo7xR0mCYw05PMASWA2g6QIIgYJlY 396Wx2ukRB33xBdIVlEVlyM/+npDpH+63M8J0ydi8TTbEX1UhFSmnKir8FsC5SNpVXwZ 42csZKNOqpZSeQSzTyb6/gV0M37UA4/4lLLdSAfoyMQMlgVITUWdI7MZ+MMni7pcFMNN /pvDpQKE2iH06f1mNAPQikoanZTGQDmW9vw8XxnQtRV1p0/+lD/9EznBtc/LejAas7nR YH+DLsjX1kijtxw7xJb+14FWeb25XLnPwWVcochFGYisfr6KW4/Tx1VljYkErgb2Qrdw hcxw== X-Gm-Message-State: ACgBeo10xvJf746KRBqz0AaXTYw/v/n/kh9Q2ztW4HihAHcp19+NnrRK 16kAv2LZ7NaubeuYstfpQpY= X-Received: by 2002:a17:90a:c38f:b0:1f3:2f26:e7c4 with SMTP id h15-20020a17090ac38f00b001f32f26e7c4mr28048030pjt.124.1660578845751; Mon, 15 Aug 2022 08:54:05 -0700 (PDT) Received: from [192.168.141.45] ([103.230.106.6]) by smtp.gmail.com with ESMTPSA id p67-20020a62d046000000b0052ddaffbcc1sm6719244pfg.30.2022.08.15.08.53.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Aug 2022 08:54:05 -0700 (PDT) Message-ID: Date: Mon, 15 Aug 2022 21:53:54 +0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH linux-next] drm/amdgpu/vcn: Remove unused assignment in vcn_v4_0_stop Content-Language: en-US To: "Dong, Ruijing" , "amd-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "linux-kernel-mentees@lists.linuxfoundation.org" Cc: "Deucher, Alexander" , "Koenig, Christian" , "Pan, Xinhui" , David Airlie , Daniel Vetter , "Zhu, James" , "Jiang, Sonny" , Wan Jiabing , "Liu, Leo" References: <20220815070056.10816-1-khalid.masum.92@gmail.com> <86088c17-585c-4a53-312d-ef339b824538@gmail.com> From: Khalid Masum In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 8/15/22 21:17, Dong, Ruijing wrote: > [AMD Official Use Only - General] > > If the condition was met and it came to execute vcn_4_0_stop_dpg_mode, then it would never have a chance to go for /*wait for vcn idle*/, isn't it? Hypothetically, some other thread might set adev->pg_flags NULL and in that case it will get the chance to go for /* wait for vcn idle */. > I still didn't see obvious purpose of this change. > > if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { > ==> r = vcn_v4_0_stop_dpg_mode(adev, i); Regardless of that, this assignment to r is unnecessary. Because this value of r is never used. This patch simply removes this unnecessary assignment. > continue; > } > > /* wait for vcn idle */ > r = SOC15_WAIT_ON_RREG(VCN, i, regUVD_STATUS, UVD_STATUS__IDLE, 0x7); > > Thanks > Ruijing > Thanks, -- Khalid Masum