<?xml version="1.0"?>
<!DOCTYPE flagsdescription SYSTEM
       "http://www.spec.org/dtd/cpuflags2.dtd">

<!-- =====================================================================
  Information about the meaning of boot-time settings, BIOS options,
  kernel tuning, and so forth go in this separate 'platform_settings' file.

  They'll be appended to the end of both the flags dump and per-result flag report.

  As the contents should be HTML, it will save lots of time to just enclose
  the whole thing in a CDATA section.  Section 2.3.1 again.

  NOTE that these should be vendor, or platform, specific and thus the file
  should be named in a way to identify which platform was used.  For example,
  one could replace the string Example with the vendor name in the filename,
  i.e. ACME-linux-platform-revA.xml.
     ===================================================================-->

<!-- This file defines platform settings -->
<flagsdescription>

<filename>GIGA-BYTE-Platform-SPECcpu2026-Flags-V1.2-Venice</filename>

<title>SPEC CPU2026 Platform Settings for GIGA-BYTE</title>

<!-- Platform Settings -->
<os_tuning>
<![CDATA[
<dl>
  <dt><b>kernel.randomize_va_space</b> (ASLR)</dt>
  <dd>
    This setting can be used to select the type of process address space
    randomization. Defaults differ based on whether the architecture supports
    ASLR, whether the kernel was built with the CONFIG_COMPAT_BRK
    option or not, or the kernel boot options used.<br />
    Possible settings:
    <ul>
      <li>0: Turn process address space randomization off.</li>
      <li>1: Randomize addresses of mmap base, stack, and VDSO pages.</li>
      <li>2: Additionally randomize the heap. (This is probably the default.)</li>
    </ul>
    Disabling ASLR can make process execution more deterministic and runtimes more consistent.
    For more information see the <code>randomize_va_space</code> entry in the
    <a href="https://www.kernel.org/doc/Documentation/sysctl/kernel.txt">Linux sysctl
    documentation</a>.
  </dd>
  <dt><b>drop_caches:</b></dt>
  <dd>
    Writing to this will cause the kernel to drop clean caches, as well as reclaimable slab objects like dentries and inodes. Once dropped, their memory becomes free.
    <ul>
      <li> To free pagecache: 
              echo 1 > /proc/sys/vm/drop_caches </li>      
      <li> To free reclaimable slab objects (includes dentries and inodes): 
              echo 2 > /proc/sys/vm/drop_caches</li>
      <li> To free slab objects and pagecache: 
              echo 3 > /proc/sys/vm/drop_caches</li>
    </ul>
</dd>
  <dt><b>Transparent Hugepages (THP)</b></dt>
  <dd>
    THP is an abstraction layer that automates most aspects of creating, managing,
    and using huge pages. It is designed to hide much of the complexity in using
    huge pages from system administrators and developers.  Huge pages
    increase the memory page size from 4 kilobytes to 2 megabytes. This provides
    significant performance advantages on systems with highly contended resources
    and large memory workloads. If memory utilization is too high or memory is badly
    fragmented which prevents hugepages being allocated, the kernel will assign
    smaller 4k pages instead. Most recent Linux OS releases have THP enabled by default.<br />
    THP usage is controlled by the sysfs setting <code>/sys/kernel/mm/transparent_hugepage/enabled</code>.
    Possible values:
    <ul>
      <li>never: entirely disable THP usage.</li>
      <li>madvise: enable THP usage only inside regions marked MADV_HUGEPAGE using madvise(3).</li>
      <li>always: enable THP usage system-wide. This is the default.</li>
    </ul>
    THP creation is controlled by the sysfs setting <code>/sys/kernel/mm/transparent_hugepage/defrag</code>.
    Possible values:
    <ul>
      <li>never: if no THP are available to satisfy a request, do not attempt to make any.</li>
      <li>defer: an allocation requesting THP when none are available get normal pages while requesting THP creation in the background.</li>
      <li>defer+madvise: acts like "always", but only for allocations in regions marked MADV_HUGEPAGE using madvise(3); for all other regions it's like "defer".</li>
      <li>madvise: acts like "always", but only for allocations in regions marked MADV_HUGEPAGE using madvise(3).  This is the default.</li>
      <li>always: an allocation requesting THP when none are available will stall until some are made.</li>
    </ul>
    An application that "always" requests THP often can benefit from waiting for an allocation until those huge pages can be assembled.<br/>
    For more information see the <a href="https://www.kernel.org/doc/Documentation/vm/transhuge.txt">Linux transparent hugepage documentation</a>.
  </dd>
</dl>
]]>
</os_tuning>

