ChangeLog revision 504d986f
1commit a00032050873fc99f3ceaa3293468dad1d94d4b1
2Author: Michel Dänzer <michel.daenzer@amd.com>
3Date:   Thu Nov 17 15:17:10 2016 +0900
4
5    Bump version for 1.2.0 release
6
7commit a446b3af9b055056e9fb0f37069b08b979eba277
8Author: Michel Dänzer <michel.daenzer@amd.com>
9Date:   Thu Nov 17 15:13:59 2016 +0900
10
11    manpage updates for the 1.2.0 release
12    
13    Option "TearFree" is now effective for arbitrary transforms as well.
14    
15    Point to the amd-gfx mailing list instead of xorg-driver-ati.
16
17commit 24e36c7044a24294d5709c0306efacc8de6df072
18Author: Michel Dänzer <michel.daenzer@amd.com>
19Date:   Thu Nov 10 12:30:10 2016 +0900
20
21    Use pAMDGPUEnt to find both screens of a GPU in amdgpu_mode_hotplug
22    
23    Fixes misbehaviour when hotplugging DisplayPort connectors on secondary
24    GPUs.
25    
26    Fixes: 14606e127f4b ("Handle Zaphod mode correctly in amdgpu_mode_hotplug")
27    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98626
28    (Ported from radeon commit 9760ef33cba5795eddeda4d5c2fcbe2dcce21689)
29    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
30
31commit 257be5b0853814a557a5337878a4311acbc89856
32Author: Michel Dänzer <michel.daenzer@amd.com>
33Date:   Thu Nov 10 12:28:03 2016 +0900
34
35    Refactor amdgpu_mode_hotplug
36    
37    Preparation for the next change, no functional change intended.
38    
39    (Cherry picked from radeon commit 35bec4937d89b48a79acfcb4f814b7370cb631b2)
40    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
41
42commit 1352a1d2f78cb0433d421ef86bfce2a5a1646807
43Author: Michel Dänzer <michel.daenzer@amd.com>
44Date:   Wed Nov 2 12:35:55 2016 +0900
45
46    Check Xorg version at runtime instead of build time in two places
47    
48    This means that all possible paths can be handled as intended, no matter
49    which Xorg version the driver happened to be compiled against.
50    
51    (Ported from radeon commit 350a2645a1b127227ff294c0b62d20000d0fd48a)
52    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
53
54commit 5da43c5da8adc139d57d89975a52eef91a5595e1
55Author: Michel Dänzer <michel.daenzer@amd.com>
56Date:   Tue Nov 1 16:01:24 2016 +0900
57
58    Require xserver 1.10 or newer
59    
60    1.10.0 was released in February 2011.
61    
62    We've been accidentally requiring 1.10 or newer since c7d27c94cb65 ("Keep
63    track of damage event related flushes per-client").
64    
65    (Ported from radeon commit 5df36de39952c3a26cb2fbc125f298139a9dd5bc)
66    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
67
68commit dd4a740714e481b09312a04883aa6e0f5200ca81
69Author: Michel Dänzer <michel.daenzer@amd.com>
70Date:   Thu Oct 27 11:22:36 2016 +0900
71
72    present: Check tiling info for flips
73    
74    The kernel driver doesn't handle flipping between buffers with
75    different tiling parameters correctly.
76    
77    Fixes display corruption with fullscreen apps using different tiling
78    modes (e.g. due to R600_DEBUG=notiling or R600_DEBUG=no2d) via DRI3.
79    
80    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
81
82commit 3c1f4386ba7d0b6c16bdd2b2178f978f2f154ba8
83Author: Michel Dänzer <michel.daenzer@amd.com>
84Date:   Wed Oct 26 16:19:01 2016 +0900
85
86    Consume all available udev events at once
87    
88    We get multiple udev events for actions like docking a laptop into its
89    station or plugging a monitor to the station. By consuming as many
90    events as we can, we reduce the number of output re-evalutions.
91    
92    It depends on the timing how many events can be consumed at once.
93    
94    (Inspired by xserver commit 363f4273dd4aec3e26cc57ecb6c20f27e6c813d8)
95    (Ported from radeon commit 22b5ce9548393ba2ff73ee234ecd82eeaf0ef6c4)
96    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
97
98commit c87dff3257e797cfd80d208c9a612b21978ff4eb
99Author: Hans de Goede <hdegoede@redhat.com>
100Date:   Wed Oct 26 16:17:04 2016 +0900
101
102    PRIME: Fix swapping of provider sink / source capabilities
103    
104    When a card has import capability it can be an offload _sink_, not a
105    source and vice versa for export capability.
106    
107    This went unnoticed sofar because most gpus have both import and export
108    capability.
109    
110    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
111    (Ported from xserver commit 94a1c77259ce39ba59ad87615df39b570ffab435)
112    (Ported from radeon commit 82d3c8f5500d2a6fb1495e217a0b79c396f1534c)
113    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
114
115commit 9c4416422f2d07dbfa7c0b18beb1353f122fc1a1
116Author: Michel Dänzer <michel.daenzer@amd.com>
117Date:   Wed Oct 26 16:15:42 2016 +0900
118
119    Always call PixmapStopDirtyTracking in drmmode_set_scanout_pixmap
120    
121    Otherwise, we may leak screen->pixmap_dirty_list entries if
122    drmmode_set_scanout_pixmap is called repatedly with ppix != NULL, which
123    can happen from RRReplaceScanoutPixmap.
124    
125    (Inspired by xserver commit b773a9c8126222e5fed2904d012fbf917a9f22fd)
126    (Ported from radeon commit 6c940446ddadf418ee4959e46fa552b6c1cf6704)
127    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
128
129commit 0a91f11c03400e3f92a2b048505f39e7de7e87fc
130Author: Michel Dänzer <michel.daenzer@amd.com>
131Date:   Wed Oct 26 16:14:45 2016 +0900
132
133    Don't rely on randr_crtc->scanout_pixmap in drmmode_set_scanout_pixmap
134    
135    RRReplaceScanoutPixmap may set randr_crtc->scanout_pixmap = NULL before
136    we get here.
137    
138    (Inspired by xserver commit f4c37eeee7953df1fe0e3196eda452acf0078e61)
139    v2: Always return TRUE in the if (!ppix) block.
140    (Cherry picked from radeon commit 61df12e2377cbb19a19ca9d5624df8959822da9f)
141    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
142
143commit b37f4774880bfd0cbe50273ac0d9c539d81995f9
144Author: Michel Dänzer <michel.daenzer@amd.com>
145Date:   Tue Oct 25 16:30:46 2016 +0900
146
147    Sayōnara, AM_MAINTAINER_MODE!
148    
149    If --enable-maintainer-mode got lost from config.status for any reason,
150    builds would fail in mysterious ways after changing between different
151    Git commits.
152    
153    There are more reasons for dropping it in the automake manual:
154    
155    https://www.gnu.org/software/automake/manual/html_node/maintainer_002dmode.html
156    
157    I'm not aware of any reason why --disable-maintainer-mode would ever be
158    useful with this project.
159    
160    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
161    (Cherry picked from radeon commit 49cf3b5032a7ce40afe514b7092440e3e19e05aa)
162
163commit c8d9ad0e188d3da3a35006a00536d61e23305830
164Author: Michel Dänzer <michel.daenzer@amd.com>
165Date:   Wed Oct 19 18:16:47 2016 +0900
166
167    Order unique chipsets according to first appearance in ati_pciids.csv
168    
169    Instead of lexically. This makes it more likely for similar generations
170    to be close to each other in the list of unique chipsets.
171    
172    (Ported from radeon commit 1ce1b1656acc6211deb2091ff7f28d51b6daf86b,
173     plus change $numunique++ => ++$numunique to fix OLAND getting listed
174     twice)
175    
176    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
177
178commit 7cc04035c55788261cda89a915c433c2add6cad9
179Author: Michel Dänzer <michel.daenzer@amd.com>
180Date:   Wed Sep 28 15:59:22 2016 +0900
181
182    Enable HW cursor support with PRIME slave output & Xorg > 1.18.99.901
183    
184    Supported since Xorg 1.18.99.2, but buggy until 1.18.99.901.
185    
186    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
187
188commit d42773eb45baff5933730e26878a0b45fcf07b65
189Author: Michel Dänzer <michel.daenzer@amd.com>
190Date:   Wed Sep 28 18:17:53 2016 +0900
191
192    Rotate and reflect cursor hotspot position for drmModeSetCursor2
193    
194    We were always passing the hotspot position in the X screen coordinate
195    space, but drmModeSetCursor2 needs it in the CRTC coordinate space. The
196    wrong hotspot position would cause the kernel driver to adjust the
197    HW cursor position incorrectly when the hotspot position changed.
198    
199    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
200
201commit bdee9f4dd4f21015e7696e06c4b485ab2b3a16dc
202Author: Michel Dänzer <michel.daenzer@amd.com>
203Date:   Wed Aug 31 16:46:56 2016 +0900
204
205    Add support for ScreenPtr::SyncSharedPixmap
206    
207    This allows deferring shared pixmap updates between different drivers.
208    
209    (Ported from radeon commit 53be26b00e83f871f0afd39caa5a7a1d6ec4aea1)
210    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
211
212commit 97d7386caf7ba53d2cf398b8a9bb65d0a2a4770a
213Author: Michel Dänzer <michel.daenzer@amd.com>
214Date:   Fri Sep 16 16:36:23 2016 +0900
215
216    Untangle HAS_XORG_CONF_DIR / --with-xorg-conf-dir lines in configure.ac
217    
218    $sysconfigdir used to be part of the default --with-xorg-conf-dir value,
219    but it no longer is.
220    
221    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
222
223commit aa8a3fa2468094cd37959179e8417ba7ba0a326c
224Author: Michel Dänzer <michel.daenzer@amd.com>
225Date:   Fri Sep 16 15:59:16 2016 +0900
226
227    Fix handling of configure option --with-xorg-conf-dir
228    
229    There were two problems:
230    
231    I accidentally changed the variable name in the AC_ARG_WITH stanza from
232    configdir to xorgconfigdir, so specifying --with-xorg-conf-dir wouldn't
233    work correctly. Fix this back to configdir.
234    
235    If neither --with-xorg-conf-dir nor --prefix is specified on the command
236    line, the $prefix variable doesn't contain "/usr/local" (the default
237    prefix) yet at this point but "NONE". So make install would attempt to
238    install 10-amdgpu.conf in ${DESTDIR}NONE/share/X11/xorg.conf.d/ . Fix
239    this by leaving ${prefix} verbatim in the default value, to be resolved
240    by make.
241    
242    Also print the configdir value along with the values of other similar
243    configuration variables.
244    
245    Reported-by: Timo Aaltonen <tjaalton@debian.org>
246    Reviewed-by: Julien Cristau <jcristau@debian.org>
247
248commit cd3acb75718dfd42dd25d58b4e7bd4db27b659d8
249Author: Michel Dänzer <michel.daenzer@amd.com>
250Date:   Wed Sep 14 18:33:42 2016 +0900
251
252    Use --with-xorg-conf-dir=$prefix/share/X11/xorg.conf.d by default
253    
254    We were using the result of `pkg-config --variable=sysconfigdir
255    xorg-server` before, which may not be inside $prefix, so make install
256    might fail for 10-amdgpu.conf .
257    
258    Fixes make distcheck in that case, and possibly also 10-amdgpu.conf
259    seemingly missing from some distribution packages.
260    
261    This matches what some (though not all) input drivers are doing for their
262    xorg.conf.d snippets.
263
264commit 0f8df8584ad61a3e47fe303b34cd7b0c4ed08bb0
265Author: Michel Dänzer <michel.daenzer@amd.com>
266Date:   Thu Sep 8 18:14:49 2016 +0900
267
268    Make TearFree effective with PRIME slave scanout
269    
270    TearFree can now prevent tearing with any possible display
271    configuration.
272    
273    Note that there may still be inter-GPU tearing if the primary GPU uses
274    a different driver.
275    
276    (Ported from radeon commit 38797a33117222dadbc89e5f21ed8cd5deef9bea)
277    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
278
279commit d6feed2cd78fe879aba4860a6d9bc2e388b9f135
280Author: Michel Dänzer <michel.daenzer@amd.com>
281Date:   Thu Sep 8 17:56:24 2016 +0900
282
283    Synchronize scanout pixmaps for TearFree
284    
285    Copy the damaged areas which are still valid in the other scanout pixmap
286    from there, then only copy the remaining damaged area from the screen
287    pixmap.
288    
289    This is slightly more efficient (only needs one Damage record instead of
290    two, and only needs to copy each screen update across PCIe once with
291    ShadowPrimary and a discrete GPU), and will be significantly more
292    efficient for PRIME with the following change.
293    
294    (Ported from radeon commit eda1f3df6aaed683036369fe8820da4dac3c2ae2)
295    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
296
297commit 4927b84ec84bc0cb5055686cca6be54390f82803
298Author: Michel Dänzer <michel.daenzer@amd.com>
299Date:   Thu Sep 8 17:52:25 2016 +0900
300
301    Move up amdgpu_scanout_extents_intersect
302    
303    Will be needed higher up by the following changes. No functional change.
304    
305    (Ported from radeon commit 2f6e5fb15f1a9ce523c85550e493f8bda9d0c00f)
306    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
307
308commit 1c725f63961746258f6138b47037ec18bf508d78
309Author: Michel Dänzer <michel.daenzer@amd.com>
310Date:   Thu Sep 8 17:45:32 2016 +0900
311
312    Factor out transform_region helper
313    
314    (Ported from radeon commit 5a57005178fc13b6f7e513458ca6dae72a3e5783)
315    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
316
317commit c92842764f95fa09e145d81f80e9fa39ea8c453c
318Author: Michel Dänzer <michel.daenzer@amd.com>
319Date:   Thu Sep 8 17:26:18 2016 +0900
320
321    Only copy from screen pixmap to shared pixmap on demand for slave scanout
322    
323    Only copy once for each time we update the corresponding scanout pixmap.
324    This can significantly reduce the bandwidth usage when there are
325    frequent updates to the screen pixmap.
326    
327    This initial implementation only works when both the master and slave
328    screens use this driver.
329    
330    (Ported from radeon commit 99232f64db52812a843cd616d263d3a6b90eef3d)
331    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
332
333commit 61ceefe17fe9e6ffbaaad0e216b2bd37fd39f47d
334Author: Michel Dänzer <michel.daenzer@amd.com>
335Date:   Thu Sep 8 17:15:03 2016 +0900
336
337    Track damage accurately for RandR 1.4 slave scanout
338    
339    This further reduces the PCIe bandwidth usage.
340    
341    (Ported from radeon commit b0867063abb197b9134166706d99fcbe5f204bb5,
342     plus leak fix from 5a57005178fc13b6f7e513458ca6dae72a3e5783)
343    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
344
345commit 6d31fb124d4418e64c949bde9ed1facf95967762
346Author: Michel Dänzer <michel.daenzer@amd.com>
347Date:   Thu Sep 8 17:04:05 2016 +0900
348
349    Handle RandR 1.4 slave dirty updates via amdgpu_drm_queue
350    
351    This reduces PCIe bandwidth usage and tearing.
352    
353    (Ported from radeon commit ad0a0656dd0e74683e6d7789decba827aa29c221)
354    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
355
356commit b10ecdbd89b0a60a990c78c3e53bab6c4c96fe9f
357Author: Michel Dänzer <michel.daenzer@amd.com>
358Date:   Thu Sep 8 16:48:59 2016 +0900
359
360    Use drmmode_crtc_scanout_* helpers for RandR 1.4 scanout pixmaps
361    
362    This should allow using multiple CRTCs via RandR 1.4 even with xserver
363    < 1.17. It also simplifies the code a little, and paves the way for
364    following changes.
365    
366    (Ported from radeon commits 4cfa4615f79f64062e5e771cd45dd7048f48b4f6
367     and a92c27484703abc7c410b6ae0e4b8d1efbbb8e6f)
368    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
369
370commit 9565981f751b0884cbfa885b8f3af3d41a965a2b
371Author: Michel Dänzer <michel.daenzer@amd.com>
372Date:   Wed Sep 7 18:49:54 2016 +0900
373
374    Wait for pending flips to complete before turning off an output or CRTC
375    
376    At least with older kernels, the flip may never complete otherwise,
377    which can result in us hanging in drmmode_set_mode_major.
378    
379    Fixes: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170
380    
381    (Ported from radeon commits 9090309e057dc703d1a5bffd88e6cae14108cfc3,
382     e520ce0ec0adf91ddce5c932d4b3f9477fd49304,
383     a36fdaff40d5b4795a1400c348a80eee94892212 and
384     4bd2d01552f18153afa03a8947b22eebf3d67c6b)
385    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
386
387commit c7d27c94cb656899746898c2e55407c3e3d7cdc8
388Author: Michel Dänzer <michel.daenzer@amd.com>
389Date:   Wed Sep 7 18:28:23 2016 +0900
390
391    Keep track of damage event related flushes per-client
392    
393    This further reduces the compositing slowdown due to flushing overhead,
394    by only flushing when the X server actually sends XDamageNotify events
395    to a client, and there hasn't been a flush yet in the meantime.
396    
397    (Ported from radeon commit 121a6de72da5fcf9a32408eff36b2235f3dfbcfe)
398    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
399
400commit 58773d1945cfa8155d8a6c5eb3f95097535604ef
401Author: Michel Dänzer <michel.daenzer@amd.com>
402Date:   Wed Sep 7 18:14:10 2016 +0900
403
404    Use EventCallback to avoid flushing every time in the FlushCallback
405    
406    We only need to flush for XDamageNotify events.
407    
408    Significantly reduces compositing slowdown due to flushing overhead, in
409    particular with glamor.
410    
411    (Ported from radeon commit 9a1afbf61fbb2827c86bd86d295fa0848980d60b)
412    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
413
414commit d166d04f6951f6a48d7d5ce5d31bba857fe0cb06
415Author: Michel Dänzer <michel.daenzer@amd.com>
416Date:   Wed Sep 7 18:03:05 2016 +0900
417
418    Add explicit AMDGPU_DRM_QUEUE_ERROR define
419    
420    Should make the amdgpu_drm_queue_alloc error handling clearer, and gets
421    rid of a compile warning about it returning NULL.
422    
423    (Ported from radeon commit a37af701768b12d86868a831a79f1e02ee4968cf)
424    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
425
426commit 6a1ba044c2b71081e6060d0c096917d6238f2145
427Author: Michel Dänzer <michel.daenzer@amd.com>
428Date:   Mon Aug 29 16:43:59 2016 +0900
429
430    Only list each unique chipset family once in the log file
431    
432    Acked-by: Christian König <christian.koenig@amd.com>
433    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
434
435commit 7d050d15d49ef25e86e7abe88dafb52370715640
436Author: Michel Dänzer <michel.daenzer@amd.com>
437Date:   Mon Aug 29 16:13:20 2016 +0900
438
439    Add missing Kaveri PCI ID (1318)
440    
441    Found by comparing src/pcidb/ati_pciids.csv with xf86-video-ati.
442    
443    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
444
445commit aa5492660958e359bdc2107cba9a211ff988c90e
446Author: Michel Dänzer <michel.daenzer@amd.com>
447Date:   Mon Aug 29 15:52:48 2016 +0900
448
449    Add Mullins PCI IDs
450    
451    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97472
452    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
453
454commit 73c8dc000ad6b2b53ba3aa7155f5e8f6b55623b7
455Author: Qiang Yu <Qiang.Yu@amd.com>
456Date:   Mon Aug 22 19:13:26 2016 +0800
457
458    DRI2: Fix amdgpu_dri2_exchange_buffers width/height copy'n'paste error
459    
460    Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
461    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
462    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
463
464commit 5a4d3267ac3823fe58b51b0b9075b82375d7180c
465Author: Michel Dänzer <michel.daenzer@amd.com>
466Date:   Wed Aug 17 18:57:01 2016 +0900
467
468    Remove unused lut_r/g/b arrays from drmmode_crtc_private_rec
469    
470    Fixes: 1091f28e1fa2 ("Remove drmmode_load_palette")
471    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
472
473commit c4364520691d18961f0a6b77071baeeffaa80a11
474Author: Marek Olšák <marek.olsak@amd.com>
475Date:   Fri Aug 19 12:42:38 2016 +0200
476
477    Fix cursor size for SI
478    
479    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
480    Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
481
482commit 2eb5d77b841e55e7328df4b95c0d41fec30ce10f
483Author: Ronie Salgado <roniesalg@gmail.com>
484Date:   Thu Feb 11 03:00:14 2016 -0300
485
486    Add SI PCI IDs
487    
488    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
489
490commit abd1a7901c95e4bc78415cf1b7923623b9177152
491Author: Michel Dänzer <michel.daenzer@amd.com>
492Date:   Wed Jun 29 17:54:26 2016 +0900
493
494    DRI2: Add interpolated_vblanks in amdgpu_dri2_get_crtc_msc
495    
496    We need that in amdgpu_dri2_drawable_crtc as well for priv->vblank_delta
497    to work as intended.
498    
499    amdgpu_dri2_get_msc was already doing this.
500    
501    Fixes hangs in some cases when using VDPAU via DRI2 and moving the
502    window between CRTCs.
503    
504    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
505
506commit 978242977e5dc905e1d5a46b1b0d34b356c7af26
507Author: Qiang Yu <Qiang.Yu@amd.com>
508Date:   Wed Jul 13 19:25:12 2016 +0800
509
510    Fix amdgpu_mode_hotplug crash on multi GPU platform.
511    
512    On multi GPU platform, some screen is created by other GPU DDX.
513    
514    Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
515    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
516
517commit fdd1209e26128b3e894f2867fac3a1b08fe1f29e
518Author: Keith Packard <keithp@keithp.com>
519Date:   Tue Jul 19 09:16:32 2016 -0700
520
521    Use NotifyFd for drm fd
522    
523    NotifyFd is available after API 22, and must be used after API 23.
524    
525    Signed-off-by: Keith Packard <keithp@keithp.com>
526
527commit 17c0cf49746a20fb25610c24a40c441f88c08365
528Author: Adam Jackson <ajax@redhat.com>
529Date:   Tue Jul 19 10:03:56 2016 -0400
530
531    Adapt Block/WakeupHandler signature for ABI 23
532    
533    Signed-off-by: Adam Jackson <ajax@redhat.com>
534
535commit b5e2b964b7884c205a7c0fa578e05e867c176fcc
536Author: Michel Dänzer <michel.daenzer@amd.com>
537Date:   Wed Jul 6 17:46:56 2016 +0900
538
539    Only use RandR APIs if RandR is enabled
540    
541    Fixes crash with Xinerama enabled, which disables RandR.
542    
543    Fixes: https://bugs.debian.org/827984
544    
545    (Ported from radeon commit 3be841d0ae7d505cef325993205b12d15e98dba9)
546    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
547
548commit 84496ebc89a9973347c774c13ff6f4667fcdbe69
549Author: Michel Dänzer <michel.daenzer@amd.com>
550Date:   Wed Jul 6 17:43:36 2016 +0900
551
552    Add .editorconfig file
553    
554    Basically a conversion from .dir-locals.el. EditorConfig supports many
555    more editors and IDEs.
556    
557    (Ported from radeon commit aa07b365d7b0610411e118f105e49daff5f5a5cf)
558    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
559
560commit a576430526cbc404de64b30e1377a356644e8024
561Author: Michel Dänzer <michel.daenzer@amd.com>
562Date:   Fri Jun 24 16:28:25 2016 +0900
563
564    Clear damage in amdgpu_scanout_update if it doesn't intersect the CRTC
565    
566    There's no need to test that same damage again.
567    
568    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
569
570commit ede7f2bcae63be65e05e3029bfe7c742e5978932
571Author: Michel Dänzer <michel.daenzer@amd.com>
572Date:   Fri Jun 24 16:19:15 2016 +0900
573
574    Remove w/h parameters from amdgpu_scanout_extents_intersect
575    
576    We can use the dimensions of the CRTC's mode instead.
577    
578    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
579
580commit bf000ea7ef91f5ecb59fc3c1ab8ed9eddcc0841d
581Author: Michel Dänzer <michel.daenzer@amd.com>
582Date:   Thu Jun 23 17:28:16 2016 +0900
583
584    Make the dedicated scanout mechanism work with arbitrary transforms v2
585    
586    This makes TearFree work with arbitrary transforms, and makes transforms
587    work better even without TearFree, with xserver >= 1.12.
588    
589    v2: Preserve clamping of transformed damage extents to CRTC boundaries.
590    
591    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
592
593commit d96dabc71b1b32dc4b422a9633cdd4e0e95da052
594Author: Michel Dänzer <michel.daenzer@amd.com>
595Date:   Thu Jun 23 16:27:45 2016 +0900
596
597    Destroy all dedicated scanout buffers during CloseScreen
598    
599    Fixes leaking active scanout buffers across a server reset, which also
600    fixes server reset with glamor and active scanout buffers.
601    
602    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
603
604commit 1091f28e1fa239ee1a973d84a8376fa4a95d7247
605Author: Michel Dänzer <michel.daenzer@amd.com>
606Date:   Thu Jun 23 12:47:04 2016 +0900
607
608    Remove drmmode_load_palette
609    
610    Not used by any supported version of xserver.
611    
612    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
613
614commit 4d506c23c9a628204fa23607931557b07ada3e31
615Author: Michel Dänzer <michel.daenzer@amd.com>
616Date:   Wed Jun 22 17:16:24 2016 +0900
617
618    present: Separate checks for flips vs unflips v2
619    
620    All unflip checks apply to flips as well, but not vice versa.
621    
622    v2: Add comment above amdgpu_present_check_unflip (Alex)
623    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
624
625commit decabd574f90d3df397c80ec931b3fde8a4afb49
626Author: Michel Dänzer <michel.daenzer@amd.com>
627Date:   Wed Jun 22 17:43:41 2016 +0900
628
629    dri2: Don't allow flipping when using a dedicated scanout buffer
630    
631    Fixes issues when mixing rotation and page flipping with current xserver
632    Git master.
633    
634    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
635
636commit 3ed28ce7cd26f89969617ba901ff253091d0d469
637Author: Michel Dänzer <michel.daenzer@amd.com>
638Date:   Wed Jun 22 16:54:01 2016 +0900
639
640    present: Don't allow flipping when using a dedicated scanout buffer
641    
642    Fixes issues when mixing rotation and page flipping with current xserver
643    Git master.
644    
645    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
646
647commit 9c3324715fd395fd486ea341654d78f4f298b97f
648Author: Michel Dänzer <michel.daenzer@amd.com>
649Date:   Wed Jun 22 16:12:32 2016 +0900
650
651    Make sure drmmode_crtc->scanout[] are destroyed when not needed
652    
653    We failed to do this when going back to scanning out directly from the
654    screen pixmap.
655    
656    As a bonus, since we now destroy drmmode_crtc->scanout[] after setting
657    the new scanout buffer, we may avoid the CRTC turning off intermittently
658    in this case.
659    
660    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
661
662commit 3bce0519a4008cf87c0e31a7a579e10f5dcdd2f3
663Author: Michel Dänzer <michel.daenzer@amd.com>
664Date:   Wed Jun 22 16:19:07 2016 +0900
665
666    Simplify drmmode_set_mode_major error handling
667    
668    Initialize ret = FALSE and only set it to TRUE when we've succeeded.
669    
670    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
671
672commit a3ca1500703837cbb8d49c554199a25dea7d5e1e
673Author: Hans de Goede <hdegoede@redhat.com>
674Date:   Wed Jun 1 15:14:32 2016 +0200
675
676    Only add main fb if necessary
677    
678    If we're doing reverse-prime; or doing rotation the main fb is not used,
679    and there is no reason to add it in this case.
680    
681    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
682    (Ported from xserver commit 4313122dea0df9affc280ee698e929489061ccc6)
683    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
684
685commit 9ca1c24235ff5ab2e028333fc326e2eff008c574
686Author: Hans de Goede <hdegoede@redhat.com>
687Date:   Wed Jun 1 15:11:05 2016 +0200
688
689    Remove unnecessary fb addition from drmmode_xf86crtc_resize
690    
691    drmmode_set_mode_major() is the only user of drmmode->fb_id and will
692    create it if necessary.
693    
694    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
695    (Ported from xserver commit 877453212166fdc912e0d687cdecee11aba563b5)
696    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
697
698commit 0d42082108c264568e2aadd15ace70e72388bc65
699Author: Michel Dänzer <michel.daenzer@amd.com>
700Date:   Wed Jun 22 19:01:03 2016 +0900
701
702    Call amdgpu_glamor_create_screen_resources after ModifyPixmapHeader
703    
704    Otherwise, glamor doesn't pick up the new screen pixmap size and
705    continues using the old size, leaving garbage in some areas after
706    enlarging the screen.
707    
708    Fixes regression from commit c315c00e44afc91a7c8e2eab5af836d9643ebb88
709    ("Propagate failure from amdgpu_set_pixmap_bo").
710    
711    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
712
713commit e7e71eabbbccdeabcae1bc6fffabc27c272090ab
714Author: Michel Dänzer <michel.daenzer@amd.com>
715Date:   Mon Mar 28 18:49:15 2016 +0900
716
717    Adapt to XF86_CRTC_VERSION 7
718    
719    Now the HW cursor can be used with TearFree rotation.
720    
721    This also allows always using the separate scanout pixmap mechanism for
722    rotation, so that should be much smoother even without TearFree enabled.
723    
724    (Ported from radeon commit 7835558acdce318130ba4a09ef936fd675e3197d)
725    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
726
727commit 7f7f9825caf3983902491da27c16d14cd8bf9b7d
728Author: Michel Dänzer <michel.daenzer@amd.com>
729Date:   Mon Jun 13 18:58:49 2016 +0900
730
731    Free priv in amdgpu_set_pixmap_bo also if priv->bo == NULL
732    
733    Fixes memory leak when destroying pixmaps with priv->bo == NULL.
734    
735    Reported-by: Qiang Yu <qiang.yu@amd.com>
736    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
737
738commit 397aedafee437c125b8ac1feafb1c3b466842aeb
739Author: Michel Dänzer <michel.daenzer@amd.com>
740Date:   Mon Jun 13 18:34:11 2016 +0900
741
742    glamor: Fix leak of pixmap private when replacing BO
743    
744    Reported-by: Qiang Yu <qiang.yu@amd.com>
745    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
746
747commit 5b4a8a7a6ed70a50be252fa9b34d3b3a17cdf91a
748Author: Michel Dänzer <michel.daenzer@amd.com>
749Date:   Tue Jun 14 19:00:18 2016 +0900
750
751    Use amdgpu_set_pixmap_bo in amdgpu_set_shared_pixmap_backing
752    
753    Fixes leaking any existing pixmap private.
754    
755    While we're at it, also fix leaking the GBM BO if
756    amdgpu_glamor_create_textured_pixmap fails.
757    
758    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
759
760commit c315c00e44afc91a7c8e2eab5af836d9643ebb88
761Author: Michel Dänzer <michel.daenzer@amd.com>
762Date:   Wed Jun 15 17:20:36 2016 +0900
763
764    Propagate failure from amdgpu_set_pixmap_bo
765    
766    Preparation for the following fixes.
767    
768    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
769
770commit 74602c4221e3c84949fd69f690cbc66dcae384ea
771Author: Michel Dänzer <michel.daenzer@amd.com>
772Date:   Tue Jun 14 18:53:34 2016 +0900
773
774    glamor: Make amdgpu_glamor_create_textured_pixmap take amdgpu_buffer*
775    
776    Preparation for the following fixes.
777    
778    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
779
780commit 0007c2f018ba663303d91d847e7c085269a23062
781Author: Michel Dänzer <michel.daenzer@amd.com>
782Date:   Wed Jun 8 16:27:33 2016 +0900
783
784    glamor: Reallocate linear pixmap BO if necessary for DRI2 PRIME
785    
786    Fixes corruption when using DRI2 PRIME render offloading with the master
787    screen using this driver.
788    
789    Reported-by: Qiang Yu <qiang.yu@amd.com>
790    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
791    Tested-by: Qiang Yu <qiang.yu@amd.com>
792
793commit 5518bf5d793439b5bab369e5fc18de9a4a3b9dd6
794Author: Michel Dänzer <michel.daenzer@amd.com>
795Date:   Wed Jun 8 16:44:26 2016 +0900
796
797    Move DRI2's local fixup_glamor helper to amdgpu_glamor_set_pixmap_bo v2
798    
799    So it can be used outside of the DRI2 code.
800    
801    v2: Keep pixmap refcnt increment in amdgpu_dri2_create_buffer2 (Qiang Yu)
802    
803    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
804    Tested-by: Qiang Yu <qiang.yu@amd.com> (v1)
805
806commit 641f4647b7f51dfd2da330376cd10fa9702b6423
807Author: Michel Dänzer <michel.daenzer@amd.com>
808Date:   Wed Jun 8 16:39:10 2016 +0900
809
810    Consolidate get_drawable_pixmap helper
811    
812    There were two static helpers for the same purpose. Consolidate them
813    into a single inline helper which can be used anywhere.
814    
815    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
816    Tested-by: Qiang Yu <qiang.yu@amd.com>
817
818commit 8e40f190e4704c2802bf0f073f17e742786d0f18
819Author: Michel Dänzer <michel.daenzer@amd.com>
820Date:   Wed Jun 8 16:00:21 2016 +0900
821
822    Add amdgpu_pixmap_get_tiling_info
823    
824    Retrieves the tiling information about a pixmap BO from the kernel
825    driver.
826    
827    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
828    Tested-by: Qiang Yu <qiang.yu@amd.com>
829
830commit e7eeb6ad1133b6023d34b4489959ae330a8e15dd
831Author: Michel Dänzer <michel.daenzer@amd.com>
832Date:   Wed Jun 8 15:42:01 2016 +0900
833
834    Remove amdgpu_share_pixmap_backing
835    
836    Not used anymore.
837    
838    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
839    Tested-by: Qiang Yu <qiang.yu@amd.com>
840
841commit b36c77695ba77b59a0ccd868454e3af4fc04d5ff
842Author: Michel Dänzer <michel.daenzer@amd.com>
843Date:   Wed Jun 8 15:38:57 2016 +0900
844
845    glamor: Fix amdgpu_glamor_share_pixmap_backing for priv->bo == NULL
846    
847    Fixes crash when running a compositor and DRI_PRIME client via DRI2.
848    
849    Reported-by: Qiang Yu <qiang.yu@amd.com>
850    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
851    Tested-by: Qiang Yu <qiang.yu@amd.com>
852
853commit 60ced5026ebc34d9f32c7618430b6a7ef7c8eb4b
854Author: Alex Deucher <alexander.deucher@amd.com>
855Date:   Tue May 17 16:59:41 2016 -0400
856
857    add missing bonaire pci id
858    
859    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
860
861commit 8e89448ee00da16e05e6777f34bb75d2dd6f7025
862Author: Flora Cui <Flora.Cui@amd.com>
863Date:   Tue May 17 11:02:09 2016 +0800
864
865    Add more Polaris 11 PCI IDs
866    
867    Signed-off-by: Flora Cui <Flora.Cui@amd.com>
868    Reviewed-by: Christian König <christian.koenig@amd.com>
869    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
870
871commit a59b23d64285741a7a25e314343f6261046d980f
872Author: Flora Cui <Flora.Cui@amd.com>
873Date:   Mon May 16 17:25:34 2016 +0800
874
875    Add more Polaris 10 PCI IDs
876    
877    Signed-off-by: Flora Cui <Flora.Cui@amd.com>
878    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
879    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
880    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
881
882commit 14606e127f4b6eb0b00fd42cec13d524a67e4c4a
883Author: Michel Dänzer <michel.daenzer@amd.com>
884Date:   Thu May 12 16:38:56 2016 +0900
885
886    Handle Zaphod mode correctly in amdgpu_mode_hotplug
887    
888    We need to scan both screens of the entity for existing connectors, and
889    enumerate DVI & HDMI connectors consistently regardless of which screen
890    they're assigned to.
891    
892    Fixes crash when hot-(un)plugging connectors in Zaphod mode.
893    
894    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93415
895    (Ported from radeon commit c801f9f10a5d72d935faf21e72f7e7808fb4f05f)
896    
897    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
898
899commit 861da1d5c243f51d6c1f76e5b13e5184aa608776
900Author: Michel Dänzer <michel.daenzer@amd.com>
901Date:   Thu May 12 16:34:30 2016 +0900
902
903    Enable DRI3 by default when building for Xorg >= 1.18.3
904    
905    Seems to work well enough in general now.
906    
907    (Ported from radeon commit 1181b9c582f10b6c523e4b2988e2ce87ecf3d367)
908    
909    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
910
911commit 86f991838824494e68ac277fa27cbd88c23a5ee8
912Author: Michel Dänzer <michel.daenzer@amd.com>
913Date:   Tue May 10 15:57:04 2016 +0900
914
915    present: Support async flips
916    
917    The xserver Present code only calls radeon_present_flip with
918    sync_flip=FALSE if radeon_present_screen_init sets
919    PresentCapabilityAsync, and the latter only sets it if the kernel driver
920    advertises support for async flips.
921    
922    (Ported from radeon commit 1ca677309720e2f6c953c9e76f5b34c22a4416c6)
923    
924    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
925
926commit 744ac5faff7f58e26fa76974b6bdc345ea4c7c79
927Author: Michel Dänzer <michel.daenzer@amd.com>
928Date:   Tue May 10 15:47:55 2016 +0900
929
930    Add support for async flips to radeon_do_pageflip
931    
932    Will be used by the next change. No functional change here.
933    
934    (Ported from radeon commit 90a915c62d012e99193833aecc93974e68880c60)
935    
936    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
937
938commit 4822ec7a23d2253c88bc403f17abb6d7a053528c
939Author: Flora Cui <flora.cui@amd.com>
940Date:   Tue May 10 17:14:00 2016 +0900
941
942    add strato pci id
943    
944    Signed-off-by: Flora Cui <flora.cui@amd.com>
945    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
946
947commit b93006714b8de972060492cfa311320921a73773
948Author: Tom St Denis <tom.stdenis@amd.com>
949Date:   Tue Apr 12 08:48:33 2016 -0400
950
951    dri3: Return NULL from amdgpu_dri3_pixmap_from_fd if calloc fails.
952    
953    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
954    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
955
956commit a0bbb373f902e0ffc14570c85faec7e44134f62e
957Author: Qiang Yu <Qiang.Yu@amd.com>
958Date:   Fri Apr 8 17:29:17 2016 +0800
959
960    Remove RR_Capability_SinkOutput for GPU without CRTC.
961    
962    Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
963    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
964    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
965
966commit 1a29c4bcc0a286b14f37ab942eb0cad47bc4f337
967Author: Michel Dänzer <michel.daenzer@amd.com>
968Date:   Mon Apr 11 16:27:40 2016 +0900
969
970    Post 1.1.0 release version bump
971
972commit a04f4015d6afef20c2b79e2779f6555836ee2b07
973Author: Michel Dänzer <michel.daenzer@amd.com>
974Date:   Thu Apr 7 16:47:25 2016 +0900
975
976    Bump version for 1.1.0 release
977
978commit aed1c17c43b2c0c983f6fc0973a5224d0faf32d9
979Author: Michel Dänzer <michel.daenzer@amd.com>
980Date:   Mon Apr 4 18:28:02 2016 +0900
981
982    glamor: Force GPU rendering to/from pixmaps created via DRI3
983    
984    Fixes crash when running DRI3 clients with ShadowPrimary enabled.
985    
986    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94799
987    
988    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
989
990commit faf9d720b7d650f5f1ea657a874d08eac3972e60
991Author: Michel Dänzer <michel.daenzer@amd.com>
992Date:   Fri Apr 1 16:09:51 2016 +0900
993
994    Update manpage entry for Option "TearFree"
995    
996    It's now effective for rotation as well.
997    
998    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
999
1000commit 5ba95c3abeb8df82aa8d33a47596eae6403ea7af
1001Author: Michel Dänzer <michel.daenzer@amd.com>
1002Date:   Fri Apr 1 15:29:26 2016 +0900
1003
1004    Identify DRM event queue entries by sequence number instead of by pointer
1005    
1006    If the memory for an entry was allocated at the same address as that for
1007    a previously cancelled entry, the handler could theoretically be called
1008    prematurely, triggered by the DRM event which was submitted for the
1009    cancelled entry.
1010    
1011    (Ported from radeon commit 4693b1bd5b5c381e8b7b68a6f7f0c6696d6a68df)
1012    
1013    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1014
1015commit 8ecfa69b5a833bd4c39e773a6acfd7eef9144d13
1016Author: Michel Dänzer <michel.daenzer@amd.com>
1017Date:   Wed Mar 30 18:33:00 2016 +0900
1018
1019    DRI3: Refuse to open DRM file descriptor for ssh clients
1020    
1021    Fixes hangs when attempting to use DRI3 on display connections forwarded
1022    via SSH.
1023    
1024    Don't do this for Xorg > 1.18.99.1 since the corresponding xserver
1025    change has landed in Git master.
1026    
1027    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93261
1028    
1029    (Ported from radeon commit 0b3aac1de9db42bfca545fa331e4985836682ec7)
1030    
1031    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1032
1033commit b2a2e114eec0967f7b67f030fbab8983cf980489
1034Author: Michel Dänzer <michel.daenzer@amd.com>
1035Date:   Fri Mar 25 11:55:34 2016 +0900
1036
1037    Revert "Use render node for DRI3 if available"
1038    
1039    This reverts commit ea558e645786b08d75307716036045170e97b43e.
1040    
1041    It broke VDPAU<->GL interop with DRI3 enabled, because the Gallium VDPAU
1042    code doesn't support DRI3 yet. We can consider re-enabling this once
1043    there is a Mesa release where the Gallium VDPAU code supports DRI3.
1044    
1045    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94675
1046    
1047    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1048
1049commit e31a2d668a1b5ebaf75d423c8123cbc8e0dcbae9
1050Author: Flora Cui <Flora.Cui@amd.com>
1051Date:   Wed Nov 18 16:44:13 2015 +0800
1052
1053    add polaris10 pci id
1054    
1055    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1056    Signed-off-by: Flora Cui <Flora.Cui@amd.com>
1057    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
1058
1059commit 6e09b8deb77f76b9bb7d393cc1ad924ebba62eff
1060Author: Flora Cui <Flora.Cui@amd.com>
1061Date:   Thu Nov 5 14:16:39 2015 +0800
1062
1063    add polaris11 pci id
1064    
1065    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1066    Signed-off-by: Flora Cui <Flora.Cui@amd.com>
1067    Reviewed-By: Jammy Zhou <Jammy.Zhou@amd.com>
1068    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1069
1070commit 7d32c43fff4c8df32cce150223094f793e036cf3
1071Author: Alex Deucher <alexander.deucher@amd.com>
1072Date:   Wed Oct 28 17:28:23 2015 -0400
1073
1074    add Polaris chip families
1075    
1076    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1077    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1078
1079commit fbf9ae18cd241b8b78936aa30441e5fbfd9ba1c5
1080Author: Michel Dänzer <michel.daenzer@amd.com>
1081Date:   Thu Mar 24 19:05:15 2016 +0900
1082
1083    Require xserver 1.9 or newer
1084    
1085    1.9.0 was released in August 2010.
1086    
1087    We were already unintentionally relying on things not available in 1.8
1088    for at least a year, and nobody has complained.
1089    
1090    (Ported from radeon commit e592f32f8b5f5873fcc18b10a69dd5e4ccf11073)
1091    
1092    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1093
1094commit 912db5fbbc6b9b1121c8a03168cb4bd870474376
1095Author: Michel Dänzer <michel.daenzer@amd.com>
1096Date:   Thu Mar 24 18:59:05 2016 +0900
1097
1098    Fix build against older versions of xserver
1099    
1100    Also slightly clean up the error handling in amdgpu_scanout_do_update.
1101    
1102    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94614
1103    
1104    (Ported from radeon commit bde466e5d44cad64b4e4eceaa5de80fdbf86356e)
1105    
1106    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1107
1108commit 3fb6280ab3b104b02841c7cab8ed68c1d463c834
1109Author: Michel Dänzer <michel.daenzer@amd.com>
1110Date:   Thu Mar 24 18:56:44 2016 +0900
1111
1112    DRI3 only works with acceleration
1113    
1114    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94214
1115    
1116    (Ported from radeon commit d21ac4669a8b2cdd4eec5e5a94d1950b7423b8b5)
1117    
1118    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1119
1120commit 3177fe817a5f2de4ed10860866a0dd6d6c6ba816
1121Author: Michel Dänzer <michel.daenzer@amd.com>
1122Date:   Thu Mar 24 18:51:59 2016 +0900
1123
1124    Check for xf86CursorResetCursor
1125    
1126    If it's available, Xorg calls it on each mode configuration change. It
1127    does what xf86_reload_cursors does (and more), so we don't need to call
1128    the latter anymore.
1129    
1130    (Ported from radeon commit d670c5c9851b4eff21c845d26c7d7e4eb5ee0fa9)
1131    
1132    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1133
1134commit a3dfce7b24e1ea01c1aa62926025a545312cbe13
1135Author: Michel Dänzer <michel.daenzer@amd.com>
1136Date:   Thu Mar 24 18:45:46 2016 +0900
1137
1138    Don't try DRI2/Present flipping while the HW cursor can't be used
1139    
1140    Flipping doesn't interact correctly with SW cursor: A flip makes the SW
1141    cursor disappear. It will only appear again when the cursor is moved,
1142    but it will be surrounded by corruption, because the SW cursor code
1143    will restore stale screen contents at the old cursor location before
1144    drawing the cursor at the new location.
1145    
1146    (Ported from radeon commit 7f3d0780ca65a90117c2a61362dbc0899bd9c0b0)
1147    
1148    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1149
1150commit ba9be8f32f0321689133e17c1681809dec8c6cf1
1151Author: Michel Dänzer <michel.daenzer@amd.com>
1152Date:   Thu Mar 24 18:44:30 2016 +0900
1153
1154    Factor out HW cursor checking code into drmmode_can_use_hw_cursor
1155    
1156    And add a check for RandR 1.4 multihead.
1157    
1158    (Ported from radeon commit 3de480e83c0a1824838d662d6d67c9fe85277298)
1159    
1160    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1161
1162commit 4a60b4b1851a3cbc2d8ad9048d68eeb6947cf132
1163Author: Michel Dänzer <michel.daenzer@amd.com>
1164Date:   Thu Mar 24 12:03:38 2016 +0900
1165
1166    Call AMDGPUBlockHandler_KMS before setting initial modes
1167    
1168    Doing it the other way around meant that there was still a possibility
1169    for the front buffer contents to be uninitialized when they start being
1170    scanned out.
1171    
1172    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1173
1174commit 37bd79652a8ec612b94a1863e8c580b1cfaf3960
1175Author: Michel Dänzer <michel.daenzer@amd.com>
1176Date:   Fri Mar 18 18:51:00 2016 +0900
1177
1178    present: Return rotated CRTCs from amdgpu_present_get_crtc
1179    
1180    Sync-to-vblank works fine with rotation. We're still checking for
1181    rotation in amdgpu_present_check_flip.
1182    
1183    Returning NULL from here resulted in the xserver present code falling
1184    back to the fake CRTC running at 1 fps.
1185    
1186    (Ported from radeon commit a03271de5ecdaa7790d1316e993c4450b91fe936)
1187    
1188    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1189
1190commit 6b930fb3285dea4a6440e31099c96f08da508d49
1191Author: Michel Dänzer <michel.daenzer@amd.com>
1192Date:   Fri Mar 18 18:47:10 2016 +0900
1193
1194    present: Clear drmmode->fb_id before calling set_mode_major for unflip
1195    
1196    Without this, drmmode_set_mode_major may just re-set the FB for the
1197    last flipped BO, in which case the display will probably freeze.
1198    
1199    Reproduction recipe: Enable rotation while a fullscreen client is
1200    flipping.
1201    
1202    (Ported from radeon commit 40191d82370eb7e58bd34c44966cbf44c3703229)
1203    
1204    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1205
1206commit 6889e091442b6ba1b9351e72bd067425e87d96e9
1207Author: Michel Dänzer <michel.daenzer@amd.com>
1208Date:   Fri Mar 18 18:18:04 2016 +0900
1209
1210    Make Option "TearFree" effective for rotated/reflected outputs as well
1211    
1212    Support varies by xserver version:
1213    
1214    < 1.12:    No support for the driver handling rotation/reflection
1215    1.12-1.15: Support for driver handling rotation/reflection, but there's
1216               a bug preventing the HW cursor from being visible everywhere
1217               it should be on rotated outputs, so we can only support
1218               TearFree for reflection.
1219    >= 1.16:   While the bug above is still there (fixes pending review),
1220               the driver can force SW cursor for rotated outputs, so we
1221               can support TearFree for rotation as well.
1222    
1223    (Ported from radeon commit 798c4fd16d339b1ad5fd729cc884be084c60e38b)
1224    
1225    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1226
1227commit da4e0c66fcbcf63143372720e3d606a462332e3a
1228Author: Michel Dänzer <michel.daenzer@amd.com>
1229Date:   Fri Mar 18 18:15:34 2016 +0900
1230
1231    Consolidate pScreen usage in drmmode_set_mode_major
1232    
1233    We were already relying on pScrn->pScreen being non-NULL in some cases,
1234    which is supposedly always true ever since this function is no longer
1235    getting called from ScreenInit.
1236    
1237    (Ported from radeon commit eb611a2e4ecce7a1ab85fd72b9b78e3269311dd5)
1238    
1239    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1240
1241commit 0bbf09dd7ef54133b3e534becb3ba15c0cf3eed2
1242Author: Michel Dänzer <michel.daenzer@amd.com>
1243Date:   Fri Mar 18 18:14:28 2016 +0900
1244
1245    Remove check for XF86_CRTC_VERSION 3
1246    
1247    We require xserver >= 1.8, which was already at version 3.
1248    
1249    (Ported from radeon commit 06602171386e538081c298645fb7ca1a70fe80cc)
1250    
1251    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1252
1253commit 3485ca0051a224d00135d4024a97a6c4e85a9644
1254Author: Michel Dänzer <michel.daenzer@amd.com>
1255Date:   Fri Mar 18 18:07:07 2016 +0900
1256
1257    Deal with modesets and page flips crossing on a CRTC
1258    
1259    If we set a mode while a flip is pending, the kernel driver may program
1260    the flip to the hardware after the modeset. If that happens, the hardware
1261    will display the BO from the flip, whereas we will assume it displays the
1262    BO from the modeset. In other words, the display will most likely freeze,
1263    at least until another modeset.
1264    
1265    Prevent this condition by waiting for a pending flip to finish before
1266    setting a mode.
1267    
1268    Fixes display freezing when setting rotation or a transform with
1269    TearFree enabled.
1270    
1271    (Ported from radeon commit a88985f5d1e39caca49ceb65678aaa9cb622a0d2)
1272    
1273    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1274
1275commit b9d00fa7aaf946d985897380bfa42faafbf1b3fb
1276Author: Michel Dänzer <michel.daenzer@amd.com>
1277Date:   Fri Mar 18 17:18:00 2016 +0900
1278
1279    Make DRM event queue xf86CrtcPtr based instead of ScrnInfoPtr based
1280    
1281    This allows for a minor simplification of the code.
1282    
1283    (Ported from radeon commit f5d968cbba3c9b7ec202161f2157d8d64778c817)
1284    
1285    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1286
1287commit e0ed26151bfeadf309da53d001751c0a014dbd24
1288Author: Michel Dänzer <michel.daenzer@amd.com>
1289Date:   Fri Mar 18 17:11:47 2016 +0900
1290
1291    Remove amdgpu_scanout_flip_handler
1292    
1293    No longer necessary now that amdgpu_drm_queue_handler can handle
1294    e->handler == NULL.
1295    
1296    (Ported from radeon commit d5dbb07db22d5420c81dfebc060f0dd86e7b8a20)
1297    
1298    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1299
1300commit acd5da56f502d6ad115501e77bce06fe72b1895c
1301Author: Michel Dänzer <michel.daenzer@amd.com>
1302Date:   Fri Mar 18 17:14:49 2016 +0900
1303
1304    DRI2: Also clear dri2_flipping when client disconnects before event
1305    
1306    Fixes the following problem:
1307    
1308    With DRI3 enabled, run glxgears with LIBGL_DRI3_DISABLE=1, make it
1309    fullscreen and press Escape while it's still fullscreen. This could
1310    result in dri2_flipping not getting cleared, spuriously preventing apps
1311    using DRI3 from flipping.
1312    
1313    (Ported from radeon commit e87365117acbd80b7d80fbb5eb30890ef7153291)
1314    
1315    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1316
1317commit a58bfa98208cc092014d3f36a08714eb1e0d8814
1318Author: Michel Dänzer <michel.daenzer@amd.com>
1319Date:   Fri Mar 18 17:07:47 2016 +0900
1320
1321    drm_queue: Don't abort events immediately from amdgpu_drm_abort_client
1322    
1323    Keep them around until the DRM event arrives, but then call the abort
1324    functions instead of the handler functions.
1325    
1326    This is a prerequisite for the following fix.
1327    
1328    (Ported from radeon commit 3989766edde85d1abe7024577b98fc9b007bc02a)
1329    
1330    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1331
1332commit e4888df6e32bb817bf0d6166a22b19c14e189a84
1333Author: Michel Dänzer <michel.daenzer@amd.com>
1334Date:   Fri Mar 18 17:04:10 2016 +0900
1335
1336    Fix RandR CRTC transforms
1337    
1338    Currently, Xorg will only transform the cursor as of the first time the
1339    cursor image changes after a transform is set.
1340    
1341    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80678
1342    
1343    (Ported from radeon commit 9483a3d777919b224f70c3b4d01e4b320a57db31)
1344    
1345    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1346
1347commit 43af92ede0968f2108f9562aa4c2c861ac703617
1348Author: Michel Dänzer <michel.daenzer@amd.com>
1349Date:   Fri Mar 18 16:58:07 2016 +0900
1350
1351    Build RandR 1.4 provider name from chipset name and bus ID
1352    
1353    Instead of just "amdgpu", it's now e.g. "TONGA @ pci:0000:01:00.0".
1354    
1355    (Ported from radeon commit c7cf00487cd6d4a5d0f39d5b92ff04f6420d6a32)
1356    
1357    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1358
1359commit 5ec1797a2858d693d18d21326e2307d71555e1db
1360Author: Michel Dänzer <michel.daenzer@amd.com>
1361Date:   Wed Feb 24 17:33:49 2016 +0900
1362
1363    DRI2: Use amdgpu_pixmap_get_handle
1364    
1365    Now we can share pixmaps with no struct amdgpu_buffer via DRI2.
1366    
1367    Fixes VDPAU video playback freezing when using an OpenGL compositor with
1368    DRI3 enabled and mpv VAAPI hardware decoding with OpenGL output.
1369    
1370    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89755
1371    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93804
1372    
1373    (ported from radeon commit f8b0f23e9f4af9f9097ee5e72d53b45173163c41)
1374    
1375    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1376
1377commit df60c635e1e632233de9dd4b01d63c2b963003f8
1378Author: Michel Dänzer <michel.daenzer@amd.com>
1379Date:   Wed Feb 24 17:06:43 2016 +0900
1380
1381    glamor: Avoid generating GEM flink names for BOs shared via DRI3 (v2)
1382    
1383    We can't create our own struct amdgpu_buffer representation in this case
1384    because destroying that would make the GEM handle inaccessible to glamor
1385    as well. So just get the handle directly via dma-buf.
1386    
1387    (ported from radeon commit 391900a670addec39515f924265bfa9f8bfa9ec0,
1388     extended to cache BO handles in the private for non-DRI3 pixmaps as
1389     well)
1390    
1391    v2: Swap whole pixmap privates instead of just BOs in
1392        amdgpu_dri2_exchange_buffers to avoid invalidating cached BO handles
1393    
1394    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1395
1396commit e463b849f3e9d7b69e64a65619a22e00e78d297b
1397Author: Michel Dänzer <michel.daenzer@amd.com>
1398Date:   Tue Feb 23 18:10:29 2016 +0900
1399
1400    Make amdgpu_do_pageflip take a pixmap instead of a BO
1401    
1402    (inspired by radeon commit 7b4fc4a677d252d01c2bf80d162bc35814059eaa)
1403    
1404    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1405
1406commit 1ee341f9d909f3b7ba2984fc912dabdb98c34b19
1407Author: Michel Dänzer <michel.daenzer@amd.com>
1408Date:   Tue Feb 23 18:42:19 2016 +0900
1409
1410    Add amdgpu_pixmap_get_handle helper
1411    
1412    (inspired by radeon commits dfad91fffb5bd013785223b42d78886df839eacf
1413     and ccbda955ebae1d457d35293833f12791e0f9fb0b)
1414    
1415    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1416
1417commit a36bbfd98b96426bbe0be3923c64da7ec0e565d0
1418Author: Michel Dänzer <michel.daenzer@amd.com>
1419Date:   Mon Feb 15 18:41:51 2016 +0900
1420
1421    HAS_DIRTYTRACKING_ROTATION also supports multiple CRTCs
1422    
1423    (ported from radeon commit ff9a6b6f079a8419f4e6fadfee778060618bf735)
1424    
1425    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1426
1427commit a37746ffceaed83e48e48fb05439be7e020dd2ea
1428Author: Michel Dänzer <michel.daenzer@amd.com>
1429Date:   Mon Feb 15 18:35:54 2016 +0900
1430
1431    Load fb module before glamoregl/shadow modules
1432    
1433    Fixes unresolved symbols on some systems.
1434    
1435    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93105
1436    (ported from radeon commit 78fbca095ae9887a2d3de48bb07975e2d1126e68)
1437    
1438    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1439
1440commit 59c0a6807110eca829c6708e16585a38f39a5c17
1441Author: Michel Dänzer <michel.daenzer@amd.com>
1442Date:   Mon Feb 15 18:28:13 2016 +0900
1443
1444    Don't advertise any PRIME offloading capabilities without acceleration
1445    
1446    Acceleration is required even for display offloading. Trying to enable
1447    display offloading without acceleration resulted in a crash.
1448    
1449    (ported from radeon commit b19417e2fddf4df725951aea5ad5e9558338f59e)
1450    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1451
1452commit a3eac85d812ecc605436e6bd5b9ee7ebf307e3d3
1453Author: Michel Dänzer <michel.daenzer@amd.com>
1454Date:   Tue Jan 26 16:12:28 2016 +0900
1455
1456    Only map front buffer if glamor acceleration is disabled (v2)
1457    
1458    Otherwise the front buffer may not be accessible by the CPU, because Mesa
1459    sets the AMDGPU_GEM_CREATE_NO_CPU_ACCESS flag for tiled buffers, because
1460    accessing tiled buffers with the CPU makes little sense.
1461    
1462    v2: Also handle Option "AccelMethod" "none"
1463    
1464    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1465
1466commit 2fcb7dadd3c71cd405cbbaafc777697538ca9c29
1467Author: jimqu <Jim.Qu@amd.com>
1468Date:   Mon Jan 25 09:47:00 2016 +0800
1469
1470    glamor: Return NullPixmap on failure to create shareable pixmap
1471    
1472    If we were asked to create a shareable pixmap, it doesn't make sense
1473    to return a pixmap which isn't shareable. Doing so caused trouble down
1474    the line such as a crash with older versions of glamor when trying to
1475    use GLX pixmaps of bpp < 32 via DRI2.
1476    
1477    Signed-off-by: JimQu <jim.qu@amd.com>
1478    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1479
1480commit 5269a2228bff6023c1a7f3e8534027e1d7addc25
1481Author: jimqu <Jim.Qu@amd.com>
1482Date:   Mon Jan 25 10:12:02 2016 +0800
1483
1484    Move amdgpu_glamor_destroy_pixmap before amdgpu_glamor_create_pixmap
1485    
1486    The next commit will call the former from the latter. No functional
1487    change.
1488    
1489    Signed-off-by: JimQu <jim.qu@amd.com>
1490    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1491
1492commit 54c959c163288caa87f612911b70df73f87d29d6
1493Author: Tom St Denis <tom.stdenis@amd.com>
1494Date:   Wed Jan 20 09:37:36 2016 -0500
1495
1496    Move memset() after variable declarations
1497    
1498    To make the code more "C" like move the function calls
1499    after the variable declarations.
1500    
1501    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
1502    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1503    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1504
1505commit 8853b07ae8169c409740c40d45cd335bd608f2a7
1506Author: Michel Dänzer <michel.daenzer@amd.com>
1507Date:   Tue Jan 19 17:35:11 2016 +0900
1508
1509    Set the RandR primary output on startup if Xorg hasn't
1510    
1511    Fixes xrandr (XRRGetOutputPrimary) not reporting any output as primary
1512    after startup.
1513    
1514    (Ported from radeon commit b16856b25086ffb27365ac2249b8da921066ce62)
1515    
1516    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1517
1518commit bd5c65daceaf633c36fcec86ff061df10c364bc0
1519Author: Michel Dänzer <michel.daenzer@amd.com>
1520Date:   Thu Jan 7 15:53:41 2016 +0900
1521
1522    Only call amdgpu_bus_id once in each probe path (v2)
1523    
1524    Instead of up to twice as before.
1525    
1526    v2: Remove free(busIdString) call from amdgpu_kernel_mode_enabled, the
1527        bus ID string is now managed by its callers.
1528    
1529    Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
1530
1531commit 6e42c58375a4c3229da93c27bbd104af145c6163
1532Author: Michel Dänzer <michel.daenzer@amd.com>
1533Date:   Thu Jan 7 15:57:38 2016 +0900
1534
1535    Remove pci_dev test from amdgpu_get_scrninfo
1536    
1537    The pci_dev parameter can never be NULL since we only support KMS.
1538    
1539    Reported-by: Tom St Denis <tom.stdenis@amd.com>
1540    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1541
1542commit 8e09180798a06af5afa030d754938e4ca06e272f
1543Author: Michel Dänzer <michel.daenzer@amd.com>
1544Date:   Thu Jan 7 15:35:35 2016 +0900
1545
1546    Re-use PCI bus ID code from kernel_open_fd in kernel_mode_enabled
1547    
1548    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1549
1550commit 4eb9cedca080b30c57ded349a397620ee7d0cd46
1551Author: Mykola Lysenko <Mykola.Lysenko@amd.com>
1552Date:   Wed Jan 13 14:03:55 2016 +0800
1553
1554    Initialize drmmode_crtc dpms_mode to DPMSModeOff
1555    
1556    This disables query of disabled pipes for drmWaitVBlank on X start
1557    
1558    Signed-off-by: Mykola Lysenko <Mykola.Lysenko@amd.com>
1559    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1560
1561commit 1d0b0c1794e65e581a48aa9fb19679d928d82a5d
1562Author: Michel Dänzer <michel.daenzer@amd.com>
1563Date:   Thu Dec 10 18:08:12 2015 +0900
1564
1565    sync: Check if miSyncShmScreenInit symbol is resolved at runtime
1566    
1567    It may be disabled in the Xorg build, either explicitly or because the
1568    xshmfence library isn't available.
1569    
1570    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1571
1572commit f4107f67f147e2500582fc36cf0f0f76bc1ef098
1573Author: Mykola Lysenko <Mykola.Lysenko@amd.com>
1574Date:   Wed Dec 23 11:58:47 2015 -0500
1575
1576    Check for NULL koutput in drmmode_output_dpms
1577    
1578    This situation happens whit start of usage of DRM DP MST framework,
1579    when connectors created and destroyed dynamically.
1580    
1581    Signed-off-by: Mykola Lysenko <Mykola.Lysenko@amd.com>
1582    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1583
1584commit ea558e645786b08d75307716036045170e97b43e
1585Author: Jammy Zhou <Jammy.Zhou@amd.com>
1586Date:   Fri Nov 20 17:03:05 2015 +0800
1587
1588    Use render node for DRI3 if available
1589    
1590    Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
1591    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1592
1593commit 43c2dc1aab682d5b6ad49d24983d6382c4f305bb
1594Author: Michel Dänzer <michel.daenzer@amd.com>
1595Date:   Thu Nov 19 17:05:05 2015 +0900
1596
1597    glamor: Deal with glamor_egl_destroy_textured_pixmap being removed
1598    
1599    When it's not available, it's safe to call down to the glamor
1600    DestroyPixmap hook instead.
1601    
1602    (ported from radeon commit 10b7c3def58bb34acc38f076bc230e25b454ab79)
1603    
1604    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1605
1606commit 84cab5738a315e9825bd0864c4f0fc5b03eb81a1
1607Author: Michel Dänzer <michel.daenzer@amd.com>
1608Date:   Thu Nov 19 16:44:22 2015 +0900
1609
1610    glamor: Restore all ScreenRec hooks during CloseScreen
1611    
1612    (ported from radeon commit 535e5438b2c32f774b9c8c27ee0289b4749548ef)
1613    
1614    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1615
1616commit a00c050c2e5667ed815c51979a3cadb5146136ff
1617Author: Michel Dänzer <michel.daenzer@amd.com>
1618Date:   Thu Nov 19 17:55:53 2015 +0900
1619
1620    Post 1.0.0 release version bump
1621
1622commit 755e6ff2337cf615e3ba0854ccd533baec7144db
1623Author: Michel Dänzer <michel.daenzer@amd.com>
1624Date:   Thu Nov 19 17:28:19 2015 +0900
1625
1626    Bump version for 1.0.0 release
1627
1628commit 49c7d2be99aaf6d040e553065bdc461ce8d4769a
1629Author: Michel Dänzer <michel.daenzer@amd.com>
1630Date:   Thu Nov 19 17:14:54 2015 +0900
1631
1632    Add amdgpu_pixmap.h to src/Makefile.am's EXTRA_DIST
1633    
1634    Fixes make distcheck.
1635
1636commit d069ec5d27f5c8d2ab17b759b85293ef4113acf3
1637Author: Stephen Chandler Paul <cpaul@redhat.com>
1638Date:   Wed Nov 11 18:10:55 2015 +0900
1639
1640    Handle failures in setting a CRTC to a DRM mode properly
1641    
1642    This fixes a bug where running the card out of PPLL's when hotplugging
1643    another monitor would result in all of the displays going blank and
1644    failing to work properly until X was restarted or the user switched to
1645    another VT.
1646    
1647    [Michel Dänzer: Pass errno instead of -ret to strerror()]
1648    
1649    Signed-off-by: Stephen Chandler Paul <cpaul@redhat.com>
1650    (ported from radeon commit 7186a8713ba004de4991f21c1a9fc4abc62aeff4)
1651    
1652    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1653
1654commit c8bddcf6c97b1338be3715f1fc5e0b17ce71c195
1655Author: Michel Dänzer <michel.daenzer@amd.com>
1656Date:   Wed Nov 11 18:09:59 2015 +0900
1657
1658    Call xf86CrtcRotate from initial drmmode_set_desired_modes call
1659    
1660    Fixes various problems when rotation is specified in xorg.conf.
1661    
1662    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92475
1663    
1664    (ported from radeon commit 548e97b3b7d1e94075a54ca2bb4eb683025098a7)
1665    
1666    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1667
1668commit 12815156f38ce3357f03901a78402db834577d11
1669Author: Emil Velikov <emil.l.velikov@gmail.com>
1670Date:   Wed Nov 11 18:04:01 2015 +0900
1671
1672    Do not link amdgpu_drv.so against libpciaccess
1673    
1674    Not used directly.
1675    
1676    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
1677    (ported from radeon commit fcb32231a38f9461d12720cbf72f63502197a711)
1678    
1679    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1680
1681commit a02982b0ae0b79d2f183a1628edc05cafed8703a
1682Author: Michel Dänzer <michel.daenzer@amd.com>
1683Date:   Wed Nov 11 17:59:14 2015 +0900
1684
1685    Skip disabled CRTCs in amdgpu_scanout_(do_)update
1686    
1687    The vblank / page flip ioctls don't work as expected for a disabled CRTC.
1688    
1689    (ported from radeon commit acc11877423ecd81a6e0a7f38466f80e43efee20)
1690    
1691    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1692
1693commit 0ddd20600d0046afd17aa47ffebe86dfd91a2215
1694Author: Michel Dänzer <michel.daenzer@amd.com>
1695Date:   Wed Nov 11 17:44:16 2015 +0900
1696
1697    Prefer drmModeSetCursor2 over drmModeSetCursor
1698    
1699    The former includes information about the position of the hotspot within
1700    the cursor image.
1701    
1702    Copied from xf86-video-modesetting.
1703    
1704    (ported from radeon commit c9f8f642fd495937400618a4fc25ecae3f8888fc)
1705    
1706    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1707
1708commit 83a47c0ebe17caa79d12a8b2f94b59cc945452f5
1709Author: Michel Dänzer <michel.daenzer@amd.com>
1710Date:   Wed Nov 11 17:37:54 2015 +0900
1711
1712    PRIME: Don't advertise offload capabilities when acceleration is disabled
1713    
1714    Xorg tends to crash if the user tries to actually use the offload
1715    capabilities with acceleration disabled.
1716    
1717    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57200
1718    (ported from radeon commit c74de9fec13fac2c836bb2a07ae6f90e1d61e667)
1719    
1720    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1721
1722commit 560b7fe6dc66405762020f00e9a05918a36f3a17
1723Author: Michel Dänzer <michel.daenzer@amd.com>
1724Date:   Wed Nov 11 17:31:34 2015 +0900
1725
1726    Rename Option "NoAccel" to "Accel"
1727    
1728    Removes the need for a double negation when forcing acceleration on.
1729    
1730    Note that this change is backwards compatible, as the option parser
1731    automagically handles the 'No' prefix.
1732    
1733    (ported from radeon commit cc615d06db0332fc6e673b55632bcc7bf957b44b)
1734    
1735    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1736
1737commit ad77ad32c4a723447d3191d527cfa6de9f54d7ce
1738Author: Adam Jackson <ajax@redhat.com>
1739Date:   Wed Nov 11 17:20:21 2015 +0900
1740
1741    Use own thunk function instead of shadowUpdatePackedWeak
1742    
1743    I plan to delete the Weak functions from a future server.
1744    
1745    Signed-off-by: Adam Jackson <ajax@redhat.com>
1746    (ported from radeon commit 851b2cf8714618843725f6d067915375485ade9d)
1747    
1748    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1749
1750commit f5ccea99c03b62acf3a25984aba617c665d80b7c
1751Author: Michel Dänzer <michel.daenzer@amd.com>
1752Date:   Wed Nov 11 17:16:58 2015 +0900
1753
1754    dri2: Handle PRIME for source buffer as well in amdgpu_dri2_copy_region2
1755    
1756    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77810
1757    
1758    (ported from radeon commit c84230d686c078aac1dc98d82153f8b02521b2e1)
1759    
1760    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1761
1762commit 92e7c93d2f9c3036da1a17d7fccccb6f9e9eaa3d
1763Author: Michel Dänzer <michel.daenzer@amd.com>
1764Date:   Mon Nov 2 18:29:24 2015 +0900
1765
1766    Move scrn/info declaration inside USE_GLAMOR in amdgpu_dri3_fd_from_pixmap
1767    
1768    Fixes warning when building with --disable-glamor:
1769    
1770    ../../src/amdgpu_dri3.c: In function 'amdgpu_dri3_fd_from_pixmap':
1771    ../../src/amdgpu_dri3.c:135:16: warning: unused variable 'info' [-Wunused-variable]
1772      AMDGPUInfoPtr info = AMDGPUPTR(scrn);
1773                    ^
1774    
1775    Reported-by: Jammy Zhou <Jammy.Zhou@amd.com>
1776    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1777
1778commit c9bd1399a13cea2e1331af2c826ca054b88db071
1779Author: Michel Dänzer <michel.daenzer@amd.com>
1780Date:   Mon Nov 2 18:21:50 2015 +0900
1781
1782    Call AMDGPUFreeRec from AMDGPUFreeScreen_KMS even if info == NULL
1783    
1784    It's safe now.
1785    
1786    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1787
1788commit fb8444e731765588c0ff1e9053c1c7b73f5f0907
1789Author: Michel Dänzer <michel.daenzer@amd.com>
1790Date:   Mon Nov 2 18:20:41 2015 +0900
1791
1792    Don't use AMDGPUEntPriv in AMDGPUFreeRec
1793    
1794    It crashes if info == NULL.
1795    
1796    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1797
1798commit 8e7ee03f55c2f3874f6e84daeb5700f8b8037a51
1799Author: Michel Dänzer <michel.daenzer@amd.com>
1800Date:   Wed Oct 28 17:53:27 2015 +0900
1801
1802    Remove amdgpu_reference_drm_fd
1803    
1804    Increase pAMDGPUEnt->fd_ref in the probe code instead when we're reusing
1805    the existing fd.
1806    
1807    The previous reference counting was imbalanced, so pAMDGPUEnt->fd_ref
1808    could never go to 0.
1809    
1810    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
1811
1812commit 6bab8fabb37eb131e131ce59446c214ded28f779
1813Author: Michel Dänzer <michel.daenzer@amd.com>
1814Date:   Wed Oct 28 17:44:09 2015 +0900
1815
1816    Remove info->dri2.drm_fd and info->drmmode->fd
1817    
1818    Use pAMDGPUEnt->fd everywhere instead.
1819    
1820    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
1821
1822commit 0530e39cc6b7340163e7f6bb6d82719d102ee6e9
1823Author: Jammy Zhou <jammy.zhou@amd.com>
1824Date:   Thu Oct 29 17:08:01 2015 +0900
1825
1826    Pass struct pci_device *pci_dev directly to amdgpu_get_scrninfo
1827    
1828    Instead of throwing away the type information by passing it as a void*.
1829    
1830    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
1831    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1832
1833commit edf72afee3a25eae9827b4de3a013b541b78e213
1834Author: Jammy Zhou <Jammy.Zhou@amd.com>
1835Date:   Wed Oct 28 21:24:29 2015 +0800
1836
1837    Fix crash in PCI probe path (v4)
1838    
1839    The crash is caused by the NULL value returned by AMDGPUPTR(pScrn),
1840    because the driverPrivate is not allocated yet in PciProbe phase,
1841    and it is usually done in the PreInit phase.
1842    
1843    Use pAMDGPUEnt->fd instead of info->dri2.drm_fd to avoid AMDGPUInfoPtr
1844    related code in amdgpu_open_drm_master, so that the crash can be fixed.
1845    
1846    v4: (md) Remove unused parameter entity_num, split out logically
1847        separate changes
1848    v3: some more cleanup
1849    v2: switch to pAMDGPUEnt->fd, and update the commit message
1850    
1851    Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
1852    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
1853    Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v3)
1854
1855commit cef725121eb0e56aa54d9c4665e36047373f4db7
1856Author: Michel Dänzer <michel.daenzer@amd.com>
1857Date:   Wed Oct 28 17:56:13 2015 +0900
1858
1859    Remove dead code from probe paths
1860    
1861    amdgpu_get_scrninfo allocates the memory pointed to by pAMDGPUEnt just
1862    before it calls amdgpu_open_drm_master, so pAMDGPUEnt->fd is always 0
1863    in the latter.
1864    
1865    Also, no need to clear pAMDGPUEnt->fd just before freeing the memory
1866    it's stored in.
1867    
1868    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
1869
1870commit 3b0a3c89b53b3ebe21a9d703a4dbff6e57c65a57
1871Author: Samuel Li <samuel.li@amd.com>
1872Date:   Thu Oct 22 12:50:21 2015 -0400
1873
1874    Add Stoney support
1875    
1876    (agd): rebase
1877    
1878    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1879    Signed-off-by: Samuel Li <samuel.li@amd.com>
1880
1881commit 9c8b7ebe15eec7abd5dc10ad6ccecbc57225494a
1882Author: Michel Dänzer <michel.daenzer@amd.com>
1883Date:   Wed Oct 21 17:18:44 2015 +0900
1884
1885    Revert "Handle RandR CRTC transforms properly"
1886    
1887    This reverts commit 175251645fec1a3d19f498e1cd1e655374c67801.
1888    
1889    I accidentally pushed this patch.
1890
1891commit 0a6ba4bf50128464a30951721b0c72e748fb89bc
1892Author: Darren Powell <darren.powell@amd.com>
1893Date:   Tue Oct 20 16:56:54 2015 -0400
1894
1895    Add Option "TearFree" to manpage
1896    
1897    This was missed in commit c57da33308a81fa575179238a0415abcb8b34908.
1898    
1899    Signed-off-by: Darren Powell <darren.powell@amd.com>
1900    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1901    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1902
1903commit 175251645fec1a3d19f498e1cd1e655374c67801
1904Author: Michel Dänzer <michel.daenzer@amd.com>
1905Date:   Thu Oct 15 16:35:51 2015 +0900
1906
1907    Handle RandR CRTC transforms properly
1908
1909commit 6000aef4e2f0a121b94023484406fb6f04688f74
1910Author: Tom St Denis <tom.stdenis@amd.com>
1911Date:   Wed Oct 14 13:25:59 2015 -0400
1912
1913    Clean up amdgpu_dri2_create_buffer2()
1914    
1915    Remove the depth_pixmap variable from the function and clear
1916    out any dead/odd behaviour that results.
1917    
1918    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
1919
1920commit 21e72fb2418b5cc7fc849a9cf951186e209036b0
1921Author: Michel Dänzer <michel.daenzer@amd.com>
1922Date:   Fri Oct 9 18:38:47 2015 +0900
1923
1924    Properly handle drmModeAddFB failure in drmmode_crtc_scanout_allocate
1925    
1926    We were printing an error message, but not propagating the failure. That
1927    would probably lead to trouble down the road.
1928    
1929    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1930
1931commit 8da1d0c870e1081d77925807d6e3bbc61a23f54f
1932Author: Michel Dänzer <michel.daenzer@amd.com>
1933Date:   Fri Oct 9 18:59:16 2015 +0900
1934
1935    Eliminate redundant data parameter from drmmode_crtc_scanout_create
1936    
1937    drmmode_crtc_scanout_create just needs to call
1938    drmmode_crtc_scanout_allocate when scanout->bo is NULL.
1939    
1940    This makes it clearer to the reader / compiler that
1941    drmmode_crtc_scanout_create doesn't dereference scanout->bo when it's
1942    NULL.
1943    
1944    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1945
1946commit dc40582d5ff94d812cbc08f95cf14b80cd0f410d
1947Author: Michel Dänzer <michel.daenzer@amd.com>
1948Date:   Wed Oct 7 16:19:22 2015 +0900
1949
1950    Don't advertise rotation support without hardware acceleration v2
1951    
1952    Rotation currently doesn't work without acceleration (doesn't actually
1953    rotate with Option "NoAccel", crashes with Option "AccelMethod" "none"
1954    or when glamor fails to initialize) and would probably be too slow
1955    anyway.
1956    
1957    v2: Also remove now dead code checking for ShadowFB from
1958        drmmode_crtc_scanout_allocate().
1959    
1960    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1961
1962commit 460560502a1bdf26d06f3c30df46fa9f28ffb9e5
1963Author: Tom St Denis <tom.stdenis@amd.com>
1964Date:   Tue Oct 6 08:49:54 2015 -0400
1965
1966    Simplify drmmode_set_mode_major() and avoid leaking memory.
1967    
1968    The function would leak the memory allocated for output_ids.  This
1969    patch addresses that as well as simplifies the logic somewhat.
1970    
1971    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
1972    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1973
1974commit 56398d6651dfc4935cbd117ad861e1800077c73c
1975Author: Tom St Denis <tom.stdenis@amd.com>
1976Date:   Tue Oct 6 08:43:12 2015 -0400
1977
1978    Avoid NULL dereference if drmmode_crtc_scanout_allocate fails
1979    
1980    This avoids a NULL dereference if the memory allocation fails.
1981    
1982    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
1983    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1984
1985commit 4b92b960c7705be8b3a5dee17b2341864d7ca9bb
1986Author: Tom St Denis <tom.stdenis@amd.com>
1987Date:   Mon Oct 5 10:00:09 2015 -0400
1988
1989    cleanup the entity rec
1990    
1991    Based on radeon commit: b32a0a3de84a44b9af4f1ca8be19f10d7fa31b12
1992    
1993    Some of these were set, some of them were
1994    always opposites, so clean things up.
1995    
1996    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
1997    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
1998
1999commit fe100fd6bf483228eaf64b959c56a68e8dac4447
2000Author: Tom St Denis <tom.stdenis@amd.com>
2001Date:   Mon Oct 5 10:45:33 2015 -0400
2002
2003    present: Handle DPMS off in radeon_present_get_ust_msc
2004    
2005    Based on radeon commit: 95f5d09e3667ded027ae648c97eb4737d8bf67c5
2006    
2007    The DRM_IOCTL_WAIT_VBLANK ioctl may return an error during DPMS off,
2008    which would trigger an error message in drmmode_crtc_get_ust_msc.
2009    
2010    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2011    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2012
2013commit bfa925a04815cee5fd57b99447cb2ee0e158036c
2014Author: Tom St Denis <tom.stdenis@amd.com>
2015Date:   Mon Oct 5 10:10:51 2015 -0400
2016
2017    present: Look at all CRTCs to determine if we can flip
2018    
2019    Based on radeon commit 211862b777d0be251a4662f5dd24f2d400544c09
2020    
2021    Inspired by modesetting driver change by Kenneth Graunke.
2022    
2023    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2024    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2025
2026commit a1e47e76322619ed037ebce27974a4e3792940c2
2027Author: Tom St Denis <tom.stdenis@amd.com>
2028Date:   Mon Oct 5 10:41:22 2015 -0400
2029
2030    present: Fall back to modeset for unflip operation
2031    
2032    Based on radeon commit: 802d33e474a82262d9cdf11b03568b0c4929cd0d
2033    
2034    It's not always possible to use the page flip ioctl for this, e.g.
2035    during DPMS off. We were previously just skipping the unflip in that
2036    case, which could result in hangs when setting DPMS off while a
2037    fullscreen Present app is running, e.g. at the GNOME3 lock screen.
2038    
2039    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2040    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2041
2042commit bac21dfc8e60a07f08158b13fab1f3a9b9d27d1b
2043Author: Tom St Denis <tom.stdenis@amd.com>
2044Date:   Mon Oct 5 10:37:50 2015 -0400
2045
2046    Don't attempt a DRI2/Present page flip while the other one is flipping
2047    
2048    Based on radeon commit 49f5b0bc301414df049e00d226034e3d6e56421b
2049    
2050    Fixes corrupted display and hangs when switching between DRI2 and DRI3
2051    fullscreen apps, e.g. a compositor using DRI3 and a fullscreen app using
2052    DRI2 or vice versa.
2053    
2054    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2055    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2056
2057commit a5f7f2e68bad1935f5ad52286033237467f77302
2058Author: Tom St Denis <tom.stdenis@amd.com>
2059Date:   Mon Oct 5 13:12:23 2015 -0400
2060
2061    Move amdgpu_drm_handler/abort_proc fields to drmmode_flipdata_re
2062    
2063    Based on radeon commit de5ddd09db82141b263338dcf0c28e01f58268ee
2064    
2065    Their values are the same for all DRM flip ioctl calls within a single
2066    radeon_do_pageflip() call.
2067    
2068    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2069    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2070
2071commit e14e3560bff2537d3ad4c93d2b31442a122cde66
2072Author: Tom St Denis <tom.stdenis@amd.com>
2073Date:   Mon Oct 5 13:08:43 2015 -0400
2074
2075    Simplify amdgpu_do_pageflip() error handling slightly more
2076    
2077    Based on radeon commit e8c0f6319fbf4c3ea11e22ab1a68837031bdec8c
2078    
2079    We don't need the local variable old_fb_id.
2080    
2081    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2082    
2083    [ Michel Dänzer: fix up slightly to better match radeon formatting ]
2084    
2085    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2086
2087commit e9621ec0e2400f62db320c560a739b29258edb87
2088Author: Tom St Denis <tom.stdenis@amd.com>
2089Date:   Mon Oct 5 09:34:47 2015 -0400
2090
2091    Increase robustness against DRM page flip ioctl failures
2092    
2093    Based on radeon commit 8fc22360d5520469c82092ccb0fcf2af330c573f
2094    
2095    Centralize cleanup, only clean up things that have been allocated for
2096    the failed ioctl call.
2097    
2098    Fixes double-free after a flip ioctl failure.
2099    
2100    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89681
2101    
2102    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2103    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2104
2105commit db3bb2061b9ac16b0922d9afae99874820356a04
2106Author: Tom St Denis <tom.stdenis@amd.com>
2107Date:   Tue Sep 29 13:07:04 2015 -0400
2108
2109    Clean up allocation in AMDGPUInitVideo()
2110    
2111    The allocation of the adapters should use the correct sizeof (even if
2112    allocating an array of pointers).
2113    
2114    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2115    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2116
2117commit 94caf7ac777134b8396aa762a506053179bbb4c6
2118Author: Tom St Denis <tom.stdenis@amd.com>
2119Date:   Thu Oct 1 13:08:41 2015 -0400
2120
2121    Avoid leaking memory on output.
2122    
2123    Based on radeon commit 63dc36dc49f93cb00111b497ab6805194bc9d240
2124    
2125    and 2nd patch:
2126    
2127    Proper leak fix, previous leak fix was bogus.
2128    
2129    Based on radeon commit b8ec9ed4fe86952763b963c86f0af0dcae69aa6c
2130    
2131    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2132    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2133
2134commit f035faec041cb5df65c78effa58eb50197cedf88
2135Author: Tom St Denis <tom.stdenis@amd.com>
2136Date:   Thu Oct 1 12:56:05 2015 -0400
2137
2138    add support for DP 1.2 display hotplug
2139    
2140    Based on radeon commit 2f11dcd43966cf2ee26e61960fd72e6644f5e037
2141    
2142    > This allows for dynamic creation of conneectors when the
2143    > kernel tells us.
2144    >
2145    > v2: fix dpms off crash
2146    
2147    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2148    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2149
2150commit aee72b29210d79dbf41bde6eef16d7fe817e6cf4
2151Author: Tom St Denis <tom.stdenis@amd.com>
2152Date:   Thu Oct 1 12:29:36 2015 -0400
2153
2154    move output name creation to its own function
2155    
2156    Based on radeon commit c88424d1f4aaa78b569e5d44f0b4a47de2f422f4
2157    
2158    > The secondary indent is deliberate to make the next patch more
2159    > parseable for mst support.
2160    
2161    Signed-off-by:  Tom St Denis <tom.stdenis@amd.com>
2162    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2163
2164commit 0846abeace649d27a5f2c17373e717f92d246797
2165Author: Tom St Denis <tom.stdenis@amd.com>
2166Date:   Thu Oct 1 12:13:21 2015 -0400
2167
2168    stop caching mode resources
2169    
2170    Based on radeon commit 32b003cb7657e07d5af6338ad44d768eda87fd33
2171    
2172    > This is step one towards MST connector hotplug support,
2173    > it stop caching the mode resources structure, and
2174    > just passes a pointer to it around.
2175    
2176    With a few tweaks to match the state of the AMDGPU tree.
2177    
2178    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2179    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2180
2181commit 4ca8f957e0b417b099f625470db98a54531a731d
2182Author: Tom St Denis <tom.stdenis@amd.com>
2183Date:   Thu Oct 1 13:16:15 2015 -0400
2184
2185    Silence type mismatch warning.
2186    
2187    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2188    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2189
2190commit a79735ab1499c1f7814036d1b19ff465705c5f45
2191Author: Tom St Denis <tom.stdenis@amd.com>
2192Date:   Thu Oct 1 10:51:07 2015 -0400
2193
2194    Add support for server managed fds
2195    
2196    Based on radeon commit ed0cfbb4fe77146b0b38f777bc28f3a4ea6da07f
2197    
2198    and 2nd patch:
2199    
2200    Fix building on older servers without xf86platformBus.h
2201    
2202    Based on radeon commit b50da3b96c212086cb58501dbe988d64f1f35b6d
2203    
2204    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2205    
2206    [ Michel Dänzer: Fixed up amdgpu_kernel_open_fd() not to need
2207      AMDGPUEntPriv(), which doesn't work yet at that point ]
2208    
2209    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2210    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2211
2212commit b93934a9ed5e92f3a6eac6554c5c4fa2967a6dd0
2213Author: Tom St Denis <tom.stdenis@amd.com>
2214Date:   Thu Oct 1 10:05:36 2015 -0400
2215
2216    Add amdgpu_open_drm_master helper function
2217    
2218    Based on radeon commit 3d7861fe112f25874319d4cdc12b745fbcd359cf
2219    
2220    > This is a preparation patch for adding server-managed-fd support without it
2221    > turning into a goto fest.
2222    
2223    With appropriate modifications because the open call stack is different
2224    in the amdgpu tree.
2225    
2226    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2227    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2228
2229commit f5c3fd0b57cf9e392bf591110568637937a1d338
2230Author: Tom St Denis <tom.stdenis@amd.com>
2231Date:   Thu Oct 1 09:13:57 2015 -0400
2232
2233    Cleaning up for server-fd support
2234    
2235    Based on radeon commit a63342ad15408071437c80b411d14196f3288aed
2236    
2237    > radeon_open_drm_master get rid of unnecessary goto
2238    
2239    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2240    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2241
2242commit 3055724aef76a624718f26d5f0f9e9d567ffbcfb
2243Author: Tom St Denis <tom.stdenis@amd.com>
2244Date:   Thu Sep 24 13:08:31 2015 -0400
2245
2246    Simplify pick best crtc to fold two loops into one
2247    
2248    This patch folds the two for loops from amdgpu_pick_best_crtc() into
2249    one to reduce the LOC and make the routine easier to read.
2250    
2251    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2252    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2253
2254commit 9945b4ae1664ab815b39ff07e7b66cfa7f942dfa
2255Author: Tom St Denis <tom.stdenis@amd.com>
2256Date:   Wed Sep 9 09:38:02 2015 -0400
2257
2258    Avoid use-after-free in drmmode_output_destroy()
2259    
2260    The encoders array is freed before potentially all of the elements of
2261    the array are individually freed.
2262    
2263    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2264    Reviewed-by: Christian König <christian.koenig@amd.com>
2265    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2266    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> (cosmetic fixups)
2267
2268commit 36b3faebdd1d2090a286616eeeb131d15e9a1386
2269Author: Tom St Denis <tom.stdenis@amd.com>
2270Date:   Wed Sep 9 09:36:59 2015 -0400
2271
2272    Avoid use-after-free in amdgpu_kernel_open_fd()
2273    
2274    If the device cannot be opened avoid re-using busid after it has been
2275    freed.
2276    
2277    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2278    Reviewed-by: Christian König <christian.koenig@amd.com>
2279    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2280    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> (cosmetic fixups)
2281
2282commit 8823c3d4c6db70cff7699b31088f2d92db8faaf4
2283Author: Tom St Denis <tom.stdenis@amd.com>
2284Date:   Wed Sep 9 09:34:38 2015 -0400
2285
2286    dri2: Avoid calculation with undefined msc value
2287    
2288    If the get_msc() call fails for any reason we should avoid updating the
2289    vblank counter delta with undefined data.
2290    
2291    Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
2292    Reviewed-by: Christian König <christian.koenig@amd.com>
2293    Acked-by: Alex Deucher <alexander.deucher@amd.com>
2294    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> (minor fixups)
2295
2296commit 63948ea091a9b324327ade7ec4fc5d67ca7e6f6f
2297Author: Michel Dänzer <michel.daenzer@amd.com>
2298Date:   Fri Aug 14 18:41:57 2015 +0900
2299
2300    DRI2: Keep MSC monotonic when moving window between CRTCs
2301    
2302    This mirrors the DRI3 implementation in xserver. Fixes VDPAU video
2303    playback hanging when moving the window between CRTCs.
2304    
2305    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66384
2306    
2307    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2308
2309commit 55a4461bd95698cb8d52f9f6c28583f8f81afb4e
2310Author: Michel Dänzer <michel.daenzer@amd.com>
2311Date:   Fri Aug 7 11:46:31 2015 +0900
2312
2313    Wait for scanout BO initialization to finish before setting mode
2314    
2315    This should avoid intermittent artifacts which could sometimes be visible
2316    when setting a new scanout pixmap, e.g. on server startup or when
2317    changing resolutions.
2318    
2319    (Ported from radeon commit 3791fceabf2cb037467dc41c15364e9f9ec1e47e)
2320    
2321    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2322
2323commit 4c425e9c5c038504a0f0498dd800ab1fb40bf0c5
2324Author: Michel Dänzer <michel.daenzer@amd.com>
2325Date:   Fri Aug 7 12:39:24 2015 +0900
2326
2327    glamor: Add amdgpu_glamor_finish to wait for glamor rendering to finish
2328    
2329    This is a bit sneaky, because it calls glFinish directly from the driver,
2330    but it seems to work fine.
2331    
2332    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2333
2334commit bb989e173dc364a7d68e50d7e819d0e0ee133d2f
2335Author: Michel Dänzer <michel.daenzer@amd.com>
2336Date:   Fri Aug 7 11:43:48 2015 +0900
2337
2338    Only call drmmode_copy_fb (at most) once on server startup
2339    
2340    It doesn't make sense to copy the screen contents from console when VT
2341    switching back to Xorg or when Xorg resets.
2342    
2343    Fixes intermittent artifacts when VT switching back from console to the
2344    gdm login screen.
2345    
2346    (Ported from radeon commit 4e3dfa69e4630df2e0ec0f5b81d61159757c4664)
2347    
2348    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2349
2350commit ebe2c020fbf2ef8de01fc50b201ab23ddb9fb13b
2351Author: Mario Kleiner <mario.kleiner.de@gmail.com>
2352Date:   Mon Aug 10 23:34:40 2015 +0200
2353
2354    Make selection between DRI2 and DRI3 consistent with other drivers. (v2)
2355    
2356    Add Option "DRI" to allow selection of maximum DRI level.
2357    
2358    This allows the user to select the maximum level of DRI
2359    implementation to use, DRI2 or DRI3. It replaces the old
2360    option "DRI3" which had exactly the same purpose, but
2361    differs from the method used in both intel ddx and nouveau ddx.
2362    Make this consistent before a new stable driver is released.
2363    
2364    v2: Retain handling of old Option "DRI3" for backwards
2365        compatibility, but Option "DRI" will take precedence
2366        over "DRI3" if both are provided.
2367    
2368    Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
2369    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2370
2371commit c9611a2aa0f8d3bb55c552353740d60f6e4f63a0
2372Author: Alex Deucher <alexander.deucher@amd.com>
2373Date:   Tue Jul 7 22:46:34 2015 -0400
2374
2375    add fiji pci id
2376    
2377    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2378    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2379
2380commit 2622ac1554761b8824bfbbb2e3051a632ee38ce7
2381Author: Alex Deucher <alexander.deucher@amd.com>
2382Date:   Tue Jul 7 22:46:08 2015 -0400
2383
2384    Add fiji support
2385    
2386    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2387    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2388
2389commit 7a49d8728d17875206a84fd1023f62b37c4a9f51
2390Author: Michel Dänzer <michel.daenzer@amd.com>
2391Date:   Thu Aug 6 18:21:30 2015 +0900
2392
2393    On screen resize, clear the new buffer before displaying it
2394    
2395    Fixes garbage being intermittently visible during a screen resize.
2396    
2397    (Ported from radeon commit 80f3d727f93cb6efedd2b39338d2301035965fe2)
2398    
2399    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2400
2401commit 9f988bf1dc9d4cb92926c051ed8f15e9ba58a016
2402Author: Michel Dänzer <michel.daenzer@amd.com>
2403Date:   Thu Aug 6 17:50:11 2015 +0900
2404
2405    Make drmmode_copy_fb() work with glamor
2406    
2407    Needed for Xorg -background none.
2408    
2409    (Ported from radeon commit 3999bf88cdb192fe2f30b03bd2ed6f6a3f9f9057)
2410    
2411    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2412
2413commit 13cf61bd8d46b0059f26120a8902da6f86e6bd11
2414Author: Michel Dänzer <michel.daenzer@amd.com>
2415Date:   Thu Aug 6 17:46:38 2015 +0900
2416
2417    Update scanout pixmap contents before setting a mode with it
2418    
2419    This ensures the scanout pixmaps used for Option "TearFree" and Option
2420    "ShadowPrimary" have been initialized when their initial mode is set.
2421    
2422    (Ported from radeon commit a4a8cdbcc10c1c5f07485a2af9e9e81e490c3e1d)
2423    
2424    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2425
2426commit 15050aabf256c17250d1fca0bfac97fc6707b195
2427Author: Michel Dänzer <michel.daenzer@amd.com>
2428Date:   Thu Aug 6 17:37:11 2015 +0900
2429
2430    Defer initial modeset until the first BlockHandler invocation
2431    
2432    This ensures that the screen pixmap contents have been initialized when
2433    the initial modes are set.
2434    
2435    (Ported from radeon commits 673e1c7637687c74fc9bdeeeffb7ace0d04b734f and
2436    1584dc545c78e0bce8d4b4b9f26b568e2c211453)
2437    
2438    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2439
2440commit 96b5364496222f1b3afb9caad458f16f156b6c47
2441Author: Michel Dänzer <michel.daenzer@amd.com>
2442Date:   Thu Aug 6 17:32:45 2015 +0900
2443
2444    Defer initial drmmode_copy_fb call until root window creation
2445    
2446    That's late enough for acceleration to be fully initialized, but still
2447    early enough to set pScreen->canDoBGNoneRoot.
2448    
2449    (Ported from radeon commit 37874a4eeace5df04b02c8fc28f67b824e3f0f5f)
2450    
2451    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2452
2453commit 0fb45f2bba89379ba25d4c863091937b6384bda9
2454Author: Michel Dänzer <michel.daenzer@amd.com>
2455Date:   Thu Aug 6 17:25:53 2015 +0900
2456
2457    Only copy fbcon BO contents if bgNoneRoot is TRUE
2458    
2459    Otherwise, the X server will initialize the screen pixmap contents
2460    anyway.
2461    
2462    (Ported from radeon commit 39c497f3efca5ca08343b884f44c93215dcdef31)
2463    
2464    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2465
2466commit cac553d3b691d26eaad24fbdcba06097b6728a6d
2467Author: Michel Dänzer <michel.daenzer@amd.com>
2468Date:   Thu Aug 6 17:20:22 2015 +0900
2469
2470    Add .dir-locals.el file with Emacs indentation settings
2471    
2472    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2473
2474commit ea32253541959cc36a40fb0118200a8f493dc98a
2475Author: Jammy Zhou <Jammy.Zhou@amd.com>
2476Date:   Wed Jul 15 11:26:28 2015 +0800
2477
2478    Adapt to the interface change of amdgpu_bo_alloc v3
2479    
2480    The amdgpu_bo_alloc_result structure is removed from libdrm_amdgpu,
2481    and the amdgpu_bo_handle is returned directly
2482    
2483    v2: remove the va_map/unmap
2484    v3: simply the code a bit
2485    
2486    Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
2487    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2488
2489commit 3010d3259d3bc74263d526e54e02bc169c8d4b4d
2490Author: Mario Kleiner <mario.kleiner.de@gmail.com>
2491Date:   Wed Jul 15 09:54:59 2015 +0200
2492
2493    Allow/Fix use of multiple ZaphodHead outputs per x-screen.
2494    
2495    Defining multiple ZaphodHead outputs per x-screen in a
2496    multiple x-screen's per gpu configuration caused all
2497    outputs except one per x-screen to go dark, because
2498    there was a fixed mapping x-screen number -> crtc number,
2499    limiting the number of crtc's per x-screen to one.
2500    
2501    On a ZaphodHead's setup, be more clever and assign
2502    as many crtc's to a given x-screen as there are
2503    ZaphodHeads defined for that screen, assuming
2504    there are enough unused crtc's available.
2505    
2506    (Ported from radeon commit afab7839fc15722dbaa7203d00fe7f6ce5336b9d)
2507    
2508    Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
2509    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2510
2511commit 159c5d460a330cf0a24678f3c6c3e2fbaf23c571
2512Author: Dave Airlie <airlied@gmail.com>
2513Date:   Tue Jul 14 17:04:14 2015 +0900
2514
2515    Adopt for new X server dirty tracking APIs.
2516    
2517    Signed-off-by: Dave Airlie <airlied@redhat.com>
2518    
2519    (Ported from radeon commit b6d871bf299c7d0f106c07ee4d8bd3b2337f53cc)
2520    
2521    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2522
2523commit 7b3212e33cd36fb6f122774df27b56ec4e1a22b8
2524Author: Michel Dänzer <michel.daenzer@amd.com>
2525Date:   Thu Jul 9 17:57:29 2015 +0900
2526
2527    DRI2: Don't ignore rotated CRTCs in amdgpu_dri2_drawable_crtc
2528    
2529    Waiting for vblank interrupts works fine with rotated CRTCs. The only
2530    case we can't handle with rotation is page flipping, which is handled
2531    in can_exchange().
2532    
2533    This fixes gnome-shell hanging on rotation, probably because
2534    amdgpu_dri2_get_msc returned MSC/UST 0 for rotated CRTCs.
2535    
2536    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2537
2538commit 5587a7b43d02d6371ed4675a6260427492ebad94
2539Author: Piotr Redlewski <predlewski@gmail.com>
2540Date:   Wed Jul 8 20:59:14 2015 +0200
2541
2542    Do not try to enable already enabled CRTCs in DPMS hook
2543    
2544    (Ported from radeon commit a8ed62010d5012dfb27773595c446b217f3c00c5)
2545    
2546    Signed-off-by: Piotr Redlewski <predlewski@gmail.com>
2547    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2548
2549commit b176e63df20b345cb378fe962afd14eed43421d3
2550Author: Piotr Redlewski <predlewski@gmail.com>
2551Date:   Sun Jun 28 23:20:22 2015 +0200
2552
2553    Enable/disable CRTCs in DPMS hook
2554    
2555    The CRTC DPMS hook hasn't enabled or disabled hardware CRTCs.
2556    
2557    (Based on radeon commit 48e5be1d5a82c1e0ccf6b7d52924c92a630e52a8)
2558    
2559    Signed-off-by: Piotr Redlewski <predlewski@gmail.com>
2560    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2561
2562commit d94d4a609c593b46ab718544ee24c25530732f22
2563Author: Michel Dänzer <michel.daenzer@amd.com>
2564Date:   Thu Jun 11 17:49:33 2015 +0900
2565
2566    Handle CRTC DPMS from output DPMS hooks
2567    
2568    This fixes at least two issues:
2569    
2570    The CRTC DPMS hook isn't called after a modeset, so the vertical blank
2571    interrupt emulation code considered the CRTC disabled after a modeset. As
2572    a side effect, page flipping was no longer used after a modeset.
2573    
2574    This change also makes sure the vertical blank interrupt emulation code
2575    runs before the hardware CRTC is disabled and after it's enabled from the
2576    output DPMS hook. The wrong order could cause gnome-shell to hang after
2577    a suspend/resume and/or DPMS off/on cycle.
2578    
2579    (Ported from radeon commit c4ae0e2cbcc0e2ebf9f13ee92d59b5120254a1dc)
2580    
2581    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2582
2583commit c57da33308a81fa575179238a0415abcb8b34908
2584Author: Michel Dänzer <michel.daenzer@amd.com>
2585Date:   Tue Jun 9 12:39:21 2015 +0900
2586
2587    Add Option "TearFree"
2588    
2589    Avoids tearing by flipping between two scanout BOs per (non-rotated) CRTC
2590    
2591    (Cherry picked from radeon commit 43159ef400c3b18b9f4d3e6fa1c4aef2d60d38fe)
2592    
2593    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2594
2595commit bd0aca09770543fa77b934e1728a832c9c2dc90c
2596Author: Michel Dänzer <michel.daenzer@amd.com>
2597Date:   Tue Jun 9 11:57:59 2015 +0900
2598
2599    glamor: Remove the stride member of struct radeon_pixmap
2600    
2601    Its value was always the same as that of the PixmapRec devKind member.
2602    
2603    (Cherry picked from radeon commit ed401f5b4f07375db17ff05e294907ec95fc946d)
2604    
2605    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2606
2607commit e5dfb6c2667994701ee451bf82c4142cbf343405
2608Author: Michel Dänzer <michel.daenzer@amd.com>
2609Date:   Wed Mar 18 16:23:24 2015 +0900
2610
2611    glamor: Add Option "ShadowPrimary"
2612    
2613    When this option is enabled, most pixmaps (including the screen pixmap)
2614    are allocated in system RAM and mostly accessed by the CPU. Changed areas
2615    of the screen pixmap are copied to dedicated per-CRTC scanout pixmaps
2616    regularly, triggered by the vblank interrupt.
2617    
2618    (Cherry picked from radeon commits ae92d1765fa370a8d94c2856ad6c45d273ec3c69
2619    and 1af044d7eee211fd4b248c236280274a68334da5)
2620    
2621    [ Michel Dänzer: Additional adjustements for the amdgpu driver ]
2622    
2623    Signed-off-by: Darren Powell <darren.powell@amd.com>
2624    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2625
2626commit 08da7b691d556735dcc22b1351c886a5079dfd3f
2627Author: Michel Dänzer <michel.daenzer@amd.com>
2628Date:   Wed Jun 10 16:21:21 2015 +0900
2629
2630    Add AMDGPU_CREATE_PIXMAP_GTT flag
2631    
2632    When set, the pixmap memory is allocated in GTT instead of in VRAM.
2633    
2634    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2635
2636commit 59bdb578266a2637fda8d11168b9332f6845157c
2637Author: Michel Dänzer <michel.daenzer@amd.com>
2638Date:   Wed Jun 10 12:04:29 2015 +0900
2639
2640    Factor out amdgpu_bo_get_handle helper
2641    
2642    The helper transparently handles BOs allocated from GBM and
2643    libdrm_amdgpu.
2644    
2645    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2646
2647commit 9a6eff506b6804481a6e8139d362355fc5ffdbfb
2648Author: Michel Dänzer <michel.daenzer@amd.com>
2649Date:   Wed Jun 10 12:10:24 2015 +0900
2650
2651    Set AMDGPU_BO_FLAGS_GBM for cursor buffers allocated from GBM
2652    
2653    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2654
2655commit d3ea8a69b02b308f8f23662be6e0c7bd81c1a2c9
2656Author: Michel Dänzer <michel.daenzer@amd.com>
2657Date:   Fri May 29 18:53:50 2015 +0900
2658
2659    glamor: Add wrappers for the X server rendering hooks
2660    
2661    They can choose between using the GPU or CPU for the operation.
2662    
2663    (cherry picked from radeon commits eea79472a84672ee4dc7adc4487cec6a4037048a
2664    and e58fc380ccf2a581d28f041fd74b963626ca5404)
2665    
2666    Signed-off-by: Darren Powell <darren.powell@amd.com>
2667    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2668
2669commit 895e4d73d5f042afa13065b64a78f5625ecb5612
2670Author: Michel Dänzer <michel.daenzer@amd.com>
2671Date:   Fri May 29 18:53:40 2015 +0900
2672
2673    glamor: Remove unused function radeon_glamor_pixmap_is_offscreen
2674    
2675    (cherry picked from radeon commit 2fa021f77372ca93375a3d13a0c43a9089674899)
2676    
2677    Signed-off-by: Darren Powell <darren.powell@amd.com>
2678    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2679
2680commit cc5671c587d575b2a7d2802d17e8af0384a2cea5
2681Author: Michel Dänzer <michel.daenzer@amd.com>
2682Date:   Fri May 29 18:53:36 2015 +0900
2683
2684    Add RADEON_CREATE_PIXMAP_SCANOUT flag
2685    
2686    It means that the pixmap is used for scanout exclusively.
2687    
2688    (cherry picked from radeon commit e96349ba6281fd18b8bf9c76629128276b065e6c)
2689    
2690    Signed-off-by: Darren Powell <darren.powell@amd.com>
2691    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2692
2693commit 21834953ee64920438dee1c94f3a1e53dc58b82d
2694Author: Michel Dänzer <michel.daenzer@amd.com>
2695Date:   Fri May 29 18:53:32 2015 +0900
2696
2697    Split out struct drmmode_scanout for rotation shadow buffer information
2698    
2699    Will be used for other kinds of dedicated scanout buffers as well.
2700    
2701    (cherry picked from radeon commit 9be7dd382e86d2b804de81d4e2af7431b2e16843)
2702    
2703    Signed-off-by: Darren Powell <darren.powell@amd.com>
2704    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2705
2706commit e4e4f7b83e7d7e43993fa0793d666d6dec2980f8
2707Author: Michel Dänzer <michel.daenzer@amd.com>
2708Date:   Fri May 29 18:53:21 2015 +0900
2709
2710    Rename scanout_pixmap_x field to prime_pixmap_x
2711    
2712    To avoid confusion with upcoming changes.
2713    
2714    (cherry picked from radeon commit c32b0530302739f6512755bccf281c2300617376)
2715    
2716    Signed-off-by: Darren Powell <darren.powell@amd.com>
2717    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2718
2719commit edfff6b1a3a19953644b8052b30076f76f7dc337
2720Author: Michel Dänzer <michel.daenzer@amd.com>
2721Date:   Tue Jun 2 17:04:21 2015 +0900
2722
2723    Add DRI3 support
2724    
2725    Must be enabled with
2726    
2727            Option  "DRI3"
2728    
2729    in xorg.conf.
2730    
2731    (Cherry picked from radeon commits 64e1e4dbdd3caee6f5d8f6b6c094b4533fa94953,
2732    694e04720b886060fe3eefdce59741f218c8269f,
2733    f940fd741b15f03393037c5bb904cd74f012de9d,
2734    fcd37f65f485291084c174666bd605e215bf1398,
2735    4b0997e56dec0053cb2cb793e0f4ae35055ff7e6,
2736    f68d9b5ba0c91a725b5eec9386c61bea8824c299 and
2737    98fb4199e63fedd4607cddee64bf602d6398df81)
2738    
2739    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2740
2741commit d295b5b3310bc5c23d232c4be4170165a057c090
2742Author: Michel Dänzer <michel.daenzer@amd.com>
2743Date:   Tue Jun 2 17:01:06 2015 +0900
2744
2745    amdgpu_set_shared_pixmap_backing: Add support for GBM / glamor v2
2746    
2747    v2: Initialize reference count of imported GBM BOs to 1, fixes leaking
2748        them.
2749    
2750    Reviewed-by: Alex Deucher <alexander.deucher@amd.com> [v1]
2751
2752commit 03ad0fa0185d215f7d4234006e04406af1ab63ca
2753Author: Michel Dänzer <michel.daenzer@amd.com>
2754Date:   Fri May 29 18:53:45 2015 +0900
2755
2756    glamor: Add radeon_pixmap parameter to radeon_glamor_create_textured_pixmap
2757    
2758    (cherry picked from radeon commit 051d46382656ffc3e6cac1aab3aee7efdf5b623a)
2759    
2760    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2761    Signed-off-by: Darren Powell <darren.powell@amd.com>
2762    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2763
2764commit fafb8c6ac925ad16073e5a60dbf60d5add11bb25
2765Author: Michel Dänzer <michel.daenzer@amd.com>
2766Date:   Tue Jun 2 17:00:46 2015 +0900
2767
2768    Add support for the Present extension
2769    
2770    (Cherry picked from radeon commits 3c65fb849e1ba9fb6454bcaa55b696548902f3fc,
2771    694e04720b886060fe3eefdce59741f218c8269f,
2772    e3be8b0a8cf484ff16597413a6172788178e80c8,
2773    80eede245d1eda27eaba108b0761a24bfd69aff6 and
2774    5f82a720374c9c1caebb42bfbeea1f0cf8847d28)
2775    
2776    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2777
2778commit 5b51f0e7e396ea946ef85429a8e9be5c1d5c39c3
2779Author: Michel Dänzer <michel.daenzer@amd.com>
2780Date:   Tue Jun 2 16:58:27 2015 +0900
2781
2782    Add support for SYNC extension fences
2783    
2784    (Cherry picked from radeon commits 8fc9a241ab59ffbcdc178d6415332c88a54e85fe,
2785    af1862a37570fa512a525ab47d72b30400d2e2d6,
2786    aa7825eb29cdf6ac9d7b28ad18186807ff384687,
2787    af6076241c0d322b295a4e898407ae2472bd8eb4 and
2788    d64a13ebe0ecd241ee3260dbffd8f4a01e254183)
2789    
2790    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2791
2792commit a30060d22a42688371166a861e5050fdd5ce8f7b
2793Author: Michel Dänzer <michel.daenzer@amd.com>
2794Date:   Mon Jun 1 18:33:33 2015 +0900
2795
2796    DRI2: Split out helper for getting UST and MSC of a specific CRTC
2797    
2798    (Cherry picked from radeon commits 76c2923ac5c7230a8b2f9f8329c308d28b44d9c0
2799    and d7c82731a8bf3d381bc571b94d80d9bb2dd6e40d)
2800    
2801    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2802
2803commit 9a554a683b970660b467566cf05b921393705a20
2804Author: Michel Dänzer <michel.daenzer@amd.com>
2805Date:   Mon Jun 1 17:32:56 2015 +0900
2806
2807    DRI2: Use helper functions for DRM event queue management
2808    
2809    This is mostly in preparation for Present support, but it also simplifies
2810    the DRI2 specific code a little.
2811    
2812    (Cherry picked from radeon commit 6c3a721cde9317233072b573f9502348dcd21b16)
2813    
2814    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2815
2816commit e6164ad340f65ff8ee6f6a6934302591af875a43
2817Author: Michel Dänzer <michel.daenzer@amd.com>
2818Date:   Mon Jun 1 17:29:30 2015 +0900
2819
2820    DRI2: Move amdgpu_dri2_flip_event_handler
2821    
2822    In preparation for the next change, which will modify it to a static
2823    function which needs to be in the new place. No functional change.
2824    
2825    (Cherry picked from radeon commit c3fa22a479e61d1899fa9d327d9c4e2a7f64b0c1)
2826    
2827    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2828
2829commit 5419e13da7ec3cffd43510ac88106076ea81124c
2830Author: Michel Dänzer <michel.daenzer@amd.com>
2831Date:   Mon Jun 1 17:25:23 2015 +0900
2832
2833    DRI2: Remove superfluous assignments to *_info->frame
2834    
2835    That field is only used for page flipping.
2836    
2837    (Cherry picked from radeon commit 65045112fdc8a9fa36e0e00f46739a6152b775ff)
2838    
2839    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2840
2841commit f4c2b640be17ab1f8694b35d4cb74ccfce3d1385
2842Author: Michel Dänzer <michel.daenzer@amd.com>
2843Date:   Mon Jun 1 17:11:30 2015 +0900
2844
2845    DRI2: Simplify blit fallback handling for scheduled swaps
2846    
2847    Also use amdgpu_dri2_schedule_event when possible.
2848    
2849    (Cherry picked from radeon commit ad27f16f308079d06a2b1c788b3cb0947531253a)
2850    
2851    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2852
2853commit 13a7284e061081a12180b375d66f9b8394cf8753
2854Author: Michel Dänzer <michel.daenzer@amd.com>
2855Date:   Mon Jun 1 16:58:00 2015 +0900
2856
2857    Add DRM event queue helpers
2858    
2859    (Cherry picked from radeon commit b4af8a327ed8420f0ff4ea0f113f4a59406ed4d3)
2860    
2861    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2862
2863commit eb7c6958dff5cb8b0aad02d1d5673483dae4e3d4
2864Author: Michel Dänzer <michel.daenzer@amd.com>
2865Date:   Mon Jun 1 16:52:40 2015 +0900
2866
2867    Move xorg_list backwards compatibility to new amdgpu_list.h header
2868    
2869    (Cherry picked from radeon commits 7c3470f4b659206ed23f761948936ede3a2dba3d
2870    and 4a98f60117c387a228d5cbaadb6e298fb4e865df)
2871    
2872    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2873
2874commit 69d161a54b4ea0d8033a0873210f2857c91ceae8
2875Author: Michel Dänzer <michel.daenzer@amd.com>
2876Date:   Mon Jun 1 16:46:30 2015 +0900
2877
2878    Require at least xserver 1.8
2879    
2880    So we can rely on the list.h header.
2881    
2882    xserver 1.8 was released in April 2010.
2883    
2884    (Cherry picked from radeon commit 7388d0b6c54b9d536fdb161e3aa61b326627b939)
2885    
2886    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2887
2888commit 7363156b7c077def2aaf9a4573410817f5e92610
2889Author: Jammy Zhou <Jammy.Zhou@amd.com>
2890Date:   Sat May 30 00:31:44 2015 +0800
2891
2892    Check GBM_BO_USE_LINEAR correctly v2
2893    
2894    v2: remove the check for gbm.h
2895    
2896    Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
2897    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2898    Reviewed-by: Alex Deucher <alexander.deucher@amd.com> [v1]
2899
2900commit e75e9f39c95b8b563885882bf29d776861cd6ca3
2901Author: Brian Paterni <bpaterni@gmail.com>
2902Date:   Sat May 16 15:00:14 2015 -0500
2903
2904    extend conditional group GBM_BO_USE_LINEAR
2905 over both usages
2906    
2907    Fixes 'GBM_BO_USE_LINEAR' undeclared error when compiling against older
2908    libgbm
2909    
2910    Signed-off-by: Brian Paterni <bpaterni@gmail.com>
2911    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2912
2913commit 37b389ee9e13f065fb080d1269f9a6aed616c210
2914Author: Michel Dänzer <michel.daenzer@amd.com>
2915Date:   Fri May 15 10:24:24 2015 +0900
2916
2917    glamor: Deal with glamor_glyphs_init being removed from xserver
2918    
2919    Port of radeon commit 818c180c8932233b214a35ba0647af82f7bcec3d.
2920
2921commit 22917044e419023d487f816e0d4f094695b55fa6
2922Author: Alex Deucher <alexander.deucher@amd.com>
2923Date:   Tue May 12 13:29:00 2015 -0400
2924
2925    add some new tonga pci ids
2926    
2927    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2928    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2929    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2930
2931commit e71be4a22799ec4c02051b75c5fed16a3a953c7b
2932Author: Alex Deucher <alexander.deucher@amd.com>
2933Date:   Tue May 12 13:25:02 2015 -0400
2934
2935    add new bonaire pci id
2936    
2937    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2938    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2939    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2940
2941commit b795d1e137b34a314b4b41d025d96ca9251d6bbe
2942Author: Michel Dänzer <michel.daenzer@amd.com>
2943Date:   Thu May 7 18:05:32 2015 +0900
2944
2945    Link against libgbm
2946    
2947    Fixes unresolved symbol "gbm_create_device".
2948    
2949    Reported-and-Tested-by: Brian Paterni <bpaterni@gmail.com>
2950
2951commit 7e3b27390a03e423772717fca3c757cf5cc4d7b4
2952Author: Jammy Zhou <Jammy.Zhou@amd.com>
2953Date:   Tue May 12 05:34:49 2015 +0800
2954
2955    Disable tiling for PRIME shared pixmap
2956    
2957    Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
2958    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2959
2960commit 4840f918ab7d61b4f55bcdff3afdac7b34e45d88
2961Author: Jammy Zhou <Jammy.Zhou@amd.com>
2962Date:   Tue May 12 00:09:42 2015 +0800
2963
2964    Use gbm_bo_get_fd to get DMA_BUF fd
2965    
2966    When GBM is used for buffer allocation, gbm_bo_get_fd should be
2967    used to get the DMA_BUF fd.
2968    
2969    Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
2970    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2971
2972commit b69c5b3cc2d7da3bb85acd687db9b5a021258914
2973Author: Marek Olšák <marek.olsak@amd.com>
2974Date:   Fri Mar 27 22:56:37 2015 +0100
2975
2976    ddx: use amdgpu_query_crtc_from_id
2977    
2978    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2979    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2980
2981commit 91aa694a7da7b690a3e5d59a1a8fa42cbb3ebda4
2982Author: Marek Olšák <marek.olsak@amd.com>
2983Date:   Fri Mar 27 22:22:35 2015 +0100
2984
2985    ddx: remove AMDGPUIsAccelWorking
2986    
2987    libdrm fails to initialize without acceleration, so this always returns true.
2988    
2989    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2990    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2991
2992commit afc33040f862e2e13ba7f132bb363cf16fb6a1d7
2993Author: Marek Olšák <marek.olsak@amd.com>
2994Date:   Fri Mar 27 22:14:37 2015 +0100
2995
2996    ddx: enable acceleration by default on Hawaii
2997    
2998    Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
2999    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
3000
3001commit 8a34a8149860ac15e83ccdbd8d9a527d8d3e5997
3002Author: Jammy Zhou <Jammy.Zhou@amd.com>
3003Date:   Mon Apr 27 14:27:34 2015 +0800
3004
3005    Remove throttling from amdgpu_dri2_copy_region2
3006    
3007    Throttling should be handled by the client-side drivers.
3008    
3009    Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
3010    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
3011
3012commit 9f61a5506b1028d30c99cb5866abcec35d5c9cb8
3013Author: Alex Deucher <alexander.deucher@amd.com>
3014Date:   Fri Apr 24 11:47:32 2015 -0400
3015
3016    fixup README
3017    
3018    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
3019    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
3020
3021commit a49ad11af18dad74506c2f69d7bbda07b67529d2
3022Author: Michel Dänzer <michel.daenzer@amd.com>
3023Date:   Fri Apr 24 09:57:27 2015 +0900
3024
3025    Add 10-amdgpu.conf xorg.conf.d snippet
3026    
3027    This instructs Xorg >= 1.16 to try loading the amdgpu driver for devices
3028    managed by the amdgpu kernel driver.
3029    
3030    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
3031
3032commit fa4aed6cf56048a6520eac57514e38db3685cd15
3033Author: Michel Dänzer <michel.daenzer@amd.com>
3034Date:   Fri Apr 24 09:53:33 2015 +0900
3035
3036    Document Option "AccelMethod" in the manpage
3037    
3038    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
3039
3040commit fe4a4b6836252cc8caa642a32fb3910c8590076b
3041Author: Michel Dänzer <michel.daenzer@amd.com>
3042Date:   Fri Apr 24 09:52:04 2015 +0900
3043
3044    Fix build when gbm.h doesn't define GBM_BO_USE_LINEAR
3045    
3046    Option "AccelMethod" "none" is ignored in that case.
3047    
3048    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
3049
3050commit 84df3e7114fb71b5e10c1a6f7869ab1505fef5b0
3051Author: Michel Dänzer <michel.daenzer@amd.com>
3052Date:   Fri Apr 24 09:51:22 2015 +0900
3053
3054    glamor: Handle GLAMOR_* flags removed from xserver
3055    
3056    The behaviour is the same as when the removed flags were passed in.
3057    
3058    (cherry picked from radeon commit b16609b453bb1a181198cf27778f205dc23fb642)
3059    
3060    Reviewed-by: Christian König <christian.koenig@amd.com>
3061
3062commit b947f4bf4efa8841bea4d306d0b0d21c7511c724
3063Author: Michel Dänzer <michel.daenzer@amd.com>
3064Date:   Fri Apr 24 09:50:51 2015 +0900
3065
3066    Move #include "radeon_glamor.h" from amdgpu_drv.h to where it's needed
3067    
3068    (cherry picked from radeon commit 4b8adebb80158bcf81ada83bb88517febe931b12)
3069    
3070    Reviewed-by: Christian König <christian.koenig@amd.com>
3071
3072commit ff62bf6e9dce55dbde92baf4fa30193c7344ee8a
3073Author: Alex Deucher <alexander.deucher@amd.com>
3074Date:   Mon Apr 20 11:57:52 2015 -0400
3075
3076    amdgpu: add the xf86-video-amdgpu driver
3077    
3078    This adds the new xf86-video-amdgpu driver for
3079    newer AMD GPUs.
3080    
3081    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
3082