1. 13 2月, 2020 1 次提交
  2. 14 1月, 2020 2 次提交
  3. 02 1月, 2020 2 次提交
  4. 14 5月, 2018 1 次提交
  5. 15 2月, 2018 1 次提交
  6. 22 10月, 2017 1 次提交
  7. 17 11月, 2016 4 次提交
  8. 14 7月, 2016 1 次提交
    • P
      x86/kernel: Audit and remove any unnecessary uses of module.h · 186f4360
      Paul Gortmaker 提交于
      Historically a lot of these existed because we did not have
      a distinction between what was modular code and what was providing
      support to modules via EXPORT_SYMBOL and friends.  That changed
      when we forked out support for the latter into the export.h file.
      
      This means we should be able to reduce the usage of module.h
      in code that is obj-y Makefile or bool Kconfig.  The advantage
      in doing so is that module.h itself sources about 15 other headers;
      adding significantly to what we feed cpp, and it can obscure what
      headers we are effectively using.
      
      Since module.h was the source for init.h (for __init) and for
      export.h (for EXPORT_SYMBOL) we consider each obj-y/bool instance
      for the presence of either and replace as needed.  Build testing
      revealed some implicit header usage that was fixed up accordingly.
      
      Note that some bool/obj-y instances remain since module.h is
      the header for some exception table entry stuff, and for things
      like __init_or_module (code that is tossed when MODULES=n).
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/20160714001901.31603-4-paul.gortmaker@windriver.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      186f4360
  9. 01 7月, 2016 2 次提交
  10. 29 3月, 2016 1 次提交
  11. 06 5月, 2015 1 次提交
    • A
      x86/gart: Check for GART support before accessing GART registers · 1b457429
      Aravind Gopalakrishnan 提交于
      GART registers are not present in newer AMD processors (Fam15h, Model
      10h and later). So, avoid accessing those in PCI config space by
      returning early in early_gart_iommu_check() and gart_iommu_hole_init()
      if GART is not available.
      
      Current code doesn't break on existing processors but there are some
      side effects:
      
      We get bogus AGP aperture messages which are simply noise on
      GART-less processors:
      
        AGP: Node 0: aperture [bus addr 0x00000000-0x01ffffff] (32MB)
        AGP: Your BIOS doesn't leave aperture memory hole
        AGP: Please enable the IOMMU option in the BIOS setup
        AGP: This costs you 64MB of RAM
        AGP: Mapping aperture over RAM [mem 0xd4000000-0xd7ffffff]
      
      We can avoid calling allocate_aperture() and would not have to
      wastefully reserve 64MB of RAM with memblock_reserve(). Also, we can
      avoid having to loop through all PCI buses and devices twice, searching
      for a non-existent AGP bridge if we bail out early.
      
      Refactor the family check used in amd_nb.c into an inline function so we
      can use it here as well as in amd_nb.c
      
      Fix some typos while at it.
      
      Tested the patch on Fam10h and Fam15h Model 00h-fh and this code runs
      fine. On Fam15h Model 60h-6fh and on Fam16h, we bail early as they don't
      have GART.
      Signed-off-by: NAravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Reviewed-by: NSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Joerg Rodel <joro@8bytes.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/1428443197-3834-1-git-send-email-Aravind.Gopalakrishnan@amd.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      1b457429
  12. 20 10月, 2014 1 次提交
  13. 28 2月, 2014 1 次提交
  14. 25 1月, 2014 1 次提交
  15. 12 8月, 2013 1 次提交
  16. 19 4月, 2013 1 次提交
  17. 11 3月, 2013 1 次提交
  18. 07 6月, 2012 1 次提交
  19. 06 6月, 2012 1 次提交
  20. 07 1月, 2012 1 次提交
  21. 21 12月, 2011 1 次提交
  22. 31 3月, 2011 1 次提交
  23. 17 3月, 2011 1 次提交
  24. 03 3月, 2011 1 次提交
  25. 10 2月, 2011 1 次提交
  26. 08 2月, 2011 1 次提交
    • H
      x86, amd: Support L3 Cache Partitioning on AMD family 0x15 CPUs · cabb5bd7
      Hans Rosenfeld 提交于
      L3 Cache Partitioning allows selecting which of the 4 L3 subcaches can be used
      for evictions by the L2 cache of each compute unit. By writing a 4-bit
      hexadecimal mask into the the sysfs file
      /sys/devices/system/cpu/cpuX/cache/index3/subcaches, the user can set the
      enabled subcaches for a CPU.
      
      The settings are directly read from and written to the hardware, so there is no
      way to have contradicting settings for two CPUs belonging to the same compute
      unit. Writing will always overwrite any previous setting for a compute unit.
      Signed-off-by: NHans Rosenfeld <hans.rosenfeld@amd.com>
      Cc: <Andreas.Herrmann3@amd.com>
      LKML-Reference: <1297098639-431383-1-git-send-email-hans.rosenfeld@amd.com>
      [ -v3: minor style fixes ]
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      cabb5bd7
  27. 26 1月, 2011 2 次提交
  28. 11 1月, 2011 1 次提交
    • J
      x86: Use PCI method for enabling AMD extended config space before MSR method · 24d9b70b
      Jan Beulich 提交于
      While both methods should work equivalently well for the native
      case, the Xen Dom0 case can't reliably work with the MSR one,
      since there's no guarantee that the virtual CPUs it has
      available fully cover all necessary physical ones.
      
      As per the suggestion of Robert Richter the patch only adds the
      PCI method, but leaves the MSR one as a fallback to cover new
      systems the PCI IDs of which may not have got added to the code
      base yet.
      
      The only change in v2 is the breaking out of the new CPI
      initialization method into a separate function, as requested by
      Ingo.
      Signed-off-by: NJan Beulich <jbeulich@novell.com>
      Acked-by: NRobert Richter <robert.richter@amd.com>
      Cc: Andreas Herrmann3 <Andreas.Herrmann3@amd.com>
      Cc: Joerg Roedel <joerg.roedel@amd.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      LKML-Reference: <4D2B3FD7020000780002B67D@vpn.id2.novell.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      24d9b70b
  29. 18 11月, 2010 3 次提交
  30. 02 10月, 2010 1 次提交
  31. 21 9月, 2010 1 次提交