Posts
473
Following
87
Followers
92
n00b Kernel Hacker
- Ex-Intern @ NVIDIA Korea (Security System Software) (2024.06-2024.11)
- Ex-Intern @ Panmneisa (CXL emulation stuff) (~2023.12)
- Undergraduate majoring CSE (estimated graduation: Feb. 2025)
- Working as reviewer at Linux Slab subsystem
- Born in August 6, 2000

Opinions are my own.

My interests are:
Memory Management,
Computer Architecture,
Circuit Design,
Virtualization
So, you want to read LKML with Gmail (experimental, testers needed)

https://lore.kernel.org/workflows/20231115-black-partridge-of-growth-54bf2e@nitro/
2
15
18

[$] Faster kernel testing with virtme-ng https://lwn.net/Articles/951313/

0
3
5
PSA: we're only a few weeks away from Linux Kernel 6.6.6.
11
107
188
Edited 1 year ago
A few diagrams about PCIe. 1) An example PCIe topology 2) PCIe Switch and 3) Root Complex
1
0
2
This is why I go to the gym
0
0
2
what, there's a script to import linux kernel headers to QEMU.

From commit 412a8245 ("pci_regs.h: import from linux"):
```
It seems to make sense to import pci_regs.h from linux: why maintain our own?

As a first step, move the header to standard-headers, and add it to the update script.
```
0
0
1

I'm a little surprised and disappointed that the 2023 Linux Foundation TAB election only has five candidates running for the five open seats. All five of the candidates are existing TAB members.

It would seem like one of the issues the TAB should focus on this year is getting more people interested in TAB participation.

https://lore.kernel.org/lkml/e851a8e5-c4c2-4b5d-887a-509e591cff49@intel.com

2
4
3
Edited 1 year ago
A big barrier to reading and analyzing code is a psychological resistance to reading unfamiliar text
1
0
3
What kind of benchmark is it
1
0
5
Edited 1 year ago
TIL:

DMA in PCI(e) means a device initiates memory read/write transactions.

But how to make a device initiate such a transaction is device-specific (i.e. a device implements a DMA command via its registers)

Wondering if a DMA interface can be added to CXL.io protocol so that page migrations can be done in a peer-to-peer manner without host interference. (in systems with multiple memory tiers)
1
0
1
Edited 1 year ago
It's already 1am but 3 hours left until CXL MC... uh, I'm tired
0
0
3

@linuxplumbersconf Youtube Live Stream URLs are now available on the Schedule Overview page (https://lpc.events/event/17/timetable/#all).

Find the track you want and click the paperclip on the upper right corner to bring up the Live Stream Link

2
14
2
Edited 1 year ago
This winter I'm going to do a research project (for the first time in my life!) with other students, at Purdue University (Indiana).

2 months is bit short for a project, so we need to find a very small question that no one has answered.

It seems I've found a question suitable for our need in the compiler area, but I need to consult with the professor to verify if it's a valid question.
0
0
1
After 2 months of learning related stuffs I finally feel like I'm ready to dive into CXL device emulation code.
0
0
1
Edited 1 year ago
a foolish mistake: can't open my phone's card wallet because of the strap I bought yesterday...

Should've realized that I can't have both :(
1
0
2
Edited 1 year ago
There are two ways to access device registers in PCIe:

1) As an extended capability in PCIe extended configuration space, (Designated) Vendor-Specific Extended Capabilities can be used to access vendor-specific registers. As more than one vendor produces CXL devices, DVSEC is used instead of VSEC.

2) BARs can be used to map device resources (registers or memory) into system memory address space.

Errrr.. btw many registers are there in the CXL spec :/

Notably:
- (DVSEC) "PCIe DVSEC for CXL Device" is used to identify CXL-capable PCIe endpoints
- (DVSEC) "Register Locator DVSEC" is used to locate CXL memory-mapped registers
- (Memory-Mapped) "CXL 2.0 Component Registers" is used to configure CXL Components (Host Bridge, Root Port, Upstream/Downstream Port, Device)
- (Memory-Mapped) "CXL Device Register Interface" is used to access CXL device registers and issue commands to a CXL device

Configuration space of Every CXL 2.0 component can be accessed via the standard PCIe method, except Host Bridges. Component Registers of CXL Host Bridges are located by ACPI CEDT table, which also contains CFMWS (CXL Fixed-Memory-Window Structure).
0
0
1

Here's how to enable the kernel Memory Tagging Extension () on the Pixel 8:

adb shell setprop arm64.memtag.bootctl memtag,memtag-kernel

I'm so happy there's real-world hardware finally available to provide mitigations against linear buffer overflows and many types of use-after-free flaws.

More details here:
https://outflux.net/blog/archives/2023/10/26/enable-mte-on-pixel-8/

2
9
2
I have a thing (wanna do at some point in my life) for designing processors, memory modules and neuromorphic processors
1
0
2
whiskey is love ~.~
2
0
4
Edited 1 year ago
Why do we have two different specifications about firmware interface (UEFI and ACPI)?

Why can't UEFI (Unified EFI) unify everything :/
0
0
1
Show older