Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178212890
D62309.1796264944.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62309.1796264944.diff
View Options
diff --git a/sys/dev/ufshci/ufshci_ctrlr.c b/sys/dev/ufshci/ufshci_ctrlr.c
--- a/sys/dev/ufshci/ufshci_ctrlr.c
+++ b/sys/dev/ufshci/ufshci_ctrlr.c
@@ -468,15 +468,11 @@
return (error);
/*
- * Two of the slots stay out of the count handed to CAM. The
- * reserve step keeps the last one for admin requests, so a
- * reset's bring-up command always has somewhere to land. The one
- * after it is headroom the queue needs to stay busy. Giving CAM
- * as many openings as there are slots that I/O can use measured
- * at about a seventh of the throughput, so do not raise this
- * without testing it under load.
+ * The reserve step keeps the last slot for admin requests, so a
+ * reset's bring-up command always has somewhere to land. CAM
+ * gets the rest.
*/
- ctrlr->max_hw_pend_io = ctrlr->transfer_req_queue.num_entries - 2;
+ ctrlr->max_hw_pend_io = ctrlr->transfer_req_queue.num_entries - 1;
/* Create a thread for the taskqueue. */
ctrlr->taskqueue = taskqueue_create("ufshci_taskq", M_WAITOK,
diff --git a/sys/dev/ufshci/ufshci_req_queue.c b/sys/dev/ufshci/ufshci_req_queue.c
--- a/sys/dev/ufshci/ufshci_req_queue.c
+++ b/sys/dev/ufshci/ufshci_req_queue.c
@@ -940,10 +940,17 @@
return (0);
}
+ /*
+ * EBUSY means that no tracker is free. CAM retries an I/O request,
+ * so do not log it. A full task management queue means that aborts
+ * piled up.
+ */
error = req_queue->qops.reserve_slot(req_queue, &tr,
req->is_admin);
if (error != 0) {
- ufshci_printf(req_queue->ctrlr, "Failed to get tracker");
+ if (req_queue->is_task_mgmt)
+ ufshci_printf(req_queue->ctrlr,
+ "no free task management slot\n");
return (error);
}
KASSERT(tr, ("There is no tracker allocated."));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 3, 2:29 AM (21 h, 16 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42165470
Default Alt Text
D62309.1796264944.diff (1 KB)
Attached To
Mode
D62309: ufshci: give CAM every slot that I/O can use
Attached
Detach File
Event Timeline