From patchwork Wed Jun 1 21:17:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 9148155 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7B7B360751 for ; Wed, 1 Jun 2016 21:17:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D08E20410 for ; Wed, 1 Jun 2016 21:17:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61F7726B39; Wed, 1 Jun 2016 21:17:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22A5720410 for ; Wed, 1 Jun 2016 21:17:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AB7EF6EA4F; Wed, 1 Jun 2016 21:17:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2C34B6EA4A for ; Wed, 1 Jun 2016 21:17:41 +0000 (UTC) Received: by mail-io0-x244.google.com with SMTP id k19so4149145ioi.2 for ; Wed, 01 Jun 2016 14:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H6W06ok/VmXj0XXo8ZWsAqZ/dN0ERTijP+vTyZV2QQQ=; b=Lc1QQqrHT/gJVDMoWqkKPzll1ME9uOuofYlqkGmD6/eg5xYtFQ+n/N0Uz8Kzd4tnn3 StgoYMGpYn7uQxiCRdl1/gY0q6DwTeKZrjrDf994197o/C7QaEcqYRoKI7jHzijwiplH pYYpepfUSfhp1dqBd/sHu3pcyMNaWVREz32zhepde9N9Yb10EcsUUIK6R1cN/ziY7C4F RPwcWR4h3Y2TKa4VIT872/OeigDerCyajPG+nPUL/FwZJvhLtsv+UGp3BkUPoqRfOAE3 qDeUkUhs9e3mM55w8VvPmEjRc9jH4CASq/FauHjQLunl4JDjE/Az6t6eQsjsSGwE5RSQ xzzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H6W06ok/VmXj0XXo8ZWsAqZ/dN0ERTijP+vTyZV2QQQ=; b=lHChqc25fQKek9Y8Ps/5bnsM2QFT5FmJ2e5UDT1vV3+lT7w8uZHS7eAvg8iQY48qt6 yDZJraqn3gZR7hk4dmz5hqphT8nB/cnRrPklNHrumz+QWF3ZCZv6cA5H/Ueyp1r1cLPs IZPQ3isCXdZwxXJVmSkAg2TShdy0TplZuXsNDOS/cFlNxq5z7nbsozHw7Pebtv7JPlWd t+hXsO5gOf0Z+Ppxc9sCWh9eKpvH3PfFKlWqJ7NZ0yUpA7n3pyxAg8Lsl7KbLUiGZgFc UjLAsahTZvE1Zua9d2K33AWPcvzqVdcS3/5djokGxPk6G5+TthLNE9CGt6KGTau0Qaq6 WFMw== X-Gm-Message-State: ALyK8tJ+N1ZFmcr4JJugKj1eyUiSEtLC6NmE36PzV3xqu0s78HEEgghnOPDR9KUVyqYmPw== X-Received: by 10.107.128.72 with SMTP id b69mr6651695iod.87.1464815860136; Wed, 01 Jun 2016 14:17:40 -0700 (PDT) Received: from cm.amd.com ([165.204.55.251]) by smtp.gmail.com with ESMTPSA id m123sm10696475iom.5.2016.06.01.14.17.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2016 14:17:39 -0700 (PDT) From: Alex Deucher X-Google-Original-From: Alex Deucher To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm/amdgpu: add late_fini for ip_funcs Date: Wed, 1 Jun 2016 17:17:29 -0400 Message-Id: <1464815851-29658-2-git-send-email-alexander.deucher@amd.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464815851-29658-1-git-send-email-alexander.deucher@amd.com> References: <1464815851-29658-1-git-send-email-alexander.deucher@amd.com> MIME-Version: 1.0 Cc: Alex Deucher , Monk Liu X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Monk Liu This adds a late_fini function for handling special ordering issues between ip modules at tear down time. Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/include/amd_shared.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index 147b2eb..afbd876 100644 --- a/drivers/gpu/drm/amd/include/amd_shared.h +++ b/drivers/gpu/drm/amd/include/amd_shared.h @@ -159,6 +159,7 @@ struct amd_ip_funcs { int (*hw_init)(void *handle); /* tears down the hw state */ int (*hw_fini)(void *handle); + void (*late_fini)(void *handle); /* handles IP specific hw/sw changes for suspend */ int (*suspend)(void *handle); /* handles IP specific hw/sw changes for resume */