Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1844209lqp; Mon, 15 Apr 2024 21:54:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHYNtmzZz7H9HuR3KPMTPYWoAk8ld3PY/ytYZJjRbOXEhquQQac9bEJDyOpBMZjEgOQsVzP6kajed7nHgzetSzYf/ensN3XM2uv/7a8A== X-Google-Smtp-Source: AGHT+IHbTHhenbuoumAB7EU0jcli60GV6hJ39YMgc8K53Ls3Pj2deZUY5R4vJQ+C/vMUygQHuDsX X-Received: by 2002:a05:6214:92:b0:69b:247b:a4f9 with SMTP id n18-20020a056214009200b0069b247ba4f9mr12403933qvr.6.1713243275714; Mon, 15 Apr 2024 21:54:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713243275; cv=pass; d=google.com; s=arc-20160816; b=SMXRC8/IlXhayIBOV5gbpwy1eX9momwIMEFwWQJVgkrcgoUefRIyfkXny6go25bDs/ INyQzGp+AczhX8jX3cT4GLd5TxHDOt8PZo5qWKrMa4Fn99q3jABPUGXfEEYwAXb7ZWUq kH33pcHmVsLIBRgYhvvQF/GrojLIIl2R1McDDxZR8oF5mHaHTnH9DxFlvNxFsQA0JhHe Azmj12grcQdvwCoqvBA6Ba+4UJwCS4WWYBXq+mFHNKh6CZGHHMJO5VWC9cNWvXjkE5YX j403cEeZoD9gqbUYSZ0r/zmDsVB4BoHHr6NuICUSkPrJMfXJJ33bdXQXJvC+sGCya6bM 2Ceg== 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=etzK3gtIQ8TUi7SSQU5vvjHxrZHmhUDz/oqYpmtGiTc=; fh=8dQMEqQBBoY1OylEyhBD0umJ9syf6s02CAeMhUrfKvU=; b=HmM8zDA4mJ6zGPByQ91dRKsMQdP81nqfH3/NkQlnsfNAph7OHjw5Sc4Wnxz0CQKv12 OzCSfOjOTlXzWwicoPs6pzidQ0i5VKFL3t4DNji+ljp1IfdgucYZyskfCJEV6Zh1w1zN WUGst+soF2rUw20xxLYqy681JdrCN2yWsAUW3MZBI1GsHUcZeGX8BymUuVC+e+c15f0Y UK6wncCoQyFtnra//hC/gMcJNaJ8cm66g85jl9BdxCEO+F/2wV+S5xQ5xTAImugvi664 gPfy/KFPk+JSk6+NlporZXNTIibL/NBHrFMqNVjQb+CRA86bNLNClAB3920rVgvhwxHC xuHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G2q4r1pm; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-146243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pm4-20020ad446c4000000b0069936512817si11477706qvb.157.2024.04.15.21.54.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 21:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G2q4r1pm; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-146243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146243-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 669341C215B5 for ; Tue, 16 Apr 2024 04:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA3FC381D9; Tue, 16 Apr 2024 04:54:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="G2q4r1pm" 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 0A57E12E4A for ; Tue, 16 Apr 2024 04:54:28 +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=1713243269; cv=none; b=ZFBS7PX7OiRx9HJQkMDdif34/zIMx0R4vw6dES/VaoYoUa681tjp/saJShncykmA5q0jPkRiBOyBAw3kFwu2hfJgM+9/ZuWmj6nnwNG8hKtzrJ6Zffx5zQkR+iFYVuoRv1fVHJZOnPp5YuG8n6nyfkhzStIqdrun71sst9Dr7LE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713243269; c=relaxed/simple; bh=4mVUVKHx9nj8ZHZlaWZQT0qownR6pzR8jt+FmiNQdqs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BD3KJ50Cn1BIDfw2NUi7ac0HkSH4i3Td3sCy4na2RSEGC9uD0tor/cHy2mBniaunBgCipDwZoopc4+7u31SjYJwDewHcPJ7trLSt6D89s2hZ2ujhUr2UrWg6IzoAoulwz9om2VvWhBMIZlUP0de+88KZKCcpE1tXjnjvc/4vb6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G2q4r1pm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8F3FC113CE; Tue, 16 Apr 2024 04:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713243268; bh=4mVUVKHx9nj8ZHZlaWZQT0qownR6pzR8jt+FmiNQdqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G2q4r1pmu9VPBzRvK/6mDyTN5QQimtClS+cP4iELVIe6Y4myQPCgMFjgVMiZld322 2Tow4i5UBsZlahkQCJW33cFjHq9zK4S2v9ag+per8mcSrlM3evXSofCP+ROR8gXR4R c6PbZwKUZgDQlkW4+YsnfDlrCFK95OV835/UR1XA= Date: Tue, 16 Apr 2024 06:54:23 +0200 From: Greg KH To: Zhu Wang Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, qingqing.zhuo@amd.com, stylon.wang@amd.com, Josip.Pavic@amd.com, trix@redhat.com, cruise.hung@amd.com, Eric.Yang2@amd.com, mario.limonciello@amd.com, alvin.lee2@amd.com, jun.lei@amd.com, austin.zheng@amd.com, sunglee@amd.com, paul.hsieh@amd.com, hanghong.ma@amd.com, JinZe.Xu@amd.com, lewis.huang@amd.com, zhengzengkai@huawei.com, alex.hung@amd.com, syed.hassan@amd.com, wayne.lin@amd.com, nicholas.kazlauskas@amd.com, chiahsuan.chung@amd.com, aurabindo.pillai@amd.com, aric.cyr@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6.6] drm/amd/display: Wake DMCUB before executing GPINT commands Message-ID: <2024041658-imagines-unlatch-a9b6@gregkh> References: <20240416035240.2450127-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: <20240416035240.2450127-1-wangzhu9@huawei.com> On Tue, Apr 16, 2024 at 03:52:40AM +0000, Zhu Wang wrote: > From: Nicholas Kazlauskas > > stable inclusion > from stable-v6.7.3 > commit 2ef98c6d753a744e333b7e34b9cf687040fba57d > 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 e5ffd1263dd5b44929c676171802e7b6af483f21 ] > > [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 commit comes from following commits: > > 8774029f76b9 ("drm/amd/display: Add DCN35 CLK_MGR") > 65138eb72e1f ("drm/amd/display: Add DCN35 DMUB") > dc01c4b79bfe ("drm/amd/display: Update driver and IPS interop") > 820c3870c491 ("drm/amd/display: Refactor DMCUB enter/exit idle interface") > 2ef98c6d753a ("drm/amd/display: Wake DMCUB before executing GPINT commands") Why are you putting multiple commits together and not just submitting the individual ones? And what is this for? confused, greg k-h