···14551455 </row>1456145614571457 <row><entry></entry></row>14581458- <row>14581458+ <row id="v4l2-mpeg-video-h264-vui-sar-idc">14591459 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_IDC</constant> </entry>14601460 <entry>enum v4l2_mpeg_video_h264_vui_sar_idc</entry>14611461 </row>···15611561 </row>1562156215631563 <row><entry></entry></row>15641564- <row>15641564+ <row id="v4l2-mpeg-video-h264-level">15651565 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LEVEL</constant> </entry>15661566 <entry>enum v4l2_mpeg_video_h264_level</entry>15671567 </row>···16411641 </row>1642164216431643 <row><entry></entry></row>16441644- <row>16441644+ <row id="v4l2-mpeg-video-mpeg4-level">16451645 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL</constant> </entry>16461646 <entry>enum v4l2_mpeg_video_mpeg4_level</entry>16471647 </row>···16891689 </row>1690169016911691 <row><entry></entry></row>16921692- <row>16921692+ <row id="v4l2-mpeg-video-h264-profile">16931693 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_PROFILE</constant> </entry>16941694- <entry>enum v4l2_mpeg_h264_profile</entry>16941694+ <entry>enum v4l2_mpeg_video_h264_profile</entry>16951695 </row>16961696 <row><entry spanname="descr">The profile information for H264.16971697Applicable to the H264 encoder.···17741774 </row>1775177517761776 <row><entry></entry></row>17771777- <row>17771777+ <row id="v4l2-mpeg-video-mpeg4-profile">17781778 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MPEG4_PROFILE</constant> </entry>17791779- <entry>enum v4l2_mpeg_mpeg4_profile</entry>17791779+ <entry>enum v4l2_mpeg_video_mpeg4_profile</entry>17801780 </row>17811781 <row><entry spanname="descr">The profile information for MPEG4.17821782Applicable to the MPEG4 encoder.···18201820 </row>1821182118221822 <row><entry></entry></row>18231823- <row>18231823+ <row id="v4l2-mpeg-video-multi-slice-mode">18241824 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE</constant> </entry>18251825- <entry>enum v4l2_mpeg_multi_slice_mode</entry>18251825+ <entry>enum v4l2_mpeg_video_multi_slice_mode</entry>18261826 </row>18271827 <row><entry spanname="descr">Determines how the encoder should handle division of frame into slices.18281828Applicable to the encoder.···18681868 </row>1869186918701870 <row><entry></entry></row>18711871- <row>18711871+ <row id="v4l2-mpeg-video-h264-loop-filter-mode">18721872 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_LOOP_FILTER_MODE</constant> </entry>18731873- <entry>enum v4l2_mpeg_h264_loop_filter_mode</entry>18731873+ <entry>enum v4l2_mpeg_video_h264_loop_filter_mode</entry>18741874 </row>18751875 <row><entry spanname="descr">Loop filter mode for H264 encoder.18761876Possible values are:</entry>···19131913 </row>1914191419151915 <row><entry></entry></row>19161916- <row>19161916+ <row id="v4l2-mpeg-video-h264-entropy-mode">19171917 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_H264_ENTROPY_MODE</constant> </entry>19181918- <entry>enum v4l2_mpeg_h264_symbol_mode</entry>19181918+ <entry>enum v4l2_mpeg_video_h264_entropy_mode</entry>19191919 </row>19201920 <row><entry spanname="descr">Entropy coding mode for H264 - CABAC/CAVALC.19211921Applicable to the H264 encoder.···21402140 </row>2141214121422142 <row><entry></entry></row>21432143- <row>21432143+ <row id="v4l2-mpeg-video-header-mode">21442144 <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_HEADER_MODE</constant> </entry>21452145- <entry>enum v4l2_mpeg_header_mode</entry>21452145+ <entry>enum v4l2_mpeg_video_header_mode</entry>21462146 </row>21472147 <row><entry spanname="descr">Determines whether the header is returned as the first buffer or is21482148it returned together with the first frame. Applicable to encoders.···23202320Applicable to the H264 encoder.</entry>23212321 </row>23222322 <row><entry></entry></row>23232323- <row>23232323+ <row id="v4l2-mpeg-mfc51-video-frame-skip-mode">23242324 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE</constant> </entry>23252325- <entry>enum v4l2_mpeg_mfc51_frame_skip_mode</entry>23252325+ <entry>enum v4l2_mpeg_mfc51_video_frame_skip_mode</entry>23262326 </row>23272327 <row><entry spanname="descr">23282328Indicates in what conditions the encoder should skip frames. If encoding a frame would cause the encoded stream to be larger then···23612361</entry>23622362 </row>23632363 <row><entry></entry></row>23642364- <row>23642364+ <row id="v4l2-mpeg-mfc51-video-force-frame-type">23652365 <entry spanname="id"><constant>V4L2_CID_MPEG_MFC51_VIDEO_FORCE_FRAME_TYPE</constant> </entry>23662366- <entry>enum v4l2_mpeg_mfc51_force_frame_type</entry>23662366+ <entry>enum v4l2_mpeg_mfc51_video_force_frame_type</entry>23672367 </row>23682368 <row><entry spanname="descr">Force a frame type for the next queued buffer. Applicable to encoders.23692369Possible values are:</entry>
+2
Documentation/ioctl/ioctl-number.txt
···319319 <mailto:thomas@winischhofer.net>3203200xF4 00-1F video/mbxfb.h mbxfb321321 <mailto:raph@8d.com>322322+0xF6 all LTTng Linux Trace Toolkit Next Generation323323+ <mailto:mathieu.desnoyers@efficios.com>3223240xFD all linux/dm-ioctl.h
···88 * published by the Free Software Foundation.99 */10101111-#include <mach/hardware.h>1211#include <asm/hardware/entry-macro-gic.S>13121413 .macro disable_fiq
···195195196196/**197197 * pwrdm_init - set up the powerdomain layer198198- * @pwrdm_list: array of struct powerdomain pointers to register198198+ * @pwrdms: array of struct powerdomain pointers to register199199 * @custom_funcs: func pointers for arch specific implementations200200 *201201- * Loop through the array of powerdomains @pwrdm_list, registering all202202- * that are available on the current CPU. If pwrdm_list is supplied203203- * and not null, all of the referenced powerdomains will be204204- * registered. No return value. XXX pwrdm_list is not really a205205- * "list"; it is an array. Rename appropriately.201201+ * Loop through the array of powerdomains @pwrdms, registering all202202+ * that are available on the current CPU. Also, program all203203+ * powerdomain target state as ON; this is to prevent domains from204204+ * hitting low power states (if bootloader has target states set to205205+ * something other than ON) and potentially even losing context while206206+ * PM is not fully initialized. The PM late init code can then program207207+ * the desired target state for all the power domains. No return208208+ * value.206209 */207207-void pwrdm_init(struct powerdomain **pwrdm_list, struct pwrdm_ops *custom_funcs)210210+void pwrdm_init(struct powerdomain **pwrdms, struct pwrdm_ops *custom_funcs)208211{209212 struct powerdomain **p = NULL;213213+ struct powerdomain *temp_p;210214211215 if (!custom_funcs)212216 WARN(1, "powerdomain: No custom pwrdm functions registered\n");213217 else214218 arch_pwrdm = custom_funcs;215219216216- if (pwrdm_list) {217217- for (p = pwrdm_list; *p; p++)220220+ if (pwrdms) {221221+ for (p = pwrdms; *p; p++)218222 _pwrdm_register(*p);219223 }224224+225225+ list_for_each_entry(temp_p, &pwrdm_list, node)226226+ pwrdm_set_next_pwrst(temp_p, PWRDM_POWER_ON);220227}221228222229/**
···23232424/* This struct is saved by setup_frame in signal.c, to keep the current2525 context while a signal handler is executed. It's restored by sys_sigreturn.2626-2727- To keep things simple, we use pt_regs here even though normally you just2828- specify the list of regs to save. Then we can use copy_from_user on the2929- entire regs instead of a bunch of get_user's as well...3026*/31273228struct sigcontext {3333- struct pt_regs regs; /* needs to be first */2929+ struct user_regs_struct regs; /* needs to be first */3430 unsigned long oldmask;3535- unsigned long usp; /* usp before stacking this gunk on it */3631};37323833#endif /* __ASM_OPENRISC_SIGCONTEXT_H */
···5252static int restore_sigcontext(struct pt_regs *regs, struct sigcontext *sc)5353{5454 unsigned int err = 0;5555- unsigned long old_usp;56555756 /* Alwys make any pending restarted system call return -EINTR */5857 current_thread_info()->restart_block.fn = do_no_restart_syscall;59586060- /* restore the regs from &sc->regs (same as sc, since regs is first)5959+ /*6060+ * Restore the regs from &sc->regs.6161 * (sc is already checked for VERIFY_READ since the sigframe was6262 * checked in sys_sigreturn previously)6363 */6464-6565- if (__copy_from_user(regs, sc, sizeof(struct pt_regs)))6464+ if (__copy_from_user(regs, sc->regs.gpr, 32 * sizeof(unsigned long)))6565+ goto badframe;6666+ if (__copy_from_user(®s->pc, &sc->regs.pc, sizeof(unsigned long)))6767+ goto badframe;6868+ if (__copy_from_user(®s->sr, &sc->regs.sr, sizeof(unsigned long)))6669 goto badframe;67706871 /* make sure the SM-bit is cleared so user-mode cannot fool us */6972 regs->sr &= ~SPR_SR_SM;7070-7171- /* restore the old USP as it was before we stacked the sc etc.7272- * (we cannot just pop the sigcontext since we aligned the sp and7373- * stuff after pushing it)7474- */7575-7676- err |= __get_user(old_usp, &sc->usp);7777-7878- regs->sp = old_usp;79738074 /* TODO: the other ports use regs->orig_XX to disable syscall checks8175 * after this completes, but we don't use that mechanism. maybe we can···131137 unsigned long mask)132138{133139 int err = 0;134134- unsigned long usp = regs->sp;135140136136- /* copy the regs. they are first in sc so we can use sc directly */141141+ /* copy the regs */137142138138- err |= __copy_to_user(sc, regs, sizeof(struct pt_regs));143143+ err |= __copy_to_user(sc->regs.gpr, regs, 32 * sizeof(unsigned long));144144+ err |= __copy_to_user(&sc->regs.pc, ®s->pc, sizeof(unsigned long));145145+ err |= __copy_to_user(&sc->regs.sr, ®s->sr, sizeof(unsigned long));139146140147 /* then some other stuff */141148142149 err |= __put_user(mask, &sc->oldmask);143143-144144- err |= __put_user(usp, &sc->usp);145150146151 return err;147152}
-1
drivers/gpu/drm/drm_fb_helper.c
···256256{257257 printk(KERN_ERR "panic occurred, switching back to text console\n");258258 return drm_fb_helper_force_kernel_mode();259259- return 0;260259}261260EXPORT_SYMBOL(drm_fb_helper_panic);262261
+2-1
drivers/gpu/drm/nouveau/nouveau_fence.c
···530530 nouveau_gpuobj_ref(NULL, &obj);531531 if (ret)532532 return ret;533533- } else {533533+ } else534534+ if (USE_SEMA(dev)) {534535 /* map fence bo into channel's vm */535536 ret = nouveau_bo_vma_add(dev_priv->fence.bo, chan->vm,536537 &chan->fence.vma);
···781781 struct drm_device *dev = crtc->dev;782782 struct drm_nouveau_private *dev_priv = dev->dev_private;783783 struct nv04_crtc_reg *regp = &dev_priv->mode_reg.crtc_reg[nv_crtc->index];784784- struct drm_framebuffer *drm_fb = nv_crtc->base.fb;785785- struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb);784784+ struct drm_framebuffer *drm_fb;785785+ struct nouveau_framebuffer *fb;786786 int arb_burst, arb_lwm;787787 int ret;788788+789789+ NV_DEBUG_KMS(dev, "index %d\n", nv_crtc->index);790790+791791+ /* no fb bound */792792+ if (!atomic && !crtc->fb) {793793+ NV_DEBUG_KMS(dev, "No FB bound\n");794794+ return 0;795795+ }796796+788797789798 /* If atomic, we want to switch to the fb we were passed, so790799 * now we update pointers to do that. (We don't pin; just···803794 drm_fb = passed_fb;804795 fb = nouveau_framebuffer(passed_fb);805796 } else {797797+ drm_fb = crtc->fb;798798+ fb = nouveau_framebuffer(crtc->fb);806799 /* If not atomic, we can go ahead and pin, and unpin the807800 * old fb we were passed.808801 */
+10-2
drivers/gpu/drm/nouveau/nv50_crtc.c
···519519 struct drm_device *dev = nv_crtc->base.dev;520520 struct drm_nouveau_private *dev_priv = dev->dev_private;521521 struct nouveau_channel *evo = nv50_display(dev)->master;522522- struct drm_framebuffer *drm_fb = nv_crtc->base.fb;523523- struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb);522522+ struct drm_framebuffer *drm_fb;523523+ struct nouveau_framebuffer *fb;524524 int ret;525525526526 NV_DEBUG_KMS(dev, "index %d\n", nv_crtc->index);527527+528528+ /* no fb bound */529529+ if (!atomic && !crtc->fb) {530530+ NV_DEBUG_KMS(dev, "No FB bound\n");531531+ return 0;532532+ }527533528534 /* If atomic, we want to switch to the fb we were passed, so529535 * now we update pointers to do that. (We don't pin; just···539533 drm_fb = passed_fb;540534 fb = nouveau_framebuffer(passed_fb);541535 } else {536536+ drm_fb = crtc->fb;537537+ fb = nouveau_framebuffer(crtc->fb);542538 /* If not atomic, we can go ahead and pin, and unpin the543539 * old fb we were passed.544540 */
+24-13
drivers/gpu/drm/radeon/radeon_connectors.c
···12971297 if (!radeon_dig_connector->edp_on)12981298 atombios_set_edp_panel_power(connector,12991299 ATOM_TRANSMITTER_ACTION_POWER_OFF);13001300- } else {13011301- /* need to setup ddc on the bridge */13021302- if (radeon_connector_encoder_is_dp_bridge(connector)) {13001300+ } else if (radeon_connector_encoder_is_dp_bridge(connector)) {13011301+ /* DP bridges are always DP */13021302+ radeon_dig_connector->dp_sink_type = CONNECTOR_OBJECT_ID_DISPLAYPORT;13031303+ /* get the DPCD from the bridge */13041304+ radeon_dp_getdpcd(radeon_connector);13051305+13061306+ if (radeon_hpd_sense(rdev, radeon_connector->hpd.hpd))13071307+ ret = connector_status_connected;13081308+ else {13091309+ /* need to setup ddc on the bridge */13031310 if (encoder)13041311 radeon_atom_ext_encoder_setup_ddc(encoder);13121312+ if (radeon_ddc_probe(radeon_connector,13131313+ radeon_connector->requires_extended_probe))13141314+ ret = connector_status_connected;13051315 }13161316+13171317+ if ((ret == connector_status_disconnected) &&13181318+ radeon_connector->dac_load_detect) {13191319+ struct drm_encoder *encoder = radeon_best_single_encoder(connector);13201320+ struct drm_encoder_helper_funcs *encoder_funcs;13211321+ if (encoder) {13221322+ encoder_funcs = encoder->helper_private;13231323+ ret = encoder_funcs->detect(encoder, connector);13241324+ }13251325+ }13261326+ } else {13061327 radeon_dig_connector->dp_sink_type = radeon_dp_getsinktype(radeon_connector);13071328 if (radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) {13081329 ret = connector_status_connected;···13371316 if (radeon_ddc_probe(radeon_connector,13381317 radeon_connector->requires_extended_probe))13391318 ret = connector_status_connected;13401340- }13411341- }13421342-13431343- if ((ret == connector_status_disconnected) &&13441344- radeon_connector->dac_load_detect) {13451345- struct drm_encoder *encoder = radeon_best_single_encoder(connector);13461346- struct drm_encoder_helper_funcs *encoder_funcs;13471347- if (encoder) {13481348- encoder_funcs = encoder->helper_private;13491349- ret = encoder_funcs->detect(encoder, connector);13501319 }13511320 }13521321 }
···338338 if (pdev->restore_factory)339339 pdev->restore_factory->flags = V4L2_CTRL_FLAG_UPDATE;340340341341- if (!pdev->features & FEATURE_MOTOR_PANTILT)341341+ if (!(pdev->features & FEATURE_MOTOR_PANTILT))342342 return hdl->error;343343344344 /* Motor pan / tilt / reset */
···183183 * read from the commit root and sidestep a nasty deadlock184184 * between reading the free space cache and updating the csum tree.185185 */186186- if (btrfs_is_free_space_inode(root, inode))186186+ if (btrfs_is_free_space_inode(root, inode)) {187187 path->search_commit_root = 1;188188+ path->skip_locking = 1;189189+ }188190189191 disk_bytenr = (u64)bio->bi_sector << 9;190192 if (dio)
···190190 struct btrfs_path *path,191191 struct inode *inode)192192{193193+ struct btrfs_block_rsv *rsv;193194 loff_t oldsize;194195 int ret = 0;195196197197+ rsv = trans->block_rsv;196198 trans->block_rsv = root->orphan_block_rsv;197199 ret = btrfs_block_rsv_check(trans, root,198200 root->orphan_block_rsv,···212210 */213211 ret = btrfs_truncate_inode_items(trans, root, inode,214212 0, BTRFS_EXTENT_DATA_KEY);213213+214214+ trans->block_rsv = rsv;215215 if (ret) {216216 WARN_ON(1);217217 return ret;
+11-11
fs/btrfs/inode.c
···17861786 &ordered_extent->list);1787178717881788 ret = btrfs_ordered_update_i_size(inode, 0, ordered_extent);17891789- if (!ret) {17891789+ if (!ret || !test_bit(BTRFS_ORDERED_PREALLOC, &ordered_extent->flags)) {17901790 ret = btrfs_update_inode(trans, root, inode);17911791 BUG_ON(ret);17921792 }···35103510 err = btrfs_drop_extents(trans, inode, cur_offset,35113511 cur_offset + hole_size,35123512 &hint_byte, 1);35133513- if (err)35133513+ if (err) {35143514+ btrfs_end_transaction(trans, root);35143515 break;35163516+ }3515351735163518 err = btrfs_insert_file_extent(trans, root,35173519 btrfs_ino(inode), cur_offset, 0,35183520 0, hole_size, 0, hole_size,35193521 0, 0, 0);35203520- if (err)35223522+ if (err) {35233523+ btrfs_end_transaction(trans, root);35213524 break;35253525+ }3522352635233527 btrfs_drop_extent_cache(inode, hole_start,35243528 last_byte - 1, 0);···39563952 struct btrfs_root *root, int *new)39573953{39583954 struct inode *inode;39593959- int bad_inode = 0;3960395539613956 inode = btrfs_iget_locked(s, location->objectid, root);39623957 if (!inode)···39713968 if (new)39723969 *new = 1;39733970 } else {39743974- bad_inode = 1;39713971+ unlock_new_inode(inode);39723972+ iput(inode);39733973+ inode = ERR_PTR(-ESTALE);39753974 }39763976- }39773977-39783978- if (bad_inode) {39793979- iput(inode);39803980- inode = ERR_PTR(-ESTALE);39813975 }3982397639833977 return inode;···5823582358245824 add_pending_csums(trans, inode, ordered->file_offset, &ordered->list);58255825 ret = btrfs_ordered_update_i_size(inode, 0, ordered);58265826- if (!ret)58265826+ if (!ret || !test_bit(BTRFS_ORDERED_PREALLOC, &ordered->flags))58275827 btrfs_update_inode(trans, root, inode);58285828 ret = 0;58295829out_unlock:
+16-3
fs/btrfs/ioctl.c
···22202220 !IS_ALIGNED(destoff, bs))22212221 goto out_unlock;2222222222232223+ if (destoff > inode->i_size) {22242224+ ret = btrfs_cont_expand(inode, inode->i_size, destoff);22252225+ if (ret)22262226+ goto out_unlock;22272227+ }22282228+22232229 /* do any pending delalloc/csum calc on src, one way or22242230 another, and lock file content */22252231 while (1) {···2331232523322326 if (type == BTRFS_FILE_EXTENT_REG ||23332327 type == BTRFS_FILE_EXTENT_PREALLOC) {23282328+ /*23292329+ * a | --- range to clone ---| b23302330+ * | ------------- extent ------------- |23312331+ */23322332+23332333+ /* substract range b */23342334+ if (key.offset + datal > off + len)23352335+ datal = off + len - key.offset;23362336+23372337+ /* substract range a */23342338 if (off > key.offset) {23352339 datao += off - key.offset;23362340 datal -= off - key.offset;23372341 }23382338-23392339- if (key.offset + datal > off + len)23402340- datal = off + len - key.offset;2341234223422343 ret = btrfs_drop_extents(trans, inode,23432344 new_key.offset,