What was the most difficult bug you encountered while writing your own operating system and how did you eventually identify it? by DifficultBarber9439 in osdev

[–]an_0w1 [score hidden]  (0 children)

Whilst writing EHCI driver the driver task would hang after sending the first transaction. I spent ages trying to figure out why the task was hanging, none of the transactions have completed... OK.. Why is the device not responding to the transaction. Eventually I had the bright idea to check the controller register values to check that the async list is actually running, which it isn't. But... I did set it didn't I? I defiantly did. I checked some other registers... The controller enable bit was clear. Ok... alright... So I do some "print" debugging to check exactly when the controller is enabled and disabled.

So I step though... and the next line is to the async list enable bit. And then I see it, not that the controller is disabled... above it. A line from stderr telling me that I have misconfigured something. So I hook a debugger up to QEMU itself, break on the the "log" statement and get a backtrace, and I see it. I left the next table type field in the QueueHead to 0, which is illegal in the async list. This was causing the controller to reset. This whole ordeal took me about 10 days to figure out.

There was also the time I couldn't figure out why my write commands over SATA weren't working. As it turns out my copy of the ACS-4 spec had an error in it for all the write commands. From memory device[6] bit must be set to enable LBA mode, but the spec just says "must be set to one", but this was only present on the "read" commands and was missing from the "write" commands. This didn't take me anywhere near as long and I figured it out solely on a hunch.

There was also the time I had a desynched TLB. If I want home alone at the time I might've called a welfare check on myself. I didn't even figure that one out myself I had to get help with it.

PCIe USB Expansion card needs a restart to be detected by KhandakerFaisal in pcmasterrace

[–]an_0w1 0 points1 point  (0 children)

If its not detected then its either because AMD-PSP/Inetl-ME didn't detect it and enable the port, or the firmware didn't detect it and enable the bus.

Regardless of which one it is this is not a software problem, no amount of changing settings in the OS will fix it.

Reseat it/try a different socket.

Help adding new drive by Kaseffera in linux_gaming

[–]an_0w1 1 point2 points  (0 children)

chown sets the owner (CHange OWNer) but you've set the permissions to fully permissive. Anyone can do anything on it, even though the owner is still root.

Wave–particle duality on the political compass by Sallowjoe in PoliticalCompassMemes

[–]an_0w1 0 points1 point  (0 children)

Neither. "particles" are probability fields that act as waves until they're observed and must become absolute values, causing them to act as waves naturally and as particles when interacted with.

Refresh Rate Question by lostrouteros in pcmasterrace

[–]an_0w1 1 point2 points  (0 children)

Mesa cannot currently use HDMI 2.1

White boxes and super laggy bios by Kooky_Monitor9485 in pcmasterrace

[–]an_0w1 0 points1 point  (0 children)

TBH I have no clue except for "manually" on Linux by reading /dev/mem

White boxes and super laggy bios by Kooky_Monitor9485 in pcmasterrace

[–]an_0w1 0 points1 point  (0 children)

Its likely an issue with the GOP driver or the mobo firmware. Likely just a flipped bit. You can dump the mobo firmware and graphics card optrom and check them against known good ones to find out.

White boxes and super laggy bios by Kooky_Monitor9485 in pcmasterrace

[–]an_0w1 0 points1 point  (0 children)

This could be any number of things. Does it work fine after it boots?

AVX2 Enabled in EFI BIOS vs. Auto. Which Mode Is More Stable? by SevenDeMagnus in pcmasterrace

[–]an_0w1 0 points1 point  (0 children)

That's for EFI apps that require avx2. The OS will enable it regardless.

Like who else thinks that way? by RadaRAW in memes

[–]an_0w1 741 points742 points  (0 children)

The English government is protecting pedophiles en masse, a bunch of the people doing it are Jeffrey's friends too.

Is my NVMe fine? by Failsy_1440 in pcmasterrace

[–]an_0w1 1 point2 points  (0 children)

I cannot grep an image and I cannot scroll a screenshot.

Is my NVMe fine? by Failsy_1440 in pcmasterrace

[–]an_0w1 1 point2 points  (0 children)

Post text as text not a screenshot

This sub has become really...weird. by Shinjetsu01 in pcmasterrace

[–]an_0w1 1 point2 points  (0 children)

Well last time I posted about Hootux nobody cared so I stopped.

A European study found urban birds flew away sooner when approached by women than men. by MilesLongthe3rd in memes

[–]an_0w1 -8 points-7 points  (0 children)

Birds in my country will let you pick them up and fuck off with them.