13 Jan, 2012

1 commit


06 Jan, 2012

1 commit


08 Nov, 2011

2 commits


03 Nov, 2011

1 commit


28 Oct, 2011

1 commit

  • * 'drm-core-next' of git://people.freedesktop.org/~airlied/linux: (290 commits)
    Revert "drm/ttm: add a way to bo_wait for either the last read or last write"
    Revert "drm/radeon/kms: add a new gem_wait ioctl with read/write flags"
    vmwgfx: Don't pass unused arguments to do_dirty functions
    vmwgfx: Emulate depth 32 framebuffers
    drm/radeon: Lower the severity of the radeon lockup messages.
    drm/i915/dp: Fix eDP on PCH DP on CPT/PPT
    drm/i915/dp: Introduce is_cpu_edp()
    drm/i915: use correct SPD type value
    drm/i915: fix ILK+ infoframe support
    drm/i915: add DP test request handling
    drm/i915: read full receiver capability field during DP hot plug
    drm/i915/dp: Remove eDP special cases from bandwidth checks
    drm/i915/dp: Fix the math in intel_dp_link_required
    drm/i915/panel: Always record the backlight level again (but cleverly)
    i915: Move i915_read/write out of line
    drm/i915: remove transcoder PLL mashing from mode_set per specs
    drm/i915: if transcoder disable fails, say which
    drm/i915: set watermarks for third pipe on IVB
    drm/i915: export a CPT mode set verification function
    drm/i915: fix transcoder PLL select masking
    ...

    Linus Torvalds
     

26 Oct, 2011

1 commit

  • * 'core-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86, ioapic: Consolidate the explicit EOI code
    x86, ioapic: Restore the mask bit correctly in eoi_ioapic_irq()
    x86, kdump, ioapic: Reset remote-IRR in clear_IO_APIC
    iommu: Rename the DMAR and INTR_REMAP config options
    x86, ioapic: Define irq_remap_modify_chip_defaults()
    x86, msi, intr-remap: Use the ioapic set affinity routine
    iommu: Cleanup ifdefs in detect_intel_iommu()
    iommu: No need to set dmar_disabled in check_zero_address()
    iommu: Move IOMMU specific code to intel-iommu.c
    intr_remap: Call dmar_dev_scope_init() explicitly
    x86, x2apic: Enable the bios request for x2apic optout

    Linus Torvalds
     

21 Oct, 2011

1 commit

  • Idle the GPU before doing any unmaps. We know if VT-d is in use through
    an exported variable from iommu code.

    This should avoid a known HW issue.

    Signed-off-by: Ben Widawsky
    Reviewed-by: Daniel Vetter
    Signed-off-by: Keith Packard

    Ben Widawsky
     

21 Sep, 2011

1 commit

  • Change the CONFIG_DMAR to CONFIG_INTEL_IOMMU to be consistent
    with the other IOMMU options.

    Rename the CONFIG_INTR_REMAP to CONFIG_IRQ_REMAP to match the
    irq subsystem name.

    And define the CONFIG_DMAR_TABLE for the common ACPI DMAR
    routines shared by both CONFIG_INTEL_IOMMU and CONFIG_IRQ_REMAP.

    Signed-off-by: Suresh Siddha
    Cc: yinghai@kernel.org
    Cc: youquan.song@intel.com
    Cc: joerg.roedel@amd.com
    Cc: tony.luck@intel.com
    Cc: dwmw2@infradead.org
    Link: http://lkml.kernel.org/r/20110824001456.558630224@sbsiddha-desk.sc.intel.com
    Signed-off-by: Ingo Molnar

    Suresh Siddha
     

15 Sep, 2011

1 commit


24 Aug, 2011

