2 * Copyright (c) 2019 Apple Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
29 /***** Tunables that apply to all cores, all revisions *****/
31 // <rdar://problem/28512310> SW WAR/eval: WKdm write ack lost when bif_wke_colorWrAck_XXaH asserts concurrently for both colors
32 HID_SET_BITS ARM64_REG_HID8, ARM64_REG_HID8_WkeForceStrictOrder, $1
34 /***** Tunables that apply to all P cores, all revisions *****/
37 /***** Tunables that apply to all E cores, all revisions *****/
40 /***** Tunables that apply to specific cores, all revisions *****/
41 EXEC_COREEQ_REVALL MIDR_SKYE_MISTRAL, $0, $1
42 // <rdar://problem/30423928>: Atomic launch eligibility is erroneously taken away when a store at SMB gets invalidated
43 HID_CLEAR_BITS ARM64_REG_EHID11, ARM64_REG_EHID11_SmbDrainThresh_mask, $1
46 /***** Tunables that apply to specific cores and revisions *****/
47 EXEC_COREEQ_REVLO MIDR_SKYE_MISTRAL, CPU_VERSION_B0, $0, $1
49 // Disable downstream fill bypass logic
50 // <rdar://problem/28545159> [Tunable] Skye - L2E fill bypass collision from both pipes to ecore
51 HID_SET_BITS ARM64_REG_EHID5, ARM64_REG_EHID5_DisFillByp, $1
53 // Disable forwarding of return addresses to the NFP
54 // <rdar://problem/30387067> Skye: FED incorrectly taking illegal va exception
55 HID_SET_BITS ARM64_REG_EHID0, ARM64_REG_EHID0_nfpRetFwdDisb, $1
59 EXEC_COREALL_REVLO CPU_VERSION_B0, $0, $1
61 // Disable clock divider gating
62 // <rdar://problem/30854420> [Tunable/Errata][cpu_1p_1e] [CPGV2] ACC power down issue when link FSM switches from GO_DN to CANCEL and at the same time upStreamDrain request is set.
63 HID_SET_BITS ARM64_REG_HID6, ARM64_REG_HID6_DisClkDivGating, $1
65 // Disable clock dithering
66 // <rdar://problem/29022199> [Tunable] Skye A0: Linux: LLC PIO Errors
67 HID_SET_BITS ARM64_REG_ACC_OVRD, ARM64_REG_ACC_OVRD_dsblClkDtr, $1
68 HID_SET_BITS ARM64_REG_ACC_EBLK_OVRD, ARM64_REG_ACC_OVRD_dsblClkDtr, $1
72 EXEC_COREALL_REVHS CPU_VERSION_B0, $0, $1
73 // <rdar://problem/32512836>: Disable refcount syncing between E and P
74 HID_INSERT_BITS ARM64_REG_CYC_OVRD, ARM64_REG_CYC_OVRD_dsblSnoopTime_mask, ARM64_REG_CYC_OVRD_dsblSnoopPTime, $1