<firmware>
<![CDATA[
<dl>
  <dt><b>SMEE: (Default = Auto)</b></dt>
  <dd>
    Control secure memory encryption enable\nEnabling both SMEE and SME-MK is not supported. Results in #GP
    <ul>
      <li>Enable: Enable SMEE</li>
      <li>Disable: Disable SMEE</li>
	  <li>Auto: By SMU Default</li>
    </ul>
  </dd>
  <dt><b>CPU Speculative Store Modes: (Default = Auto)</b></dt>
  <dd>
    [Warning] If CPU Debug Options/CPU Aggressive Store Speculation is set to 'Yes', it'll override the setting of this option and enforce the CPU Speculative Store Mode to be Aggressive.\n\nBalanced:\nStore instructions may delay sending out their invalidations to remote cacheline copies when the cacheline is present but not in a writable state in the local cache.\n\nMore Speculative:\nStore instructions will send out invalidations to remote cacheline copies as soon as possible.\n\nLess Speculative:\nStore instructions may delay sending out their invalidations to remote cacheline copies when the cacheline is not present in the local cache or not in a writable state in the local cache.
    <ul>
      <li>Balanced: Balanced</li>
      <li>More Speculative: More Speculative</li>
	  <li>Less Speculative: Less Speculative</li>
	  <li>Auto: By SMU Default</li>
    </ul>
  </dd>
  <dt><b>Tracking Granularity: (Default = Auto)</b></dt>
  <dd>
    Finer-Grain tracking enables higher memory efficiency and is expected to be the preferred performance option. Coarser-grain tracking may improve memory performance for a narrow set of workloads.
    <ul>
      <li>Finer-Grain: Finer-Grain</li>
      <li>Coarser-Grain: Coarser-Grain</li>
	  <li>Auto: By SMU Default</li>
    </ul>
  </dd>
  <dt><b>TSME: (Default = Auto)</b></dt>
  <dd>
    Transparent SME
    <ul>
      <li>Enable: Enable TSME</li>
      <li>Disable: Disable TSME</li>
	  <li>Auto: By SMU Default</li>
    </ul>
  </dd>
  <dt><b>TDP Control:(Default = Auto)</b></dt>
  <dd>
      Auto = Use the fused TDP, Manual = User can set customized TDP.
      Values for this BIOS option can be: Auto/Manual.
      Configures the maximum power that the CPU will consume, up to the
      platform power limit (PPT).  Valid values vary by CPU model.  If value
      outside the valid range is set, the CPU will automatically adjust the
      value so that it does fall within the valid range.  When increasing TDP,
      additional power will only be consumed up to the Package Power Limit
      (PPT), which may be less than the TDP setting.<br />
      
  </dd>
  <dt><b>TDP:(Default = 600)</b></dt>
  <dd>
      Specifies the maximum power that each CPU package may consume in the system.  The actual power limit is the maximum of the TDP.
      Valid settings are:
      <table>
        <tr><th>Model</th><th>Minimum TDP</th><th>Maximum TDP</th></tr>
		<tr><td>EPYC 9996</td><td>550</td><td>600</td></tr>
        <tr><td>EPYC 9965</td><td>450</td><td>500</td></tr>
        <tr><td>EPYC 9755</td><td>450</td><td>500</td></tr>
      </table>
  </dd>
  <dt><b>PPT Control:(Default = Auto)</b></dt>
  <dd>
      Auto = Use the fused PPT, Manual = User can set customized PPT.
      Values for this BIOS option can be: Auto/Manual.
      Configures the maximum power that the CPU will consume, up to the
      platform power limit (PPT).  Valid values vary by CPU model.  If value
      outside the valid range is set, the CPU will automatically adjust the
      value so that it does fall within the valid range.  When increasing TDP,
      additional power will only be consumed up to the Package Power Limit
      (PPT), which may be less than the TDP setting.<br />
  </dd>
  <dt><b>PPT:(Default = 600)</b></dt>
  <dd>
      Specifies the maximum power that each CPU package may consume in the system.  The actual power limit is the maximum of the PPT.
      Valid settings are:
      <table>
        <tr><th>Model</th><th>Minimum TDP</th><th>Maximum TDP</th></tr>
		<tr><td>EPYC 9996</td><td>400</td><td>600</td></tr>
        <tr><td>EPYC 9965</td><td>450</td><td>500</td></tr>
        <tr><td>EPYC 9755</td><td>450</td><td>500</td></tr>
      </table>
  </dd>
  <dt><b>Determinism Control: (Default = Auto)</b></dt>
  <dd>
    This control sets the percentage amount of determinism desired by the user.\n\nSOC Configuration - 'determinism' is set to the SOC preferred configuration\n\nPower - 'determinism' is set to low percentage allowing the power saving states of the processor to be used.\n\nPerformance - 'determinism' is set to a high percentage so that response times can be predicted and consistent.
    <ul>
      <li>SOC Configuration: SOC Configuration</li>
      <li>Power: Power</li>
	  <li>Performance: Performance</li>
	  <li>Auto: By SMU Default</li>
    </ul>
  </dd>
  <dt><b>CPPC: (Default = Auto)</b></dt>
  <dd>
    Enable = Enable the feature : Disable = Disable the feature\n\nSMU Configuration - When set SMU defines the value for the feature
    <ul>
      <li>Enable</li>
      <li>Disable</li>
	  <li>Auto: By SMU Default</li>
    </ul>
  </dd>
  <dt><b>NUMA Nodes Per Socket (NPS): (Default = Auto)</b></dt>
  <dd>
    Controls the number of NUMA domains exposed per processor socket. Available settings:
    <ul>
      <li>NPS1: One NUMA node per socket.</li>
      <li>NPS2: Two NUMA nodes per socket.</li>
      <li>NPS4: Four NUMA nodes per socket.</li>
	  <li>Auto: Uses platform default; on this platform Auto selects NPS2.</li>
    </ul>
  </dd>
  <dt><b>Enable Requested CPU min frequency: (Default = Auto)</b></dt>
  <dd>
    This allows for minimum requested CPU frequency to be used.
    <ul>
      <li>Enable</li>
      <li>Disable</li>
	  <li>Auto: By SMU Default.</li>
    </ul>
  </dd>
  <dt><b>SMT Control: (Default = Auto)</b></dt>
  <dd>
    Can be used to disable symmetric multithreading. To re-enable SMT, a POWER CYCLE is needed after selecting the 'Enable' option. Select 'Auto' based on BIOS PCD (PcdAmdSmtMode) default setting. WARNING - S3 is NOT SUPPORTED on systems where SMT is disabled.
    <ul>
      <li>Enable: Enable SMT</li>
      <li>Disable: Disable SMT</li>
	  <li>Auto: By SMU Default.</li>
    </ul>
  </dd>
  <dt><b>Core CC6: (Default = Auto)</b></dt>
  <dd>
    Control Core CC6 entry when ACPI C2 state is used or halt is issued.
    <ul>
      <li>Enable</li>
      <li>Disable</li>
	  <li>Auto: By SMU Default.</li>
    </ul>
  </dd>
  <dt><b>ACPI SRAT L3 Cache As NUMA Domain: (Default = Auto)</b></dt>
  <dd>
    Enabled: Each CCX in the system will be declared as a separate NUMA domain.\nDisabled: Memory Addressing \ NUMA nodes per socket will be declared.
    <ul>
      <li>Enable</li>
      <li>Disable</li>
	  <li>Auto: By SMU Default.</li>
    </ul>
  </dd>
  <dt><b>Organization: (Default = Auto)</b></dt>
  <dd>
    Specifies whether multiple memory/CXL channels will share probe filter storage. For memory sizes of 16TB or larger, this feature is ignored as it is auto-selected to \'shared\'\n
    <ul>
      <li>Dedicated</li>
      <li>Shared</li>
	  <li>Auto: By SMU Default.</li>
    </ul>
  </dd>
  <dt><b>Periodic Directory Rinse (PDR) Tuning: (Default = Auto)</b></dt>
  <dd>
    Controls PDR settings that may impact performance by workload and/or processor. Adaptive: Adjusts rinse rate based on Memory/Cache Activity. Preferred setting for all common scenarios. Periodic: Fixed Frequency Directory Rinse. Legacy behavior. Disabled: Periodic Directory Rinse Disabled.
    <ul>
      <li>Disable</li>
      <li>Periodic</li>
	  <li>Adaptive</li>
	  <li>Auto: By SMU Default.</li>
    </ul>
  </dd>
</dl>

]]>
</firmware>

</flagsdescription>
