10 Oct, 2016

1 commit

  • Move blackfin gptimers-example to samples and remove it from Documentation
    Makefile. Update samples Kconfig and Makefile to build gptimers-example.

    blackfin is the last CONFIG_BUILD_DOCSRC target in Documentation/Makefile.
    Hence this patch also includes changes to remove CONFIG_BUILD_DOCSRC from
    Makefile and lib/Kconfig.debug and updates VIDEO_PCI_SKELETON dependency
    on BUILD_DOCSRC.

    Documentation/Makefile is not deleted to avoid braking make htmldocs and
    make distclean.

    Acked-by: Michal Marek
    Acked-by: Jonathan Corbet
    Reviewed-by: Kees Cook
    Reported-by: Valentin Rothberg
    Reported-by: Paul Gortmaker
    Signed-off-by: Shuah Khan

    Shuah Khan
     

04 Aug, 2016

4 commits

  • Pull media DocBook removal and some fixups from Mauro Carvalho Chehab:

    - removal of the media DocBook (since it's all in Sphinx now)

    - videobuf2: Fix an allocation regression

    - a few fixes related to the CEC drivers

    * tag 'media/v4.8-5' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] cec: fix off-by-one memset
    [media] staging: add MEDIA_SUPPORT dependency
    [media] vivid: don't handle CEC_MSG_SET_STREAM_PATH
    [media] media: adv7180: Fix broken interrupt register access
    [media] vb2: Fix allocation size of dma_parms
    [media] vim2m: copy the other colorspace-related fields as well
    [media] adv7511: fix VIC autodetect
    doc-rst: Remove the media docbook

    Linus Torvalds
     
  • The addition of jump label support in dynamic_debug caused an unexpected
    warning in exactly one file in the kernel:

    drivers/media/dvb-frontends/cxd2841er.c: In function 'cxd2841er_tune_tc':
    include/linux/dynamic_debug.h:134:3: error: 'carrier_offset' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    __dynamic_dev_dbg(&descriptor, dev, fmt, \
    ^~~~~~~~~~~~~~~~~
    drivers/media/dvb-frontends/cxd2841er.c:3177:11: note: 'carrier_offset' was declared here
    int ret, carrier_offset;
    ^~~~~~~~~~~~~~

    The problem seems to be that the compiler gets confused by the extra
    conditionals in static_branch_unlikely, to the point where it can no
    longer keep track of which branches have already been taken, and it
    doesn't realize that this variable is now always initialized when it
    gets used.

    I have done lots of randconfig kernel builds and could not find any
    other file with this behavior, so I assume it's a rare enough glitch
    that we don't need to change the jump label support but instead just
    work around the warning in the driver.

    To achieve that, I'm moving the check for the return value into the
    switch() statement, which is an obvious transformation, but is enough to
    un-confuse the compiler here. The resulting code is not as nice to
    read, but at least we retain the behavior of warning if it gets changed
    to actually access an uninitialized carrier offset value in the future.

    Link: http://lkml.kernel.org/r/20160713204342.1221511-1-arnd@arndb.de
    Signed-off-by: Arnd Bergmann
    Acked-by: Abylay Ospan
    Cc: Sergey Kozlov
    Cc: Mauro Carvalho Chehab
    Cc: Jason Baron
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnd Bergmann
     
  • The dma-mapping core and the implementations do not change the DMA
    attributes passed by pointer. Thus the pointer can point to const data.
    However the attributes do not have to be a bitfield. Instead unsigned
    long will do fine:

    1. This is just simpler. Both in terms of reading the code and setting
    attributes. Instead of initializing local attributes on the stack
    and passing pointer to it to dma_set_attr(), just set the bits.

    2. It brings safeness and checking for const correctness because the
    attributes are passed by value.

    Semantic patches for this change (at least most of them):

    virtual patch
    virtual context

    @r@
    identifier f, attrs;

    @@
    f(...,
    - struct dma_attrs *attrs
    + unsigned long attrs
    , ...)
    {
    ...
    }

    @@
    identifier r.f;
    @@
    f(...,
    - NULL
    + 0
    )

    and

    // Options: --all-includes
    virtual patch
    virtual context

    @r@
    identifier f, attrs;
    type t;

    @@
    t f(..., struct dma_attrs *attrs);

    @@
    identifier r.f;
    @@
    f(...,
    - NULL
    + 0
    )

    Link: http://lkml.kernel.org/r/1468399300-5399-2-git-send-email-k.kozlowski@samsung.com
    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Vineet Gupta
    Acked-by: Robin Murphy
    Acked-by: Hans-Christian Noren Egtvedt
    Acked-by: Mark Salter [c6x]
    Acked-by: Jesper Nilsson [cris]
    Acked-by: Daniel Vetter [drm]
    Reviewed-by: Bart Van Assche
    Acked-by: Joerg Roedel [iommu]
    Acked-by: Fabien Dessenne [bdisp]
    Reviewed-by: Marek Szyprowski [vb2-core]
    Acked-by: David Vrabel [xen]
    Acked-by: Konrad Rzeszutek Wilk [xen swiotlb]
    Acked-by: Joerg Roedel [iommu]
    Acked-by: Richard Kuo [hexagon]
    Acked-by: Geert Uytterhoeven [m68k]
    Acked-by: Gerald Schaefer [s390]
    Acked-by: Bjorn Andersson
    Acked-by: Hans-Christian Noren Egtvedt [avr32]
    Acked-by: Vineet Gupta [arc]
    Acked-by: Robin Murphy [arm64 and dma-iommu]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Kozlowski
     
  • The local variable dma_attrs is set but never read.

    Link: http://lkml.kernel.org/r/1468399300-5399-1-git-send-email-k.kozlowski@samsung.com
    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Kozlowski
     

02 Aug, 2016

2 commits

  • Merge drm updates from Dave Airlie:
    "This is the main drm pull request for 4.8.

    I'm down with a cold at the moment so hopefully this isn't in too bad
    a state, I finished pulling stuff last week mostly (nouveau fixes just
    went in today), so only this message should be influenced by illness.
    Apologies to anyone who's major feature I missed :-)

    Core:
    Lockless GEM BO freeing
    Non-blocking atomic work
    Documentation changes (rst/sphinx)
    Prep for new fencing changes
    Simple display helpers
    Master/auth changes
    Register/unregister rework
    Loads of trivial patches/fixes.

    New stuff:
    ARM Mali display driver (not the 3D chip)
    sii902x RGB->HDMI bridge

    Panel:
    Support for new panels
    Improved backlight support

    Bridge:
    Convert ADV7511 to bridge driver
    ADV7533 support
    TC358767 (DSI/DPI to eDP) encoder chip support

    i915:
    BXT support enabled by default
    GVT-g infrastructure
    GuC command submission and fixes
    BXT workarounds
    SKL/BKL workarounds
    Demidlayering device registration
    Thundering herd fixes
    Missing pci ids
    Atomic updates

    amdgpu/radeon:
    ATPX improvements for better dGPU power control on PX systems
    New power features for CZ/BR/ST
    Pipelined BO moves and evictions in TTM
    GPU scheduler improvements
    GPU reset improvements
    Overclocking on dGPUs with amdgpu
    Polaris powermanagement enabled

    nouveau:
    GK20A/GM20B volt and clock improvements.
    Initial support for GP100/GP104 GPUs, GP104 will not yet support
    acceleration due to NVIDIA having not released firmware for them as of yet.

    exynos:
    Exynos5433 SoC with IOMMU support.

    vc4:
    Shader validation for branching

    imx-drm:
    Atomic mode setting conversion
    Reworked DMFC FIFO allocation
    External bridge support

    analogix-dp:
    RK3399 eDP support
    Lots of fixes.

    rockchip:
    Lots of small fixes.

    msm:
    DT bindings cleanups
    Shrinker and madvise support
    ASoC HDMI codec support

    tegra:
    Host1x driver cleanups
    SOR reworking for DP support
    Runtime PM support

    omapdrm:
    PLL enhancements
    Header refactoring
    Gamma table support

    arcgpu:
    Simulator support

    virtio-gpu:
    Atomic modesetting fixes.

    rcar-du:
    Misc fixes.

    mediatek:
    MT8173 HDMI support

    sti:
    ASOC HDMI codec support
    Minor fixes

    fsl-dcu:
    Suspend/resume support
    Bridge support

    amdkfd:
    Minor fixes.

    etnaviv:
    Enable GPU clock gating

    hisilicon:
    Vblank and other fixes"

    * tag 'drm-for-v4.8' of git://people.freedesktop.org/~airlied/linux: (1575 commits)
    drm/nouveau/gr/nv3x: fix instobj write offsets in gr setup
    drm/nouveau/acpi: fix lockup with PCIe runtime PM
    drm/nouveau/acpi: check for function 0x1B before using it
    drm/nouveau/acpi: return supported DSM functions
    drm/nouveau/acpi: ensure matching ACPI handle and supported functions
    drm/nouveau/fbcon: fix font width not divisible by 8
    drm/amd/powerplay: remove enable_clock_power_gatings_tasks from initialize and resume events
    drm/amd/powerplay: move clockgating to after ungating power in pp for uvd/vce
    drm/amdgpu: add query device id and revision id into system info entry at CGS
    drm/amdgpu: add new definition in bif header
    drm/amd/powerplay: rename smum header guards
    drm/amdgpu: enable UVD context buffer for older HW
    drm/amdgpu: fix default UVD context size
    drm/amdgpu: fix incorrect type of info_id
    drm/amdgpu: make amdgpu_cgs_call_acpi_method as static
    drm/amdgpu: comment out unused defaults_staturn_pro static const structure to fix the build
    drm/amdgpu: enable UVD VM only on polaris
    drm/amdgpu: increase timeout of IB test
    drm/amdgpu: add destroy session when generate VCE destroy msg.
    drm/amd: fix deadlock of job_list_lock V2
    ...

    Linus Torvalds
     
  • Pull ARM SoC driver updates from Olof Johansson:
    "Driver updates for ARM SoCs.

    A slew of changes this release cycle. The reset driver tree, that we
    merge through arm-soc for historical reasons, is also sizable this
    time around.

    Among the changes:

    - clps711x: Treewide changes to compatible strings, merged here for simplicity.
    - Qualcomm: SCM firmware driver cleanups, move to platform driver
    - ux500: Major cleanups, removal of old mach-specific infrastructure.
    - Atmel external bus memory driver
    - Move of brcmstb platform to the rest of bcm
    - PMC driver updates for tegra, various fixes and improvements
    - Samsung platform driver updates to support 64-bit Exynos platforms
    - Reset controller cleanups moving to devm_reset_controller_register() APIs
    - Reset controller driver for Amlogic Meson
    - Reset controller driver for Hisilicon hi6220
    - ARM SCPI power domain support"

    * tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (100 commits)
    ARM: ux500: consolidate base platform files
    ARM: ux500: move soc_id driver to drivers/soc
    ARM: ux500: call ux500_setup_id later
    ARM: ux500: consolidate soc_device code in id.c
    ARM: ux500: remove cpu_is_u* helpers
    ARM: ux500: use CLK_OF_DECLARE()
    ARM: ux500: move l2x0 init to .init_irq
    mfd: db8500 stop passing around platform data
    ASoC: ab8500-codec: remove platform data based probe
    ARM: ux500: move ab8500_regulator_plat_data into driver
    ARM: ux500: remove unused regulator data
    soc: raspberrypi-power: add CONFIG_OF dependency
    firmware: scpi: add CONFIG_OF dependency
    video: clps711x-fb: Changing the compatibility string to match with the smallest supported chip
    input: clps711x-keypad: Changing the compatibility string to match with the smallest supported chip
    pwm: clps711x: Changing the compatibility string to match with the smallest supported chip
    serial: clps711x: Changing the compatibility string to match with the smallest supported chip
    irqchip: clps711x: Changing the compatibility string to match with the smallest supported chip
    clocksource: clps711x: Changing the compatibility string to match with the smallest supported chip
    clk: clps711x: Changing the compatibility string to match with the smallest supported chip
    ...

    Linus Torvalds
     

29 Jul, 2016

5 commits

  • vivid shouldn't process the CEC_MSG_SET_STREAM_PATH message: this will confuse
    userspace follower code because it isn't aware of the state change of becoming
    an active source.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Access to the interrupt page registers has been broken since at least
    commit 3999e5d01da7 ("[media] adv7180: Do implicit register paging").
    That commit forgot to add the interrupt page number to the register
    defines.

    Signed-off-by: Steve Longerbeam
    Tested-by: Tim Harvey
    Acked-by: Lars-Peter Clausen
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Steve Longerbeam
     
  • When allocating memory to hold the device dma parameters in
    vb2_dma_contig_set_max_seg_size(), the requested size is by mistake only
    the size of a pointer. Request the correct size instead.

    Fixes: 3f0339691896 ("media: vb2-dma-contig: add helper for setting dma max seg size")

    Signed-off-by: Vincent Stehlé
    Cc: Sylwester Nawrocki
    Acked-by: Marek Szyprowski
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Vincent Stehlé
     
  • The xfer_func, ycbcr_enc and quantization fields should also be copied from
    output to capture format.

    Since this driver serves as example code it is important that this is handled
    correctly.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The adv7511 will automatically fill in the VIC code in the AVI InfoFrame
    based on the timings of the incoming pixelport signals.

    However, to have this work correctly it needs to specify the fps
    value in a register. After doing this the proper VIC code is filled in.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     

28 Jul, 2016

2 commits

  • Pull media documentation updates from Mauro Carvalho Chehab:
    "This patch series does the conversion of all media documentation stuff
    to Restrutured Text markup format and add them to the
    Documentation/index.rst file.

    The media documentation was grouped into 4 books:

    - media uAPI
    - media kAPI
    - V4L driver-specific documentation
    - DVB driver-specific documentation

    It also contains several documentation improvements and one fixup
    patch for a core issue with cropcap.

    PS. After this patch series, the media DocBook is deprecated and
    should be removed. I'll add such patch on a future pull request"

    * tag 'media/v4.8-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (322 commits)
    [media] cx23885-cardlist.rst: add a new card
    [media] doc-rst: add some needed escape codes
    [media] doc-rst: kapi: use :c:func: instead of :cpp:func
    doc-rst: kernel-doc: fix a change introduced by mistake
    [media] v4l2-ioctl.h add debug info for struct v4l2_ioctl_ops
    [media] dvb_ringbuffer.h: some documentation improvements
    [media] v4l2-ctrls.h: fully document the header file
    [media] doc-rst: Fix some typedef ugly warnings
    [media] doc-rst: reorganize the kAPI v4l2 chapters
    [media] rename v4l2-framework.rst to v4l2-intro.rst
    [media] move V4L2 clocks to a separate .rst file
    [media] v4l2-fh.rst: add cross references and markups
    [media] v4l2-fh.rst: add fh contents from v4l2-framework.rst
    [media] v4l2-fh.h: add documentation for it
    [media] v4l2-event.rst: add cross-references and markups
    [media] v4l2-event.h: document all functions
    [media] v4l2-event.rst: add text from v4l2-framework.rst
    [media] v4l2-framework.rst: remove videobuf quick chapter
    [media] v4l2-dev: add cross-references and improve markup
    [media] doc-rst: move v4l2-dev doc to a separate file
    ...

    Linus Torvalds
     
  • Pull networking updates from David Miller:

    1) Unified UDP encapsulation offload methods for drivers, from
    Alexander Duyck.

    2) Make DSA binding more sane, from Andrew Lunn.

    3) Support QCA9888 chips in ath10k, from Anilkumar Kolli.

    4) Several workqueue usage cleanups, from Bhaktipriya Shridhar.

    5) Add XDP (eXpress Data Path), essentially running BPF programs on RX
    packets as soon as the device sees them, with the option to mirror
    the packet on TX via the same interface. From Brenden Blanco and
    others.

    6) Allow qdisc/class stats dumps to run lockless, from Eric Dumazet.

    7) Add VLAN support to b53 and bcm_sf2, from Florian Fainelli.

    8) Simplify netlink conntrack entry layout, from Florian Westphal.

    9) Add ipv4 forwarding support to mlxsw spectrum driver, from Ido
    Schimmel, Yotam Gigi, and Jiri Pirko.

    10) Add SKB array infrastructure and convert tun and macvtap over to it.
    From Michael S Tsirkin and Jason Wang.

    11) Support qdisc packet injection in pktgen, from John Fastabend.

    12) Add neighbour monitoring framework to TIPC, from Jon Paul Maloy.

    13) Add NV congestion control support to TCP, from Lawrence Brakmo.

    14) Add GSO support to SCTP, from Marcelo Ricardo Leitner.

    15) Allow GRO and RPS to function on macsec devices, from Paolo Abeni.

    16) Support MPLS over IPV4, from Simon Horman.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1622 commits)
    xgene: Fix build warning with ACPI disabled.
    be2net: perform temperature query in adapter regardless of its interface state
    l2tp: Correctly return -EBADF from pppol2tp_getname.
    net/mlx5_core/health: Remove deprecated create_singlethread_workqueue
    net: ipmr/ip6mr: update lastuse on entry change
    macsec: ensure rx_sa is set when validation is disabled
    tipc: dump monitor attributes
    tipc: add a function to get the bearer name
    tipc: get monitor threshold for the cluster
    tipc: make cluster size threshold for monitoring configurable
    tipc: introduce constants for tipc address validation
    net: neigh: disallow transition to NUD_STALE if lladdr is unchanged in neigh_update()
    MAINTAINERS: xgene: Add driver and documentation path
    Documentation: dtb: xgene: Add MDIO node
    dtb: xgene: Add MDIO node
    drivers: net: xgene: ethtool: Use phy_ethtool_gset and sset
    drivers: net: xgene: Use exported functions
    drivers: net: xgene: Enable MDIO driver
    drivers: net: xgene: Add backward compatibility
    drivers: net: phy: xgene: Add MDIO driver
    ...

    Linus Torvalds
     

