[PATCH v2 2/5] gpu: ipu-v3: Add mem2mem image conversion support to IC
Philipp Zabel
p.zabel at pengutronix.de
Thu May 28 03:35:29 PDT 2015
Hi Jean-Michel,
Am Mittwoch, den 27.05.2015, 20:42 +0200 schrieb Jean-Michel Hautbois:
[...]
> > The tiling code has a parameter to optionally round frame sizes up or down
> > and avoid overdraw in compositing scenarios.
>
> Can you detail what you call "compositing scenarios" ?
I meant using the v4l2 selection API to draw the scaled result into a
compose rectangle in a larger v4l2 capture buffer. To avoid overdrawing
pixels outside of the rectangle, its right edge must be aligned with the
burst size of the rightmost tiles.
[...]
> > @@ -152,6 +203,19 @@ struct ipu_ic {
> > bool in_use;
> >
> > struct ipu_ic_priv *priv;
> > +
> > + struct ipuv3_channel *input_channel_p;
> > + struct ipuv3_channel *input_channel;
> > + struct ipuv3_channel *input_channel_n;
> > + struct ipuv3_channel *output_channel;
> > + struct ipuv3_channel *rotation_input_channel;
> > + struct ipuv3_channel *rotation_output_channel;
> > +
> > + struct list_head image_list;
> > +
> > + struct workqueue_struct *workqueue;
> > + struct work_struct work;
> > + struct completion complete;
> > };
>
> As this is a workqueue, it can sleep, and you don't know when it is
> called exactly.
> Can we be sure that it is "real-time" compatible ? If you have this
> scaler after a capture source, and before the coda driver, you can be
> starved of buffers ?
> And you can even have multiple instances of the scaler, so you
> probably can get into troubles if there is not enough buffers on the
> capture and output queues, right ?
When there are no buffers available, the m2m scaler won't run. What do
you mean by "real-time" compatible? We can't make any guarantees that
scaling will be finished in a certain timeframe in general, as the
scaler competes with other hardware units for memory bandwidth, which
often is the limiting factor.
If multiple scaling instances are run on the same IPU, they will take
turns using the IC.
> I have played with it a bit and have been successful having two
> instances on IPU1 and two other on IPU2.
> But I don't know if there can be side effects...
regards
Philipp
More information about the dri-devel
mailing list