1 commit

  • dmesg reports:
    [   29.365973] [TTM] AGP Bind memory failed.
    [   29.366015] radeon 0000:80:00.0: object_init failed for (4096, 0x00000002)
    [   29.366052] radeon 0000:80:00.0: (-22) create WB bo failed
    [   29.366087] radeon 0000:80:00.0: Disabling GPU acceleration
    [   29.366124] [drm] radeon: cp finalized
    [   29.366168] [drm] radeon: cp finalized
    [   29.366210] [TTM] Finalizing pool allocator.
    [   29.366924] [TTM] Zone  kernel: Used memory at exit: 0 kiB.
    [   29.366961] [TTM] Zone   dma32: Used memory at exit: 0 kiB.
    [   29.366996] [drm] radeon: ttm finalized
    [   29.367030] [drm] Forcing AGP to PCI mode

    This patch allows binding user memory to the AGP GART on zx1-based
    systems. dmesg thus no more complains about AGP bind memory failure,
    disabled GPU acceleration or AGP mode forced to PCI.

    Original work from Francisco Jerez in agp/amd-k7
    (https://lkml.org/lkml/2010/10/15/469).

    Tested-by: Émeric Maschino
    Signed-off-by: Tony Luck

    Émeric Maschino
     

13 Jul, 2011

1 commit

  • Konstantin Belousov found an error in the define of G4x_GMCH_SIZE_VT_2M
    relative to the GMCH specs, and confirmed that indeed one of his users
    with a Q45 reports 0xb not 0xc for a 2/2MiB GATT.

    Signed-off-by: Chris Wilson
    Cc: Konstantin Belousov
    Cc: Daniel Vetter
    Acked-by: Daniel Vetter
    Signed-off-by: Dave Airlie

    Chris Wilson
     

22 May, 2011

1 commit

  • This was based on a description by Ben Herrenschmidt:

    > I've removed that SBA reset from the normal TLB invalidation path and
    > left it only once after turning AGP on.

    About six months ago, he said:

    > I did it a bit differently, but yeah, you get the idea. I'm doing a
    > patch series so don't bother pushing things too hard yet.

    But I haven't seen anything from him about this since then, and people are
    regularly hitting these lockups, so here we are...

    Signed-off-by: Michel Dänzer
    Acked-by: Benjamin Herrenschmidt
    Signed-off-by: Dave Airlie

    Michel Dänzer
     

14 May, 2011

1 commit


21 Apr, 2011

2 commits

  • pg_start is copied from userspace on AGPIOC_BIND and AGPIOC_UNBIND ioctl
    cmds of agp_ioctl() and passed to agpioc_bind_wrap(). As said in the
    comment, (pg_start + mem->page_count) may wrap in case of AGPIOC_BIND,
    and it is not checked at all in case of AGPIOC_UNBIND. As a result, user
    with sufficient privileges (usually "video" group) may generate either
    local DoS or privilege escalation.

    Signed-off-by: Vasiliy Kulikov
    Signed-off-by: Dave Airlie

    Vasiliy Kulikov
     
  • page_count is copied from userspace. agp_allocate_memory() tries to
    check whether this number is too big, but doesn't take into account the
    wrap case. Also agp_create_user_memory() doesn't check whether
    alloc_size is calculated from num_agp_pages variable without overflow.
    This may lead to allocation of too small buffer with following buffer
    overflow.

    Another problem in agp code is not addressed in the patch - kernel memory
    exhaustion (AGPIOC_RESERVE and AGPIOC_ALLOCATE ioctls). It is not checked
    whether requested pid is a pid of the caller (no check in agpioc_reserve_wrap()).
    Each allocation is limited to 16KB, though, there is no per-process limit.
    This might lead to OOM situation, which is not even solved in case of the
    caller death by OOM killer - the memory is allocated for another (faked) process.

    Signed-off-by: Vasiliy Kulikov
    Signed-off-by: Dave Airlie

    Vasiliy Kulikov
     

31 Mar, 2011

1 commit


24 Feb, 2011

1 commit


23 Feb, 2011

1 commit


22 Feb, 2011

1 commit

  • Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=27187
    Tested-by: Thorsten Vollmer (DFI-ACP G5M150-N w/852GME)
    Tested-by: Moritz Brunner (Asus M2400N/i855GM)
    Tested-by: Indan Zupancic (Thinkpad X40/855GM rev 02)
    Tested-by: Eric Anholt (865G)
    Signed-off-by: Chris Wilson

    Chris Wilson
     

04 Feb, 2011

3 commits

  • Some BIOSs (eg. the AMI BIOS on the Asus P4P800 motherboard) don't
    initialise the GART address, and pcibios_assign_resources() can ignore it
    because it can be marked as a host bridge (see
    https://bugzilla.kernel.org/show_bug.cgi?id=24392#c5 for details). This
    was handled correctly up to 2.6.35, but the pci_enable_device() cleanup in
    2.6.36 96576a9e1a0cdb8 ("agp: intel-agp: do not use PCI resources before
    pci_enable_device()") means that the kernel tries to enable the GART
    before assigning it an address; in such cases the GART overlaps with other
    device assignments and ends up being disabled.

    This patch fixes https://bugzilla.kernel.org/show_bug.cgi?id=24392

    Note that I imagine efficeon-agp.c probably has the same problem, but
    I can't test that and I'd like to make sure this patch is suitable for
    -stable (since 2.6.36 and 2.6.37 are affected).

    Signed-off-by: Stephen Kitt
    Cc: Bjorn Helgaas
    Cc: Maciej Rutecki
    Cc: "Rafael J. Wysocki"
    Cc: Kulikov Vasiliy
    Cc: Florian Mickler
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Dave Airlie

    Stephen Kitt
     
  • This reverts commit f191f144079b0083c6fa7d01a4acbd7263fb5032.

    The AMD 751 and 761 chipsets are used on the UP1000, UP1100, and UP1500
    OEM motherboards, but they neglect to do anything to make AGP work.

    According to Ivan Kokshaysky:
    There is quite fundamental conflict between the Alpha architecture and
    x86 AGP implementation - Alpha is entirely cache coherent by design,
    while x86 AGP is not (I mean native AGP DMA transactions, not a PCI over
    AGP). There are no such things as non-cacheable mappings or software
    support for cache flushing/invalidation on Alpha, so x86 AGP code won't
    work on Nautilus.

    So there's no point in allowing this driver to be configured on Alpha.

    Signed-off-by: Matt Turner
    Signed-off-by: Dave Airlie

    Matt Turner
     
  • amd-k7-agp can't be built on Alpha anymore, so remove now unnecessary
    code.

    Signed-off-by: Matt Turner
    Signed-off-by: Dave Airlie

    Matt Turner
     

25 Jan, 2011

1 commit

  • We can only utilize the stolen portion of the GTT if we are in sole
    charge of the hardware. This is only true if using GEM and KMS,
    otherwise VESA continues to access stolen memory.

    Reported-by: Arnd Bergmann
    Reported-by: Frederic Weisbecker
    Tested-by: Jiri Olsa
    Tested-by: Frederic Weisbecker
    Cc: Daniel Vetter
    Signed-off-by: Chris Wilson

    Chris Wilson
     

15 Jan, 2011

1 commit


12 Jan, 2011

3 commits


11 Jan, 2011

1 commit

  • * 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (390 commits)
    drm/radeon/kms: disable underscan by default
    drm/radeon/kms: only enable hdmi features if the monitor supports audio
    drm: Restore the old_fb upon modeset failure
    drm/nouveau: fix hwmon device binding
    radeon: consolidate asic-specific function decls for pre-r600
    vga_switcheroo: comparing too few characters in strncmp()
    drm/radeon/kms: add NI pci ids
    drm/radeon/kms: don't enable pcie gen2 on NI yet
    drm/radeon/kms: add radeon_asic struct for NI asics
    drm/radeon/kms/ni: load default sclk/mclk/vddc at pm init
    drm/radeon/kms: add ucode loader for NI
    drm/radeon/kms: add support for DCE5 display LUTs
    drm/radeon/kms: add ni_reg.h
    drm/radeon/kms: add bo blit support for NI
    drm/radeon/kms: always use writeback/events for fences on NI
    drm/radeon/kms: adjust default clock/vddc tracking for pm on DCE5
    drm/radeon/kms: add backend map workaround for barts
    drm/radeon/kms: fill gpu init for NI asics
    drm/radeon/kms: add disabled vbios accessor for NI asics
    drm/radeon/kms: handle NI thermal controller
    ...

    Linus Torvalds
     

07 Jan, 2011

1 commit


14 Dec, 2010

2 commits


05 Dec, 2010

2 commits


24 Nov, 2010

6 commits