Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3503767pxb; Mon, 4 Apr 2022 19:05:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMenH7+VMVKcweHWP8ux3Up2CigShVxEvob1EX9xNIzRi1Xsmm8ZRb9kbk/tmKVU3dpKtL X-Received: by 2002:a63:d44e:0:b0:399:58ed:fa4d with SMTP id i14-20020a63d44e000000b0039958edfa4dmr899962pgj.307.1649124329263; Mon, 04 Apr 2022 19:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649124329; cv=none; d=google.com; s=arc-20160816; b=RdwODhG2SYvzsghKEGfbVTgcJGKn8g4P9L25pFJlHeSRq5OCT/s9tyBQb8GDBiEBE5 3iwFDvVfJWb525HMKzcOthaEvXYd5/ePUWrjCYIusputetV2rI1cn5gYd2hhZRSH+aJx pzC/ovXEo3u9IT9R/V65zKjS3WSx7g73KttQcz6caQn3cW8NhQTJzVzNv4HelN5wZR2J tWerILBgRzGmtGvMMxJyu5S5WJrI86NvWki1903rWwO7un2btT4cpvpjQo7gzHKi7dr9 D/rNz0kONxQ7nE8sNd4thOgfCOW+uvo7/uIaJ5U3Irt5KW8akQbOdAX1PH1s6o7+7E+t jCBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TWyagR/bMyYjFcNpNxZBzhmfhxkuIswTjJn8rQ5TmdI=; b=ujks5zwlfspgbNBJCkwY5vKGb6PYf+rSkT1QkL0TOV3nT7ayXtL4LSOm1/KpMtQT+A QFuqm2uYhHxRsusrCatextuFiWrMZESS+8OrXLTQXgJlk7wetVlMMXyvWQ/+61PkvODD s8whC5tq/QGCvxctNcMk3J6O4Qg9OKzt1RJ9PlDbkcHUR7tqTK/ERYGG2ts/NJEKhuXd zAFFKYLnQBXo93c8ZDcNPXi6NVQm6M2hdfPvLqDLtYya4+JQ3Jp7oOfekxS5DkhALlqp Dxa8GlfpAu0hT/zj2UaJdmdHUR5POOSrw4VpoTp5lFydr7JLDjvBPepUUGzDygDEzI6X X5Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dgqYvqFl; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e8-20020a656488000000b003816043efbbsi11608390pgv.432.2022.04.04.19.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:05:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dgqYvqFl; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6C91935AAA; Mon, 4 Apr 2022 17:28:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347055AbiDAOaD (ORCPT + 99 others); Fri, 1 Apr 2022 10:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347144AbiDAO3O (ORCPT ); Fri, 1 Apr 2022 10:29:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08335287A2E; Fri, 1 Apr 2022 07:27:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9368561C33; Fri, 1 Apr 2022 14:27:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 109F3C2BBE4; Fri, 1 Apr 2022 14:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648823228; bh=mOr3lNQXdbCJKrjBLq76MigGAjQCXtmASAMKe4k0eGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dgqYvqFlugiMbIb63Z7ypu21gjUojGLk7a87MS7hc8qoKoJehw55qjbKXldIePGMU fC9IYBVOc5aQunoz8RV/nr/M+0GlRXnhB56rZYy91zXAWaUTNkAbt5xZ51WTMrGpjV hWI4ZyaF3mwVP+8tKqjwayLi7iT+G/ZNDNO3/EIr9k7zW2MNymL0vQH48aFDs9PP3g 7Rt5YHByKGJCf3HpcIuUTj+DW8n1nJoGnvYd7nO2/OUb6VLYmcEOiEYcpY10R9D/CU 2zGB9hS9dP+mxsAFctduMQdOkyXplVybF+NnoXfJTPHSAERxl8d4jxCUZF2q3IDeEM A5oVTYRwu8jWw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Tianci.Yin" , Felix Kuehling , Yang Wang , Alex Deucher , Sasha Levin , christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, andrey.grodzovsky@amd.com, evan.quan@amd.com, Jack.Zhang1@amd.com, lijo.lazar@amd.com, kevin1.wang@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.17 024/149] drm/amdgpu: Fix an error message in rmmod Date: Fri, 1 Apr 2022 10:23:31 -0400 Message-Id: <20220401142536.1948161-24-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220401142536.1948161-1-sashal@kernel.org> References: <20220401142536.1948161-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: "Tianci.Yin" [ Upstream commit 7270e8957eb9aacf5914605d04865f3829a14bce ] [why] In rmmod procedure, kfd sends cp a dequeue request, but the request does not get response, then an error message "cp queue pipe 4 queue 0 preemption failed" printed. [how] Performing kfd suspending after disabling gfxoff can fix it. Acked-by: Felix Kuehling Reviewed-by: Yang Wang Signed-off-by: Tianci.Yin Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index ed077de426d9..b793682071b2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -2708,11 +2708,11 @@ static int amdgpu_device_ip_fini_early(struct amdgpu_device *adev) } } - amdgpu_amdkfd_suspend(adev, false); - amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE); amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE); + amdgpu_amdkfd_suspend(adev, false); + /* Workaroud for ASICs need to disable SMC first */ amdgpu_device_smu_fini_early(adev); -- 2.34.1