Summary Files Commits Branches @commit @diff @stats
path: root / src / blog / fix-qc-timeout
diff options
context:
space:
mode:
Commit88a5b49611a0a4d1eb47ba86b9123159443ce4cb (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-12-23 22:54:20 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-12-23 22:54:20 +0200
Files22ce3c36887f506898cc7636a80abf245ae240e7 /src/blog/fix-qc-timeout
syndamia.com-88a5b49611a0a4d1eb47ba86b9123159443ce4cb.tar
syndamia.com-88a5b49611a0a4d1eb47ba86b9123159443ce4cb.tar.gz
syndamia.com-88a5b49611a0a4d1eb47ba86b9123159443ce4cb.zip
Parent0be8d4b427a0f0944552769edc9a080dbaf79cee (diff)
feat!: Update dunbar after inline brace character swap
1 files changed, 7 insertions, 7 deletions
-rw-r--r--src/blog/fix-qc-timeout/index.du14
diff --git a/src/blog/fix-qc-timeout/index.du b/src/blog/fix-qc-timeout/index.du
index d882d15..11dfa32 100644
--- a/src/blog/fix-qc-timeout/index.du
+++ b/src/blog/fix-qc-timeout/index.du
@@ -6,7 +6,7 @@
[$pagenav]
Depending on your harddrive, you may get a 15 second delay on boot.
-Looking at the kernel logs (with `[dmesg]`), you may find the following errors:
+Looking at the kernel logs (with [`dmesg`]), you may find the following errors:
```
kernel: ata1.00: qc timeout after 15000 msecs (cmd 0x47)
@@ -23,7 +23,7 @@ Meaning, add the following parameter:
```
libata.force=1.00:nodmalog
-where `[1.00]` is the thing between "ata" and ":".
+where [`1.00`] is the thing between "ata" and ":".
So, if your logs were
@@ -68,16 +68,16 @@ With DMA, the CPU could ask the drive for everythng it wants (not a tiny bit), a
The benefit is that the CPU can do other work while the transfer is going on, greatly improving efficiency, but the downside is that the harddrive has to support it (have a DMAC chip on it).
Normally it would be useful for the DMAC to keep logs in a special place on the drive.
-~[This is where the issue comes from: your harddrive supports DMA but does not support logs for it.
+[~This is where the issue comes from: your harddrive supports DMA but does not support logs for it.
However, the Linux kernel has no good way of knowing that, there is no "property" on the drive which tells us this.
-The only way is to try and read from that log: if it succeeds, then there is support, if it fails, then there isn't.]~
+The only way is to try and read from that log: if it succeeds, then there is support, if it fails, then there isn't.~]
-~[But what does it mean to fail?
+[~But what does it mean to fail?
The simplest definition would be for the drive to return an error singal, but in our case, the drive would just not return anything, ignoring our request.
In that case, how would we know if the drive just doesn't know how to respond (meaning it doesn't support the logs) or if it's just very slow?
-Well, we can't, so we put a time limit, if it doesn't respond in 15 seconds, then it probably doesn't support it.]~
+Well, we can't, so we put a time limit, if it doesn't respond in 15 seconds, then it probably doesn't support it.~]
-That's what the error is saying: `[qc]` is short for [url https://docs.kernel.org/driver-api/libata.html#origins-of-commands "queued command"], it's used to represent a (S)ATA command (hence the `[cmd]` at the end, telling us which command it's referring to).
+That's what the error is saying: [`qc`] is short for [url https://docs.kernel.org/driver-api/libata.html#origins-of-commands "queued command"], it's used to represent a (S)ATA command (hence the [`cmd`] at the end, telling us which command it's referring to).
So, the kernel is telling us "The hard drive (ATA) command to read (DMA) logs timed out after 15 seconds" (it first says a command timed out, then it says which one).
By adding that kernel parameter, we're telling Linux that the drive doesn't support DMA logs, therefore the kernel doesn't need to do this "wait 15 seconds for response if support exists" routine.