27 Jul, 2016

2 commits

  • * topic/docs-next: (322 commits)
    [media] cx23885-cardlist.rst: add a new card
    [media] doc-rst: add some needed escape codes
    [media] doc-rst: kapi: use :c:func: instead of :cpp:func
    doc-rst: kernel-doc: fix a change introduced by mistake
    [media] v4l2-ioctl.h add debug info for struct v4l2_ioctl_ops
    [media] dvb_ringbuffer.h: some documentation improvements
    [media] v4l2-ctrls.h: fully document the header file
    [media] doc-rst: Fix some typedef ugly warnings
    [media] doc-rst: reorganize the kAPI v4l2 chapters
    [media] rename v4l2-framework.rst to v4l2-intro.rst
    [media] move V4L2 clocks to a separate .rst file
    [media] v4l2-fh.rst: add cross references and markups
    [media] v4l2-fh.rst: add fh contents from v4l2-framework.rst
    [media] v4l2-fh.h: add documentation for it
    [media] v4l2-event.rst: add cross-references and markups
    [media] v4l2-event.h: document all functions
    [media] v4l2-event.rst: add text from v4l2-framework.rst
    [media] v4l2-framework.rst: remove videobuf quick chapter
    [media] v4l2-dev: add cross-references and improve markup
    [media] doc-rst: move v4l2-dev doc to a separate file
    ...

    Mauro Carvalho Chehab
     
  • Pull media updates from Mauro Carvalho Chehab:

    - new framework support for HDMI CEC and remote control support

    - new encoding codec driver for Mediatek SoC

    - new frontend driver: helene tuner

    - added support for NetUp almost universal devices, with supports
    DVB-C/S/S2/T/T2 and ISDB-T

    - the mn88472 frontend driver got promoted from staging

    - a new driver for RCar video input

    - some soc_camera legacy drivers got removed: timb, omap1, mx2, mx3

    - lots of driver cleanups, improvements and fixups

    * tag 'media/v4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (377 commits)
    [media] cec: always check all_device_types and features
    [media] cec: poll should check if there is room in the tx queue
    [media] vivid: support monitor all mode
    [media] cec: fix test for unconfigured adapter in main message loop
    [media] cec: limit the size of the transmit queue
    [media] cec: zero unused msg part after msg->len
    [media] cec: don't set fh to NULL in CEC_TRANSMIT
    [media] cec: clear all status fields before transmit and always fill in sequence
    [media] cec: CEC_RECEIVE overwrote the timeout field
    [media] cxd2841er: Reading SNR for DVB-C added
    [media] cxd2841er: Reading BER and UCB for DVB-C added
    [media] cxd2841er: fix switch-case for DVB-C
    [media] cxd2841er: fix signal strength scale for ISDB-T
    [media] cxd2841er: adjust the dB scale for DVB-C
    [media] cxd2841er: provide signal strength for DVB-C
    [media] cxd2841er: fix BER report via DVBv5 stats API
    [media] mb86a20s: apply mask to val after checking for read failure
    [media] airspy: fix error logic during device register
    [media] s5p-cec/TODO: add TODO item
    [media] cec/TODO: drop comment about sphinx documentation
    ...

    Linus Torvalds
     

