Re: [PATCH V3] scsi: ufs: Add specific callback for setting DMA mask

2018-05-27 Thread Alim Akhtar
Hi Bart On 05/20/2018 07:51 PM, Bart Van Assche wrote: > On Sun, 2018-05-20 at 07:54 +0530, Alim Akhtar wrote: >> diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c >> index a355d98..9a1374e 100644 >> --- a/drivers/scsi/ufs/ufshcd.c >> +++ b/drivers/scsi/ufs/ufshcd.c >> @@ -7781,6

Re: [PATCH V3] scsi: ufs: Add specific callback for setting DMA mask

2018-05-20 Thread Bart Van Assche
On Sun, 2018-05-20 at 07:54 +0530, Alim Akhtar wrote: > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > index a355d98..9a1374e 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -7781,6 +7781,9 @@ EXPORT_SYMBOL_GPL(ufshcd_dealloc_host); > */ > st

[PATCH V3] scsi: ufs: Add specific callback for setting DMA mask

2018-05-19 Thread Alim Akhtar
Currently DMA mask for UFS HCI is set by reading CAP register's [64AS] bit. Some HCI controller like Exynos support 36-bit bus address. This works perfectly fine with DMA mask set as 64 in case there is no IOMMU attached to HCI. In case if HCI is behind an IOMMU, setting DMA mask as 64 bit won't wo

Re: [PATCH V3] scsi: ufs: Add specific callback for setting DMA mask

2018-05-19 Thread Alim Akhtar
Hi All Please ignore the below patch, sorry for the noise. Will send updated patch soon. Regards, Alim On 05/20/2018 07:41 AM, Bharat Uppal wrote: > From: Alim Akhtar > > Currently DMA mask for UFS HCI is set by reading CAP register's > [64AS] bit. Some HCI controller like Exynos support 36-bit

[PATCH V3] scsi: ufs: Add specific callback for setting DMA mask

2018-05-19 Thread Bharat Uppal
From: Alim Akhtar Currently DMA mask for UFS HCI is set by reading CAP register's [64AS] bit. Some HCI controller like Exynos support 36-bit bus address. This works perfectly fine with DMA mask set as 64 in case there is no IOMMU attached to HCI. In case if HCI is behind an IOMMU, setting DMA mas