From patchwork Fri Apr 24 22:17:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 11509525 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7562514B4 for ; Fri, 24 Apr 2020 22:40:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 53B5720728 for ; Fri, 24 Apr 2020 22:40:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Le6o+K1q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 53B5720728 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 22FED6EB68; Fri, 24 Apr 2020 22:40:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1336 seconds by postgrey-1.36 at gabe; Fri, 24 Apr 2020 22:40:20 UTC Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by gabe.freedesktop.org (Postfix) with ESMTPS id E651E6EB68 for ; Fri, 24 Apr 2020 22:40:20 +0000 (UTC) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 03OMHxjx002836; Fri, 24 Apr 2020 17:17:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1587766679; bh=T0axgPiXjr3H0jD2jMNWOwBKqepTY1vs30dGpSgzzyU=; h=From:To:CC:Subject:Date; b=Le6o+K1qyHGjNstdY23h1uG95X2FRGIw+09DNBkrR77CVVuaYQJ7Lqf5gHenCaKt9 YCd+pkI1hkz0R22ciU9As+KDL7xSpJYBRrGFWS1Xb0y0nFhxNw+hXp2o87VwCSggO1 Ck16VQvSx5eNE9RsfIpGM+Jve7b3wLhUeOGbAdts= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 03OMHx2H056150 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Apr 2020 17:17:59 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 24 Apr 2020 17:17:59 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 24 Apr 2020 17:17:59 -0500 Received: from lelv0597.itg.ti.com (lelv0597.itg.ti.com [10.181.64.32]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 03OMHx5P106506; Fri, 24 Apr 2020 17:17:59 -0500 Received: from localhost ([10.250.38.163]) by lelv0597.itg.ti.com (8.14.7/8.14.7) with ESMTP id 03OMHwDT081774; Fri, 24 Apr 2020 17:17:58 -0500 From: "Andrew F. Davis" To: Sumit Semwal , John Stultz , Benjamin Gaignard , Liam Mark , Laura Abbott , Brian Starkey Subject: [PATCH] dma-buf: heaps: Initialize during core instead of subsys Date: Fri, 24 Apr 2020 18:17:58 -0400 Message-ID: <20200424221758.15984-1-afd@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, "Andrew F . Davis" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Some clients of DMA-Heaps probe earlier than subsys_initcall(), this can cause issues when these clients call dma_heap_add() before the core DMA-Heaps framework has initialized. DMA-Heaps should initialize during core startup to get ahead of all users. Signed-off-by: Andrew F. Davis Acked-by: John Stultz --- drivers/dma-buf/dma-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index afd22c9dbdcf..af6edfbeddfe 100644 --- a/drivers/dma-buf/dma-heap.c +++ b/drivers/dma-buf/dma-heap.c @@ -295,4 +295,4 @@ static int dma_heap_init(void) return 0; } -subsys_initcall(dma_heap_init); +core_initcall(dma_heap_init);