1. 09 Apr, 2004 14 commits
    • Dave Airlie's avatar
      * Introduce COMMIT_RING() as in radeon DRM, stop using error prone · ebad1c4d
      Dave Airlie authored
        writeback for ring read pointer (Paul Mackerras)
      * Get rid of some superfluous stuff, minor fixes
      ebad1c4d
    • Dave Airlie's avatar
      radeon_drm.h: · e5335bc7
      Dave Airlie authored
        missing define from previous checkin
      e5335bc7
    • Dave Airlie's avatar
      Miscellaneous changes from DRM CVS · 34a9f3ac
      Dave Airlie authored
      34a9f3ac
    • Dave Airlie's avatar
      drm_ctx_dtor.patch · 9d136148
      Dave Airlie authored
      Submitted by: Erdi Chen
      9d136148
    • Dave Airlie's avatar
      8153aeff
    • Dave Airlie's avatar
      From Michel Daenzer: · 6cc03ee7
      Dave Airlie authored
      Adapt to nopage() prototype change in Linux 2.6.1.
      
      Reviewed by: Arjan van de Ven <arjanv@redhat.com>, additional feedback
      from William Lee Irwin III and Linus Torvalds.
      6cc03ee7
    • Dave Airlie's avatar
      From Eric Anholt + Jon Smirl: · 8f547eb8
      Dave Airlie authored
      Don't ioremap the framebuffer area. The ioremapped area wasn't used by
      anything.
      8f547eb8
    • Dave Airlie's avatar
      From Eric Anholt: · b6ad4641
      Dave Airlie authored
      Return EBUSY when attempting to addmap a DRM_SHM area with a lock in it if
      dev->lock.hw_lock is already set. This fixes the case of two X Servers running
      on the same head on different VTs with interface 1.1, by making the 2nd head
      fail to inizialize like before.
      b6ad4641
    • Dave Airlie's avatar
      From Eric Anholt: some cleanups from AlanH: · c25f5e81
      Dave Airlie authored
      - Tie the DRM to a specific device: setunique no longer succeeds when given
      a busid that doesn't correspond to the device the DRM is attached to. This
      is a breaking of backwards-compatibility only for the multiple-DRI-head case
      with X Servers that don't use interface 1.1.
      - Move irq_busid to drm_irq.h and make it only return the IRQ for the current
      device. Retains compatibility with previous X Servers, cleans up unnecessary
      code. This means no irq_busid on !__HAVE_IRQ, but can be changed if
      necessary.
      - Bump interface version to 1.2. This version when set signifies that the
      control ioctl should ignore the irq number passed in and enable the
      interrupt handler for the attached device. Otherwise it errors out when
      the passed-in irq is not equal to the device's.
      - Store the highest version the interface has been set to in the device. 
      c25f5e81
    • Dave Airlie's avatar
      From: Michel Daenzer: · 3b7273f0
      Dave Airlie authored
      Memory layout transition:
      
      * the 2D driver initializes MC_FB_LOCATION and related registers sanely
      * the DRM deduces the layout from these registers
      * clients use the new SETPARAM ioctl to tell the DRM where they think the
      framebuffer is located in the card's address space
      * the DRM uses all this information to check client state and fix it up if
      necessary
      
      This is a prerequisite for things like direct rendering with IGP chips and
      video capturing.
      3b7273f0
    • Dave Airlie's avatar
      From Eric Anholt: · 7962e010
      Dave Airlie authored
       Introduce a new ioctl, DRM_IOCTL_SET_VERSION. This ioctl allows the server
      or client to notify the DRM that it expects a certain version of the device
      dependent or device independent interface. If the major doesn't match or minor
      is too large, EINVAL is returned. A major of -1 means that the requestor
      doesn't care about that portion of the interface. The ioctl returns the actual
      versions in the same struct. 
      7962e010
    • Dave Airlie's avatar
      - Add DRM_GET_PRIV_WITH_RETURN macro. This can be used in shared code to get · d31fc344
      Dave Airlie authored
      the drm_file_t * based on the filp passed in ioctl handlers. 
      d31fc344
    • Dave Airlie's avatar
      left gamma_dma.c out of last changeset · 13723b10
      Dave Airlie authored
      13723b10
    • Dave Airlie's avatar
      From: Eric Anholt: · 44cabf9b
      Dave Airlie authored
      - Move IRQ functions from drm_dma.h to new drm_irq.h and disentangle them from
      __HAVE_DMA. This will be useful for adding vblank sync support to sis and
      tdfx. Rename dma_service to irq_handler, which is more accurately what it is.
      - Fix the #if _HAVE_DMA_IRQ in radeon, r128, mga, i810, i830, gamma to have
      the right number of underscores. This may have been a problem in the case
      that the server died without doing its DRM_IOCTL_CONTROL to uninit
      44cabf9b
  2. 08 Apr, 2004 1 commit
    • Dave Airlie's avatar
      - Converted Linux drivers to initialize DRM instances based on PCI IDs, not · 4b782b3c
      Dave Airlie authored
      just a single instance. The PCI ID lists include a driver private field, which may be used
      by drivers for chip family or other information. Based on work by jonsmirl
      and Eric Anholt. I've left out the PCI device naming for this patch as
      that might be a bit controversial. clean up tdfx to look like everyone else..
      4b782b3c
  3. 03 Apr, 2004 9 commits
  4. 02 Apr, 2004 11 commits
  5. 01 Apr, 2004 5 commits
    • Russell King's avatar
      121b5646
    • Andrew Morton's avatar
      [PATCH] kbuild: $LANG fix · 9be7dd12
      Andrew Morton authored
      From: Sam Ravnborg <sam@ravnborg.org>
      
      Fix this:
      
       	  Building modules, stage 2.
       	  MODPOST
       	LANG := en_US.UTF-8
       	make: LANG: Command not found
       	make: *** [all] Error 127
      
      by removing the tab in front of the LANG assignment.
      9be7dd12
    • Linus Torvalds's avatar
      Merge bk://linux-acpi.bkbits.net/linux-acpi-release-2.6.5 · 64706886
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      64706886
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk · 4a10600a
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      4a10600a
    • Andrew Morton's avatar
      [PATCH] Fix swp_entry_t encoding · 4a25c3d6
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      This fixes a problem in sys_swapon that can cause the creation of invalid
      swap ptes.  This has its cause in the arch-independent swap entries vs. 
      the pte coded swap entries.  The swp_entry_t uses 27 bits for the offset
      and 5 bits for the type.  In sys_swapon this definition is used to find how
      many swap devices and how many pages on each device there can be.  But the
      swap entries encoded in a pte can be subject to additional restrictions due
      to the hardware besides the 27/5 division of the bits in the swp_entry_t
      type.  This is solved by adding pte_to_swp_entry and swp_entry_to_pte calls
      to the calculations for maximum type and offset.
      
      In addition the s390 swap pte division for offset/type is changed from 19/6
      bits to 20/5 bits.
      4a25c3d6