26 Jul, 2016

1 commit


24 Jul, 2016

1 commit


23 Jul, 2016

6 commits

  • Some extra escape codes are needed to avoid Sphinx to not
    identify the tags.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Better document a note on this header.

    While here, better format dvb_ringbuffer_pkt_read_user()
    to adjust it to CodingStyle.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Add documentation for v4l2-dev.h, and put it at v4l2-framework.rst,
    where struct video_device is currently documented.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • This header were poorly documented, and weren't using the
    kernel-doc format. Document everything but the macros using
    the right format.

    While here, also fix the other comments to match the
    Linux CodingStyle.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Fix all remaining media warnings with ReST that are fixable
    without changing at the Sphinx code.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • * patchwork: (1492 commits)
    [media] cec: always check all_device_types and features
    [media] cec: poll should check if there is room in the tx queue
    [media] vivid: support monitor all mode
    [media] cec: fix test for unconfigured adapter in main message loop
    [media] cec: limit the size of the transmit queue
    [media] cec: zero unused msg part after msg->len
    [media] cec: don't set fh to NULL in CEC_TRANSMIT
    [media] cec: clear all status fields before transmit and always fill in sequence
    [media] cec: CEC_RECEIVE overwrote the timeout field
    [media] cxd2841er: Reading SNR for DVB-C added
    [media] cxd2841er: Reading BER and UCB for DVB-C added
    [media] cxd2841er: fix switch-case for DVB-C
    [media] cxd2841er: fix signal strength scale for ISDB-T
    [media] cxd2841er: adjust the dB scale for DVB-C
    [media] cxd2841er: provide signal strength for DVB-C
    [media] cxd2841er: fix BER report via DVBv5 stats API
    [media] mb86a20s: apply mask to val after checking for read failure
    [media] airspy: fix error logic during device register
    [media] s5p-cec/TODO: add TODO item
    [media] cec/TODO: drop comment about sphinx documentation
    ...

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

