Date:2010-04-12 22:21:53 (12 years 5 months ago)
Author:Jerome Glisse
Commit:1b5331d9c6ae1f68db6359d227531ec42bc40d47
Message:drm/radeon/kms: print GPU family and device id when loading

This will help figuring out GPU when looking at bugs log.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Files: drivers/gpu/drm/radeon/radeon_device.c (3 diffs)
drivers/gpu/drm/radeon/radeon_family.h (2 diffs)

Change Details

drivers/gpu/drm/radeon/radeon_device.c
3535#include "radeon.h"
3636#include "atom.h"
3737
38static const char radeon_family_name[][16] = {
39    "R100",
40    "RV100",
41    "RS100",
42    "RV200",
43    "RS200",
44    "R200",
45    "RV250",
46    "RS300",
47    "RV280",
48    "R300",
49    "R350",
50    "RV350",
51    "RV380",
52    "R420",
53    "R423",
54    "RV410",
55    "RS400",
56    "RS480",
57    "RS600",
58    "RS690",
59    "RS740",
60    "RV515",
61    "R520",
62    "RV530",
63    "RV560",
64    "RV570",
65    "R580",
66    "R600",
67    "RV610",
68    "RV630",
69    "RV670",
70    "RV620",
71    "RV635",
72    "RS780",
73    "RS880",
74    "RV770",
75    "RV730",
76    "RV710",
77    "RV740",
78    "CEDAR",
79    "REDWOOD",
80    "JUNIPER",
81    "CYPRESS",
82    "HEMLOCK",
83    "LAST",
84};
85
3886/*
3987 * Clear GPU surface registers.
4088 */
...... 
525573    int r;
526574    int dma_bits;
527575
528    DRM_INFO("radeon: Initializing kernel modesetting.\n");
529576    rdev->shutdown = false;
530577    rdev->dev = &pdev->dev;
531578    rdev->ddev = ddev;
...... 
537584    rdev->mc.gtt_size = radeon_gart_size * 1024 * 1024;
538585    rdev->gpu_lockup = false;
539586    rdev->accel_working = false;
587
588    DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X).\n",
589        radeon_family_name[rdev->family], pdev->vendor, pdev->device);
590
540591    /* mutex initialization are all done here so we
541592     * can recall function without having locking issues */
542593    mutex_init(&rdev->cs_mutex);
drivers/gpu/drm/radeon/radeon_family.h
3636 * Radeon chip families
3737 */
3838enum radeon_family {
39    CHIP_R100,
39    CHIP_R100 = 0,
4040    CHIP_RV100,
4141    CHIP_RS100,
4242    CHIP_RV200,
...... 
9999    RADEON_IS_PCI = 0x00800000UL,
100100    RADEON_IS_IGPGART = 0x01000000UL,
101101};
102
102103#endif

Archive Download the corresponding diff file



interactive