From 6b8cae12cb5d60b37931332d9d8008649ae14566 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 12 Sep 2026 11:31:19 +0300 Subject: feat!: Update dunbar markup Currently the newest version of the markup is not on the main branch, mostly because of polish and the documentation. As an effect from the changes to the language, the sitemap is the only thing which needs to be created externally. --- src/blog/fix-qc-timeout/index.du | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/blog/fix-qc-timeout') diff --git a/src/blog/fix-qc-timeout/index.du b/src/blog/fix-qc-timeout/index.du index 11dfa32..42ee9c1 100644 --- a/src/blog/fix-qc-timeout/index.du +++ b/src/blog/fix-qc-timeout/index.du @@ -1,12 +1,12 @@ -# Fix "qc timeout" kernel log error +'def title Fix 'qc timeout' kernel log error +'def desc Depending on your harddrive, you may get a 15 second boot delay, cause by a qc timeout error. The solution is to tell the kernel that DMA logs are not supported. -'define expected-reading 4 min -'define created 16 December 2023 -'define edited 20 August 2025 -[$pagenav] +# {title} + +{pagenav 4 min;16 December 2023;20 August 2025} 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,13 +23,13 @@ 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 ``` kernel: ata3.01: qc timeout after 15000 msecs (cmd 0x47) -... +\... then the parameter would be: @@ -42,7 +42,7 @@ libata.force=3.01:nodmalog ### Update 20 August 2025 .p -About a month ago I stumbled upon this [url https://de.comp.hardware.laufwerke.festplatten.narkive.com/F8WstP5i/fix-frage-zu-sata-read-log-0x00-page-0x00-failed-emask-0x40 mailing list] (Google-powered translation to English [url https://de-comp-hardware-laufwerke-festplatten-narkive-com.translate.goog/F8WstP5i/fix-frage-zu-sata-read-log-0x00-page-0x00-failed-emask-0x40?_x_tr_sl=bg&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp here]). +About a month ago I stumbled upon this {url mailing list;https://de.comp.hardware.laufwerke.festplatten.narkive.com/F8WstP5i/fix-frage-zu-sata-read-log-0x00-page-0x00-failed-emask-0x40} (Google-powered translation to English {url here;https://de-comp-hardware-laufwerke-festplatten-narkive-com.translate.goog/F8WstP5i/fix-frage-zu-sata-read-log-0x00-page-0x00-failed-emask-0x40?_x_tr_sl=bg&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp}). .p A user had the same issue as outlined in this post and were discussing the situation. @@ -63,21 +63,21 @@ I'm leaving my original explanation, since some of it is still true. The following is how I understand the issue, but I did not find definitive proof thats exactly what happens.\n Take this section with a grain of salt. -A harddrive can support [url https://en.wikipedia.org/wiki/Direct_memory_access dma transfers], normally the CPU would handle data transfer from the harddrive to the system memory (RAM), meaning it asks for a bit of data, waits, when the data comes, puts it in memory, then asks for next bit and so on. +A harddrive can support {url dma transfers;https://en.wikipedia.org/wiki/Direct_memory_access}, normally the CPU would handle data transfer from the harddrive to the system memory (RAM), meaning it asks for a bit of data, waits, when the data comes, puts it in memory, then asks for next bit and so on. With DMA, the CPU could ask the drive for everythng it wants (not a tiny bit), and then the DMA controller (DMAC) on the drive will handle the actual data transfer from the drive to the memory (when the transfer is done, the drive will tell the CPU). 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. +{s 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? +{s 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 "queued command";https://docs.kernel.org/driver-api/libata.html#origins-of-commands}, 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. -- cgit v1.3.1-26-gb76a From 3bf2c2004c1c3ea1748983247e1fcf12913d587f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 14 Sep 2026 11:39:40 +0300 Subject: feat(src): Final markup fixes and dunbar update --- dunbar | 2 +- src/INIT.du | 17 +++++- src/blog/bash-is-weird/index.du | 5 -- src/blog/connect-to-mysql-in-dotnet-ef/index.du | 4 +- src/blog/fix-no-frame-buffer-plan9/index.du | 1 - src/blog/fix-qc-timeout/index.du | 4 -- .../index.du | 2 - .../index.du | 25 +++----- src/blog/how-to-encrypt-email/index.du | 6 +- .../index.du | 5 +- .../install-drivers-for-epson-scanners/index.du | 4 +- .../managing-apps-with-adb-without-root/index.du | 8 +-- .../mundus-first-shot-at-gamedev/basic-concepts.du | 4 +- src/blog/mundus-first-shot-at-gamedev/timeline.du | 6 +- .../mundus-first-shot-at-gamedev/user-interface.du | 2 +- src/blog/plan9-in-linux-mouse-menus/index.du | 8 +-- .../sane-explanation-of-compilers/part-1/index.du | 71 +++++++++++----------- src/blog/taming-the-fun-too/index.du | 10 +-- .../index.du | 32 ++++------ src/blog/turn-off-notifications-windows/index.du | 2 - src/blog/virt-manager-freeze-on-browse/index.du | 6 +- src/blog/windows-run-dialog/index.du | 4 +- src/teaching/oop-2023/week1/good-software.du | 2 + src/teaching/upp-2023/week12/index.du | 8 ++- src/teaching/upp-2025/week13/index.du | 2 +- 25 files changed, 116 insertions(+), 124 deletions(-) (limited to 'src/blog/fix-qc-timeout') diff --git a/dunbar b/dunbar index eaa4cb0..efb7d51 160000 --- a/dunbar +++ b/dunbar @@ -1 +1 @@ -Subproject commit eaa4cb0123bcf01056d4dc400f2c3e513f41e967 +Subproject commit efb7d51a645b0038e22eabbe494ddc0598962458 diff --git a/src/INIT.du b/src/INIT.du index d03720a..02e6eff 100644 --- a/src/INIT.du +++ b/src/INIT.du @@ -162,19 +162,32 @@ desc - Page description 'cmdprocess code {if {LANG};highlight -O html -f -S {default {normalise {LANG}};text};cat} 'endif +'let start {unordered}default

+'let end {unordered}default

+'let start {ordered}default

+'let end {ordered}default

+ ## Attention 'let start question
question 'let end question
+'let start {question}default

+'let end {question}default

'let start warn
warn 'let end warn
+'let start {warn}default

+'let end {warn}default

'let start important
important 'let end important
+'let start {important}default

+'let end {important}default

'let start note
'let end note
+'let start {note}default

+'let end {note}default

## Headers @@ -339,6 +352,8 @@ url href # Substitutions +'def fn_ref {sup {1}} + 'def due_for_rework {url {b {i Due for rework}};/rework.html} 'def nohtml {greplace {1};<;<\;} @@ -363,7 +378,7 @@ reading created edited -'def breadcrumb » {def x/...;{>= {count {1};/};1}}{if {x/...};{url {substrBefore {1};/};{default {2};./}};{italic {substrAfter {1};/}}} {{if {x/...};breadcrumb;none} {substrAfter {1};/};{substrAfter {2};../}} +'def breadcrumb » {def x/...;{>= {count {1};/};1}}{if {x/...};{url {substrBefore {1};/};{default {2};./}};{italic {1}}} {{if {x/...};breadcrumb;none} {substrAfter {1};/};{substrAfter {2};../}} 'def pagenav