1. 29 6月, 2017 1 次提交
  2. 30 10月, 2012 1 次提交
  3. 15 10月, 2011 1 次提交
  4. 22 7月, 2011 1 次提交
    • J
      x86/PCI: config space accessor functions should not ignore the segment argument · db34a363
      Jan Beulich 提交于
      Without this change, the majority of the raw PCI config space access
      functions silently ignore a non-zero segment argument, which is
      certainly wrong.
      
      Apart from pci_direct_conf1, all other non-MMCFG access methods get
      used only for non-extended accesses (i.e. assigned to raw_pci_ops
      only). Consequently, with the way raw_pci_{read,write}() work, it would
      be a coding error to call these functions with a non-zero segment (with
      the current call flow this cannot happen afaict).
      
      The access method 1 accessor, as it can be used for extended accesses
      (on AMD systems) instead gets checks added for the passed in segment to
      be zero. This would be the case when on such a system having multiple
      PCI segments (don't know whether any exist in practice) MMCFG for some
      reason is not usable, and method 1 gets selected for doing extended
      accesses. Rather than accessing the wrong device's config space, the
      function will now error out.
      
      v2: Convert BUG_ON() to WARN_ON(), and extend description as per Ingo's
      request.
      Signed-off-by: NJan Beulich <jbeulich@novell.com>
      Reviewed-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      db34a363
  5. 14 3月, 2011 1 次提交
  6. 18 2月, 2011 1 次提交
  7. 12 11月, 2010 1 次提交
    • D
      ce4100: Add PCI register emulation for CE4100 · 91d8037f
      Dirk Brandewie 提交于
      This patch provides access methods for PCI registers that mis-behave on
      the CE4100. Each register can be assigned a private init, read and
      write routine. The exception to this is the bridge device. The
      bridge device is the only device on bus zero (0) that requires any
      fixup so it is a special case.
      
      [ tglx: minor coding style cleanups, __init annotation and
        	simplification of ce4100_conf_read/write ]
      Signed-off-by: NDirk Brandewie <dirk.j.brandewie@intel.com>
      LKML-Reference: <40b6751381c2275dc359db5a17989cce22ad8db7.1289331834.git.dirk.brandewie@gmail.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      91d8037f