mirror of
https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK.git
synced 2026-12-03 20:13:30 +07:00
[GH-ISSUE #99] [Compatibility] Palit RTX 3090 / HP Z640 BIOS M60 #70
Labels
No labels
bug
documentation
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
windows-GPU-UNLOCK/Windows-GPU-UNLOCK#70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aaruyou on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/issues/99
Evidence type
Existing unlock experiment — details below
Reviewed inventory or manually entered hardware
Offline compatibility report (optional)
Physical GPU and VBIOS history
Physical display connection and available adapters
Existing diagnostic or experiment source and build
Base Upstream Version: v0.3.0 baseline logic architecture
Profile Target: Modified custom profile rooted in the 3090 FE / B650M codebase mindset, adapted for local platform parameters
Compiler Version: Clang / lld-link 20.1.8 (as required by current tree validation guidelines)
Local Diff Strategy:
Local Code Changes (Diff):
diff --git a/benchmark/compute-benchmark-3090.cu b/benchmark/compute-benchmark-3090.cu
index 5501739..9f8cd07 100644
--- a/benchmark/compute-benchmark-3090.cu
+++ b/benchmark/compute-benchmark-3090.cu
@@ -56,7 +56,7 @@ int main(int argc, char **argv) {
if(argc!=1){fprintf(stderr,"Only --inspect-only or no arguments are supported\n");return 2;}
int devices=0;cuda_check(cudaGetDeviceCount(&devices));int selected=-1;cudaDeviceProp properties={};
for(int i=0;i<devices;i++) {cudaDeviceProp p;cuda_check(cudaGetDeviceProperties(&p,i));
if(!strcmp(p.name,"NVIDIA GeForce RTX 3090") && !p.pciDomainID && p.pciBusID==1 && !p.pciDeviceID){if(selected!=-1)return 2;selected=i;properties=p;}}
if(selected<0){fprintf(stderr,"Exact RTX 3090 at 0000:01:00.0 not found\n");return 2;}
cuda_check(cudaSetDevice(selected));cublasHandle_t handle;blas_check(cublasCreate(&handle));
int runtime=0,driver=0,blas=0;cuda_check(cudaRuntimeGetVersion(&runtime));cuda_check(cudaDriverGetVersion(&driver));blas_check(cublasGetVersion(handle,&blas));
diff --git a/benchmark/run-benchmark.ps1 b/benchmark/run-benchmark.ps1
index b7ac5c5..9641fbc 100644
--- a/benchmark/run-benchmark.ps1
+++ b/benchmark/run-benchmark.ps1
@@ -16,7 +16,7 @@ function Assert-GpuIdle {
$rows = @(& nvidia-smi --query-gpu=name,pci.bus_id,driver_version,utilization.gpu,memory.used,temperature.gpu --format=csv,noheader,nounits)
if ($LASTEXITCODE -ne 0 -or $rows.Count -ne 1) { throw 'Expected exactly one NVIDIA GPU' }
$fields = $rows[0] -split ',' | ForEach-Object { $_.Trim() }
if ([int]$fields[3] -gt 5 -or [int]$fields[4] -gt 2048) { throw 'GPU is busy. Save and finish ComfyUI/other GPU jobs before benchmarking. Nothing was stopped.' }
if ([int]$fields[5] -gt 65) { throw 'GPU is still hot. Let it cool before a comparable measurement.' }
return $rows[0]
diff --git a/unlock/app.c b/unlock/app.c
index ee75c63..fe06f47 100644
--- a/unlock/app.c
+++ b/unlock/app.c
@@ -59,21 +59,23 @@ static BOOLEAN AmdGopParent(EFI_DEVICE_PATH_PROTOCOL *Path) {
EFI_PCI_IO_PROTOCOL *pci=NULL;UINT32 id=0,subsystem=0;UINTN s,b,d,f;
if(!Gu.bs->LocateDevicePath)return FALSE;
EFI_STATUS status=Gu.bs->LocateDevicePath(&PciGuid,&remaining,&parent);
status=Gu.bs->HandleProtocol(parent,&PciGuid,(VOID **)&pci);
if(EFI_ERROR(status) || !pci || !pci->GetLocation || !pci->Pci.Read)return FALSE;
status=pci->GetLocation(pci,&s,&b,&d,&f);
status=pci->Pci.Read(pci,EfiPciIoWidthUint32,0,1,&id);
if(!EFI_ERROR(status))status=pci->Pci.Read(pci,EfiPciIoWidthUint32,0x2c,1,&subsystem);
GuLog("AMD GOP PCI parent: status=%#llx id=%#x subsystem=%#x\n",(unsigned long long)status,id,subsystem);
}
+static BOOLEAN GuReleased=FALSE;
static BOOLEAN DisplayCheck(VOID) {
EFI_HANDLE *handles=NULL;UINTN count=0,intel=0;BOOLEAN valid=TRUE;
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION physical={0},forwarded={0};BOOLEAN forwarding=FALSE;
EFI_STATUS status=Gu.bs->LocateHandleBuffer(ByProtocol,&GopGuid,NULL,&count,&handles);
GuLog("GOP enumeration: status=%#llx handles=%zu\n",(unsigned long long)status,(size_t)count);
if(EFI_ERROR(status) || !handles || !count || count>16){if(handles)GuFree(handles);return FALSE;}
for(UINTN i=0;i<count;i++) {
EFI_GRAPHICS_OUTPUT_PROTOCOL *gop=NULL;EFI_DEVICE_PATH_PROTOCOL *path=NULL;
@@ -104,7 +106,8 @@ static BOOLEAN DisplayCheck(VOID) {
}
if(!mode->Info || mode->SizeOfInfo<sizeof(*mode->Info)){valid=FALSE;break;}
GopInfoLog(i,mode->Info);
@@ -226,7 +229,7 @@ static EFI_STATUS BarCheck(VOID) {
r->AddrRangeMin!=GU_BAR0_BASE || r->AddrLen!=0x1000000 || r->AddrTranslationOffset ||
/* UEFI describes an inclusive end; pinned EDK2 PciBusDxe instead returns
PciBar.Alignment. Both representations describe this exact 16 MiB BAR. */
UINT8 *raw=(UINT8 *)r,sum=0;
@@ -305,8 +308,8 @@ static EFI_STATUS PromCheck(VOID) {
Gu.profile_verified=FALSE;
VOID *prom=GuAlloc(1048576);if(!prom)return EFI_OUT_OF_RESOURCES;
GuCopyFromIo(prom,(VOID *)(UINTN)(Gu.bar_base+0x300000),1048576);
}
static EFI_STATUS Arm(VOID) {
#if !defined(GU_EXPERIMENTAL_3090)
@@ -416,7 +419,7 @@ EFI_STATUS EFIAPI efi_main(EFI_HANDLE Image,EFI_SYSTEM_TABLE *St) {
status=Step(EFI_ERROR(released)?released:EFI_ERROR(refreshed)?refreshed:Gu.pci!=prior?EFI_COMPROMISED_DATA:EFI_SUCCESS);
if(EFI_ERROR(status))goto finish;
Stage="ownership-after-release";status=Step(GuClaimController());if(EFI_ERROR(status))goto finish;
Stage="decode-after-release";status=Step(RestoreDecode());if(EFI_ERROR(status))goto finish;
Stage="config-after-release";status=Step(ConfigCheck(FALSE));if(EFI_ERROR(status))goto finish;
Stage="bar0-after-release";status=Step(BarCheck());if(EFI_ERROR(status))goto finish;
diff --git a/unlock/checks.c b/unlock/checks.c
index df9b5f8..a3ba2b5 100644
--- a/unlock/checks.c
+++ b/unlock/checks.c
@@ -26,7 +26,7 @@ BOOLEAN GuCheckConfig(const UINT32 Config[64], UINTN Segment, UINTN Bus,
if (Out == NULL) return FALSE;
*Out = Caps;
return FALSE;
if (Config[0] != GU_BOARD_ID || Config[0x2c / 4] != GU_BOARD_SUBSYSTEM ||
ConfigByte(Config, 0x0b) != PCI_CLASS_DISPLAY ||
diff --git a/unlock/ownership.c b/unlock/ownership.c
index 6b5ca2a..c1ecdbe 100644
--- a/unlock/ownership.c
+++ b/unlock/ownership.c
@@ -70,12 +70,14 @@ EFI_STATUS GuFindReleaseOwner(EFI_SYSTEM_TABLE *Table,GU_RELEASE_OWNER *Owner,BO
for(UINTN i=0;i<count;i++) {
const EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *e=&records[i].entry;
if(Passive(e->Attributes))continue;
if(Log)GuLog("release refused: active child, different owner or unsupported open at record %u\n",(unsigned)i);
return EFI_ACCESS_DENIED;
}
diff --git a/unlock/port.c b/unlock/port.c
index b01e1bf..c568161 100644
--- a/unlock/port.c
+++ b/unlock/port.c
@@ -53,7 +53,7 @@ VOID GuInit(EFI_BOOT_SERVICES *Bs, EFI_PCI_IO_PROTOCOL *Pci) {
#endif
}
BOOLEAN GuTargetConfig(const UINT32 *C, UINTN S, UINTN B, UINTN D, UINTN F) {
C[11]==GU_BOARD_SUBSYSTEM && (C[2]>>24)==3 && !((C[3]>>16)&0x7f);
}
BOOLEAN GuSafeToReturn(VOID) {
diff --git a/unlock/port.h b/unlock/port.h
index 24d9541..ff45344 100644
--- a/unlock/port.h
+++ b/unlock/port.h
@@ -5,10 +5,10 @@
#include <stddef.h>
#define GU_BOARD_ID 0x220410deU
-#define GU_BOARD_SUBSYSTEM 0x145410deU
+#define GU_BOARD_SUBSYSTEM 0x22041569U
#define GU_AMD_ID 0x164e1002U
#define GU_AMD_SUBSYSTEM 0x88771043U
-#define GU_BAR0_BASE 0xf5000000ULL
+#define GU_BAR0_BASE 0xf0000000ULL
#define GU_DEVICE_MEMORY_SIZE 0x6000U
/* The default artifact is read-only. Legacy host containment tests are never
a production enable switch; experimental firmware requires its own define. */
Existing evidence, if any
Public report review