Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvtop does not recognize xe driver Intel GPU #312

Open
heitbaum opened this issue Aug 17, 2024 · 4 comments
Open

nvtop does not recognize xe driver Intel GPU #312

heitbaum opened this issue Aug 17, 2024 · 4 comments

Comments

@heitbaum
Copy link

When running the Intel xe driver instead of the i915 driver. nvtop does not recognize the GPU (it recognizes the GPU when using the i915 kernel module)

nuc12:~ # nvtop
No GPU to monitor.

nuc12:~ # lspci -s 00:02.0 -vv
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c) (prog-if 00 [VGA controller])
        DeviceName: Onboard - Video
        Subsystem: Intel Corporation Device 3024
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 181
        IOMMU group: 0
        Region 0: Memory at 603c000000 (64-bit, non-prefetchable) [size=16M]
        Region 2: Memory at 4000000000 (64-bit, prefetchable) [size=256M]
        Region 4: I/O ports at 3000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express (v2) Root Complex Integrated Endpoint, IntMsgNum 0
                DevCap: MaxPayload 128 bytes, PhantFunc 0
                        ExtTag- RBE+ FLReset+ TEE-IO-
                DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- FLReset-
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis- NROPrPrP- LTR-
                         10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt- EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                         AtomicOpsCtl: ReqEn-
                         IDOReq- IDOCompl- LTR- EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
        Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit-
                Address: fee00018  Data: 0000
                Masking: 00000000  Pending: 00000000
        Capabilities: [d0] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [100 v1] Process Address Space ID (PASID)
                PASIDCap: Exec- Priv-, Max PASID Width: 14
                PASIDCtl: Enable- Exec- Priv-
        Capabilities: [200 v1] Address Translation Service (ATS)
                ATSCap: Invalidate Queue Depth: 00
                ATSCtl: Enable-, Smallest Translation Unit: 00
        Capabilities: [300 v1] Page Request Interface (PRI)
                PRICtl: Enable- Reset-
                PRISta: RF- UPRGI- Stopped+ PASID+
                Page Request Capacity: 00008000, Page Request Allocation: 00000000
        Capabilities: [320 v1] Single Root I/O Virtualization (SR-IOV)
                IOVCap: Migration- 10BitTagReq- IntMsgNum 0
                IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy- 10BitTagReq-
                IOVSta: Migration-
                Initial VFs: 7, Total VFs: 7, Number of VFs: 0, Function Dependency Link: 00
                VF offset: 1, stride: 1, Device ID: 4626
                Supported Page Size: 00000553, System Page Size: 00000001
                Region 0: Memory at 0000000000000000 (64-bit, non-prefetchable)
                Region 2: Memory at 0000000000000000 (64-bit, prefetchable)
                VF Migration: offset: 00000000, BIR: 0
        Kernel driver in use: xe
        Kernel modules: xe
@gesong2077
Copy link

I encountered the same issue on Ubuntu 24.10 and Manjaro with intel DG1 using xe driver

@Steve-Tech
Copy link
Contributor

Steve-Tech commented Nov 20, 2024

Hi guys, Xe support isn't in packaged version yet, since it was only merged on the 31st of August in #303 and nvtop hasn't had a new release since February. Also #331 fixes a logic error which reported incorrect memory usage, if you guys wanted to compile and test that.

@heitbaum
Copy link
Author

I have tested 6e91c74 on the ADL and here is the screen capture.

 Device 0 [Alder Lake-P Integrated Graphics Controller] Integrated GPU RX: N/A TX: N/A
 GPU 300MHz  MEM N/A MHz TEMP N/A°C CPU-FAN  POW N/A W
 GPU[N/A] MEM[N/A]

    PID USER DEV     TYPE  GPU        GPU MEM    CPU  HOST MEM Command                                                             
   3354 root   0  Graphic N/A           96MiB     2%   3433MiB /usr/lib/kodi/kodi.bin --standalone -fs --audio-backend=alsa+pulseau

@fkobi
Copy link

fkobi commented Nov 30, 2024

I am running Linux 6.11.10 on an iris xe laptop and my gpu is recognized in 3.0.2:

 Device 0 [TigerLake-LP GT2 (Iris Xe Graphics)] Integrated GPU RX: N/A TX: N/A
 GPU 350MHz  MEM N/A MHz TEMP N/A°C CPU-FAN  POW N/A W

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants