MuntashirAkon / DPCIManager

Simple OS X app for viewing PCI hardware info
133 stars 22 forks source link

dGPU not shown when using Connectorless ig-platform-id #5

Open andreszerocross opened 5 years ago

andreszerocross commented 5 years ago

Orinoco.zip Screen Shot 2019-05-20 at 16 13 54 GPU is detected in System Report -> Graphics/Display and IOREG,, no problem with Acceleration

MuntashirAkon commented 5 years ago

@andreszerocross Ioreg is corrupted. Make sure you have used IORegistryExplorer v2.1 to extract it.

andreszerocross commented 5 years ago

With IOREG 3.0 you can open IOREG output from 2.1 and 3.0 version

MuntashirAkon commented 5 years ago

Have you tried with the dspci tool? Run dspci DTListGPU to see if it can show anything.

andreszerocross commented 5 years ago

image Can't run the tool :)

andreszerocross commented 5 years ago

https://github.com/MuntashirAkon/DPCIManager/blob/e66f29ddc84ba631adb2cea791640b4610a8818b/DPCIManager/Hardware.m#L54

Maybe it's about "@"ports":@0" because it's happened when i used connector-less IGPU framebuffer.

MuntashirAkon commented 5 years ago

Can't run the tool :)

Probably because you're on Catalina.

Maybe it's about "@"ports": @0 " because it's happened when i used connector-less IGPU framebuffer.

I'll take a look when I'm free.

andreszerocross commented 5 years ago

I try your command in Mojave too,,, it can't run.

MuntashirAkon commented 5 years ago

I try your command in Mojave too,,, it can't run.

Perhaps you didn't make it executable. Run

chmod +x /path/to/dspci

to make it executable before trying to run it.

andreszerocross commented 5 years ago

image

It's detected,, i thought it abut "@"ports": @0 "

There is no port for connector-less ig-platform-id, so this is the problem

MuntashirAkon commented 5 years ago

Use DTListGPU argument to list GPU.

andreszerocross commented 5 years ago

image

MuntashirAkon commented 5 years ago

So it works fine on the command line version.

andreszerocross commented 5 years ago

image

I just thought method to show total of "Ports" from IGPU is fail, because connector-less IGPU don't have connector. So all graphics array become fail.

I am not a coder, just my opinion

MuntashirAkon commented 5 years ago

Ok, I'll take a look.

MuntashirAkon commented 5 years ago

It's really difficult for me to debug since there's no way I can reproduce it.

Run the attached app using Terminal and send me the Terminal output.

DPCIManager.app.zip

MuntashirAkon commented 5 years ago

I just thought method to show total of "Ports" from IGPU is fail, because connector-less IGPU don't have connector. So all graphics array become fail.

Also, your IOReg says you have 6 ports which was reported properly by dspci. Screenshot 2019-07-23 at 7 17 37 AM

andreszerocross commented 5 years ago

Orinoco has 6 port, but IGPU has no port because i used connector-less ig-platform-id for skylake (0x19120001).

And what do you mean by run DPCIManager.app from terminal?? I have type "open -a dpcimanager.app path" but it just open dpcimanager.app and there is no further log in terminal.

MuntashirAkon commented 5 years ago

Orinoco has 6 port, but IGPU has no port because i used connector-less ig-platform-id for skylake (0x19120001).

It doesn't look for ports only at @IGPU.

And what do you mean by run DPCIManager.app from terminal?? I have type "open -a dpcimanager.app path" but it just open dpcimanager.app and there is no further log in terminal.

Open terminal and run:

/path/to/DPCIManager.app/Contents/MacOS/DPCIManager
andreszerocross commented 5 years ago

image

This

MuntashirAkon commented 5 years ago

@andreszerocross very interesting issue. The same code works fine for dspci.

MuntashirAkon commented 5 years ago

Just like above, run this app using terminal and send me the output.

DPCIManager.app.zip

andreszerocross commented 5 years ago

image No interesting log...

andreszerocross commented 5 years ago

Update : with Kabylake Processsor Desktop with connectorless ig-platform-id (0x59120003) + Radeon RX 570 in Mojave 10.14.4 there is no problem.

Radeon RX 570 shown actually in DPCI manager.

andreszerocross commented 5 years ago

Update : with Coffelake Processor i7-8700 with connectorles ig-platform-id (0x3E920003) + Radeon VII in Mojave 10.14.6 there is no problem.

Radeon VII is shown actually in DPCI manager

MuntashirAkon commented 5 years ago

Perhaps there was a bug in the OS itself.

juanpedrojose commented 5 years ago

@MuntashirAkon I have the same issue on my Sapphire RX580 Nitro+ (Mojave 10.14.16).

~ dspci DTListGPU
{
    DeviceID = "1002:67DF";
    Model = "AMD Radeon RX 580";
    Revision = 00E7;
    SubdeviceID = "1DA2:E366";
    "hda-gfx" = "onboard-2";
    "ig-platform-id" = "ATY,AMD,RadeonFramebuffer";
    ports = 5;
}
Screen Shot 2019-09-08 at 11 03 37
MuntashirAkon commented 5 years ago

Run the attached app using Terminal, like this:

/path/to/DPCIManager.app/Contents/MacOS/DPCIManager

send me the Terminal outputs.

DPCIManager.app.zip

juanpedrojose commented 5 years ago

send me the Terminal outputs.

DPCIManager.app /Users/alex/Downloads/DPCIManager.app/Contents/MacOS/DPCIManager
2019-09-08 13:27:37.475 DPCIManager[14810:466424] DBG: (
)
Screen Shot 2019-09-08 at 13 28 15
MuntashirAkon commented 5 years ago
DPCIManager.app /Users/alex/Downloads/DPCIManager.app/Contents/MacOS/DPCIManager
2019-09-08 13:27:37.475 DPCIManager[14810:466424] DBG: (
)

The same code works absolutely fine for dspci but not working on DPCIManager, interesting. Unfortunately, I can't reproduce it since I don't have a dGPU. Could you run the app below from Terminal and send me the Terminal output?

DPCIManager.app.zip

juanpedrojose commented 5 years ago

Could you run the app below from Terminal and send me the Terminal output? Sure, here is the output. Not sure if it's helpful:

~ /Users/alex/Downloads/DPCIManager.app/Contents/MacOS/DPCIManager
2019-09-14 01:58:08.383 DPCIManager[3253:112111] (
)
2019-09-14 01:58:08.383 DPCIManager[3253:112111] (
)
remorses commented 4 years ago

I have the same problem, when running dscpi DTListGPU i get

$ dspci DTListGPU
Caught: NSRangeException: *** -[__NSCFConstantString substringToIndex:]: Index 18446744073709551615 out of bounds; string length 0
MuntashirAkon commented 4 years ago

I have the same problem, when running dscpi DTListGPU i get

Previously it gave the correct results. Is the graphics section in DPCIManager is empty as well?

remorses commented 4 years ago

I have the same problem, when running dscpi DTListGPU i get

Previously it gave the correct results. Is the graphics section in DPCIManager is empty as well?

yes