summaryrefslogtreecommitdiff
path: root/shared-core/drm_pciids.txt
AgeCommit message (Expand)Author
2008-12-10Revert "Merge branch 'modesetting-gem'"Jesse Barnes
2008-11-13Merge branch 'master' into modesetting-gemJesse Barnes
2008-10-06radeon: fix bus master enabled bits on newer asicsAlex Deucher
2008-10-04radeon: Add support for HD2100 IGP (RS740)Alex Deucher
2008-07-31Merge commit 'origin/master' into modesetting-gemKristian Høgsberg
2008-07-03i915: official name for GM45 chipsetZhenyu Wang
2008-06-21RADEON: 0x1002 0x5657 is actually an RV410Alex Deucher
2008-06-18i915: Add support for Intel 4 series chipsetsZhenyu Wang
2008-06-09RADEON: Add untested support for RS400 chipsAlex Deucher
2008-05-28Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drm into mode...Alan Hourihane
2008-05-13RS4xx: separate out RS400 and RS480 IGP chipsAlex Deucher
2008-04-28Merge branch 'master' into modesetting-101Thomas Hellstrom
2008-03-18drm: add new rs690 pci idDave Airlie
2008-03-12Fix chip family for RV550Alex Deucher
2008-02-18Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/drm into mode...Alan Hourihane
2008-01-29Add new RV380 pci idMirko
2008-01-27drm: add initial rs690 support for drm.Maciej Cencora
2008-01-25Merge remote branch 'origin/master' into modesetting-101Dave Airlie
2008-01-23drm/i915: add support for E7221Dave Airlie
2008-01-15i915: Add chipset id for Intel Integrated Graphics DeviceZhenyu Wang
2008-01-04via: add P4M900 pci id.Xavier Bachelot
2008-01-03remove duplicate pciidsDave Airlie
2007-12-04radeon_ms: radeon modesetting first commit.Jerome Glisse
2007-11-27r500: add a bunch of all r5xx pci ids..Dave Airlie
2007-11-22r500: add pci id for X1650Dave Airlie
2007-11-20radeon: add initial r5xx supportDave Airlie
2007-10-04nouveau: Switch over to using PMC_BOOT_0 for card detection.Maarten Maathuis
2007-09-08nouveau: Add Quadro NVS 140 pciidMaarten Maathuis
2007-08-31Merge branch 'master' of ssh+git://git.freedesktop.org/git/mesa/drm into xgi-...Ian Romanick
2007-08-31nouveau: give nv03 the last cut.Stephane Marchesin
2007-08-09nouveau/nv40: add some missing pciids.Ben Skeggs
2007-07-16Add XP5 and XP10 PCI IDs.Ian Romanick
2007-06-28nouveau/nv50: skeletal backendBen Skeggs
2007-06-26Add support SiS based XGI chips to SiS DRM.Ian Romanick
2007-06-05Add support for the G33, Q33, and Q35 chipsets.Wang Zhenyu
2007-05-31i915: Add support for 945GME chipWang Zhenyu
2007-05-31i915: Add support for 965GME/GLE chip.Wang Zhenyu
2007-05-26radeon: add other IGP chipsetsDave Airlie
2007-04-26Revert "bug 7092 : add pci ids for mach64 in Dell poweredge 4200"George Sapountzis
2007-04-23nouveau: fix wacky pci idStephane Marchesin
2007-04-09radeon: add support for reverse engineered xpress200mDave Airlie
2007-03-07Merge git://proxy01.pd.intel.com:9419/git/mesa/drm into crestlineNian Wu
2007-03-07Add via CX700.Thomas Hellstrom
2007-02-13i915: Add 965GM pci id updateWang Zhenyu
2007-02-07Add chip family flags to i915 driver, and fix a missing '"' in mach64 ID list.Eric Anholt
2007-01-19nouveau: re-add 6150 Go pciid (0x0244)Ben Skeggs
2007-01-18add missing quadro idDave Jones
2006-12-28Add some new via chipsets.Thomas Hellstrom
2006-12-03Merge the pciid work.Stephane Marchesin
2006-11-04Add some getparams.Stephane Marchesin
pan class="hl str">", version->date ? version->date : "?"); printf(" Desc: %s\n", version->desc ? version->desc : "?"); drmFreeVersion(version); } else { printf(" No version information available\n"); } } static void getbusid(int fd) { const char *busid = drmGetBusid(fd); printf(" Busid: %s\n", *busid ? busid : "(not set)"); drmFreeBusid(busid); } static void getvm(int fd) { int i; const char *typename; char flagname[33]; drm_handle_t offset; drmSize size; drmMapType type; drmMapFlags flags; drm_handle_t handle; int mtrr; printf(" VM map information:\n"); printf(" flags: (R)estricted (r)ead/(w)rite (l)ocked (k)ernel (W)rite-combine (L)ock:\n"); printf(" slot offset size type flags address mtrr\n"); for (i = 0; !drmGetMap(fd, i, &offset, &size, &type, &flags, &handle, &mtrr); i++) { switch (type) { case DRM_FRAME_BUFFER: typename = "FB"; break; case DRM_REGISTERS: typename = "REG"; break; case DRM_SHM: typename = "SHM"; break; case DRM_AGP: typename = "AGP"; break; case DRM_SCATTER_GATHER: typename = "SG"; break; default: typename = "???"; break; } flagname[0] = (flags & DRM_RESTRICTED) ? 'R' : ' '; flagname[1] = (flags & DRM_READ_ONLY) ? 'r' : 'w'; flagname[2] = (flags & DRM_LOCKED) ? 'l' : ' '; flagname[3] = (flags & DRM_KERNEL) ? 'k' : ' '; flagname[4] = (flags & DRM_WRITE_COMBINING) ? 'W' : ' '; flagname[5] = (flags & DRM_CONTAINS_LOCK) ? 'L' : ' '; flagname[6] = '\0'; printf(" %4d 0x%08lx 0x%08lx %3.3s %6.6s 0x%08lx ", i, offset, (unsigned long)size, typename, flagname, handle); if (mtrr < 0) printf("none\n"); else printf("%4d\n", mtrr); } } static void getclients(int fd) { int i; int auth; int pid; int uid; unsigned long magic; unsigned long iocs; char buf[64]; char cmd[40]; int procfd; printf(" DRI client information:\n"); printf(" a pid uid magic ioctls prog\n"); for (i = 0; !drmGetClient(fd, i, &auth, &pid, &uid, &magic, &iocs); i++) { sprintf(buf, "/proc/%d/cmdline", pid); memset(cmd, 0, sizeof(cmd)); if ((procfd = open(buf, O_RDONLY, 0)) >= 0) { read(procfd, cmd, sizeof(cmd)-1); close(procfd); } if (*cmd) { char *pt; for (pt = cmd; *pt; pt++) if (!isprint(*pt)) *pt = ' '; printf(" %c %5d %5d %10lu %10lu %s\n", auth ? 'y' : 'n', pid, uid, magic, iocs, cmd); } else { printf(" %c %5d %5d %10lu %10lu\n", auth ? 'y' : 'n', pid, uid, magic, iocs); } } } static void printhuman(unsigned long value, const char *name, int mult) { const char *p; double f; /* Print width 5 number in width 6 space */ if (value < 100000) { printf(" %5lu", value); return; } p = name; f = (double)value / (double)mult; if (f < 10.0) { printf(" %4.2f%c", f, *p); return; } p++; f = (double)value / (double)mult; if (f < 10.0) { printf(" %4.2f%c", f, *p); return; } p++; f = (double)value / (double)mult; if (f < 10.0) { printf(" %4.2f%c", f, *p); return; } } static void getstats(int fd, int i) { drmStatsT prev, curr; int j; double rate; printf(" System statistics:\n"); if (drmGetStats(fd, &prev)) return; if (!i) { for (j = 0; j < prev.count; j++) { printf(" "); printf(prev.data[j].long_format, prev.data[j].long_name); if (prev.data[j].isvalue) printf(" 0x%08lx\n", prev.data[j].value); else printf(" %10lu\n", prev.data[j].value); } return; } printf(" "); for (j = 0; j < prev.count; j++) if (!prev.data[j].verbose) { printf(" "); printf(prev.data[j].rate_format, prev.data[j].rate_name); } printf("\n"); for (;;) { sleep(i); if (drmGetStats(fd, &curr)) return; printf(" "); for (j = 0; j < curr.count; j++) { if (curr.data[j].verbose) continue; if (curr.data[j].isvalue) { printf(" %08lx", curr.data[j].value); } else { rate = (curr.data[j].value - prev.data[j].value) / (double)i; printhuman(rate, curr.data[j].mult_names, curr.data[j].mult); } } printf("\n"); memcpy(&prev, &curr, sizeof(prev)); } } int main(int argc, char **argv) { int c; int mask = 0; int minor = 0; int interval = 0; int fd; char buf[64]; int i; while ((c = getopt(argc, argv, "avmcsbM:i:")) != EOF) switch (c) { case 'a': mask = ~0; break; case 'v': mask |= DRM_VERSION; break; case 'm': mask |= DRM_MEMORY; break; case 'c': mask |= DRM_CLIENTS; break; case 's': mask |= DRM_STATS; break; case 'b': mask |= DRM_BUSID; break; case 'i': interval = strtol(optarg, NULL, 0); break; case 'M': minor = strtol(optarg, NULL, 0); break; default: fprintf( stderr, "Usage: dristat [options]\n\n" ); fprintf( stderr, "Displays DRM information. Use with no arguments to display available cards.\n\n" ); fprintf( stderr, " -a Show all available information\n" ); fprintf( stderr, " -b Show DRM bus ID's\n" ); fprintf( stderr, " -c Display information about DRM clients\n" ); fprintf( stderr, " -i [interval] Continuously display statistics every [interval] seconds\n" ); fprintf( stderr, " -v Display DRM module and card version information\n" ); fprintf( stderr, " -m Display memory use information\n" ); fprintf( stderr, " -s Display DRM statistics\n" ); fprintf( stderr, " -M [minor] Select card by minor number\n" ); return 1; } for (i = 0; i < 16; i++) if (!minor || i == minor) { sprintf(buf, DRM_DEV_NAME, DRM_DIR_NAME, i); fd = drmOpenMinor(i, 1, DRM_NODE_RENDER); if (fd >= 0) { printf("%s\n", buf); if (mask & DRM_BUSID) getbusid(fd); if (mask & DRM_VERSION) getversion(fd); if (mask & DRM_MEMORY) getvm(fd); if (mask & DRM_CLIENTS) getclients(fd); if (mask & DRM_STATS) getstats(fd, interval); close(fd); } } return 0; }