Rev 2342 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2342 | Rev 2344 | ||
---|---|---|---|
Line 142... | Line 142... | ||
142 | lfb_vm_node.start = 0; |
142 | lfb_vm_node.start = 0; |
143 | lfb_vm_node.mm = NULL; |
143 | lfb_vm_node.mm = NULL; |
Line 144... | Line 144... | ||
144 | 144 | ||
145 | obj->gtt_space = &lfb_vm_node; |
145 | obj->gtt_space = &lfb_vm_node; |
146 | obj->gtt_offset = 0; |
146 | obj->gtt_offset = 0; |
147 | obj->pin_count = 1; |
147 | obj->pin_count = 2; |
148 | } |
148 | } |
Line 149... | Line 149... | ||
149 | /***********************************************************************/ |
149 | /***********************************************************************/ |
150 | 150 | ||
Line 198... | Line 198... | ||
198 | mutex_unlock(&dev->struct_mutex); |
198 | mutex_unlock(&dev->struct_mutex); |
199 | // vga_switcheroo_client_fb_set(dev->pdev, info); |
199 | // vga_switcheroo_client_fb_set(dev->pdev, info); |
200 | return 0; |
200 | return 0; |
Line 201... | Line 201... | ||
201 | 201 | ||
202 | out_unpin: |
202 | out_unpin: |
203 | // i915_gem_object_unpin(obj); |
203 | i915_gem_object_unpin(obj); |
204 | out_unref: |
204 | out_unref: |
205 | // drm_gem_object_unreference(&obj->base); |
205 | drm_gem_object_unreference(&obj->base); |
206 | mutex_unlock(&dev->struct_mutex); |
206 | mutex_unlock(&dev->struct_mutex); |
207 | out: |
207 | out: |
208 | return ret; |
208 | return ret; |