Bug 73511 - clinfo mises Max clock frequency on r600
Summary: clinfo mises Max clock frequency on r600
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-11 21:47 UTC by Fabian Deutsch
Modified: 2017-03-15 02:43 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
[PATCH rebased] drm/radeon: add query to fetch the max engine clock. (2.42 KB, patch)
2014-01-15 07:26 UTC, Igor Gnatenko
Details | Splinter Review
[PATCH v2 rebased 1/3] gallium: Add PIPE_COMPUTE_CAP_MAX_CLOCK_FREQUENCY (842 bytes, patch)
2014-02-18 14:48 UTC, Igor Gnatenko
Details | Splinter Review
[PATCH v2 rebased 2/3] radeon/compute: Implement PIPE_COMPUTE_CAP_MAX_CLOCK_FREQUENCY (2.54 KB, patch)
2014-02-18 14:48 UTC, Igor Gnatenko
Details | Splinter Review
[PATCH v2 rebased 3/3] clover: Query drivers for max clock frequency (2.38 KB, patch)
2014-02-18 14:49 UTC, Igor Gnatenko
Details | Splinter Review

Description Fabian Deutsch 2014-01-11 21:47:22 UTC
$ clinfo
Number of platforms                               1
  Platform Name                                   Default
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 MESA 10.0.2
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd

  Platform Name                                   Default
Number of devices                                 1
  Device Name                                     AMD PALM
  Device Vendor                                   X.Org
  Device Version                                  OpenCL 1.1 MESA 10.0.2
  Driver Version                                  10.0.2
  Device OpenCL C Version                         OpenCL C 1.1
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Max compute units                               1
  Max clock frequency                             0MHz           <-- Is missing
  Device Partition                                (n/a)
  Max work item dimensions                        3
    Max work item size[0]                         256
    Max work item size[1]                         256
    Max work item size[2]                         256
  Max work group size                             256
  Preferred work group size multiple              1
  Preferred / native vector sizes                 
    char                                                16 / 16      
    short                                                8 / 8       
    int                                                  4 / 4       
    long                                                 2 / 2       
    half                                                 0 / 0        (n/a)
    float                                                4 / 4       
    double                                               2 / 2        (n/a)
  Half-precision   Floating-point support         (n/a)      <--- Is there floating-point support?
  Single-precision Floating-point support        
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Correctly-rounded divide and sqrt operations  No
    Support is emulated in software               No
  Double-precision Floating-point support         (n/a)
  Address bits                                    32, Little-Endian
  Global memory size                              201326592 (   192MB)
  Error Correction support                        No
  Max memory allocation                           50331648 (    48MB)
  Unified memory for Host and Device              Yes
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       128 bits (16 bytes)
  Global Memory cache type                        None
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max 2D image size                             32768x32768 pixels
    Max 3D image size                             32768x32768x32768 pixels
    Max number of read image args                 32
    Max number of write image args                32
  Local memory type                               Local
  Local memory size                               32768 (    32KB)
  Max constant buffer size                        65536 (    64KB)
  Max number of constant args                     13
  Max size of kernel argument                     1024
  Queue properties                                
    Out-of-order execution                        No
    Profiling                                     Yes
  Profiling timer resolution                      0ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
  Device Available                                Yes
  Compiler Available                              Yes
  Device Extensions
Comment 1 Tom Stellard 2014-01-14 19:31:55 UTC
This is unsupported at the moment.  To get this to work you would need to add GPU clock speed to the RADEON_INFO ioctl in the kernel and also add a PIPE_COMPUTE_CAP for it.  This shouldn't be too difficult to do, if you are interested.
Comment 3 Tom Stellard 2014-01-14 20:47:44 UTC
Here are the mesa changes: http://cgit.freedesktop.org/~tstellar/mesa/log/?h=clover-clock

Can you test these?  I have only compile tested them.
Comment 4 Igor Gnatenko 2014-01-15 07:26:28 UTC
Created attachment 92115 [details] [review]
[PATCH rebased] drm/radeon: add query to fetch the max engine clock.

(In reply to comment #2)
> Here's the kernel patch:
> http://people.freedesktop.org/~agd5f/0001-drm-radeon-add-query-to-fetch-the-
> max-engine-clock.patch
This patch doesn't apply to latest git tree. I've rebased it.
Comment 5 Tom Stellard 2014-01-20 21:35:09 UTC
(In reply to comment #4)
> Created attachment 92115 [details] [review] [review]
> [PATCH rebased] drm/radeon: add query to fetch the max engine clock.
> 
> (In reply to comment #2)
> > Here's the kernel patch:
> > http://people.freedesktop.org/~agd5f/0001-drm-radeon-add-query-to-fetch-the-
> > max-engine-clock.patch
> This patch doesn't apply to latest git tree. I've rebased it.

Have you been able to test the patches?  Do they work?
Comment 6 Igor Gnatenko 2014-02-18 14:48:17 UTC
Created attachment 94288 [details] [review]
[PATCH v2 rebased 1/3] gallium: Add  PIPE_COMPUTE_CAP_MAX_CLOCK_FREQUENCY

Tom, I've rebased you patches from your clover-clock branch. Kernel changes already merged.
Comment 7 Igor Gnatenko 2014-02-18 14:48:38 UTC
Created attachment 94289 [details] [review]
[PATCH v2 rebased 2/3] radeon/compute: Implement  PIPE_COMPUTE_CAP_MAX_CLOCK_FREQUENCY
Comment 8 Igor Gnatenko 2014-02-18 14:49:05 UTC
Created attachment 94290 [details] [review]
[PATCH v2 rebased 3/3] clover: Query drivers for max clock frequency
Comment 9 Tom Stellard 2014-04-29 23:03:00 UTC
I've committed these patches.  This will require a 3.14 or newer kernel.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.