Skip to content

Commit

Permalink
staging: drm/imx: also allow to allocate only 2 DMFC slots for DP ful…
Browse files Browse the repository at this point in the history
…l plane

Connecting a 320x240 parallel display on i.MX6 resulted in an invalid DRDY
signal because the DC would not receive NL/EOL events on every line.
Reducing the allocated DMFC space from 4 slots (256 * 128-bit) to 2 slots
(128 * 128-bit) solved the problem.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Philipp Zabel authored and Greg Kroah-Hartman committed Oct 11, 2013
1 parent c35d6a3 commit a2210d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,13 @@ int ipu_dmfc_alloc_bandwidth(struct dmfc_channel *dmfc,
goto out;
}

/* Always allocate at least 128*4 bytes (2 slots) */
if (slots < 2)
slots = 2;

/* For the MEM_BG channel, first try to allocate twice the slots */
if (dmfc->data->ipu_channel == IPUV3_CHANNEL_MEM_BG_SYNC)
segment = dmfc_find_slots(priv, slots * 2);
else if (slots < 2)
/* Always allocate at least 128*4 bytes (2 slots) */
slots = 2;

if (segment >= 0)
slots *= 2;
else
Expand Down

0 comments on commit a2210d5

Please sign in to comment.