1. 06 Jul, 2012 7 commits
    • Dave Airlie's avatar
      xserver/config: add udev/drm hotplug callbacks. (v2) · b27cf309
      Dave Airlie authored
      This adds callbacks into the ddx for udev gpu hotplug.
      
      v2: fix some strncmp returns.
      Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      b27cf309
    • Dave Airlie's avatar
      xfree86: add DDX gpu screen support. (v3) · 53b66c08
      Dave Airlie authored
      This just adds the structures and interfaces required for adding/deleteing
      gpu screens at the DDX level. The platform probe can pass a new flag
      to the driver, so they can call xf86AllocateScreen and pass back the new
      gpu screen flag.
      
      It also calls the gpu screens preinit and screeninit routines at
      startup.
      
      v2: fix delete screen use after free.
      
      v3: split out pScrn into separate patch
      Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      53b66c08
    • Dave Airlie's avatar
      xf86: cleanup helper code to use a pointer. (v1.1) · 726d467b
      Dave Airlie authored
      This is in preparation for gpu screens in here, just use
      a pScrn pointer to point at the new screen.
      
      suggested by Keith.
      v1.1: fix spacing as suggested by Aaron.
      Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      726d467b
    • Dave Airlie's avatar
      dix: introduce gpu screens. (v5) · 9d179818
      Dave Airlie authored
      This patch introduces gpu screens into screenInfo. It adds interfaces
      for adding and removing gpu screens, along with adding private fixup,
      block handler support, and scratch pixmap init.
      
      GPU screens have a myNum that is offset by GPU_SCREEN_OFFSET (256),
      this is used for logging etc.
      
      RemoveGPUScreen isn't used until "xfree86: add platform bus hotplug support".
      
      v2: no glyph pictures for GPU screens for now.
      v3: introduce MAXGPUSCREENS, fix return value check
      v4: fixup myNum when renumbering screens (ajax)
      v5: drop cursor privates for now.
      Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      9d179818
    • Dave Airlie's avatar
      screen: split out screen init code. (v2) · 3478af33
      Dave Airlie authored
      This is a precursor for reusing this code to init gpu screens.
      
      v2: fixup int check as per Keith's review.
      Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      3478af33
    • Dave Airlie's avatar
      xfree86: use udev to provide device enumeration for kms devices (v10) · cf664713
      Dave Airlie authored
      On Linux in order for future hotplug work, we are required to interface
      to udev to detect device creation/removal. In order to try and get
      some earlier testing on this, this patch adds the ability to use
      udev for device enumeration on Linux.
      
      At startup the list of drm/kms devices is probed and this info is
      used to load drivers.
      
      A new driver probing method is introduced that passes the udev
      device info to the driver for probing.
      
      The probing integrates with the pci probing code and will fallback
      to the pci probe and old school probe functions in turn.
      
      The flags parameter to the probe function will be used later
      to provide hotplug and gpu screen flags for the driver to behave
      in a different way.
      
      This patch changes the driver ABI, all drivers should at least
      be set with a NULL udev probe function after this commit.
      
      v2: rename to platform bus, now with 100% less udev specific,
      
      this version passes config_odev_attribs around which are an array
      of id/string pairs, then the udev code can attach the set of attribs
      it understands, the OS specific code can attach its attrib, and then
      the core/drivers can lookup the required attribs.
      
      also add MATCH_PCI_DEVICES macro.
      
      This version is mainly to address concerns raised by ajax.
      
      v3: Address comments from Peter.
      fix whitespace that snuck in.
      rework to use a linked list with some core functions that
      xf86 wraps.
      
      v4: add free list, fix struct whitespace.
      ajax this address most of your issues?
      
      v5: drop probe ifdef, fix logic issue
      
      v6: some overhaul after more testing.
      
      Implement primaryBus for platform devices.
      document hotplug.h dev attribs - drop sysname attrib
      fix build with udev kms disabled
      make probing work like the PCI probe code,
         match against bus id if one exists, or primary device.
      
      RFC: add new bus id support "PLAT:syspath". we probably
      want to match on this a bit different, or use a different
      property maybe. I was mainly wanting this for use with
      specifying usb devices in xorg.conf directly, but PLAT:path
      could also work I suppose.
      
      v6.1: add missing noop platform function
      
      v7: fix two interactions with pci probing and slot claiming, prevents
      pci and platform trying to load two drivers for same slot.
      
      v8: test with zaphod mode on -ati driver, fixup resulting issue
      clean up common probe code into another function, change busid
      matching to allow dropping end of strings.
      
      v9: fix platform probing logic so it actually works.
      v9.1: fix pdev init to NULL properly.
      
      v10: address most of Keith's concerns.
      
      v4 was thanks to Reviewed-by: Adam Jackson <ajax@redhat.com>
      v5 was Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
      Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      cf664713
    • Dave Airlie's avatar
      xf86: cursor code got mangled by indenting · 2c52d776
      Dave Airlie authored
      This fixes some really ugly code that got mangled by the indenting.
      Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      2c52d776
  2. 05 Jul, 2012 16 commits
  3. 04 Jul, 2012 7 commits
  4. 03 Jul, 2012 10 commits