From patchwork Mon Aug 29 12:55:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michal Marek X-Patchwork-Id: 9303957 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 6B6FC60756 for ; Mon, 29 Aug 2016 12:56:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DB1F28865 for ; Mon, 29 Aug 2016 12:56:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51D2C288B1; Mon, 29 Aug 2016 12:56:03 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5BA0E288AF for ; Mon, 29 Aug 2016 12:56:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4EEDA89F89; Mon, 29 Aug 2016 12:56:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 16A6F89F89 for ; Mon, 29 Aug 2016 12:56:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 69497ACC5; Mon, 29 Aug 2016 12:55:57 +0000 (UTC) Received: by sepie.suse.cz (Postfix, from userid 10020) id 9BB1D40DE2; Mon, 29 Aug 2016 14:55:56 +0200 (CEST) From: Michal Marek To: =?UTF-8?q?Michel=20D=C3=A4nzer?= , Oded Gabbay Subject: [PATCH v2] amdgpu, radeon: Add amdkfd softdep Date: Mon, 29 Aug 2016 14:55:38 +0200 Message-Id: <1472475338-30918-1-git-send-email-mmarek@suse.com> X-Mailer: git-send-email 2.6.6 In-Reply-To: <87cbad24-12a9-74d4-39bc-f31998828408@daenzer.net> References: <87cbad24-12a9-74d4-39bc-f31998828408@daenzer.net> MIME-Version: 1.0 Cc: Martin Jambor , dri-devel@lists.freedesktop.org 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 Both amdgpu and radeon load amdkfd via symbol_request(). Add a softdep hint so that userspace knows that each of them needs amdkfd in the initrd. Reported-and-tested-by: Martin Jambor [amdgpu] Reported-by: Michel Dänzer [radeon] Signed-off-by: Michal Marek --- v2: Also patch radeon drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 9aa533cf4ad1..9c469cd311ca 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -633,3 +633,4 @@ module_exit(amdgpu_exit); MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL and additional rights"); +MODULE_SOFTDEP("pre: amdkfd"); diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index c01a7c6abb49..0a60125c0138 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -617,3 +617,4 @@ module_exit(radeon_exit); MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL and additional rights"); +MODULE_SOFTDEP("pre: amdkfd");