{"action":"created","issue":{"url":"https://api.github.com/repos/byzhang/i7z/issues/3","labels_url":"https://api.github.com/repos/byzhang/i7z/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/byzhang/i7z/issues/3/comments","events_url":"https://api.github.com/repos/byzhang/i7z/issues/3/events","html_url":"https://github.com/byzhang/i7z/issues/3","id":59728376,"number":3,"title":"Wrong CPU number on 6-core Gulftown","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/byzhang/i7z/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/i7z/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/i7z/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-04T00:03:02Z","updated_at":"2015-03-04T00:03:04Z","closed_at":"2015-03-04T00:03:03Z","body":"```\nWhat steps will reproduce the problem?\n1. install Intel 6-core Gulftown CPU\n2. run i7z\n\nWhat is the expected output? What do you see instead?\ni7z lists only processors 0 to 3 instead 0 to 5.\n\nWhat version of the product are you using? On what operating system?\nThis is an engineering sample of Intel Gulftown CPU on Intel DX58SO\nmotherboard.\nKernel 2.6.27.42-0.1-default (openSUSE 11.1 default).\ncpufreq modules removed.\n\n```\n\nOriginal issue reported on code.google.com by `dzi...@gmail.com` on 10 Feb 2010 at 11:22\n\nAttachments:\n* [i7z.6c.txt](https://storage.googleapis.com/google-code-attachments/i7z/issue-3/comment-0/i7z.6c.txt)\n"},"comment":{"url":"https://api.github.com/repos/byzhang/i7z/issues/comments/77067108","html_url":"https://github.com/byzhang/i7z/issues/3#issuecomment-77067108","issue_url":"https://api.github.com/repos/byzhang/i7z/issues/3","id":77067108,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T00:03:04Z","updated_at":"2015-03-04T00:03:04Z","body":"```\nHope i am not going into too much details here: Well, the usual way to \ncalculate freq \n(the way linux does it is) is via tsc counts \nhttp://en.wikipedia.org/wiki/Time_Stamp_Counter and code \nhttp://www.cs.helsinki.fi/linux/linux-kernel/2001-37/0256.html (rdtsc() \nfunction) . \n\nIn order to know how much a processor spent in C-state the tsc can also be \nused. tsc \ncounts are updated for each of the C-states and the ratio of those tsc \ncounts/total \ntsc counts in some specified time will give the residency of the processor core \nin \nthat C-state in that time period.\n\nThe turbo mode of a processor defies this way of doing things as, if the tsc \ncode \nsimply worked then we would have gotten accurate values via /proc/cpuinfo (i am \nnot \nsure why cpuinfo is incorrect when overclocking). When turbo mode is enabled \n(and the \nprocessor is able to take advantage of it), the processor can go faster than \nthe tsc \ncount increments. Thats why intel specifies to use a different ratio to find \nwhat is \nthe actual speed at any time, its a weird ratio of the \nclocks_executed/tsc_elapsed x \nfreq \nhttp://download.intel.com/design/processor/applnots/320354.pdf?iid=tech_tb+paper\n\nSo the first problem is to figure out the freq using just using tsc and thats \nwhat i \nam printing when i say 'without accounting turbo'\n\nNow after i figure out that turbo is working (by checking a flag), i just print \nthat \nas true freq accounting for turbo.\n\nThe actual table is updated every sec (i think) with the ratio calculation as \nper \nintel's specification in the pdf.\n\ni updated so now it will extract with a version number.\nyup, they should update the documentation when gulftown is officially released \nand \nthen i'll update the code.\n\nBTW its really good to see that your cpu has an aggressive turbo mode, my 920 \nhas \nnever has seen the 22X multiplier or very deep C6 states (most i get is about \n30-40% \navg in C6 at idle states). I'll probably get one of those hexa-cores.\n```\n\nOriginal comment by `abhirana` on 14 Feb 2010 at 4:17"}}