Re: scsi: ufs: add support for query requests

2013-04-15 Thread Dolev Raviv
Santosh, thank you very much for your comments. Most where adopted, others where replied inline. Please note the comment on removing ufs_coe.c file. I will appreciated your opinion on that. linux-...@vger.kernel.org is for UFS filesystem. The API for submitting a query request is

[PATCH V2] scsi: ufs: add support for query requests

2013-04-15 Thread Dolev Raviv
, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv dra...@codeaurora.org --- changes for v2: - Moved ufs_query_request

Re: [PATCH V2] scsi: ufs: add support for query requests

2013-04-18 Thread Dolev Raviv
Hi All, A minor bug was spotted, as shown blow. The fix will be submitted with the next version. +static int ufshcd_compose_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) +{ + u32 upiu_flags; + int ret = 0; + + if (!lrbp) { + dev_err(hba-dev, %s: lrbp can not

[PATCH] scsi: ufs: add support for query requests

2013-04-09 Thread Dolev Raviv
, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv dra...@codeaurora.org diff --git a/drivers/scsi/ufs/Makefile b/drivers

[PATCH] scsi: ufs: read door bell register after clearing interrupt aggregation

2013-08-25 Thread Dolev Raviv
after resetting the interrupt aggregation and handles completed TRs. Signed-off-by: Dolev Raviv dra...@codeaurora.org diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 4dca9b4..30c84d8 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1915,6 +1915,13

[PATCH V2] scsi: ufs: Add fDeviceInit set flag during initialization

2013-05-08 Thread Dolev Raviv
-LU READY state to Device Initialization IN PROGRESS state. When the initialization is complete the device will reset the fDeviceInit flag. Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org --- Changes for V2: - Add the query sending api via

Re: [PATCH V2] scsi: ufs: Add fDeviceInit set flag during initialization

2013-05-09 Thread Dolev Raviv
+ */ +int ufshcd_query_request(struct ufs_hba *hba, + struct ufs_query_req *query, + u8 *descriptor, + struct ufs_query_res *response, + int timeout, + int retries) +{ +

[PATCH V4] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-05-09 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org -- Changes for V4: - Add NULL pointer check - Changed fix from v3 to bug on since hba can't be null Changes for V3: - Fix static checker error Changes for V2: - Add the query sending

[PATCH 2/2] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-06-10 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 69c0328..6ce99b0 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -43,6 +43,8 @@ #define

[PATCH 1/2] scsi: ufs: Add support for sending NOP OUT UPIU

2013-06-10 Thread Dolev Raviv
commands. This design allows us sending maintenance commands before the queue was initialized or when its blocked. For example initiating urgent background operations which requires to block all incoming SCSI requests. Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Signed-off-by: Dolev Raviv

[PATCH 1/2] scsi: ufs: Add support for sending NOP OUT UPIU

2013-06-10 Thread Dolev Raviv
commands. This design allows us sending maintenance commands before the queue was initialized or when its blocked. For example initiating urgent background operations which requires to block all incoming SCSI requests. Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Signed-off-by: Dolev Raviv

[PATCH 2/2] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-06-10 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 69c0328..6ce99b0 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -43,6 +43,8 @@ #define

[PATCH V4] scsi: ufs: add support for query requests

2013-05-01 Thread Dolev Raviv
, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv dra...@codeaurora.org --- changes for v4: - Removed un-necessary inline

[PATCH V5] scsi: ufs: add support for query requests

2013-05-05 Thread Dolev Raviv
, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Santosh Y santos...@gmail.com changes

[PATCH V3] scsi: ufs: add support for query requests

2013-04-25 Thread Dolev Raviv
, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv dra...@codeaurora.org --- changes for v3: - Reworked validating response

[PATCH V1 2/8] scsi: ufs: Fix the response UPIU length setting

2013-05-12 Thread Dolev Raviv
The response UPIU length should be in DWORD and not in bytes. Signed-off-by: Maya Erez me...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Signed-off-by: Dolev Raviv dra...@codeaurora.org Tested-by: Dolev Raviv dra...@codeaurora.org diff --git a/drivers/scsi/ufs

[PATCH V1 6/8] scsi: ufs: rework link start-up process

2013-05-12 Thread Dolev Raviv
...@codeaurora.org Signed-off-by: Dolev Raviv dra...@codeaurora.org Tested-by: Maya Erez me...@codeaurora.org --- Change in v4: - Addressed late interrupt case (Sujit). - Move print message in link startup (Maya). diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index f4293d1..333812f 100644

[PATCH V1 8/8] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-05-12 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com -- Changes for V4: - Add NULL pointer check - Changed fix from v3 to bug on since hba can't be null Changes for V3: - Fix static checker error

[PATCH V1 4/8] scsi: ufs: amend interrupt configuration

2013-05-12 Thread Dolev Raviv
It makes interrupt setting more flexible especially for disabling. And wrong bit mask is fixed for ver 1.0. [17:16] is added for mask. Signed-off-by: Seungwon Jeon tgih@samsung.com Signed-off-by: Dolev Raviv dra...@codeaurora.org Tested-by: Maya Erez me...@codeaurora.org diff --git a/drivers

[PATCH V1 7/8] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-12 Thread Dolev Raviv
the device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Signed-off-by: Dolev Raviv dra...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com --- v5: - rebase on top of Seungwon Jeon's

[PATCH V1 3/8] scsi: ufs: wrap the i/o access operations

2013-05-12 Thread Dolev Raviv
Simplify operations with hiding mmio_base. Signed-off-by: Seungwon Jeon tgih@samsung.com Signed-off-by: Dolev Raviv dra...@codeaurora.org Tested-by: Maya Erez me...@codeaurora.org diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7ce40a5..3946b9d 100644 --- a/drivers

[PATCH V1 1/8] Documentation: devicetree: Add DT bindings for UFS host controller

2013-05-12 Thread Dolev Raviv
Compatible list is used in commit 03b1781 but is not documented. Add necessary device tree bindings to describe on-chip UFS host controllers. Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt

[PATCH V1 5/8] scsi: ufs: fix interrupt status clears

2013-05-12 Thread Dolev Raviv
There is no need to check the version to clear the interrupt status. And the order is changed prior to actual handling. Signed-off-by: Seungwon Jeon tgih@samsung.com Signed-off-by: Dolev Raviv dra...@codeaurora.org Tested-by: Maya Erez me...@codeaurora.org diff --git a/drivers/scsi/ufs

RE: [PATCH V1 3/8] scsi: ufs: wrap the i/o access operations

2013-05-13 Thread Dolev Raviv
On Sunday, May 12, 2013, Dolev Raviv wrote: Author should be identified here. (From: author...) Except last patch of series(8/8), all of patches are not from you. Simplify operations with hiding mmio_base. Signed-off-by: Seungwon Jeon tgih@samsung.com Signed-off-by: Dolev Raviv dra

[PATCH V1 5/8] scsi: ufs: fix interrupt status clears

2013-05-13 Thread Dolev Raviv
There is no need to check the version to clear the interrupt status. And the order is changed prior to actual handling. Signed-off-by: Seungwon Jeon tgih@samsung.com Tested-by: Maya Erez me...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com diff --git a/drivers/scsi/ufs/ufshcd.c

[PATCH V1 6/8] scsi: ufs: rework link start-up process

2013-05-13 Thread Dolev Raviv
Link start-up requires long time with multiphase handshakes between UFS host and device. This affects driver's probe time. This patch let link start-up run asynchronously. Link start-up will be executed at the end of prove separately. Along with this change, the following is worked. Defined

[PATCH V1 7/8] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-13 Thread Dolev Raviv
the device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Signed-off-by: Dolev Raviv dra...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com --- v5: - rebase on top of Seungwon Jeon's

[PATCH V1 8/8] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-05-13 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com -- Changes for V4: - Add NULL pointer check - Changed fix from v3 to bug on since hba can't be null Changes for V3: - Fix static checker error

[PATCH V1 3/8] scsi: ufs: wrap the i/o access operations

2013-05-13 Thread Dolev Raviv
Simplify operations with hiding mmio_base. Signed-off-by: Seungwon Jeon tgih@samsung.com Tested-by: Maya Erez me...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7ce40a5..3946b9d 100644 ---

[PATCH V1 4/8] scsi: ufs: amend interrupt configuration

2013-05-13 Thread Dolev Raviv
It makes interrupt setting more flexible especially for disabling. And wrong bit mask is fixed for ver 1.0. [17:16] is added for mask. Signed-off-by: Seungwon Jeon tgih@samsung.com Tested-by: Maya Erez me...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com diff --git

[PATCH V1 2/8] scsi: ufs: Fix the response UPIU length setting

2013-05-13 Thread Dolev Raviv
The response UPIU length should be in DWORD and not in bytes. Signed-off-by: Maya Erez me...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Signed-off-by: Dolev Raviv dra...@codeaurora.org Tested-by: Dolev Raviv dra...@codeaurora.org diff --git a/drivers/scsi/ufs

[PATCH V1 1/8] Documentation: devicetree: Add DT bindings for UFS host controller

2013-05-13 Thread Dolev Raviv
Compatible list is used in commit 03b1781 but is not documented. Add necessary device tree bindings to describe on-chip UFS host controllers. Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt

[PATCH V2 1/9] scsi: ufs: add support for query requests

2013-05-14 Thread Dolev Raviv
, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Santosh Y santos...@gmail.com diff

[PATCH V2 2/9] Documentation: devicetree: Add DT bindings for UFS host controller

2013-05-14 Thread Dolev Raviv
Compatible list is used in commit 03b1781 but is not documented. Add necessary device tree bindings to describe on-chip UFS host controllers. Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt

[PATCH V2 4/9] scsi: ufs: wrap the i/o access operations

2013-05-14 Thread Dolev Raviv
Simplify operations with hiding mmio_base. Signed-off-by: Seungwon Jeon tgih@samsung.com Tested-by: Maya Erez me...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7ce40a5..3946b9d 100644 ---

[PATCH V2 6/9] scsi: ufs: fix interrupt status clears

2013-05-14 Thread Dolev Raviv
There is no need to check the version to clear the interrupt status. And the order is changed prior to actual handling. Signed-off-by: Seungwon Jeon tgih@samsung.com Tested-by: Maya Erez me...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com diff --git a/drivers/scsi/ufs/ufshcd.c

[PATCH V2 7/9] scsi: ufs: rework link start-up process

2013-05-14 Thread Dolev Raviv
Link start-up requires long time with multiphase handshakes between UFS host and device. This affects driver's probe time. This patch let link start-up run asynchronously. Link start-up will be executed at the end of prove separately. Along with this change, the following is worked. Defined

[PATCH V2 9/9] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-05-14 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv dra...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 086ff03..742363d 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs

[PATCH V2 8/9] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-14 Thread Dolev Raviv
the device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com Tested-by: Dolev Raviv dra...@codeaurora.org diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers

[PATCH V2 5/9] scsi: ufs: amend interrupt configuration

2013-05-14 Thread Dolev Raviv
It makes interrupt setting more flexible especially for disabling. And wrong bit mask is fixed for ver 1.0. [17:16] is added for mask. Signed-off-by: Seungwon Jeon tgih@samsung.com Tested-by: Maya Erez me...@codeaurora.org Acked-by: Santosh Y santos...@gmail.com diff --git

[PATCH V2 3/9] scsi: ufs: Fix the response UPIU length setting

2013-05-14 Thread Dolev Raviv
The response UPIU length should be in DWORD and not in bytes. Signed-off-by: Maya Erez me...@codeaurora.org Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org Tested-by: Dolev Raviv dra...@codeaurora.org diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 4ddc8be

RE: [RFC/PATCH] mtd: ubi: Fix ubi free PEBs count calculation

2014-04-06 Thread Dolev Raviv
Reviewed-by: Dolev Raviv dra...@codeaurora.org Thanks, Dolev -- QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -Original Message- From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf

RE: [RFC/PATCH] mtd: ubi: Free peb's synchronously for fastmap

2014-04-06 Thread Dolev Raviv
Reviewed-by: Dolev Raviv dra...@codeaurora.org Thanks, Dolev -- QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -Original Message- From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf

RE: [RFC/PATCH] mtd: ubi: Test return value of __wl_get_peb

2014-04-06 Thread Dolev Raviv
Reviewed-by: Dolev Raviv dra...@codeaurora.org Thanks, Dolev -- QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -Original Message- From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf

RE: [PATCH v5 00/15] Big fixes, retries, handle a race condition

2015-10-28 Thread Dolev Raviv
Reviewed-by: Dolev Raviv <dra...@codeaurora.org> Thanks, Dolev -- Qualcomm Israel, on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -Original Message- From: Yaniv Gardi [mail

RE: [PATCH v5 03/15] scsi: ufs: implement scsi host timeout handler

2016-03-08 Thread Dolev Raviv
r = ufshcd_hold(hba, true); >> + err = ufshcd_hold(hba, false); >> if (err) { >> err = SCSI_MLQUEUE_HOST_BUSY; >> clear_bit_unlock(tag, >lrb_in_use); >> >> which, by reading the code, should be avoiding this i

[PATCH] scsi: ufs: add support for query requests

2013-04-09 Thread Dolev Raviv
bytes together, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/Makefile b/drivers/scsi/ufs/Ma

[PATCH V1 5/8] scsi: ufs: fix interrupt status clears

2013-05-13 Thread Dolev Raviv
There is no need to check the version to clear the interrupt status. And the order is changed prior to actual handling. Signed-off-by: Seungwon Jeon Tested-by: Maya Erez Acked-by: Santosh Y diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index c342a38..f4293d1 100644 ---

[PATCH V1 6/8] scsi: ufs: rework link start-up process

2013-05-13 Thread Dolev Raviv
Link start-up requires long time with multiphase handshakes between UFS host and device. This affects driver's probe time. This patch let link start-up run asynchronously. Link start-up will be executed at the end of prove separately. Along with this change, the following is worked. Defined

[PATCH V1 7/8] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-13 Thread Dolev Raviv
the device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv Acked-by: Santosh Y --- v5: - rebase on top of Seungwon Jeon's UFS V4 patchset v4: - Removed readl_poll_timeout

[PATCH V1 8/8] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-05-13 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma Acked-by: Santosh Y -- Changes for V4: - Add NULL pointer check - Changed fix from v3 to bug on since hba can't be null Changes for V3: - Fix static checker error Changes for V2: - Add the query sending api via SCSI from

[PATCH V1 3/8] scsi: ufs: wrap the i/o access operations

2013-05-13 Thread Dolev Raviv
Simplify operations with hiding mmio_base. Signed-off-by: Seungwon Jeon Tested-by: Maya Erez Acked-by: Santosh Y diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7ce40a5..3946b9d 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -71,7 +71,7 @@

[PATCH V1 4/8] scsi: ufs: amend interrupt configuration

2013-05-13 Thread Dolev Raviv
It makes interrupt setting more flexible especially for disabling. And wrong bit mask is fixed for ver 1.0. [17:16] is added for mask. Signed-off-by: Seungwon Jeon Tested-by: Maya Erez Acked-by: Santosh Y diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index

[PATCH V1 2/8] scsi: ufs: Fix the response UPIU length setting

2013-05-13 Thread Dolev Raviv
The response UPIU length should be in DWORD and not in bytes. Signed-off-by: Maya Erez Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv Tested-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 4ddc8be..7ce40a5 100644 --- a/drivers/scsi/ufs

[PATCH V1 1/8] Documentation: devicetree: Add DT bindings for UFS host controller

2013-05-13 Thread Dolev Raviv
Compatible list is used in commit 03b1781 but is not documented. Add necessary device tree bindings to describe on-chip UFS host controllers. Signed-off-by: Sujit Reddy Thumma diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt

[PATCH V2 1/9] scsi: ufs: add support for query requests

2013-05-14 Thread Dolev Raviv
gether, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv Signed-off-by: Santosh Y diff --git a/drivers/scsi/ufs/ufs.h b/d

[PATCH V2 2/9] Documentation: devicetree: Add DT bindings for UFS host controller

2013-05-14 Thread Dolev Raviv
Compatible list is used in commit 03b1781 but is not documented. Add necessary device tree bindings to describe on-chip UFS host controllers. Signed-off-by: Sujit Reddy Thumma diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt

[PATCH V2 4/9] scsi: ufs: wrap the i/o access operations

2013-05-14 Thread Dolev Raviv
Simplify operations with hiding mmio_base. Signed-off-by: Seungwon Jeon Tested-by: Maya Erez Acked-by: Santosh Y diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7ce40a5..3946b9d 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -71,7 +71,7 @@

[PATCH V2 6/9] scsi: ufs: fix interrupt status clears

2013-05-14 Thread Dolev Raviv
There is no need to check the version to clear the interrupt status. And the order is changed prior to actual handling. Signed-off-by: Seungwon Jeon Tested-by: Maya Erez Acked-by: Santosh Y diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index c342a38..f4293d1 100644 ---

[PATCH V2 7/9] scsi: ufs: rework link start-up process

2013-05-14 Thread Dolev Raviv
Link start-up requires long time with multiphase handshakes between UFS host and device. This affects driver's probe time. This patch let link start-up run asynchronously. Link start-up will be executed at the end of prove separately. Along with this change, the following is worked. Defined

[PATCH V2 9/9] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-05-14 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma Acked-by: Santosh Y diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 086ff03..742363d 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -107,8 +107,13 @@ enum

[PATCH V2 8/9] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-14 Thread Dolev Raviv
the device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma Acked-by: Santosh Y Tested-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 333812f..2db550b 100644 --- a/drivers

[PATCH V2 5/9] scsi: ufs: amend interrupt configuration

2013-05-14 Thread Dolev Raviv
It makes interrupt setting more flexible especially for disabling. And wrong bit mask is fixed for ver 1.0. [17:16] is added for mask. Signed-off-by: Seungwon Jeon Tested-by: Maya Erez Acked-by: Santosh Y diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index

[PATCH V2 3/9] scsi: ufs: Fix the response UPIU length setting

2013-05-14 Thread Dolev Raviv
The response UPIU length should be in DWORD and not in bytes. Signed-off-by: Maya Erez Signed-off-by: Sujit Reddy Thumma Tested-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 4ddc8be..7ce40a5 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi

Re: [PATCH V2] scsi: ufs: add support for query requests

2013-04-18 Thread Dolev Raviv
Hi All, A minor bug was spotted, as shown blow. The fix will be submitted with the next version. > +static int ufshcd_compose_upiu(struct ufs_hba *hba, struct ufshcd_lrb > *lrbp) > +{ > + u32 upiu_flags; > + int ret = 0; > + > + if (!lrbp) { > + dev_err(hba->dev, "%s:

[PATCH V4] scsi: ufs: add support for query requests

2013-05-01 Thread Dolev Raviv
gether, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv --- changes for v4: - Removed un-necessary inline modifiers -

[PATCH V5] scsi: ufs: add support for query requests

2013-05-05 Thread Dolev Raviv
gether, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv Signed-off-by: Santosh Y changes for v5: - Removed Kconfig

[PATCH V2] scsi: ufs: Add fDeviceInit set flag during initialization

2013-05-08 Thread Dolev Raviv
-LU READY state to Device Initialization IN PROGRESS state. When the initialization is complete the device will reset the fDeviceInit flag. Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma --- Changes for V2: - Add the query sending api via SCSI from the original query patch diff

Re: [PATCH V2] scsi: ufs: Add fDeviceInit set flag during initialization

2013-05-09 Thread Dolev Raviv
>> + */ >> +int ufshcd_query_request(struct ufs_hba *hba, >> + struct ufs_query_req *query, >> + u8 *descriptor, >> + struct ufs_query_res *response, >> + int timeout, >> + int retries) >>

[PATCH V4] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-05-09 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma -- Changes for V4: - Add NULL pointer check - Changed fix from v3 to bug on since hba can't be null Changes for V3: - Fix static checker error Changes for V2: - Add the query sending api via SCSI from the original query patch

[PATCH V1 2/8] scsi: ufs: Fix the response UPIU length setting

2013-05-12 Thread Dolev Raviv
The response UPIU length should be in DWORD and not in bytes. Signed-off-by: Maya Erez Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv Tested-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 4ddc8be..7ce40a5 100644 --- a/drivers/scsi/ufs

[PATCH V1 6/8] scsi: ufs: rework link start-up process

2013-05-12 Thread Dolev Raviv
completion time of uic command to avoid a permanent wait. Added mutex to guarantee of uic command at a time. Adapted some sequence of controller initialization after link statup according to HCI standard. Signed-off-by: Seungwon Jeon Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv Tested

[PATCH V1 8/8] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-05-12 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma Acked-by: Santosh Y -- Changes for V4: - Add NULL pointer check - Changed fix from v3 to bug on since hba can't be null Changes for V3: - Fix static checker error Changes for V2: - Add the query sending api via SCSI from

[PATCH V1 4/8] scsi: ufs: amend interrupt configuration

2013-05-12 Thread Dolev Raviv
It makes interrupt setting more flexible especially for disabling. And wrong bit mask is fixed for ver 1.0. [17:16] is added for mask. Signed-off-by: Seungwon Jeon Signed-off-by: Dolev Raviv Tested-by: Maya Erez diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 3946b9d

[PATCH V1 7/8] scsi: ufs: Add support for sending NOP OUT UPIU

2013-05-12 Thread Dolev Raviv
the device connection path and test whether the UTP layer on the device side is functional during initialization. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv Acked-by: Santosh Y --- v5: - rebase on top of Seungwon Jeon's UFS V4 patchset v4: - Removed readl_poll_timeout

[PATCH V1 3/8] scsi: ufs: wrap the i/o access operations

2013-05-12 Thread Dolev Raviv
Simplify operations with hiding mmio_base. Signed-off-by: Seungwon Jeon Signed-off-by: Dolev Raviv Tested-by: Maya Erez diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7ce40a5..3946b9d 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -71,7

[PATCH V1 1/8] Documentation: devicetree: Add DT bindings for UFS host controller

2013-05-12 Thread Dolev Raviv
Compatible list is used in commit 03b1781 but is not documented. Add necessary device tree bindings to describe on-chip UFS host controllers. Signed-off-by: Sujit Reddy Thumma diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt

[PATCH V1 5/8] scsi: ufs: fix interrupt status clears

2013-05-12 Thread Dolev Raviv
There is no need to check the version to clear the interrupt status. And the order is changed prior to actual handling. Signed-off-by: Seungwon Jeon Signed-off-by: Dolev Raviv Tested-by: Maya Erez diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index c342a38..f4293d1 100644

RE: [PATCH V1 3/8] scsi: ufs: wrap the i/o access operations

2013-05-13 Thread Dolev Raviv
> On Sunday, May 12, 2013, Dolev Raviv wrote: > Author should be identified here. (From: author...) > Except last patch of series(8/8), all of patches are not from you. > >> Simplify operations with hiding mmio_base. >> >> Signed-off-by: Seungwon Jeon >&g

Re: scsi: ufs: add support for query requests

2013-04-15 Thread Dolev Raviv
Santosh, thank you very much for your comments. Most where adopted, others where replied inline. Please note the comment on removing ufs_coe.c file. I will appreciated your opinion on that. > linux-...@vger.kernel.org is for UFS filesystem. > >> The API for submitting a query request is

[PATCH V2] scsi: ufs: add support for query requests

2013-04-15 Thread Dolev Raviv
gether, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv --- changes for v2: - Moved ufs_query_request to ufshcd.c and r

[PATCH V3] scsi: ufs: add support for query requests

2013-04-25 Thread Dolev Raviv
gether, the rest is used to transfer extra request data (such as descriptor in query requests). In order to accommodate the largest descriptor in the UFS spec (256 bytes) we need to increase the UPIU size. Signed-off-by: Dolev Raviv --- changes for v3: - Reworked validating response UPIU - R

RE: [RFC/PATCH] mtd: ubi: Fix ubi free PEBs count calculation

2014-04-06 Thread Dolev Raviv
Reviewed-by: Dolev Raviv Thanks, Dolev -- QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -Original Message- From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf Of Tanya Brokhman Sent

RE: [RFC/PATCH] mtd: ubi: Free peb's synchronously for fastmap

2014-04-06 Thread Dolev Raviv
Reviewed-by: Dolev Raviv Thanks, Dolev -- QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -Original Message- From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf Of Tanya Brokhman Sent

RE: [RFC/PATCH] mtd: ubi: Test return value of __wl_get_peb

2014-04-06 Thread Dolev Raviv
Reviewed-by: Dolev Raviv Thanks, Dolev -- QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -Original Message- From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf Of Tanya Brokhman Sent

RE: [PATCH v5 00/15] Big fixes, retries, handle a race condition

2015-10-28 Thread Dolev Raviv
Reviewed-by: Dolev Raviv Thanks, Dolev -- Qualcomm Israel, on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -Original Message- From: Yaniv Gardi [mailto:yga...@codeaurora.org] Sent

RE: [PATCH v5 03/15] scsi: ufs: implement scsi host timeout handler

2016-03-08 Thread Dolev Raviv
r = ufshcd_hold(hba, true); >> + err = ufshcd_hold(hba, false); >> if (err) { >> err = SCSI_MLQUEUE_HOST_BUSY; >> clear_bit_unlock(tag, >lrb_in_use); >> >> which, by reading the code, should be avoiding this issue. > > > Hannes, > we are not trying to avoid returning BUSY from queuecommand(). > On the contrary. By returning BUSY we actually re-queuing the request > which is exactly what we need to do. > your patch doesn't fix the race condition. > > thanks, > Yaniv > >> I was just asking you if you could give this patch a spin and see if >> it works. If not (for whatever reason) I'm happy to accept your patch. >> But first I would like to have an explanation why the above would >> _not_ work. >> >> Unfortunately I don't have the hardware otherwise I'd be running the >> tests myself. >> >> Cheers, >> >> Hannes >> -- >> Dr. Hannes ReineckezSeries & Storage >> h...@suse.de +49 911 74053 688 >> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg >> GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg) >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-scsi" >> in the body of a message to majord...@vger.kernel.org More majordomo >> info at http://vger.kernel.org/majordomo-info.html >> > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" > in the body of a message to majord...@vger.kernel.org More majordomo > info at http://vger.kernel.org/majordomo-info.html > I reviewed the patch, you can add Reviewed-by: Dolev Raviv Thanks, Dolev -- Qualcomm Israel, on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

[PATCH 2/2] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-06-10 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 69c0328..6ce99b0 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -43,6 +43,8 @@ #define GENERAL_UPIU_REQUEST_SIZE 32 #define

[PATCH 1/2] scsi: ufs: Add support for sending NOP OUT UPIU

2013-06-10 Thread Dolev Raviv
us sending maintenance commands before the queue was initialized or when its blocked. For example initiating urgent background operations which requires to block all incoming SCSI requests. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b

[PATCH 1/2] scsi: ufs: Add support for sending NOP OUT UPIU

2013-06-10 Thread Dolev Raviv
us sending maintenance commands before the queue was initialized or when its blocked. For example initiating urgent background operations which requires to block all incoming SCSI requests. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufs.h b

[PATCH 2/2] scsi: ufs: Set fDeviceInit flag to initiate device initialization

2013-06-10 Thread Dolev Raviv
completion. Signed-off-by: Dolev Raviv Signed-off-by: Sujit Reddy Thumma diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index 69c0328..6ce99b0 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -43,6 +43,8 @@ #define GENERAL_UPIU_REQUEST_SIZE 32 #define

[PATCH] scsi: ufs: read door bell register after clearing interrupt aggregation

2013-08-25 Thread Dolev Raviv
DBR after resetting the interrupt aggregation and handles completed TRs. Signed-off-by: Dolev Raviv diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 4dca9b4..30c84d8 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1915,6 +1915,13 @@ static v