lkml.org 
[lkml]   [2021]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] uacce: add print information if not enable sva
From
Date
On Fri, 2021-06-04 at 15:46 +0800, Kai Ye wrote:
> Add print information necessary if user not enable sva.
[]
> diff --git a/drivers/misc/uacce/uacce.c b/drivers/misc/uacce/uacce.c
[]
> @@ -387,15 +387,22 @@ static void uacce_release(struct device *dev)
>  
>
>  static unsigned int uacce_enable_sva(struct device *parent, unsigned int flags)
>  {
> + int ret;
[]
> + ret = iommu_dev_enable_feature(parent, IOMMU_DEV_FEAT_IOPF);
> + if (ret) {
> + dev_err(parent, "failed to enable IOPF feature! ret = %d\n", ret);

Perhaps use %pe, ERR_PTR(ret) to get descriptive error output

> + dev_err(parent, "failed to enable SVA feature! ret = %d\n", ret);

here too


\
 
 \ /
  Last update: 2021-06-04 09:57    [W:0.567 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site