{"id":1269,"date":"2014-02-01T19:41:49","date_gmt":"2014-02-01T18:41:49","guid":{"rendered":"http:\/\/www.stenyak.com\/?p=1269"},"modified":"2014-02-01T19:41:49","modified_gmt":"2014-02-01T18:41:49","slug":"hacking-the-lga-775-socket","status":"publish","type":"post","link":"https:\/\/www.stenyak.com\/?p=1269","title":{"rendered":"Hacking the LGA 775 socket"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Hello, and welcome to <em>CPU Dealers<\/em>!<\/p>\n<p>In todays episode we&#8217;re going to learn how to fit an LGA771 CPU into an LGA775 motherboard with no brute force!<\/p>\n<p>&nbsp;<\/p>\n<h1>Motivation<\/h1>\n<p>So why on earth would anyone decide to put an LGA771 Xeon server cpu into a domestic LGA775 motherboard, you may ask?<\/p>\n<p>Welp, because it&#8217;s <strong>fun <\/strong>and you get to<strong> learn stuff<\/strong>, thats why!<\/p>\n<h3>Traditional motivation: Money<\/h3>\n<p>However, the usual argument is that, if you are planning a modest upgrade for your shitty old LGA775 system, not needing the latest and greatest, you can <strong>save some money<\/strong> this way. See, there&#8217;s lots of <strong>Xeon processors<\/strong> in the market right now, and they are all <strong>dirt cheap<\/strong>. The interesting thing is that most LGA775 CPUs have Xeons equivalents:<\/p>\n<div id=\"attachment_1279\" style=\"width: 629px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/xeon-c2q.png\"><img aria-describedby=\"caption-attachment-1279\" loading=\"lazy\" class=\"wp-image-1279 \" style=\"border: 4px solid black; margin-top: 4px; margin-bottom: 4px;\" title=\"Xeon E5440: 30\u20ac vs Core2Quad Q9550: 100\u20ac\" alt=\"Xeon E5440: 30\u20ac vs Core2Quad Q9550: 100\u20ac\" src=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/xeon-c2q.png\" width=\"619\" height=\"83\" \/><\/a><p id=\"caption-attachment-1279\" class=\"wp-caption-text\">The Xeon I chose, an E5440 SLBBJ. Same speed as a Q9550, but requires less juice, so has a lower TDP. Source: <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_Intel_Core_2_microprocessors#Yorkfield_.2845_nm.29\">here<\/a> and <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_Intel_Xeon_microprocessors#.22Harpertown.22_.2845_nm.29\">there<\/a>.<\/p><\/div>\n<p>Some people argue that Intel simply bins Xeons better than the consumer counterparts, so while being essentially the same CPU, the Xeons are more reliable, run colder, and are harder, better, faster, stronger.<\/p>\n<p>The LGA775 market, on the other hand, is filled with pretty expensive CPUs. They&#8217;re all usually priced 30\u20ac to 150\u20ac higher than the server versions: Xeons are definitely the best bang for the buck. So the plan usually is:<\/p>\n<ol>\n<li>Upgrade your system to a Xeon instead of a domestic CPU.<\/li>\n<li>&#8230;<\/li>\n<li>Fun and profit!<\/li>\n<\/ol>\n<h3>Side motivation: Overclocking<\/h3>\n<p>Some people take advantage of the lower voltages required by Xeons, and choose them not only because they&#8217;re cheaper, but because it&#8217;s in theory easier to squeeze a bit more speed out of them.<\/p>\n<p>Keeping that in mind, I chose an E0 stepping (later revisions usually lower power requirements of the CPU). Unfortunately, my SLBBJ unit was already running pretty hot at stock voltages and clocks, so I&#8217;m leaving it alone for the time being.<\/p>\n<h1>Background<\/h1>\n<p><strong>LGA775<\/strong> (codenamed <strong>Socket T<\/strong>) was introduced by Intel around mid-2004, and used in <strong>domestic motherboards<\/strong>. The most popular CPUs running those LGAs are now Core2Duos and Core2Quads.<\/p>\n<p>A year and a half later, in 2006, Intel introduced <strong>LGA771<\/strong>, a very similar LGA intended for use in multiprocessor <strong>server motherboards<\/strong>, and which can host Intel Xeon processors.<\/p>\n<p>Looking at the official datasheets released by Intel (<a href=\"http:\/\/download.intel.com\/design\/processor\/datashts\/318732.pdf\">page 41 here<\/a> and <a href=\"http:\/\/www.intel.com\/Assets\/PDF\/datasheet\/315569.pdf\">page 52 here<\/a>) , we can check the pinouts of both LGAs, and spot their differences:<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/775-pinout.png\"><img loading=\"lazy\" class=\"size-full wp-image-1273 aligncenter\" style=\"border: 4px solid black; margin-top: 4px; margin-bottom: 4px;\" alt=\"775 pinout\" src=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/775-pinout.png\" width=\"540\" height=\"441\" \/><\/a>\u00a0<a href=\"https:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/771-pinout.png\"><img loading=\"lazy\" class=\"size-full wp-image-1272 aligncenter\" style=\"border: 4px solid black; margin-top: 4px; margin-bottom: 4px;\" alt=\"771 pinout\" src=\"https:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/771-pinout.png\" width=\"547\" height=\"447\" srcset=\"https:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/771-pinout.png 547w, https:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/771-pinout-300x245.png 300w\" sizes=\"(max-width: 547px) 100vw, 547px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">If we checked the socket pin assignment one by one, we could see that there&#8217;s <strong>76 different pins<\/strong> in total. But most of them are irrelevant (reserved for future uses, etc), they pose no problem for our conversion mod, so we&#8217;re left wondering about the colored pins:<\/p>\n<ul>\n<li><span style=\"color: #ff0000;\">Red<\/span>: 8 pins only used in LGA775.<\/li>\n<li><span style=\"color: #339966;\">Green<\/span>: 4 pins only used in LGA771.<\/li>\n<\/ul>\n<p>The red and green pins are all <strong>power pins<\/strong> (VCC, VSS at the top, and VTT at the bottom). There&#8217;s hundreds more of them in the LGA, so I&#8217;m sure our new CPU won&#8217;t mind if we remove just these few.<\/p>\n<ul>\n<li><span style=\"color: #3366ff;\">Blue<\/span>: 2 pins that have different purposes in each LGA.<\/li>\n<\/ul>\n<p>These pins (L5 and M5) serve different purposes in LGA775 than in LGA771. And this time they are important pins (one of them is the <strong><em>Execute BIST<\/em> pin<\/strong>, Built-In Selft Test, needed to boot). Fortunately, Intel had simply <strong>swapped<\/strong> their places in the newer 771 LGA! So it should be relatively easy to re-wire them.<\/p>\n<ul>\n<li><span style=\"color: #b7b700;\">Yellow<\/span>: not a pin, just highlighting the different shapes \ud83d\ude42<\/li>\n<\/ul>\n<p>These <strong>differing <span style=\"color: #b7b700;\">yellow<\/span> shapes<\/strong> can be a problem, since the CPUs from one LGA will <strong>not<\/strong> physically fit in the other LGA without some hardware modifications. We&#8217;ll get to this later on.<\/p>\n<p>&nbsp;<\/p>\n<p>Uh, in case you&#8217;re wondering, I did <strong>not<\/strong> personally go over all the pin specifications one by one. But <a href=\"http:\/\/www.xtremesystems.org\/forums\/showthread.php?285635-Overclocking-Thread-about-LGA-771-CPU-on-LGA-775-Mobo&amp;s=0f006891c93a67477463e9724abbe0cf&amp;p=5180533&amp;viewfull=1#post5180533\">this guy did<\/a>.<\/p>\n<h1>Motherboard support<\/h1>\n<p>In most cases, the CPU <strong>will run as-is<\/strong>. This was the case of my 965P-DS3 motherboard.<\/p>\n<p>Sometimes, you may need to <strong>manually patch your BIOS<\/strong>, adding the microcode of your specific Xeon model to the internal &#8220;whitelist&#8221; (so to speak). Additionally, this usually forces your mobo to acknowledge that your Xeon CPU implements the SSE4 instruction set (which can give an extra speed boost in some applications).<\/p>\n<div id=\"attachment_1277\" style=\"width: 675px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/microcode-bios-mod.jpg\"><img aria-describedby=\"caption-attachment-1277\" loading=\"lazy\" class=\"size-full wp-image-1277 \" style=\"margin-top: 4px; margin-bottom: 4px;\" title=\"Opening an hex editor automatically grants you 15 Hacker Points.\" alt=\"Opening an hex editor automatically grants you 15 Hacker Points.\" src=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/microcode-bios-mod.jpg\" width=\"665\" height=\"389\" \/><\/a><p id=\"caption-attachment-1277\" class=\"wp-caption-text\">I didn&#8217;t patch my BIOS just yet&#8230; so instead, I decided to steal this screenshot from Google Images. Sue me.<\/p><\/div>\n<p>And in a few rare cases, your motherboard will directly <strong>refuse to boot<\/strong> the new CPU, regardless of any BIOS patching you may attempt. In that case, you&#8217;re out of luck.<\/p>\n<blockquote><p><em>Before attempting to transform your LGA775, search the web and check if your chipset will be happy with a Xeon CPU.<\/em><\/p><\/blockquote>\n<p>In any case, bear in mind that your mobo needs to support the speeds that your specific Xeon choice requires: voltage, FSB speeds, etc. Otherwise you&#8217;ll have to resort to underclocking the CPU (sad), or to overclocking your motherboard\/ram (yay! but not recommended).<\/p>\n<h1>Procedure<\/h1>\n<p>First, open your tower, remove the heatsink, then the CPU:<\/p>\n<div id=\"attachment_1283\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/IMG_20140130_191532.jpg\"><img aria-describedby=\"caption-attachment-1283\" loading=\"lazy\" class=\"size-medium wp-image-1283    \" style=\"border: 4px solid black; margin-top: 4px; margin-bottom: 4px;\" title=\"Speaking of heavily overclocked CPUs, anyone wants to buy this E4300 in perfectly good shape? Never overclocked, almost new, I swear.\" alt=\"Speaking of heavily overclocked CPUs, anyone wants to buy this E4300 in perfectly good shape? Never overclocked, almost new, I swear.\" src=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/IMG_20140130_191532-300x225.jpg\" width=\"300\" height=\"225\" \/><\/a><p id=\"caption-attachment-1283\" class=\"wp-caption-text\">There lies my old Core2Duo E4300, overclocked to hell, ready for retirement.<\/p><\/div>\n<p>Now we do what the title says: we hack the LGA775 socket. Literally.<\/p>\n<p>Yes, take a sharp knife or a <strong>cutter<\/strong>, and prepare to slash some plastic. The exact bits you have to cut off are the ones colored <span style=\"color: #b7b700;\">yellow<\/span> in the LGA775 pinout diagram (scroll back to the beginning of this post). It should end up looking something like this:<\/p>\n<div id=\"attachment_1284\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/lga775.jpg\"><img aria-describedby=\"caption-attachment-1284\" loading=\"lazy\" class=\"size-medium wp-image-1284   \" style=\"border: 4px solid black; margin-top: 4px; margin-bottom: 4px;\" title=\"Don't mind the bent pins on the middle bottom. This is embarrasing...\" alt=\"Don't mind the bent pins on the middle bottom. This is embarrasing...\" src=\"https:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/lga775-300x225.jpg\" width=\"300\" height=\"225\" \/><\/a><p id=\"caption-attachment-1284\" class=\"wp-caption-text\">Actually, please try to aim for cleaner cuts than the mess you see in this photo.<\/p><\/div>\n<p>The motherboard is ready!<\/p>\n<p>Now we need to hack the Xeon CPU itself. Remember the <span style=\"color: #3366ff;\">blue<\/span> pins that had switched places in LGA771? It&#8217;s time to revert what Intel did, and get a 775-compatible pinout layout.<\/p>\n<p>If you&#8217;re good enough you could try to swap them yourself, using whatever technique you come up with. But the rest of us mortals will resort to buying a ready to use <strong>swapper sticker<\/strong>. Search for <a href=\"http:\/\/www.ebay.com\/sch\/items\/?_nkw=775+771+mod&amp;_sacat=&amp;_ex_kw=&amp;_mPrRngCbx=1&amp;_udlo=&amp;_udhi=&amp;_sop=12&amp;_fpos=&amp;_fspt=1&amp;_sadis=&amp;LH_CAds=\">&#8220;775 771 mod&#8221; in ebay<\/a>, play safe and buy several of them, just in case you break one in the process:<\/p>\n<div id=\"attachment_1286\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/771mod.jpg\"><img aria-describedby=\"caption-attachment-1286\" loading=\"lazy\" class=\"size-medium wp-image-1286   \" style=\"border: 4px solid black; margin-top: 4px; margin-bottom: 4px;\" title=\"Wow. Such pins. Many carefuls. Much Intel. It Xeons!\" alt=\"Wow. Such pins. Many carefuls. Much Intel. It Xeons!\" src=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/771mod-300x225.jpg\" width=\"300\" height=\"225\" \/><\/a><p id=\"caption-attachment-1286\" class=\"wp-caption-text\">Be very careful with the sticker, it&#8217;s very easy to break its internal wiring.<\/p><\/div>\n<p>So there&#8217;s that. Now we simply have to put the Xeon in the LGA, add thermal paste, heatsink, etc:<\/p>\n<div id=\"attachment_1287\" style=\"width: 235px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/IMG_20140130_201910.jpg\"><img aria-describedby=\"caption-attachment-1287\" loading=\"lazy\" class=\"size-medium wp-image-1287   \" style=\"border: 4px solid black; margin-top: 4px; margin-bottom: 4px;\" title=\"This photo adds absolutely no value to the article. It was lying in my phone, all alone. So I decided to upload it, with the rest of photos.\" alt=\"This photo adds absolutely no value to the article. It was lying in my phone, all alone. So I decided to upload it, with the rest of photos.\" src=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/IMG_20140130_201910-225x300.jpg\" width=\"225\" height=\"300\" \/><\/a><p id=\"caption-attachment-1287\" class=\"wp-caption-text\">Yay, we&#8217;re done!<\/p><\/div>\n<p>Finally, plug the PSU, pray to Flying Spaghetti Monster, and boot the system!<\/p>\n<p>&nbsp;<\/p>\n<h1>Results<\/h1>\n<p>Here&#8217;s a nice comparison graph of the results. The contenders are:<\/p>\n<ul>\n<li>A Core2Duo E4300 (LGA775), at speeds ranging from 1.8GHz (stock) up to 3.01GHz (overclocked).<\/li>\n<li>A Xeon E5440 (LGA771), at stock speed (2.83GHz).<\/li>\n<\/ul>\n<p>The benchmarks are:<\/p>\n<ul>\n<li><a href=\"http:\/\/store.steampowered.com\/app\/244210\">Assetto Corsa<\/a>, a multithreaded racing simulator (<em>M30 Gr.A Special Event<\/em>), FPS measured with my own plugin <a href=\"https:\/\/github.com\/stenyak\/framerateWatcher\">FramerateWatcher<\/a>.<\/li>\n<li>PI calculator <a href=\"http:\/\/www.superpi.net\/About\/\">SuperPI<\/a>, 2M variant, running in a single thread.<\/li>\n<li>Average maximum temperature reached by all cores, over a period of 15 minutes running <em>In-place large FFTs<\/em> torture test in <a href=\"http:\/\/www.mersenne.org\/\">Prime95<\/a>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<div id=\"attachment_1296\" style=\"width: 522px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/benchs.png\"><img aria-describedby=\"caption-attachment-1296\" loading=\"lazy\" class=\"size-full wp-image-1296  \" style=\"border: 4px solid black; margin-top: 4px; margin-bottom: 4px;\" title=\"...drum roll...\" alt=\"...drum roll...\" src=\"http:\/\/www.stenyak.com\/wp-content\/uploads\/2014\/02\/benchs.png\" width=\"512\" height=\"310\" \/><\/a><p id=\"caption-attachment-1296\" class=\"wp-caption-text\">And the winner is&#8230;<\/p><\/div>\n<p style=\"text-align: left;\">The winner is the <strong>Xeon<\/strong>, as it should: specially in multithreaded programs, the Xeon obliterates the Core2Duo.<\/p>\n<p style=\"text-align: left;\">But it&#8217;s interesting to note that, even running <strong>at the same clock speed<\/strong> of around 2.8GHz, <strong>the Xeon outperforms the Core2Duo by more than 20%<\/strong> in single threaded applications.<br \/>\nI checked the FSB and RAM multipliers in both cases, just in case the Xeon had an advantage on that front, but it was actually <strong>the E4300<\/strong> which <strong>had higher FSB and RAM clocks!<\/strong><\/p>\n<p style=\"text-align: left;\">Goes to show how <strong>clock isn&#8217;t everything<\/strong> when it comes to performance, and obviously better CPU technology consists of more than higher clock freq and greater number of cores.<\/p>\n<h1 style=\"text-align: left;\">The end<\/h1>\n<p style=\"text-align: left;\">So that&#8217;s it, that&#8217;s the story of how I more than doubled the framerates in games and halved compilation times for the cost of 4 movie tickets.<\/p>\n<p style=\"text-align: left;\">Hope you enjoyed reading this article as much as I definitely did not enjoy proof-reading it! \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Hello, and welcome to CPU Dealers! In todays episode we&#8217;re going to learn how to fit an LGA771 CPU into an LGA775 motherboard with no brute force! &nbsp; Motivation So why on earth would anyone decide to put an LGA771 Xeon server cpu into a domestic LGA775 motherboard, you may ask? Welp, because it&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[10,13,15],"_links":{"self":[{"href":"https:\/\/www.stenyak.com\/index.php?rest_route=\/wp\/v2\/posts\/1269"}],"collection":[{"href":"https:\/\/www.stenyak.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stenyak.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stenyak.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stenyak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1269"}],"version-history":[{"count":0,"href":"https:\/\/www.stenyak.com\/index.php?rest_route=\/wp\/v2\/posts\/1269\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.stenyak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stenyak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stenyak.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}