1. 03 Apr, 2013 5 commits
    • Daniel Vetter's avatar
      drm/i915: track dp target_clock in pipe_config · df92b1e6
      Daniel Vetter authored
      We need it in the fdi m_n computation, which nicely kills almost
      all ugly special cases in there.
      
      It looks like we also need this to handle 12bpc hdmi correctly.
      
      Eventually it might be better to switch things around and put the
      target clock into adjusted_mode->clock and create a new pipe_config
      parameter for the port link clock.
      
      v2: Add a massive comment in the code to explain this mess.
      
      v3: s/dp_target_clock/pixel_target_clock in anticipation of the hdmi
      use-case.
      Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      df92b1e6
    • Daniel Vetter's avatar
      drm/i915: move dp_m_n computation to dp_encoder->compute_config · 03afc4a2
      Daniel Vetter authored
      We need a flag to designate dp encoders and the dp link m_n parameters
      in the pipe config for that. And now that the pipe bpp computations
      have been moved up and stored in the pipe config, too, we can do this
      without losing our sanity.
      
      v2: Rebased on top of Takashi Iwai's fix to (again) fix the target
      clock handling for eDP. Luckily the new code is sane enough and just
      does the right thing!
      
      v3: Move ->has_dp_encoder to this patch (Jesse).
      Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      03afc4a2
    • Daniel Vetter's avatar
      drm/i915: clear up the fdi/dp set_m_n confusion · 6cf86a5e
      Daniel Vetter authored
      There's a rather decent confusion going on around transcoder m_n
      values. So let's clarify:
      - All dp encoders need this, either on the pch transcoder if it's a
        pch port, or on the cpu transcoder/pipe if it's a cpu port.
      - fdi links need to have the right m_n values for the fdi link set in
        the cpu transcoder.
      
      To handle the pch vs transcoder stuff a bit better, extract transcoder
      set_m_n helpers. To make them simpler, set intel_crtc->cpu_transcoder
      als in ironlake_crtc_mode_set, so that gen5+ (where the cpu m_n
      registers are all at the same offset) can use it.
      
      Haswell modeset is decently confused about dp vs. edp vs. fdi. dp vs.
      edp works exactly the same as dp (since there's no pch dp any more),
      so use that as a check. And only set up the fdi m_n values if we
      really have a pch encoder present (which means we have a VGA encoder).
      
      On ilk+ we've called ironlake_set_m_n both for cpu_edp and for pch
      encoders. Now that dp_set_m_n handles all dp links (thanks to the
      pch encoder check), we can ditch the cpu_edp stuff from the
      fdi_set_m_n function.
      
      Since the dp_m_n values are not readily available, we need to
      carefully coax the edp values out of the encoder. Hence we can't (yet)
      kill this superflous complexity.
      
      v2: Rebase on top of the ivb fdi B/C check patch - we need to properly
      clear intel_crtc->fdi_lane, otherwise those checks will misfire.
      
      v3: Rebased on top of a s/IS_HASWELL/HAS_DDI/ patch from Paulo Zanoni.
      
      v4: Drop the addition of has_dp_encoder, it's in the wrong patch (Jesse).
      Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      6cf86a5e
    • Daniel Vetter's avatar
      Merge tag 'v3.9-rc5' into drm-intel-next-queued · ecb135a1
      Daniel Vetter authored
      Backmerge Linux 3.9-rc5 since I want to merge a few dp clock cleanups
      for -next, but they will conflict all over the place with
      
      commit 9d1a455b
      Author: Takashi Iwai <tiwai@suse.de>
      Date:   Mon Mar 18 11:25:36 2013 +0100
      
          drm/i915: Use the fixed pixel clock for eDP in intel_dp_set_m_n()
      
      from -fixes.
      
      Conflicts:
      	drivers/gpu/drm/i915/intel_dp.c: Simply adjacent lines changed.
      	drivers/gpu/drm/i915/intel_panel.c: A field rename in -next
      	conflicts with a bugfix in -fixes. Take the version from
      	-fixes and apply the rename.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      ecb135a1
    • Daniel Vetter's avatar
      drm/i915: Fix sdvo connector get_hw_state function · bd6946e8
      Daniel Vetter authored
      The active output is only the currently selected one, which does not
      imply that it's actually enabled. Since we don't use the sdvo encoder
      side dpms support, we need to check whether the chip-side sdvo port is
      enabled instead.
      
      v2: Fix up Bugzilla links.
      
      v3: Simplify logic a bit (Chris).
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60138
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63031
      Cc: Egbert Eich <eich@pdx.freedesktop.org>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Tested-by: Egbert Eich <eich@pdx.freedesktop.org> (v2)
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      bd6946e8
  2. 02 Apr, 2013 11 commits
  3. 31 Mar, 2013 5 commits
    • Linus Torvalds's avatar
      Linux 3.9-rc5 · 07961ac7
      Linus Torvalds authored
      07961ac7
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma · 0bb44280
      Linus Torvalds authored
      Pull slave-dmaengine fixes from Vinod Koul:
       "Two fixes for slave-dmaengine.
      
        The first one is for making slave_id value correct for dw_dmac and
        the other one fixes the endieness in DT parsing"
      
      * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
        dw_dmac: adjust slave_id accordingly to request line base
        dmaengine: dw_dma: fix endianess for DT xlate function
      0bb44280
    • Linus Torvalds's avatar
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · a7b436d3
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
       "For a some fixes for Kernel 3.9:
         - subsystem build fix when VIDEO_DEV=y, VIDEO_V4L2=m and I2C=m
         - compilation fix for arm multiarch preventing IR_RX51 to be selected
         - regression fix at bttv crop logic
         - s5p-mfc/m5mols/exynos: a few fixes for cameras on exynos hardware"
      
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        [media] [REGRESSION] bt8xx: Fix too large height in cropcap
        [media] fix compilation with both V4L2 and I2C as 'm'
        [media] m5mols: Fix bug in stream on handler
        [media] s5p-fimc: Do not attempt to disable not enabled media pipeline
        [media] s5p-mfc: Fix encoder control 15 issue
        [media] s5p-mfc: Fix frame skip bug
        [media] s5p-fimc: send valid m2m ctx to fimc_m2m_job_finish
        [media] exynos-gsc: send valid m2m ctx to gsc_m2m_job_finish
        [media] fimc-lite: Fix the variable type to avoid possible crash
        [media] fimc-lite: Initialize 'step' field in fimc_lite_ctrl structure
        [media] ir: IR_RX51 only works on OMAP2
      a7b436d3
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20130331' of git://git.kernel.dk/linux-block · d299c290
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Alright, this time from 10K up in the air.
      
        Collection of fixes that have been queued up since the merge window
        opened, hence postponed until later in the cycle.  The pull request
        contains:
      
         - A bunch of fixes for the xen blk front/back driver.
      
         - A round of fixes for the new IBM RamSan driver, fixing various
           nasty issues.
      
         - Fixes for multiple drives from Wei Yongjun, bad handling of return
           values and wrong pointer math.
      
         - A fix for loop properly killing partitions when being detached."
      
      * tag 'for-linus-20130331' of git://git.kernel.dk/linux-block: (25 commits)
        mg_disk: fix error return code in mg_probe()
        rsxx: remove unused variable
        rsxx: enable error return of rsxx_eeh_save_issued_dmas()
        block: removes dynamic allocation on stack
        Block: blk-flush: Fixed indent code style
        cciss: fix invalid use of sizeof in cciss_find_cfgtables()
        loop: cleanup partitions when detaching loop device
        loop: fix error return code in loop_add()
        mtip32xx: fix error return code in mtip_pci_probe()
        xen-blkfront: remove frame list from blk_shadow
        xen-blkfront: pre-allocate pages for requests
        xen-blkback: don't store dev_bus_addr
        xen-blkfront: switch from llist to list
        xen-blkback: fix foreach_grant_safe to handle empty lists
        xen-blkfront: replace kmalloc and then memcpy with kmemdup
        xen-blkback: fix dispatch_rw_block_io() error path
        rsxx: fix missing unlock on error return in rsxx_eeh_remap_dmas()
        Adding in EEH support to the IBM FlashSystem 70/80 device driver
        block: IBM RamSan 70/80 error message bug fix.
        block: IBM RamSan 70/80 branding changes.
        ...
      d299c290
    • Paul Walmsley's avatar
      Revert "lockdep: check that no locks held at freeze time" · dbf520a9
      Paul Walmsley authored
      This reverts commit 6aa97070.
      
      Commit 6aa97070 ("lockdep: check that no locks held at freeze time")
      causes problems with NFS root filesystems.  The failures were noticed on
      OMAP2 and 3 boards during kernel init:
      
        [ BUG: swapper/0/1 still has locks held! ]
        3.9.0-rc3-00344-ga937536b #1 Not tainted
        -------------------------------------
        1 lock held by swapper/0/1:
         #0:  (&type->s_umount_key#13/1){+.+.+.}, at: [<c011e84c>] sget+0x248/0x574
      
        stack backtrace:
          rpc_wait_bit_killable
          __wait_on_bit
          out_of_line_wait_on_bit
          __rpc_execute
          rpc_run_task
          rpc_call_sync
          nfs_proc_get_root
          nfs_get_root
          nfs_fs_mount_common
          nfs_try_mount
          nfs_fs_mount
          mount_fs
          vfs_kern_mount
          do_mount
          sys_mount
          do_mount_root
          mount_root
          prepare_namespace
          kernel_init_freeable
          kernel_init
      
      Although the rootfs mounts, the system is unstable.  Here's a transcript
      from a PM test:
      
        http://www.pwsan.com/omap/testlogs/test_v3.9-rc3/20130317194234/pm/37xxevm/37xxevm_log.txt
      
      Here's what the test log should look like:
      
        http://www.pwsan.com/omap/testlogs/test_v3.8/20130218214403/pm/37xxevm/37xxevm_log.txt
      
      Mailing list discussion is here:
      
        http://lkml.org/lkml/2013/3/4/221
      
      Deal with this for v3.9 by reverting the problem commit, until folks can
      figure out the right long-term course of action.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Cc: Mandeep Singh Baines <msb@chromium.org>
      Cc: Jeff Layton <jlayton@redhat.com>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: <maciej.rutecki@gmail.com>
      Cc: Fengguang Wu <fengguang.wu@intel.com>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Ben Chan <benchan@chromium.org>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      dbf520a9
  4. 30 Mar, 2013 1 commit
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · 13d2080d
      Linus Torvalds authored
      Pull SCSI target fixes from Nicholas Bellinger:
       "This includes the bug-fix for a >= v3.8-rc1 regression specific to
        iscsi-target persistent reservation conflict handling (CC'ed to
        stable), and a tcm_vhost patch to drop VIRTIO_RING_F_EVENT_IDX usage
        so that in-flight qemu vhost-scsi-pci device code can detect the
        proper vhost feature bits.
      
        Also, there are two more tcm_vhost patches still being discussed by
        MST and Asias for v3.9 that will be required for the in-flight qemu
        vhost-scsi-pci device patch to function properly, and that should
        (hopefully) be the last target fixes for this round."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
        target: Fix RESERVATION_CONFLICT status regression for iscsi-target special case
        tcm_vhost: Avoid VIRTIO_RING_F_EVENT_IDX feature bit
      13d2080d
  5. 29 Mar, 2013 12 commits
  6. 28 Mar, 2013 6 commits
    • Linus Torvalds's avatar
      Merge tag 'usb-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 0776ce03
      Linus Torvalds authored
      Pull USB fixes from Greg Kroah-Hartman:
       "Here are some USB fixes to resolve issues reported recently, as well
        as a new device id for the ftdi_sio driver."
      
      * tag 'usb-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: ftdi_sio: Add support for Mitsubishi FX-USB-AW/-BD
        usb: Fix compile error by selecting USB_OTG_UTILS
        USB: serial: fix hang when opening port
        USB: EHCI: fix bug in iTD/siTD DMA pool allocation
        xhci: Don't warn on empty ring for suspended devices.
        usb: xhci: Fix TRB transfer length macro used for Event TRB.
        usb/acpi: binding xhci root hub usb port with ACPI
        usb: add find_raw_port_number callback to struct hc_driver()
        usb: xhci: fix build warning
      0776ce03
    • Linus Torvalds's avatar
      Merge tag 'tty-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 045ecc26
      Linus Torvalds authored
      Pull TTY/serial fixes from Greg Kroah-Hartman:
       "Here are some tty/serial driver fixes for 3.9.
      
        The big thing here is the fix for the huge mess we caused renaming the
        8250 driver accidentally in the 3.7 kernel release, without realizing
        that there were users of the module options that suddenly broke.  This
        is now resolved, and, to top the injury off, we have a backwards-
        compatible option for those users who got used to the new name since
        3.7.  Ugh, sorry about that.
      
        Other than that, some other minor fixes for issues that have been
        reported by users."
      
      * tag 'tty-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        Xilinx: ARM: UART: clear pending irqs before enabling irqs
        TTY: 8250, deprecated 8250_core.* options
        TTY: 8250, revert module name change
        serial: 8250_pci: Add WCH CH352 quirk to avoid Xscale detection
        tty: atmel_serial_probe(): index of atmel_ports[] fix
      045ecc26
    • Linus Torvalds's avatar
      Merge tag 'staging-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 865752ed
      Linus Torvalds authored
      Pull staging driver fixes from Greg Kroah-Hartman:
       "Here are two tiny staging driver fixes to resolve issues that have
        been reported."
      
      * tag 'staging-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: comedi: s626: fix continuous acquisition
        staging: zcache: fix typo "64_BIT"
      865752ed
    • Linus Torvalds's avatar
      Merge tag 'driver-core-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · 97f084b8
      Linus Torvalds authored
      Pull sysfs fixes from Greg Kroah-Hartman:
       "Here are two fixes for sysfs that resolve issues that have been found
        by the Trinity fuzz tool, causing oopses in sysfs.  They both have
        been in linux-next for a while to ensure that they do not cause any
        other problems."
      
      * tag 'driver-core-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        sysfs: handle failure path correctly for readdir()
        sysfs: fix race between readdir and lseek
      97f084b8
    • Linus Torvalds's avatar
      Merge tag 'char-misc-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 1b6a4db2
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg Kroah-Hartman:
       "Here are some small char/misc driver fixes that resolve issues
        recently reported against the 3.9-rc kernels.  All have been in
        linux-next for a while."
      
      * tag 'char-misc-3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        VMCI: Fix process-to-process DRGAMs.
        mei: ME hardware reset needs to be synchronized
        mei: add mei_stop function to stop mei device
        extcon: max77693: Initialize register of MUIC device to bring up it without platform data
        extcon: max77693: Fix bug of wrong pointer when platform data is not used
        extcon: max8997: Check the pointer of platform data to protect null pointer error
      1b6a4db2
    • Linus Torvalds's avatar
      Merge tag 'pm+acpi-3.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · dfca53fb
      Linus Torvalds authored
      Pull ACPI and power management fixes from Rafael J Wysocki:
      
       - Fix for a recent cpufreq regression related to acpi-cpufreq and
         suspend/resume from Viresh Kumar.
      
       - cpufreq stats reference counting fix from Viresh Kumar.
      
       - intel_pstate driver fixes from Dirk Brandewie and Konrad Rzeszutek
         Wilk.
      
       - New ACPI suspend blacklist entry for Sony Vaio VGN-FW21M from Fabio
         Valentini.
      
       - ACPI Platform Error Interface (APEI) fix from Chen Gong.
      
       - PCI root bridge hotplug locking fix from Yinghai Lu.
      
      * tag 'pm+acpi-3.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        PCI / ACPI: hold acpi_scan_lock during root bus hotplug
        ACPI / APEI: fix error status check condition for CPER
        ACPI / PM: fix suspend and resume on Sony Vaio VGN-FW21M
        cpufreq: acpi-cpufreq: Don't set policy->related_cpus from .init()
        cpufreq: stats: do cpufreq_cpu_put() corresponding to cpufreq_cpu_get()
        intel-pstate: Use #defines instead of hard-coded values.
        cpufreq / intel_pstate: Fix calculation of current frequency
        cpufreq / intel_pstate: Add function to check that all MSRs are valid
      dfca53fb