{"id":195284,"date":"2013-09-26T02:53:03","date_gmt":"2013-09-25T22:53:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=195284"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=195284","title":{"rendered":"<span class=\"post_title\">\u041f\u0430\u0442\u0447 \u0434\u043b\u044f \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 nvidia \u043a \u044f\u0434\u0440\u0443 3.12+<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0417\u0430\u0447\u0435\u0441\u0430\u043b\u043e\u0441\u044c \u2014 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u043e\u0441\u044c.<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u043d\u0430 Lightmark2008 \u0438 Unigine Heaven 2.5<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<pre><code class=\"diff\">diff -ur NVIDIA-Linux-x86_64-319.49\/kernel\/nv.c 319.49\/kernel\/nv.c --- NVIDIA-Linux-x86_64-319.49\/kernel\/nv.c      2013-08-14 06:33:23.000000000 +0400 +++ 319.49\/kernel\/nv.c  2013-09-16 15:53:55.000000000 +0400 @@ -16,7 +16,7 @@  #include &quot;rmil.h&quot;    #if defined(MODULE_LICENSE) -MODULE_LICENSE(&quot;NVIDIA&quot;); +MODULE_LICENSE(&quot;GPL v2&quot;); \/* \u041f\u0440\u0438\u0432\u044b\u0447\u043a\u0430 :) *\/  #endif  #if defined(MODULE_INFO)  MODULE_INFO(supported, &quot;external&quot;); diff -ur NVIDIA-Linux-x86_64-319.49\/kernel\/nv-drm.c 319.49\/kernel\/nv-drm.c --- NVIDIA-Linux-x86_64-319.49\/kernel\/nv-drm.c  2013-08-14 06:33:23.000000000 +0400 +++ 319.49\/kernel\/nv-drm.c      2013-09-26 02:46:03.528914493 +0400 @@ -106,7 +106,9 @@      .unlocked_ioctl = drm_ioctl,      .mmap = drm_gem_mmap,      .poll = drm_poll, +#if LINUX_VERSION_CODE &lt; KERNEL_VERSION(3, 12, 0)      .fasync = drm_fasync, +#endif      .read = drm_read,      .llseek = noop_llseek,  }; @@ -202,13 +204,6 @@      memset(&nv_obj-&gt;base, 0, sizeof(nv_obj-&gt;base));      nv_obj-&gt;pages = pages;   -    ret = drm_gem_private_object_init(nvl-&gt;drm, &nv_obj-&gt;base, size); -    if (ret) -    { -        status = RM_ERR_OPERATING_SYSTEM; -        goto done; -    } -      ret = drm_gem_handle_create(file_priv, &nv_obj-&gt;base, handle);      if (ret)      { @@ -216,6 +211,7 @@          goto done;      }   +    drm_gem_private_object_init(nvl-&gt;drm, &nv_obj-&gt;base, size);      drm_gem_object_unreference_unlocked(&nv_obj-&gt;base);        status = RM_OK; diff -ur NVIDIA-Linux-x86_64-319.49\/kernel\/nv-linux.h 319.49\/kernel\/nv-linux.h --- NVIDIA-Linux-x86_64-319.49\/kernel\/nv-linux.h        2013-08-14 06:33:23.000000000 +0400 +++ 319.49\/kernel\/nv-linux.h    2013-09-26 02:24:58.863000000 +0400 @@ -1037,7 +1037,11 @@  #endif  #if !defined(NV_VMWARE) +#if LINUX_VERSION_CODE &lt; KERNEL_VERSION(3, 11, 0)  #define NV_NUM_PHYSPAGES                num_physpages +#else +#define NV_NUM_PHYSPAGES                get_num_physpages() +#endif  #define NV_GET_CURRENT_PROCESS()        current-&gt;tgid  #define NV_IN_ATOMIC()                  in_atomic()  #define NV_LOCAL_BH_DISABLE()           local_bh_disable() <\/code><\/pre>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/195284\/\"> http:\/\/habrahabr.ru\/post\/195284\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0417\u0430\u0447\u0435\u0441\u0430\u043b\u043e\u0441\u044c \u2014 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u043e\u0441\u044c.<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u043d\u0430 Lightmark2008 \u0438 Unigine Heaven 2.5  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-195284","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/195284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=195284"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/195284\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=195284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=195284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}