diff options
author | 2016-06-03 14:21:34 -0700 | |
---|---|---|
committer | 2016-06-08 15:12:01 -0700 | |
commit | ce492b3b8f99cf9d2f807ec22d8805c996a09503 (patch) | |
tree | 59ea3a34b3d513fe6b54682cd0e243861a7e9c77 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 4.7-rc2 (diff) | |
download | linux-dev-ce492b3b8f99cf9d2f807ec22d8805c996a09503.tar.xz linux-dev-ce492b3b8f99cf9d2f807ec22d8805c996a09503.zip |
drm/fsl-dcu: use flat regmap cache
Using flat regmap cache instead of RB-tree to avoid the following
lockdep warning on driver load:
WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2755 lockdep_trace_alloc+0x15c/0x160()
DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
The RB-tree regmap cache needs to allocate new space on first
writes. However, allocations in an atomic context (e.g. when a
spinlock is held) are not allowed. The function regmap_write
calls map->lock, which acquires a spinlock in the fast_io case.
Since the FSL DCU driver uses MMIO, the regmap bus of type
regmap_mmio is being used which has fast_io set to true.
Use flat regmap cache and specify max register to be large
enouth to cover all registers available in LS1021a and Vybrids
register space.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Cc: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions