[libcamera-devel] [PATCH] libcamera: pipeline: ipu3: Report error when failing to configure

Umang Jain umang.jain at ideasonboard.com
Wed Jun 16 13:10:42 CEST 2021


Hi Kieran,

On 6/16/21 3:26 PM, Kieran Bingham wrote:
> If the IPA fails to configure, this can now be caught by the pipeline handler
> but the cause may not be clear.
>
> If the IPA is isolated, then reports from that IPA will not be visible
> in the libcamera logs directly.
Drive by: We discussed file-logging for IPAs(isolated or otherwise). I 
wonder while at it,
would it be worth to let pipeline-handler know how IPA is loaded (in 
isolated context
or otherwise) by querying a flag in Proxy maybe and log that flag value 
in PH(s)?
>
> Print the return error value to help identify any issue that has arisen.
>
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain at ideasonboard.com>
> ---
>   src/libcamera/pipeline/ipu3/ipu3.cpp | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
> index 35f1e977ab19..113e70a5e692 100644
> --- a/src/libcamera/pipeline/ipu3/ipu3.cpp
> +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
> @@ -644,7 +644,8 @@ int PipelineHandlerIPU3::configure(Camera *camera, CameraConfiguration *c)
>   
>   	ret = data->ipa_->configure(configInfo);
>   	if (ret) {
> -		LOG(IPU3, Error) << "Failed to configure IPA";
> +		LOG(IPU3, Error) << "Failed to configure IPA: "
> +				 << strerror(-ret);
>   		return ret;
>   	}
>   


More information about the libcamera-devel mailing list