All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liu Ying <Ying.Liu@freescale.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: devel@driverdev.osuosl.org,
	Fabio Estevam <fabio.estevam@freescale.com>,
	kernel@pengutronix.de, dri-devel@lists.freedesktop.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH 01/11] staging: drm/imx: also allow to allocate only 2 DMFC slots for DP full plane
Date: Fri, 11 Oct 2013 15:12:47 +0800	[thread overview]
Message-ID: <5257A4EF.1070808@freescale.com> (raw)
In-Reply-To: <1381414726-13904-2-git-send-email-p.zabel@pengutronix.de>

Hi Philipp,

On 10/10/2013 10:18 PM, Philipp Zabel wrote:
> 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>
> ---
>  drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c b/drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c
> index 2e97c33..98070dd 100644
> --- a/drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c
> +++ b/drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c
> @@ -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) */

The commit message mentions that the size of 2 slots is 128*128-bit, that is, 128*16-byte.
This contradicts the above annotation(128*4 bytes (2 slots)).

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

Regards,
Liu Ying

  reply	other threads:[~2013-10-11  7:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-10 14:18 [PATCH 0/11] i.MX RGB565, plane and PRIME support Philipp Zabel
2013-10-10 14:18 ` [PATCH 01/11] staging: drm/imx: also allow to allocate only 2 DMFC slots for DP full plane Philipp Zabel
2013-10-11  7:12   ` Liu Ying [this message]
2013-10-10 14:18 ` [PATCH 02/11] staging: drm/imx: make struct ipu_rgb format definitions const Philipp Zabel
2013-10-10 14:18 ` [PATCH 03/11] staging: drm/imx: fix RGB formats, make ipu_cpmem_set_fmt take a drm_fourcc Philipp Zabel
2013-10-10 14:18 ` [PATCH 04/11] staging: drm/imx: add BGR565 format Philipp Zabel
2013-10-10 14:18 ` [PATCH 05/11] staging: drm/imx: Add 24-bit BGR support to DC Philipp Zabel
2013-10-10 14:18 ` [PATCH 06/11] staging: drm/imx: make waiting for idle channel optional Philipp Zabel
2013-10-10 14:18 ` [PATCH 07/11] staging: drm-imx: add DRM_FORMAT_BGR888 to ipu crtc driver Philipp Zabel
2013-10-10 14:18 ` [PATCH 08/11] staging: drm/imx: ipuv3-crtc: remove unused struct ipu_framebuffer Philipp Zabel
2013-10-10 14:18 ` [PATCH 09/11] staging: drm/imx: fix pageflip events during device close Philipp Zabel
2013-10-10 14:18 ` [PATCH 10/11] staging: drm/imx: add drm plane support Philipp Zabel
2013-10-10 14:18 ` [PATCH 11/11] staging: drm/imx: Enable DRM PRIME support Philipp Zabel
2013-10-11 22:30 ` [PATCH 0/11] i.MX RGB565, plane and " Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5257A4EF.1070808@freescale.com \
    --to=ying.liu@freescale.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fabio.estevam@freescale.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel@pengutronix.de \
    --cc=p.zabel@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.