20 Jul, 2016

1 commit


18 Jul, 2016

3 commits

  • On mips and parisc:

    drivers/bluetooth/btwilink.c: In function 'ti_st_open':
    drivers/bluetooth/btwilink.c:174:21: warning: overflow in implicit constant conversion [-Woverflow]
    hst->reg_status = -EINPROGRESS;

    drivers/nfc/nfcwilink.c: In function 'nfcwilink_open':
    drivers/nfc/nfcwilink.c:396:31: warning: overflow in implicit constant conversion [-Woverflow]
    drv->st_register_cb_status = -EINPROGRESS;

    There are actually two issues:
    1. Whether "char" is signed or unsigned depends on the architecture.
    As the completion callback data is used to pass a (negative) error
    code, it should always be signed.
    2. EINPROGRESS is 150 on mips, 245 on parisc.
    Hence -EINPROGRESS doesn't fit in a signed 8-bit number.

    Change the callback status from "char" to "int" to fix these.

    Signed-off-by: Geert Uytterhoeven
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Samuel Ortiz
    Signed-off-by: Marcel Holtmann

    Geert Uytterhoeven
     
  • The conversion from DocBook required some fixes:

    - Now, the C files with the exported symbols also need to be
    added. So, all headers need to be included twice: one to
    get the structs/enums/.. and another one for the functions;

    - Notes should use the ReST tag, as kernel-doc doesn't
    recognizes it anymore;

    - Identation needs to be fixed, as ReST uses it to identify
    when a format "tag" ends.

    - Fix the cross-references at the media controller description.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Move the contents of the media section at
    DocBooks/DocBook/device-drivers.tmpl to a new ReST book.

    For now, the contents is kept as-is. Next patches will fix
    the warnings and add cross-references that were removed due to
    the conversion.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

