Skip to contentSkip to conversation

sync libdrm headers with kernel

PATCH New Andres Rodriguez 2 participants 5 messages Jan 9, 2017 – Jan 13, 2017 3 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#2 lore raw

PATCH 1/1 drm/radeon: define RADEON_TILING_R600_NO_SCANOUT

In reply to a message not in the archive

Add the missing definition of RADEON_TILING_R600_NO_SCANOUT.

This define currently exists in the libdrm radeon_drm.h, but missing from from the kernel radeon_drm.h. This makes the header update process inconvenient.

To solve the problem, add the define on the kernel side.

RADEON_TILING_R600_NO_SCANOUT is consumed by the radeon Mesa/Gallium driver.

---
 include/uapi/drm/radeon_drm.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/radeon_drm.h +1 -0
index 490a59c..9734670 100644
@@ -838,6 +838,7 @@ struct drm_radeon_gem_userptr {
 #define RADEON_TILING_MACRO				0x1
 #define RADEON_TILING_MICRO				0x2
 #define RADEON_TILING_SWAP_16BIT			0x4
+#define RADEON_TILING_R600_NO_SCANOUT			RADEON_TILING_SWAP_16BIT
 #define RADEON_TILING_SWAP_32BIT			0x8
 /* this object requires a surface when mapped - i.e. front buffer */
 #define RADEON_TILING_SURFACE				0x10
Signature · 6 lines
2.9.3

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#5 lore raw

PATCH 1/1 headers: Sync {amdgpu, radeon}_drm.h with the kernel v2

In reply to a message not in the archive

Generated using make headers_install from:
airlied/drm-next 3806a27 Merge tag 'drm-misc-next-2016-12-30' ... +
drm/radeon: define RADEON_TILING_R600_NO_SCANOUT

By adding RADEON_TILING_R600_NO_SCANOUT to the kernel tree we no longer need to maintain this define on radeon_drm.h manually.

v2: Add RADEON_TILING_R600_NO_SCANOUT to the kernel tree instead of manually re-adding it.

---
 include/drm/README       |   7 +-
 include/drm/amdgpu_drm.h | 387 +++++++++++++++++++++++++++++------------------
 include/drm/radeon_drm.h | 130 ++++++++--------
 3 files changed, 308 insertions(+), 216 deletions(-)
include/drm/README +1 -6
index a50b02c..fc782be 100644
@@ -94,10 +94,6 @@ Status: ?
 Promote to fixed size ints, which match the current (32bit) ones.
 
 
-amdgpu_drm.h
- - Using the stdint.h uint*_t over the respective __u* ones
-Status: Trivial.
-
 drm_mode.h
  - Missing DPI encode/connector pair.
 Status: Trivial.
@@ -123,8 +119,7 @@ r128_drm.h
  - Broken compat ioctls.
 
 radeon_drm.h
- - Missing RADEON_TILING_R600_NO_SCANOUT, CIK_TILE_MODE_*, broken UMS ioctls,
-using stdint types.
+ - Missing CIK_TILE_MODE_*, broken UMS ioctls.
  - Both kernel and libdrm: missing padding -
 drm_radeon_gem_{create,{g,s}et_tiling,set_domain} others ?
 Status: ?
include/drm/amdgpu_drm.h +242 -145

662 lines not on this page · raw message

include/drm/radeon_drm.h +65 -65

222 lines not on this page · raw message

Signature · 6 lines
2.9.3

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by
#4 lore raw

Re: [PATCH linux] drm/radeon: define RADEON_TILING_R600_NO_SCANOUT

In reply to a message not in the archive
Quoted 11 lines · Andres Rodriguez

Add the missing definition of RADEON_TILING_R600_NO_SCANOUT.

This define currently exists in the libdrm radeon_drm.h, but missing from from the kernel radeon_drm.h. This makes the header update process inconvenient.

To solve the problem, add the define on the kernel side.

RADEON_TILING_R600_NO_SCANOUT is consumed by the radeon Mesa/Gallium driver.

It may look a bit iffy to have it here, but it's a bit late to change it now.

Fwiw

Thanks !
Emil
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#7 lore raw

Re: [PATCH libdrm] headers: Sync {amdgpu,radeon}_drm.h with the kernel v2

In reply to a message not in the archive
Quoted 11 lines · Andres Rodriguez

Generated using make headers_install from:
airlied/drm-next 3806a27 Merge tag 'drm-misc-next-2016-12-30' ... +
drm/radeon: define RADEON_TILING_R600_NO_SCANOUT

By adding RADEON_TILING_R600_NO_SCANOUT to the kernel tree we no longer need to maintain this define on radeon_drm.h manually.

v2: Add RADEON_TILING_R600_NO_SCANOUT to the kernel tree instead of manually re-adding it.

Please hold this off for a bit until the fix lands in airlied/drm-next.

Thanks!
Emil
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx