1. 31 5月, 2013 9 次提交
    • A
      uvesafb: Clean up MTRR code · 63e28a7a
      Andy Lutomirski 提交于
      The old code allowed very strange memory types.  Now it works like
      all the other video drivers: ioremap_wc is used unconditionally,
      and MTRRs are set if PAT is unavailable (unless MTRR is disabled
      by a module parameter).
      
      UC, WB, and WT support is gone.  If there are MTRR conflicts that prevent
      addition of a WC MTRR, adding a non-conflicting MTRR is pointless; it's
      better to just turn off MTRR support entirely.
      
      As an added bonus, any MTRR added is freed on unload.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NAndy Lutomirski <luto@amacapital.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      63e28a7a
    • A
    • A
      i915: Use arch_phys_wc_{add,del} · 1c0f6749
      Andy Lutomirski 提交于
      i915 open-coded logic that was essentially equivalent to the new API.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NAndy Lutomirski <luto@amacapital.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      1c0f6749
    • A
      drm, agpgart: Use pgprot_writecombine for AGP maps and make the MTRR optional · f435046d
      Andy Lutomirski 提交于
      I'm not sure I understand the intent of the previous behavior.  mmap
      on /dev/agpgart and DRM_AGP maps had no cache flags set, so they
      would be fully cacheable.  But the DRM code (most of the time) would
      add a write-combining MTRR that would change the effective memory
      type to WC.
      
      The new behavior just requests WC explicitly for all AGP maps.
      
      If there is any code out there that expects cacheable access to the
      AGP aperture (because the drm driver doesn't request an MTRR or
      because it's using /dev/agpgart directly), then it will now end up
      with a UC or WC mapping, depending on the architecture and PAT
      availability.  But cacheable access to the aperture seems like it's
      asking for trouble, because, AIUI, the aperture is an alias of RAM.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NAndy Lutomirski <luto@amacapital.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      f435046d
    • A
      drm: Update drm_addmap and drm_mmap to use PAT WC instead of MTRRs · ff47eaf2
      Andy Lutomirski 提交于
      Previously, DRM_FRAME_BUFFER mappings, as well as DRM_REGISTERS
      mappings with DRM_WRITE_COMBINING set, resulted in an unconditional
      MTRR being added but the actual mappings being created as UC-.
      
      Now these mappings have the MTRR added only if needed, but they will
      be mapped with pgprot_writecombine.
      
      The non-WC DRM_REGISTERS case now uses pgprot_noncached instead of
      hardcoding the bit twiddling.
      
      The DRM_AGP case is unchanged for now.
      
      [airlied: fix ppc build]
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NAndy Lutomirski <luto@amacapital.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      ff47eaf2
    • A
      drm (ast, cirrus, mgag200, nouveau, savage, vmwgfx): Remove drm_mtrr_{add, del} · 247d36d7
      Andy Lutomirski 提交于
      This replaces drm_mtrr_{add,del} with arch_phys_wc_{add,del}.  The
      interface is simplified (because the base and size parameters to
      drm_mtrr_del never did anything), and it no longer adds MTRRs on
      systems that don't need them.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NAndy Lutomirski <luto@amacapital.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      247d36d7
    • A
      Add arch_phys_wc_{add, del} to manipulate WC MTRRs if needed · d0d98eed
      Andy Lutomirski 提交于
      Several drivers currently use mtrr_add through various #ifdef guards
      and/or drm wrappers.  The vast majority of them want to add WC MTRRs
      on x86 systems and don't actually need the MTRR if PAT (i.e.
      ioremap_wc, etc) are working.
      
      arch_phys_wc_add and arch_phys_wc_del are new functions, available
      on all architectures and configurations, that add WC MTRRs on x86 if
      needed (and handle errors) and do nothing at all otherwise.  They're
      also easier to use than mtrr_add and mtrr_del, so the call sites can
      be simplified.
      
      As an added benefit, this will avoid wasting MTRRs and possibly
      warning pointlessly on PAT-supporting systems.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NAndy Lutomirski <luto@amacapital.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      d0d98eed
    • D
      Merge tag 'drm-intel-next-2013-05-20-merged' of... · e81f3d81
      Dave Airlie 提交于
      Merge tag 'drm-intel-next-2013-05-20-merged' of git://people.freedesktop.org/~danvet/drm-intel into drm-next
      
      Daniel writes:
      Highlights (copy-pasted from my testing cycle mails):
      - fbc support for Haswell (Rodrigo)
      - streamlined workaround comments, including an igt tool to grep for
        them (Damien)
      - sdvo and TV out cleanups, including a fixup for sdvo multifunction devices
      - refactor our eDP mess a bit (Imre)
      - don't register the hdmi connector on haswell when desktop eDP is present
      - vlv support is no longer preliminary!
      - more vlv fixes from Jesse for stolen and dpll handling
      - more flexible power well checking infrastructure from Paulo
      - a few gtt patches from Ben
      - a bit of OCD cleanups for transcoder #defines and an assorted pile
        of smaller things.
      - fixes for the gmch modeset sequence
      - a bit of OCD around plane/pipe usage (Ville)
      - vlv turbo support (Jesse)
      - tons of vlv modeset fixes (Jesse et al.)
      - vlv pte write fixes (Kenneth Graunke)
      - hpd filtering to avoid costly probes on unaffected outputs (Egbert Eich)
      - intel dev_info cleanups and refactorings (Damien)
      - vlv rc6 support (Jesse)
      - random pile of fixes around non-24bpp modes handling
      - asle/opregion cleanups and locking fixes (Jani)
      - dp dpll refactoring
      - improvements for reduced_clock computation on g4x/ilk+
      - pfit state refactored to use pipe_config (Jesse)
      - lots more computed modeset state moved to pipe_config, including readout
        and cross-check support
      - fdi auto-dithering for ivb B/C links, using the neat pipe_config
        improvements
      - drm_rect helpers plus sprite clipping fixes (Ville)
      - hw context refcounting (Mika + Ben)
      
      * tag 'drm-intel-next-2013-05-20-merged' of git://people.freedesktop.org/~danvet/drm-intel: (155 commits)
        drm/i915: add support for dvo Chrontel 7010B
        drm/i915: Use pipe config state to control gmch pfit enable/disable
        drm/i915: Use pipe_config state to disable ilk+ pfit
        drm/i915: panel fitter hw state readout&check support
        drm/i915: implement WADPOClockGatingDisable for LPT
        drm/i915: Add missing platform tags to FBC workaround comments
        drm/i915: rip out an unused lvds_reg variable
        drm/i915: Compute WR PLL dividers dynamically
        drm/i915: HSW FBC WaFbcDisableDpfcClockGating
        drm/i915: HSW FBC WaFbcAsynchFlipDisableFbcQueue
        drm/i915: Enable FBC at Haswell.
        drm/i915: IVB FBC WaFbcDisableDpfcClockGating
        drm/i915: IVB FBC WaFbcAsynchFlipDisableFbcQueue
        drm/i915: Add support for FBC on Ivybridge.
        drm/i915: Organize VBT stuff inside drm_i915_private
        drm/i915: make SDVO TV-out work for multifunction devices
        drm/i915: rip out now unused is_foo tracking from crtc code
        drm/i915: rip out TV-out lore ...
        drm/i915: drop TVclock special casing on ilk+
        drm/i915: move sdvo TV clock computation to intel_sdvo.c
        ...
      e81f3d81
    • D
      drm/qxl: fix build warnings on 32-bit · 970fa986
      Dave Airlie 提交于
      Just the usual printk related warnings.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      970fa986
  2. 30 5月, 2013 3 次提交
  3. 29 5月, 2013 4 次提交
  4. 28 5月, 2013 1 次提交
  5. 24 5月, 2013 13 次提交
    • D
      Merge branch 'drm-intel-fixes' of git://people.freedesktop.org/~danvet/drm-intel into drm-next · 5ed77662
      Dave Airlie 提交于
      Daniel writes:
      A few fixes, nothing shocking:
      - More Haswell pci ids. Includes a pile of marketing spare ids (which
        despite the spare moniker show up all over the place).
      - Fix a regression in handling modeset failures, resulting in black
        screens on 3 pipe setups when we've run out of pch plls (Chris).
      - Fix up the setcrtc semantics to unconditionally enable the outputs.
        Juding from git digging that has (kinda) always been the case and neatly
        fixes a few long-standing (i.e. forever) bug reports (Imre).
      - jiffies_timeout + 1 patches from Imre. They partially fix spurious
        wait_event failures in the interrupt-driven dp aux/i2c code. The other
        part is a core patch for the wait_event macros going in through -mm. A
        few patches more than strictly required since Imre is pushing for a
        general solution in 3.11.
      
      * 'drm-intel-fixes' of git://people.freedesktop.org/~danvet/drm-intel:
        drm/i915: avoid premature DP AUX timeouts
        drm/i915: avoid premature timeouts in __wait_seqno()
        drm/i915: use msecs_to_jiffies_timeout instead of open coding the same
        drm/i915: add msecs_to_jiffies_timeout to guarantee minimum duration
        drm/i915: force full modeset if the connector is in DPMS OFF mode
        drm/i915: Propagate errors back from fb set-base
        drm/i915: Adding more reserved PCI IDs for Haswell.
      5ed77662
    • D
      Merge branch 'exynos-drm-fixes' of... · 80ce5f6f
      Dave Airlie 提交于
      Merge branch 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next
      
      Inki writes:
        This pull request includes drm_send_vblank_event() helper
         relevant patch I missed and code cleanups. And also it fixes
         a pended page flip issue.
      
      * 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos:
        drm/exynos: replace request_threaded_irq with devm function
        drm/exynos: remove unnecessary devm_kfree
        drm/exynos: fix build warnings from ipp fimc
        drm/exynos: cleanup device pointer usages
        drm/exynos: wait for the completion of pending page flip
        drm/exynos: use drm_send_vblank_event() helper
        drm/exynos: page flip fixes
        drm/exynos: exynos_hdmi: Pass correct pointer to free_irq()
        drm/exynos: exynos_drm_ipp: Fix incorrect usage of IS_ERR_OR_NULL
        drm/exynos: exynos_drm_fbdev: Fix incorrect usage of IS_ERR_OR_NULL
      
      Conflicts:
      	drivers/gpu/drm/exynos/exynos_hdmi.c
      80ce5f6f
    • D
      Merge remote-tracking branch 'pfdo/drm-fixes' into drm-next · c313d567
      Dave Airlie 提交于
      Pull the vblank event changes into a Linus master tree to make merging
      easier.
      c313d567
    • L
      Merge tag 'pci-v3.10-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · b91fd4d5
      Linus Torvalds 提交于
      Pull PCI updates from Bjorn Helgaas:
       "Here are some more fixes for v3.10.  The Moorestown update broke Intel
        Medfield devices, so I reverted it.  The acpiphp change fixes a
        regression: we broke hotplug notifications to host bridges when we
        split acpiphp into the host-bridge related part and the
        endpoint-related part.
      
        Moorestown
            Revert "x86/pci/mrst: Use configuration mechanism 1 for 00:00.0, 00:02.0, 00:03.0"
        Hotplug
            PCI: acpiphp: Re-enumerate devices when host bridge receives Bus Check"
      
      * tag 'pci-v3.10-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        Revert "x86/pci/mrst: Use configuration mechanism 1 for 00:00.0, 00:02.0, 00:03.0"
        PCI: acpiphp: Re-enumerate devices when host bridge receives Bus Check
      b91fd4d5
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 4c0eec03
      Linus Torvalds 提交于
      Pull input updates from Dmitry Torokhov:
       "A few fixups to Wacom and eGalax touchscreen driver"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: wacom - add an eraser to DTH2242/DTK2241
        Input: wacom - add a few new styli for Cintiq series
        Input: wacom - add three new display tablets
        Input: egalax_ts - ABS_MT_POSITION_Y not reported well
      4c0eec03
    • L
      Merge tag 'tty-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · d9795562
      Linus Torvalds 提交于
      Pull tty/serial fixes from Greg Kroah-Hartman:
       "Here are some tty / serial driver fixes for 3.10-rc2.
      
        Nothing huge, although the rocket driver fix looks large, it's just
        moving the code around to fix the reported build issues in it.  Other
        than that, this has the fix for the of-reported lockdep warning from
        the vt layer, as well as some other needed bugfixes.
      
        All of these have been in linux-next for a while"
      
      * tag 'tty-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        tty: mxser: Fix build warning introduced by dfc7b837 (Re: linux-next: build warning after merge of the tty.current tree)
        tty: mxser: fix usage of opmode_ioaddr
        serial: 8250_dw: add ACPI ID for Intel BayTrail
        TTY: Fix tty miss restart after we turn off flow-control
        tty/vt: Fix vc_deallocate() lock order
        TTY: ehv_bytechan: add missing platform_driver_unregister() when module exit
        TTY: rocket, fix more no-PCI warnings
        serial: mcf: missing uart_unregister_driver() on error in mcf_init()
        tty: serial: mpc5xxx: fix error handing in mpc52xx_uart_init()
        serial: samsung: add missing platform_driver_unregister() when module exit
        serial: pl011: protect attribute read from NULL platform data struct
        tty: nwpserial: Pass correct pointer to free_irq()
        serial: 8250_dw: Add valid clk pointer check
      d9795562
    • L
      Merge tag 'staging-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 388c2896
      Linus Torvalds 提交于
      Pull staging driver fixes from Greg Kroah-Hartman:
       "Here are some staging tree driver fixes for 3.10-rc2
      
        The drivers/iio/ changes are here as they are still tied into
        drivers/staging/iio/.
      
        Nothing major, just a number of small bugfixes, and a larger
        documentation update for the ramster code."
      
      * tag 'staging-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (28 commits)
        staging: dwc2: remove compile warning for USB_DWC2_TRACK_MISSED_SOFS
        iio: exynos_adc: fix wrong structure extration in suspend and resume
        iio:common:st: added disable function after read info raw data
        iio: dac: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m
        staging:iio:light:tsl2x7x: fix the error handling in tsl2x7x_probe()
        staging/iio/mxs-lradc: fix preenable for multiple buffers
        staging: imx-drm: imx-tve: Check the return value of 'regulator_enable()'
        staging: video: imx: Select VIDEOMODE_HELPERS for parallel display
        staging: ramster: add how-to document
        staging: dwc2: Fix dma-enabled platform devices using a default dma_mask
        staging: vt6656: [bug] Fix missing spin lock in iwctl_siwpower.
        staging: Swap zram and zsmalloc in Kconfig
        staging: android: logger: use kuid_t instead of uid_t
        staging: zcache: Fix incorrect module_param_array types
        staging/solo6x10: depend on CONFIG_FONTS
        staging/drm: imx: add missing dependencies
        staging: ste_rmi4: Suppress 'ignoring return value of ‘regulator_enable()' warning
        staging: sep: fix driver build and kconfig
        staging: nvec: cleanup childs on remove
        staging: nvec: implement unregistering of notifiers
        ...
      388c2896
    • L
      Merge tag 'driver-core-3.10-rc2' of... · c7153d06
      Linus Torvalds 提交于
      Merge tag 'driver-core-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core fixes from Greg Kroah-Hartman:
       "Here are 3 tiny driver core fixes for 3.10-rc2.
      
        A needed symbol export, a change to make it easier to track down
        offending sysfs files with incorrect attributes, and a klist bugfix.
      
        All have been in linux-next for a while"
      
      * tag 'driver-core-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        klist: del waiter from klist_remove_waiters before wakeup waitting process
        driver core: print sysfs attribute name when warning about bogus permissions
        driver core: export subsys_virtual_register
      c7153d06
    • L
      Merge tag 'char-misc-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 5cc0c038
      Linus Torvalds 提交于
      Pull char/misc driver fixes from Greg Kroah-Hartman:
       "Here are some small char/misc driver fixes for 3.10-rc2.
      
        Nothing major here, just a number of fixes for things that people have
        reported, and a MAINTAINERS update for the recent changes for the
        hyperv files that went into 3.10-rc1."
      
      * tag 'char-misc-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        ttyprintk: Fix NULL pointer deref by setting tty_port ops after initializing port
        uio: UIO_DMEM_GENIRQ should depend on HAS_DMA
        MAINTAINERS: update Hyper-V file list
        mei: bus: Reset event_cb when disabling a device
        Drivers: hv: Fix a bug in get_vp_index()
        mei: fix out of array access to me clients array
        Char: lp, protect LPGETSTATUS with port_mutex
        dummy-irq: require the user to specify an IRQ number
      5cc0c038
    • L
      Merge tag 'usb-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · b6419406
      Linus Torvalds 提交于
      Pull USB fixes from Greg Kroah-Hartman:
       "Here are a number of tiny USB bugfixes / new device ids for 3.10-rc2
      
        The majority of these are USB gadget fixes, but they are all small.
        Other than that, some USB host controller fixes, and USB serial driver
        fixes for problems reported with them.
      
        Also hopefully a fixed up USB_OTG Kconfig dependancy, that one seems
        to be almost impossible to get right for all of the different
        platforms these days."
      
      * tag 'usb-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (56 commits)
        USB: cxacru: potential underflow in cxacru_cm_get_array()
        USB: ftdi_sio: Add support for Newport CONEX motor drivers
        USB: option: add device IDs for Dell 5804 (Novatel E371) WWAN card
        usb: ohci: fix goto wrong tag in err case
        usb: isp1760-if: fix memleak when platform_get_resource fail
        usb: ehci-s5p: fix memleak when fallback to pdata
        USB: serial: clean up chars_in_buffer
        USB: ti_usb_3410_5052: fix chars_in_buffer overhead
        USB: io_ti: fix chars_in_buffer overhead
        USB: ftdi_sio: fix chars_in_buffer overhead
        USB: ftdi_sio: clean up get_modem_status
        USB: serial: add generic wait_until_sent implementation
        USB: serial: add wait_until_sent operation
        USB: set device dma_mask without reference to global data
        USB: Blacklisted Cinterion's PLxx WWAN Interface
        usb: option: Add Telewell TW-LTE 4G
        USB: EHCI: remove bogus #error
        USB: reset resume quirk needed by a hub
        USB: usb-stor: realtek_cr: Fix compile error
        usb, chipidea: fix link error when USB_EHCI_HCD is a module
        ...
      b6419406
    • L
      Merge git://git.kernel.org/pub/scm/virt/kvm/kvm · 72dd4e79
      Linus Torvalds 提交于
      Pull kvm bugfixes from Gleb Natapov.
      
      * git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM/MIPS32: Wrap calls to gfn_to_pfn() with srcu_read_lock/unlock()
        KVM/MIPS32: Move include/asm/kvm.h => include/uapi/asm/kvm.h since it is a user visible API.
        KVM: take over co-maintainership from Marcelo, fix MAINTAINERS entry
      72dd4e79
    • R
      lib: make iovec obj instead of lib · b4d3ba33
      Randy Dunlap 提交于
      Fix build error io vmw_vmci.ko when CONFIG_VMWARE_VMCI=m by chaning
      iovec.o from lib-y to obj-y.
      
        ERROR: "memcpy_toiovec" [drivers/misc/vmw_vmci/vmw_vmci.ko] undefined!
        ERROR: "memcpy_fromiovec" [drivers/misc/vmw_vmci/vmw_vmci.ko] undefined!
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Acked-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b4d3ba33
    • P
      Input: wacom - add an eraser to DTH2242/DTK2241 · c73a1afb
      Ping Cheng 提交于
      plus send begin and end of express keys events for
      Cintiq 13HD and DTH2242/DTK2241
      Signed-off-by: NPing Cheng <pingc@wacom.com>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      c73a1afb
  6. 23 5月, 2013 10 次提交