lkml.org 
[lkml]   [2021]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: Re: [PATCH v24 2/4] scsi: ufs: L2P map management for HPB read
From
Date
> > +static int ufshpb_init_mem_wq(void)
> > +{
> > + int ret;
> > + unsigned int pool_size;
> > +
> > + ufshpb_mctx_cache = kmem_cache_create("ufshpb_mctx_cache",
> > + sizeof(struct
> > ufshpb_map_ctx),
> > + 0, 0, NULL);
> > + if (!ufshpb_mctx_cache) {
> > + pr_err("ufshpb: cannot init mctx cache\n");
> > + return -ENOMEM;
> > + }
> > +
> > + pool_size = PAGE_ALIGN(ufshpb_host_map_kbytes * 1024) /
> > PAGE_SIZE;
> > + pr_info("%s:%d ufshpb_host_map_kbytes %u pool_size %u\n",
> > + __func__, __LINE__, ufshpb_host_map_kbytes,
> > pool_size);
> > +
>
> I think print function name is not proper while booting.
> And one HPB is associated with one HBA, if there are two UFS
> controllers, how can I differentiate them?

I will use dev_info instead of pr_info.

Thanks,
Daejun

> Bean
>
>
>

\
 
 \ /
  Last update: 2021-02-26 05:55    [W:0.098 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site