1. 16 10月, 2008 9 次提交
  2. 03 10月, 2008 1 次提交
    • L
      Check mapped ranges on sysfs resource files · b5ff7df3
      Linus Torvalds 提交于
      This is loosely based on a patch by Jesse Barnes to check the user-space
      PCI mappings though the sysfs interfaces.  Quoting Jesse's original
      explanation:
      
        It's fairly common for applications to map PCI resources through sysfs.
        However, with the current implementation, it's possible for an application
        to map far more than the range corresponding to the resourceN file it
        opened.  This patch plugs that hole by checking the range at mmap time,
        similar to what is done on platforms like sparc64 in their lower level
        PCI remapping routines.
      
        It was initially put together to help debug the e1000e NVRAM corruption
        problem, since we initially thought an X driver might be walking past the
        end of one of its mappings and clobbering the NVRAM.  It now looks like
        that's not the case, but doing the check is still important for obvious
        reasons.
      
      and this version of the patch differs in that it uses a helper function
      to clarify the code, and does all the checks in pages (instead of bytes)
      in order to avoid overflows when doing "<< PAGE_SHIFT" etc.
      Acked-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b5ff7df3
  3. 17 9月, 2008 2 次提交
  4. 13 9月, 2008 1 次提交
  5. 11 9月, 2008 1 次提交
  6. 10 9月, 2008 4 次提交
  7. 06 9月, 2008 1 次提交
  8. 04 9月, 2008 1 次提交
    • L
      PCI: fix pbus_size_mem() resource alignment for CardBus controllers · 5f17cfce
      Linus Torvalds 提交于
      Commit 88452565 ("PCI: clean up resource
      alignment management") changed the resource handling to mark how a
      resource was aligned on a per-resource basis.
      
      Thus, instead of looking at the resource number to determine whether it
      was a bridge resource or a regular resource (they have different
      alignment rules), we should just ask the resource for its alignment
      directly.
      
      The reason this broke only cardbus resources was that for the other
      types of resources, the old way of deciding alignment actually still
      happened to work.  But CardBus bridge resources had been changed by
      commit 934b7024 ("Fix cardbus resource
      allocation") to look more like regular resources than PCI bridge
      resources from an alignment handling standpoint.
      Reported-and-tested-by: NAndrew Morton <akpm@linux-foundation.org>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5f17cfce
  9. 22 8月, 2008 3 次提交
  10. 19 8月, 2008 2 次提交
  11. 08 8月, 2008 3 次提交
  12. 07 8月, 2008 2 次提交
  13. 29 7月, 2008 9 次提交
  14. 23 7月, 2008 1 次提交