發表文章

目前顯示的是 1月 21, 2019的文章

How to get the physical address with Bus, Device, Function, and Offset

圖片
2 1 I want to make a kernel module that read the DRAM counters to get the number of data read from DRAM (https://software.intel.com/en-us/articles/monitoring-integrated-memory-controller-requests-in-the-2nd-3rd-and-4th-generation-intel). In that page, they say "The BAR is available (in PCI configuration space) at Bus 0; Device 0; Function 0; Offset 048H", and UNC_IMC_DRAM_DATA_READS, which I want to read, is on "BAR + 0x5050". Does it mean that I can get the physical address of DRAM Counter by typing sudo setpci 00:00:0 48.L and then + 0x5050 to get the address where the UNC_IMC_DRAM_DATA_READS? Actually, sudo setpci 00:00:0 48.L outputs fed10001 , and I accessed 0xfed15051 with busybox. sudo busybox devmem 0xfed15051 However, the two leftmost bit, I mean "00" in 0x00123456, are always zero. What was wrong, and how can I get the physical address correctly with Bus, Device, Function, and Offset. Thank you :) linux linux-kernel pci

Vietnamese people

圖片
"Viet" redirects here. For other uses, see Viets (disambiguation) and Vietnamese (disambiguation). Vietnamese people (người Việt) Kinh people (người Kinh) Kinh girls in traditional áo dài dress and nón lá hat Total population c. 86 million Regions with significant populations   Vietnam       81,328,696 (2015) [1]   United States 2,067,527 (2016) [2]   Cambodia 750,000–800,000 [3] [4]   France 350,000 [5]   Australia 294,798 [6]   Canada 240,514 [7]   Taiwan 200,000 (2014) [8]   Japan 199,990 (2016) [9]   South Korea 155,553 (2017) [10]   Germany 150,000 [11]   Laos 100,000   Malaysia 70,000 [12]   United Kingdom 28,000 (Vietnam-born, 2014 est.) [13] "At least 55,000" (total, 2007 est.) [14]   Czech Republic 58,080 (2016) [15]   Poland 50,000 [16]   Russia 36,225 [17]   China 36,205 [a] [18]   Philippines 27,600   Sweden 24,465 (2016) [19] [20]   Norway 21,721 (2014) [21]   Netherlands 20,603 (2014) [22]   Thailand 17,662 (2010) [23] [24]   Denmark 14,669 (2014) [2