Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753648AbcCXNd5 (ORCPT ); Thu, 24 Mar 2016 09:33:57 -0400 Received: from webbox1416.server-home.net ([77.236.96.61]:55984 "EHLO webbox1416.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888AbcCXNdt (ORCPT ); Thu, 24 Mar 2016 09:33:49 -0400 From: Alexander Stein To: Stefan Agner , Alison Wang , David Airlie Cc: Alexander Stein , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] drm: fsl-dcu: Use flat cache Date: Thu, 24 Mar 2016 14:33:33 +0100 Message-Id: <1458826413-3916-1-git-send-email-alexander.stein@systec-electronic.com> X-Mailer: git-send-email 2.7.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1041 Lines: 31 Using REGCACHE_RBTREE for MMIO regmap is not valid as spinlock's will be used during cache allocation. This fixes the following bug: BUG: sleeping function called from invalid context at mm/slab.h:388 in_atomic(): 1, irqs_disabled(): 128, pid: 192, name: udevd [...] Signed-off-by: Alexander Stein --- Please refer also to the discussion at https://lists.freedesktop.org/archives/dri-devel/2016-January/098696.html drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c index e8d9337..ea65140 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c @@ -40,7 +40,7 @@ static const struct regmap_config fsl_dcu_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_FLAT, .volatile_reg = fsl_dcu_drm_is_volatile_reg, }; -- 2.7.3