Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1842857lqp; Mon, 15 Apr 2024 21:49:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6eMouDNTDLpUDb61Q3SSe//Q51OnqwBky3J6eMv+xgaxtwsY5rFeOIB+QnwfFPN/aypf9O/Q2Mo4Z9+pmZIaP/CL7ekuw2B7A1EWCcw== X-Google-Smtp-Source: AGHT+IEgrwSVhAj9YDBy2b36QZC7mCIsNGSa0BNZVTTRHt6fcH+dwEbWu4qKMgiHSNdkWnmEdCyn X-Received: by 2002:a05:6512:acd:b0:518:9fba:4986 with SMTP id n13-20020a0565120acd00b005189fba4986mr8315854lfu.52.1713242947667; Mon, 15 Apr 2024 21:49:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713242947; cv=pass; d=google.com; s=arc-20160816; b=B15rHXaO8INukJNGhSAFhhW/+jyUNeFL+AX+3PuvBYC6YFtl9cV3eZM/PpKaHUzMOk ScjC2h8qulTPZDNWd4+u9GwGOkjOhSpQMYjjzbSRU1esBSvAwtEgb3BE6qYGlOpgCrXX sBavASRgxa4wW9L5Nss5iVEuXOlMDejerxBfZSZbtfDQYSqknAf7suWahh3jEYXyGyQ4 C+XkCp1QPVxug3gvP8zaYtl6lOjXtNAFkcJaJdfq8vT3vzQ7iq8pPp5r0fd7UVK4gYfl q0zwqvamtxS4aojeJYTe0osITAb1untx9WFucN68wWTa4h27JzYcDmqNU8ZLI6UkVBSe lRSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0ERq93QJIeODtc/jS3VM9zlpZTu6aEwMGLX7ZhWMwcg=; fh=fXW9US82wxiVUdNDfpT4YQCe+u0UIau4jtkVEZrB/vw=; b=yXdDlk4A/7SSGKP3Pgk6DXxzLI6XyZLuos0H51EAeJz1PYuB60HphOntjLMZr013U8 PMwFxDzHUen7gwjhEIx7G/Ooo6UVMoDRo4G3xNpzZ5FWmwXv+HVLoAogwud7csHF7p1d SkInrBoKlJzjXYxKB1mIiA/F1j+f/QS0o1TZZS5N+RMBAKUGDHJgz5oYMZ457f+yBUon 8kyN36y/AMys9hd4cuwcjGCF1qYqVqtDi0Qqml/VRgWdvx0825sZ9BAp7DGYQpqAdz/C 1GIsfxEQFxLsLXHdKnNEBFVWc+NsuXsDLl7nCNcja0/LxtxVNHgRhGVKNsbGW/os6xeX Lj1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YcXIAjWD; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-146239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146239-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ga38-20020a1709070c2600b00a51dc7f6d40si5339639ejc.1026.2024.04.15.21.49.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 21:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YcXIAjWD; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-146239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146239-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 63F531F21D92 for ; Tue, 16 Apr 2024 04:49:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 779DB381A1; Tue, 16 Apr 2024 04:49:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YcXIAjWD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 702372E622 for ; Tue, 16 Apr 2024 04:48:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713242939; cv=none; b=UwFy9QNSyNA7L3i8YEd8T1Y1d38LV4GAdOczwfqqNCPFTWpCZaqm1NfzrBkr0lO13dEcI+EymxCFgQdaqpBnBejOzS2I24lP4xBk5y5nnPufz+wzL8KFdksVhMCwPU+OIPuQY0bva+btnhx7fqmxzcuPAlfUbASSqhK1Pr134Ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713242939; c=relaxed/simple; bh=zFIazubz9lAZhK0n9voQjFdUXkFSTdqVGc2opJfNIlI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=W78u5Rg8qvawbTnCAZznedlvUM9Np2l7sUekxKmeXnFFN0dKTjDsa3I1ZxV/MfsRtoEcp2gLa0/XanYqbnZIkpUD5E3nI66Ygu2Qh5pyRKCjNlLwBZdc9LX/0s7mpVn8ib0fDplajWB92xoEIHUERsm/5oJvRom6LV11fk+CsNU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YcXIAjWD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12580C113CE; Tue, 16 Apr 2024 04:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713242939; bh=zFIazubz9lAZhK0n9voQjFdUXkFSTdqVGc2opJfNIlI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YcXIAjWD2zpfdoqqsN2r8BNAEA1fCmQpcrJOgojFttpa7Go/szfmanB00V6Yo+8UK PxHshPolYQSGuSecdepA9aDANpskzfe9tIRpUKDK2fIGsSR9wO+MnNJcp+qrwKQ/FR OHPwzQ5c/7WHpPx6AEaIP0iAqHlDICAtAu0OjDk4= Date: Tue, 16 Apr 2024 06:48:53 +0200 From: Greg KH To: Zhu Wang Cc: harry.wentland@amd.com, sunpeng.li@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, sanglipeng1@jd.com, sashal@kernel.org, wayne.lin@amd.com, joshua@froggi.es, hongao@uniontech.com, cssk@net-c.es, nicholas.kazlauskas@amd.com, chiahsuan.chung@amd.com, mwen@igalia.com, roman.li@amd.com, aurabindo.pillai@amd.com, hansen.dsouza@amd.com, Rodrigo.Siqueira@amd.com, konstantin.meskhidze@huawei.com, aric.cyr@amd.com, zhangjialin11@huawei.com, jaehyun.chung@amd.com, mario.limonciello@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5.10] drm/amd/display: Wake DMCUB before executing GPINT commands Message-ID: <2024041633-breath-unfiled-86c1@gregkh> References: <20240416024347.2446403-1-wangzhu9@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240416024347.2446403-1-wangzhu9@huawei.com> On Tue, Apr 16, 2024 at 02:43:47AM +0000, Zhu Wang wrote: > From: Nicholas Kazlauskas > > stable inclusion > from stable-v6.7.3 > commit 2ef98c6d753a7 ("drm/amd/display: Wake DMCUB before executing GPINT commands") > category: bugfix > bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9BV4C > CVE: CVE-2023-52624 > > Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2ef98c6d753a744e333b7e34b9cf687040fba57d > > -------------------------------- > > [ Upstream commit e5ffd1263dd5b ("drm/amd/display: Wake DMCUB before executing GPINT commands") ] > > [Why] > DMCUB can be in idle when we attempt to interface with the HW through > the GPINT mailbox resulting in a system hang. > > [How] > Add dc_wake_and_execute_gpint() to wrap the wake, execute, sleep > sequence. > > If the GPINT executes successfully then DMCUB will be put back into > sleep after the optional response is returned. > > It functions similar to the inbox command interface. > > Cc: Mario Limonciello > Cc: Alex Deucher > Cc: stable@vger.kernel.org > Reviewed-by: Hansen Dsouza > Acked-by: Wayne Lin > Signed-off-by: Nicholas Kazlauskas > Tested-by: Daniel Wheeler > Signed-off-by: Alex Deucher > > This patch comes from following commits: > > 115c7e7f0501 ("drm/amd/display: Add psr get_state call") > 1d496907f1c5 ("drm/amd/display: Engage PSR synchronously") > 34ba432c946d ("drm/amd/display: [FW Promotion] Release 0.0.44") > 672251b223c1 ("drm/amd/display: [FW Promotion] Release 0.0.40") > 04f3c88f0955 ("drm/amd/display: Retry getting PSR state if command times out") > b30eda8d416c ("drm/amd/display: Add ETW log to dmub_psr_get_state") > f59a66c1915e ("drm/amd/display: use do-while-0 for DC_TRACE_LEVEL_MESSAGE()") > e97cc04fe0fb ("drm/amd/display: refactor dmub commands into single function") > 522b9a5d5852 ("drm/amd/display: drain dmub inbox if queue is full") > 9dce8c2a5f1b ("drm/amd/display: [FW Promotion] Release 0.0.161.0") > 276641775848 ("drm/amd/display: [FW Promotion] Release 0.0.162.0") > 8774029f76b9 ("drm/amd/display: Add DCN35 CLK_MGR") > 65138eb72e1f ("drm/amd/display: Add DCN35 DMUB") > dc01c4b79bfe ("drm/amd/display: Update driver and IPS interop") > 5b7954272ae9 ("drm/amd/display: [FW Promotion] Release 0.0.183.0") > da2d16fcdda3 ("drm/amd/display: Fix IPS handshake for idle optimizations") > 5e8a0d3598b4 ("drm/amd/display: Negate IPS allow and commit bits") > 820c3870c491 ("drm/amd/display: Refactor DMCUB enter/exit idle interface") > 2ef98c6d753a ("drm/amd/display: Wake DMCUB before executing GPINT commands") > > Signed-off-by: Zhu Wang I'm confused, what are we supposed to do with this? greg k-h