16 Jul, 2016

12 commits

  • Now driver returns correct values for DVB-C:
    SNR (in dB)

    [mchehab@s-opensource.com: fix a new function to be static]
    Signed-off-by: Abylay Ospan
    Signed-off-by: Mauro Carvalho Chehab

    Abylay Ospan
     
  • now driver returns correct values for DVB-C:
    BER (post_bit_count and post_bit_error values)
    UCB (count of uncorrected errors)
    also, some code cleanup was done - checkpatch.pl now is happy

    Signed-off-by: Abylay Ospan
    Signed-off-by: Mauro Carvalho Chehab

    Abylay Ospan
     
  • DVB-C should use cxd2841er_read_agc_gain_c() to get the gain. The same
    function is used for all DVB-C annex delivery systems.

    Signed-off-by: Abylay Ospan
    Signed-off-by: Mauro Carvalho Chehab

    Abylay Ospan
     
  • The scale for ISDB-T was wrong too: it was inverted, and
    on a relative scale.

    Use a linear interpolation to make it look better.
    The formula was empirically determined, using 3 frequencies
    (175 MHz, 410 MHz and 800 MHz), measuring from -50dBm to
    -12dBm in steps of 0.5dB.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Instead of using a relative frequency range, calibrate it to
    show the results in dB. The callibration was done getting
    samples with a signal generated from -50dBm to -12dBm,
    incremented in steps of 0.5 dB, using 3 frequencies:
    175 MHz, 410 MHz and 800 MHz. The modulated signal was
    using QAM64, and it was used a linear interpolation of all
    the results.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Currently, there's no stats for DVB-C. Let's at least return
    signal strength. The scale is different than on DVB-T, so let's
    use a relative scale, for now.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • What userspace expects is to receive both bit_error and bit_count
    counters. So, instead of doing the division at the Kernel,
    return the counters for userspace to handle it the way it
    wants.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Fix a memory leak on probe error of the airspy usb device driver.

    The problem is triggered when more than 64 usb devices register with
    v4l2 of type VFL_TYPE_SDR or VFL_TYPE_SUBDEV.

    The memory leak is caused by the probe function of the airspy driver
    mishandeling errors and not freeing the corresponding control structures
    when an error occours registering the device to v4l2 core.

    A badusb device can emulate 64 of these devices, and then through
    continual emulated connect/disconnect of the 65th device, cause the
    kernel to run out of RAM and crash the kernel, thus causing a local DOS
    vulnerability.

    Fixes CVE-2016-5400

    Signed-off-by: James Patrick-Evans
    Reviewed-by: Kees Cook
    Cc: stable@vger.kernel.org # 3.17+
    Signed-off-by: Linus Torvalds

    James Patrick-Evans
     
  • Appling the mask 0x0f to the immediate return of the call to
    mb86a20s_readreg will always result in a positive value, meaning that the
    check of ret < 0 will never work. Instead, check for a -ve return value
    first, and then mask val with 0x0f.

    Kudos to Mauro Carvalho Chehab for spotting the mistake in my original fix.

    Signed-off-by: Colin Ian King
    Signed-off-by: Mauro Carvalho Chehab

    Colin Ian King
     
  • This patch addresses CVE-2016-5400, a local DOS vulnerability caused by
    a memory leak in the airspy usb device driver.

    The vulnerability is triggered when more than 64 usb devices register
    with v4l2 of type VFL_TYPE_SDR or VFL_TYPE_SUBDEV.A badusb device can
    emulate 64 of these devices then through continual emulated
    connect/disconnect of the 65th device, cause the kernel to run out of
    RAM and crash the kernel.

    The vulnerability exists in kernel versions from 3.17 to current 4.7.

    The memory leak is caused by the probe function of the airspy driver
    mishandeling errors and not freeing the corresponding control structures
    when an error occours registering the device to v4l2 core.

    Signed-off-by: James Patrick-Evans
    Cc: stable@vger.kernel.org # Up to Kernel 3.17
    Signed-off-by: Mauro Carvalho Chehab

    James Patrick-Evans
     
  • Fix typo in vivid that caused all HDMI outputs to have the same
    physical address.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • When calculate OUTPUT buffer size in vidioc_try_fmt, it will
    add more size hw need in each plane.
    But in mtk_vcodec_enc_set_default_params, it do not add
    same size in each plane.
    This makes v4l2-compliance test fail.
    This patch fix the issue.

    Signed-off-by: Tiffany Lin
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Tiffany Lin