1. 12 11月, 2014 23 次提交
    • T
      OMAPDSS: HDMI: rewrite HDMI PLL calculation code · 33f13120
      Tomi Valkeinen 提交于
      The code calculating HDMI PLL parameters has always been very confusing.
      Now that we are implementing a common PLL library for the DSS, it's
      important that the PLL code is understandable.
      
      This patch rewrites the calculation code, and removes a few hacks that
      were used there.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      33f13120
    • T
      OMAPDSS: HDMI5: disable interlace modes · 31dd0f4b
      Tomi Valkeinen 提交于
      We don't support interlace modes properly on OMAP5+ HDMI, so we need to
      reject interlace timings.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      31dd0f4b
    • T
      OMAPDSS: HDMI: fix setting REFSEL · 8530c41d
      Tomi Valkeinen 提交于
      Only OMAP5+ has REFSEL field, but at the moment it's set also on OMAP4.
      
      Fix this by adding a "has_refsel" field, and setting the REFSEL based on
      that.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      8530c41d
    • T
      OMAPDSS: DSI: use common DSS PLL support · 2daea7af
      Tomi Valkeinen 提交于
      Now that we have the common DSS PLL support, change DSI to use it. This
      results in quite a lot of changes, but almost all of them are trivial
      name changes.
      
      The functions to calculate and program the PLL settings can be removed
      from dsi.c, as the common PLL API contains the same functionality.
      
      We also need to create struct dss_pll_hw entries for PLL hardware
      features for different OMAP platforms, instead of using the
      dss_features.c as the old code does.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      2daea7af
    • T
      OMAPDSS: Add common PLL code · 0a20170a
      Tomi Valkeinen 提交于
      OMAP DSS currently contains two different PLLs: DSI PLL (Type A PLL) and
      HDMI PLL (Type B PLL). When DRA7 support is added, we will also support
      Video PLLs (Type A).
      
      The driver currently handles all PLLs totally separately. This patch
      adds common DSS PLL code, which
      
      a) lets us have common code for the PLLs
      b) lets the users of the PLLs use a common API, instead of DSI API or
         HDMI API.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      0a20170a
    • T
      OMAPDSS: DSI: dsi_runtime_get/put in pll_init · f76b178a
      Tomi Valkeinen 提交于
      When DPI uses the DSI PLL for pixel clock, the DPI code will call
      dsi_runtime_get/put to keep the DSI block enabled. A much simpler way to
      handle this is to do dsi_runtime_get/put in DSI's dsi_pll_init() and
      dsi_pll_uninit(), thus removing the need for DSI to call the runtime PM
      functions.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      f76b178a
    • T
      OMAPDSS: DSI: features: combine dsi & dispc hsdivs · dbb26e53
      Tomi Valkeinen 提交于
      The HSDIV outputs of DSI PLL (and also other PLLs) all have the same
      bit width for the divider value.
      
      Simplify the code by merging HSDIV divider widths into one width.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      dbb26e53
    • T
      OMAPDSS: DSI: turn hsdivs fields to arrays · acf604b7
      Tomi Valkeinen 提交于
      We are creating a common DSS PLL code, so having fixed DSI specific
      hsdiv fields in the clock information is not ok.
      
      This patch changes the hsdiv fields to arrays, so that we can use all
      the 4 possible hsdiv outputs (DSI only usees 2), and we have generic way
      to access the hsdivs.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      acf604b7
    • T
      OMAPDSS: DSI: rename clkin4ddr to clkdco · 4a38aede
      Tomi Valkeinen 提交于
      We are creating a common DSS PLL code, so rename 'clkin4ddr' field,
      which is DSI specific name, to 'clkdco' which is a generic name.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      4a38aede
    • T
      OMAPDSS: DSI: use struct copy instead of individual field copy · 7cb6a87a
      Tomi Valkeinen 提交于
      Now that dsi_clock_info only contains information about the PLL, we can
      just copy the whole struct when storing the clock information, instead
      of copying individual fields.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      7cb6a87a
    • T
      OMAPDSS: DSI: remove pll_locked field · 6a3d03e9
      Tomi Valkeinen 提交于
      We have pll_locked field in struct dsi_data, but it doesn't have any
      meaningful use anymore, and can be removed.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      6a3d03e9
    • T
      OMAPDSS: DSI: remove clkin from dsi_clock_info · 3640d9fa
      Tomi Valkeinen 提交于
      struct dsi_clock_info contains clkin field, which is the rate of the
      PLL's input clock. This field is not needed, as it can be easily
      retrieved by using the clk_get_rate().
      
      This patch removes the clkin field.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      3640d9fa
    • T
      OMAPDSS: DSI: separate LP clock info from dsi_clock_info · 7b71c410
      Tomi Valkeinen 提交于
      struct dsi_clock_info represents the clocks handled by the DSI, mostly
      PLL related clocks. In an effort to create common PLL code, we need to
      remove all the non-PLL items from dsi_clock_info.
      
      This patch removes LP clock related fields from dsi_clock_info, and
      creates a new struct dsi_lp_clock_info for holding clock info for the LP
      clock.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      7b71c410
    • T
      OMAPDSS: DSI: always power on hsclk & hsdiv · 1a7f4bf1
      Tomi Valkeinen 提交于
      The DSS PLL has support to power on the PLL's highspeed clock output
      and HSDIV output separately. In practice both need to powered on, as in
      most OMAP's that's the only working configuration. We already do that in
      dsi_pll_init(), by overriding the passed arguments so that both are
      always powered.
      
      Simplify the code by removing the support for choosing which outputs to
      power on.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      1a7f4bf1
    • T
      OMAPDSS: DSI: remove unused hsdiv wait funcs · d845600e
      Tomi Valkeinen 提交于
      With the previous patch "OMAPDSS: DSI: wait for hsdiv clocks when
      enabling PLL",  dsi_wait_pll_hsdiv_dispc_active and
      dsi_wait_pll_hsdiv_dsi_active are no longer needed, so they and the
      callers can be removed.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      d845600e
    • T
      OMAPDSS: DSI: wait for hsdiv clocks when enabling PLL · 544bfb68
      Tomi Valkeinen 提交于
      At the moment we have two functions to wait for the HSDIV clocks to get
      active, dsi_wait_pll_hsdiv_dispc_active and
      dsi_wait_pll_hsdiv_dsi_active. Instead of such inconvenient functions,
      let's just make sure that the hsdiv clocks are active after the pll has
      been enabled.
      
      This patch adds code to dsi_pll_set_clock_div() to wait until HSDIV
      clocks are active.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      544bfb68
    • A
      OMAPDSS: DSS: add a param to dpi_select_source which specifies it's port number · 064c2a47
      Archit Taneja 提交于
      Add a 'port' parameter in dpi_select_source. The param tells the port
      number of the DPI instance that we want to configure. We use this number
      to select the overlay manager for that DPI instance.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      064c2a47
    • A
      OMAPDSS: DPI: Add support for multiple instances · f7e38fe9
      Archit Taneja 提交于
      Register DPI outputs, and assign the port_num to them as specified by the
      'reg' property in the DPI ports in DT.
      
      To support multiple DPI instances, dpi_get_channel needs to take the DPI
      instance's port number to get the corresponding channel. Make it take this
      argument. We just pass 0 in the non-DT path, since we don't support multiple
      instances in the non-DT case.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      f7e38fe9
    • A
      OMAPDSS: DT: Get source endpoint by matching reg-id · ef691ff4
      Archit Taneja 提交于
      In omapdss_of_find_source_for_first_ep, we retrieve a source endpoint's DT node,
      and then see what omapdss output has the matching device_node pointer in
      omap_dss_find_output_by_node.
      
      For all DPI and SDI outputs, the device_node pointer is set as the parent's DSS
      device_node pointer. If the source is one of these outputs, the above method
      won't work.
      
      To get the correct output for ports within DSS(and in other cases in the future,
      where multiple ports might be under one device), we require additional
      information which is exclusive to the output port.
      
      We create a new field in omap_dss_device called 'port_num', this provides port
      number of the output port corresponding to this device. When searching for the
      source endpoint in DT, we extract the 'reg' property from the port corresponding
      to the endpoint source. From the list of registered outputs, we pick out that
      output which has both dev->of_node and port_num matching with the device_node
      pointer and 'reg' of the source endpoint node from DT.
      
      For encoder blocks(the ones which have both an input and output port), we need
      to set the port_num as the 'reg' property for the output port as defined in the
      DT bindings. We set port_num to 1 in the tfp410 and tpd12s015 encoder drivers.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      ef691ff4
    • A
      OMAPDSS: DSS: init dss ports cleanly · 387ce9f2
      Archit Taneja 提交于
      The init/uninit port functions are used to set up the DPI and SDI outputs under
      the dss platform device. A 'reg' property is used to determine the port number
      of the output. This tells us whether the port is DPI or SDI for OMAP34xx DSS
      revision. For other DSS revisions, we only have DPI outputs under the dss
      platform device.
      
      For multiple DPI output instances(introduced in DRA7xx DSS), we will use the
      the port number to specify which DPI output instance is being inited.
      
      The current functions work fine if there is only one DPI output instance in
      DSS. For multiple DPI instances, it would get complicated to figure out whether
      port number was used to specify whether the output is SDI, or another DPI
      instance.
      
      We create a list of port types supported for each DSS rev, with the index of the
      port in the list specifying the port number of the output for that DSS revision.
      This allows us to have a more generic way to init/uninit ports within DSS, and
      also support multiple DPI ports.
      
      We make the uninit_port functions iterative since we will have multiple DPI
      ports to uninit in the future.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      387ce9f2
    • A
      OMAPDSS: DPI: Store dpi_data pointer in the DT port's data · 80eb6751
      Archit Taneja 提交于
      DPI and SDI ports are backed by only one parent DSS device. We don't have a
      corresponding platform_device for ports under DSS. In order to support multiple
      instances of DPI, we need to pass the driver data pointer through the DPI port's
      private data ('data' member in device_node struct).
      
      dpi_init_output/dpi_uninit_output are untouched and only used for non-DT case,
      these are called when the DPI platform device probed/removed. These funcs will
      be removed when non-DT mode is removed.
      
      dpi_init_output_port/dpi_uninit_output_port are created and used for the DT
      path, called when DSS inits/uninits it's ports. These new functions retrieve
      the dpi_data pointer from 'port->data', and not from the platform device's
      data(pdev->dev) like in the non-DT path.
      
      We add some code in dss_uninit_ports() to pass a pointer to the DPI port in
      dpi_uninit_port().
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      80eb6751
    • A
      OMAPDSS: DPI: Allocate driver data · 2ac6a1aa
      Archit Taneja 提交于
      Allocate driver data(dpi_data) for each DPI instance. It's allocated in
      omap_dpi_probe() when DT isn't used, and in dpi_init_port() when DT is used.
      The dpi_data struct instance is no longer global. In the case of DPI ops, it's
      retrieved from dpi_get_data_from_dssdev(). 'dssdev' passed by the connected
      encoder/panel driver is a pointer to the 'output' member in dpi_data, and thus
      can be used to get the DPI instance's driver data. In the case of probe/ini_port
      functions, it's set as DPI/DSS device's private data embedded in the
      platform_device struct.
      
      Having dpi_data as private data of the platform device will not work for
      multiple DPI instances in the DT case. This is because there is no corresponding
      platform_device for DPI or SDI, they exist only as ports under the parent DSS
      platform_device in the DT case. The DPI port's private data('data' member in
      device_node struct) will later be used to store dpi_data.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      2ac6a1aa
    • A
      OMAPDSS: DPI: Use DPI driver data · 630d2d0d
      Archit Taneja 提交于
      DPI related data is currently a static global struct parameter. It is accessed
      directly by functions in the driver.
      
      This method won't work if we want the driver to support multiple DPI instances.
      Create struct dpi_data, and pass its pointer to functions which need to use it.
      
      We still have a static instance defined for dpi_data, which is accessed by top
      level DPI ops. This will be removed when the driver dynamically allocates
      dpi_data for each DPI instance.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      630d2d0d
  2. 03 11月, 2014 16 次提交
    • L
      Linux 3.18-rc3 · 0df1f248
      Linus Torvalds 提交于
      0df1f248
    • L
      Merge tag 'for-linus-20141102' of git://git.infradead.org/linux-mtd · 81d92dc1
      Linus Torvalds 提交于
      Pull MTD fixes from Brian Norris:
       "Three main MTD fixes for 3.18:
      
         - A regression from 3.16 which was noticed in 3.17.  With the
           restructuring of the m25p80.c driver and the SPI NOR library
           framework, we omitted proper listing of the SPI device IDs.  This
           means m25p80.c wouldn't auto-load (modprobe) properly when built as
           a module.  For now, we duplicate the device IDs into both modules.
      
         - The OMAP / ELM modules were depending on an implicit link ordering.
           Use deferred probing so that the new link order (in 3.18-rc) can
           still allow for successful probing.
      
         - Fix suspend/resume support for LH28F640BF NOR flash"
      
      * tag 'for-linus-20141102' of git://git.infradead.org/linux-mtd:
        mtd: cfi_cmdset_0001.c: fix resume for LH28F640BF chips
        mtd: omap: fix mtd devices not showing up
        mtd: m25p80,spi-nor: Fix module aliases for m25p80
        mtd: spi-nor: make spi_nor_scan() take a chip type name, not spi_device_id
        mtd: m25p80: get rid of spi_get_device_id
      81d92dc1
    • L
      Merge tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · ad2be379
      Linus Torvalds 提交于
      Pull SCSI fixes from James Bottomley:
       "This is a set of six patches consisting of:
         - two MAINTAINER updates
         - two scsi-mq fixs for the old parallel interface (not every request
           is tagged and we need to set the right flags to populate the SPI
           tag message)
         - a fix for a memory leak in scatterlist traversal caused by a
           preallocation update in 3.17
         - an ipv6 fix for cxgbi"
      
      [ The scatterlist fix also came in separately through the block layer tree ]
      
      * tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        MAINTAINERS: ufs - remove self
        MAINTAINERS: change hpsa and cciss maintainer
        libcxgbi : support ipv6 address host_param
        scsi: set REQ_QUEUE for the blk-mq case
        Revert "block: all blk-mq requests are tagged"
        lib/scatterlist: fix memory leak with scsi-mq
      ad2be379
    • L
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · 12267166
      Linus Torvalds 提交于
      Pull drm fixes from Dave Airlie:
       "Nothing too astounding or major: radeon, i915, vmwgfx, armada and
        exynos.
      
        Biggest ones:
         - vmwgfx has one big locking regression fix
         - i915 has come displayport fixes
         - radeon has some stability and a memory alloc failure
         - armada and exynos have some vblank fixes"
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux: (24 commits)
        drm/exynos: correct connector->dpms field before resuming
        drm/exynos: enable vblank after DPMS on
        drm/exynos: init kms poll at the end of initialization
        drm/exynos: propagate plane initialization errors
        drm/exynos: vidi: fix build warning
        drm/exynos: remove explicit encoder/connector de-initialization
        drm/exynos: init vblank with real number of crtcs
        drm/vmwgfx: Filter out modes those cannot be supported by the current VRAM size.
        drm/vmwgfx: Fix hash key computation
        drm/vmwgfx: fix lock breakage
        drm/i915/dp: only use training pattern 3 on platforms that support it
        drm/radeon: remove some buggy dead code
        drm/i915: Ignore VBT backlight check on Macbook 2, 1
        drm/radeon: remove invalid pci id
        drm/radeon: dpm fixes for asrock systems
        radeon: clean up coding style differences in radeon_get_bios()
        drm/radeon: Use drm_malloc_ab instead of kmalloc_array
        drm/radeon/dpm: disable ulv support on SI
        drm/i915: Fix GMBUSFREQ on vlv/chv
        drm/i915: Ignore long hpds on eDP ports
        ...
      12267166
    • L
      Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm · 3c43de0f
      Linus Torvalds 提交于
      Pull ARM fixes from Russell King:
       - add the new bpf syscall to ARM.
       - drop a redundant return statement in __iommu_alloc_remap()
       - fix a performance issue noticed by Thomas Petazzoni with
         kmap_atomic().
       - fix an issue with the L2 cache OF parsing code which caused it to
         incorrectly print warnings on each boot, and make the warning text
         more consistent with the rest of the code
      
      * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
        ARM: 8180/1: mm: implement no-highmem fast path in kmap_atomic_pfn()
        ARM: 8183/1: l2c: Improve l2c310_of_parse() error message
        ARM: 8181/1: Drop extra return statement
        ARM: 8182/1: l2c: Make l2x0_cache_size_of_parse() return 'int'
        ARM: enable bpf syscall
      3c43de0f
    • L
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 7501a533
      Linus Torvalds 提交于
      Pull kvm fixes from Paolo Bonzini:
       "A small set of x86 fixes.  The most serious is an SRCU lockdep fix.
      
        A bit late - needed some time to test the SRCU fix, which only came in
        on Friday"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: vmx: defer load of APIC access page address during reset
        KVM: nVMX: Disable preemption while reading from shadow VMCS
        KVM: x86: Fix far-jump to non-canonical check
        KVM: emulator: fix execution close to the segment limit
        KVM: emulator: fix error code for __linearize
      7501a533
    • D
      Merge branch 'exynos-drm-fixes' of... · 66338fee
      Dave Airlie 提交于
      Merge branch 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-fixes
      
      This pull-request includes some bug fixes and code cleanups.
      Especially, this fixes the bind failure issue occurred when it tries
      to re-bind Exynos drm driver after unbound, and the modetest failure
      issue incurred by not having a pair to vblank on and off requests.
      
      * 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos:
        drm/exynos: correct connector->dpms field before resuming
        drm/exynos: enable vblank after DPMS on
        drm/exynos: init kms poll at the end of initialization
        drm/exynos: propagate plane initialization errors
        drm/exynos: vidi: fix build warning
        drm/exynos: remove explicit encoder/connector de-initialization
        drm/exynos: init vblank with real number of crtcs
      66338fee
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 7e05b807
      Linus Torvalds 提交于
      Pull VFS fixes from Al Viro:
       "A bunch of assorted fixes, most of them followups to overlayfs merge"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        ovl: initialize ->is_cursor
        Return short read or 0 at end of a raw device, not EIO
        isofs: don't bother with ->d_op for normal case
        isofs_cmp(): we'll never see a dentry for . or ..
        overlayfs: fix lockdep misannotation
        ovl: fix check for cursor
        overlayfs: barriers for opening upper-layer directory
        rcu: Provide counterpart to rcu_dereference() for non-RCU situations
        staging: android: logger: Fix log corruption regression
      7e05b807
    • L
      irda: stop calling sk_prot->disconnect() on connection failure · 4cb8c359
      Linus Torvalds 提交于
      The sk_prot is irda's own set of protocol handlers, so irda should
      statically know what that function is anyway, without using an indirect
      pointer.  And as it happens, we know *exactly* what that pointer is
      statically: it's NULL, because irda doesn't define a disconnect
      operation.
      
      So calling that function is doubly wrong, and will just cause an oops.
      Reported-by: NMartin Lang <mlg.hessigheim@gmail.com>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: David Miller <davem@davemloft.net>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4cb8c359
    • A
      drm/exynos: correct connector->dpms field before resuming · 74cfe07a
      Andrzej Hajda 提交于
      During system suspend after connector switch off its dpms field
      is set to connector previous dpms state. To properly resume dpms field
      should be set to its actual state (off) before resuming to previous dpms state.
      Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      74cfe07a
    • A
      drm/exynos: enable vblank after DPMS on · d6948b2f
      Andrzej Hajda 提交于
      Before DPMS off driver disables vblank.
      It should be balanced by vblank enable after DPMS on.
      The patch fixes issue with page_flip ioctl not being able
      to acquire vblank counter introduced by patch:
      drm: Always reject drm_vblank_get() after drm_vblank_off()
      Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      d6948b2f
    • A
      drm/exynos: init kms poll at the end of initialization · 3cb6830a
      Andrzej Hajda 提交于
      HPD events can be generated by components even if drm_dev is not fully
      initialized, to skip such events kms poll initialization should
      be performed at the end of load callback followed directly by forced
      connection detection.
      Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      3cb6830a
    • A
      drm/exynos: propagate plane initialization errors · 64f7aed8
      Andrzej Hajda 提交于
      In case of error during plane initialization load callback
      incorrectly return success, this patch fixes it.
      Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      64f7aed8
    • I
      drm/exynos: vidi: fix build warning · 9887e2d9
      Inki Dae 提交于
      encoder object isn't used anymore so remove it.
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      9887e2d9
    • A
      drm/exynos: remove explicit encoder/connector de-initialization · d9aaf757
      Andrzej Hajda 提交于
      All KMS objects are destroyed by drm_mode_config_cleanup in proper order
      so component drivers should not care about it.
      Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      d9aaf757
    • A
      drm/exynos: init vblank with real number of crtcs · c52142e6
      Andrzej Hajda 提交于
      Initialization of vblank with MAX_CRTC caused attempts
      to disabling vblanks for non-existing crtcs in case
      drm used fewer crtcs. The patch fixes it.
      Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      c52142e6
  3. 02 11月, 2014 1 次提交
    • P
      KVM: vmx: defer load of APIC access page address during reset · a73896cb
      Paolo Bonzini 提交于
      Most call paths to vmx_vcpu_reset do not hold the SRCU lock.  Defer loading
      the APIC access page to the next vmentry.
      
      This avoids the following lockdep splat:
      
      [ INFO: suspicious RCU usage. ]
      3.18.0-rc2-test2+ #70 Not tainted
      -------------------------------
      include/linux/kvm_host.h:474 suspicious rcu_dereference_check() usage!
      
      other info that might help us debug this:
      
      rcu_scheduler_active = 1, debug_locks = 0
      1 lock held by qemu-system-x86/2371:
       #0:  (&vcpu->mutex){+.+...}, at: [<ffffffffa037d800>] vcpu_load+0x20/0xd0 [kvm]
      
      stack backtrace:
      CPU: 4 PID: 2371 Comm: qemu-system-x86 Not tainted 3.18.0-rc2-test2+ #70
      Hardware name: Dell Inc. OptiPlex 9010/0M9KCM, BIOS A12 01/10/2013
       0000000000000001 ffff880209983ca8 ffffffff816f514f 0000000000000000
       ffff8802099b8990 ffff880209983cd8 ffffffff810bd687 00000000000fee00
       ffff880208a2c000 ffff880208a10000 ffff88020ef50040 ffff880209983d08
      Call Trace:
       [<ffffffff816f514f>] dump_stack+0x4e/0x71
       [<ffffffff810bd687>] lockdep_rcu_suspicious+0xe7/0x120
       [<ffffffffa037d055>] gfn_to_memslot+0xd5/0xe0 [kvm]
       [<ffffffffa03807d3>] __gfn_to_pfn+0x33/0x60 [kvm]
       [<ffffffffa0380885>] gfn_to_page+0x25/0x90 [kvm]
       [<ffffffffa038aeec>] kvm_vcpu_reload_apic_access_page+0x3c/0x80 [kvm]
       [<ffffffffa08f0a9c>] vmx_vcpu_reset+0x20c/0x460 [kvm_intel]
       [<ffffffffa039ab8e>] kvm_vcpu_reset+0x15e/0x1b0 [kvm]
       [<ffffffffa039ac0c>] kvm_arch_vcpu_setup+0x2c/0x50 [kvm]
       [<ffffffffa037f7e0>] kvm_vm_ioctl+0x1d0/0x780 [kvm]
       [<ffffffff810bc664>] ? __lock_is_held+0x54/0x80
       [<ffffffff812231f0>] do_vfs_ioctl+0x300/0x520
       [<ffffffff8122ee45>] ? __fget+0x5/0x250
       [<ffffffff8122f0fa>] ? __fget_light+0x2a/0xe0
       [<ffffffff81223491>] SyS_ioctl+0x81/0xa0
       [<ffffffff816fed6d>] system_call_fastpath+0x16/0x1b
      Reported-by: NTakashi Iwai <tiwai@suse.de>
      Reported-by: NAlexei Starovoitov <alexei.starovoitov@gmail.com>
      Reviewed-by: NWanpeng Li <wanpeng.li@linux.intel.com>
      Tested-by: NWanpeng Li <wanpeng.li@linux.intel.com>
      Fixes: 38b99173Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      a73896cb