diff options
author | Dave Airlie <airlied@redhat.com> | 2017-08-09 20:47:33 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-08-09 20:47:33 -0400 |
commit | 09ef2378dc42339f3871584dc26d27da220277cb (patch) | |
tree | bd7d8e982c457767f50e3129b09b5f7d9e36a9d1 /drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |
parent | d720661291fc2b261311c8425b8ca0e2a21c264b (diff) | |
parent | 16fece0153d5b6573c3fcb8cfbe483f83ca8eb01 (diff) |
Merge tag 'drm-misc-next-2017-08-08' of git://anongit.freedesktop.org/git/drm-misc into drm-next
UAPI Changes:
- vc4: Add ioctl to allow attaching a label to a bo (Eric)
- Add new format/modifier blob plane property (Ben)
- armada: Use __u32/__u64 instead of uint32_t/uint64_t (Mikko)
- [kinda uapi] fb_helper: Expose display_info size via fb_info (David)
Core Changes:
- Default gem_dumb_[map_offset|destroy] as mmap/destroy implementations (Noralf)
- Simplify atomic properties by removing the helpers and handling in core (Daniel)
Driver Changes:
- stm: Add STM32 DSI controller driver (Phillipe)
- vc4: Add HDMI CEC support (Hans)
- rockchip: Refactor register init & soc version handling (Mark)
- misc: Remove .load_lut, .gamma_set, .gamma_get dead code (Peter)
- dw-hdmi: Add HDMI CEC support (Russell)
Cc: Philippe CORNU <philippe.cornu@st.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Eric Anholt <eric@anholt.net>
Cc: Noralf Trønnes <noralf@tronnes.org>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Mark yao <mark.yao@rock-chips.com>
Cc: Peter Rosin <peda@axentia.se>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Mikko Rapeli <mikko.rapeli@iki.fi>
Cc: David Lechner <david@lechnology.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
* tag 'drm-misc-next-2017-08-08' of git://anongit.freedesktop.org/git/drm-misc: (107 commits)
drm: Nuke drm_atomic_legacy_backoff
drm: Nuke drm_atomic_helper_connector_dpms
drm: Nuke drm_atomic_helper_connector_set_property
drm: Nuke drm_atomic_helper_plane_set_property
drm: Nuke drm_atomic_helper_crtc_set_property
drm: Handle properties in the core for atomic drivers
drm: Don't update property values for atomic drivers
drm/omap: Rework the rotation-on-crtc hack
drm/radeon: Use the drm_driver.dumb_destroy default
drm/i915: Use the drm_driver.dumb_destroy default
drm/sti: Use .dumb_map_offset and .dumb_destroy defaults
drm: bridge: synopsys/dw-hdmi: Provide default configuration function for HDMI 2.0 PHY
drm/fb-helper: pass physical dimensions to fbdev
uapi drm/armada_drm.h: use __u32 and __u64 instead of uint32_t and uint64_t
drm/bridge: dw-hdmi: remove CEC engine register definitions
drm/bridge: dw-hdmi: add cec driver
drm/bridge: dw-hdmi: add missing cec_notifier_put
drm: remove unused and redundant callbacks
staging: vboxvideo: remove dead gamma lut code
drm: dw-hdmi-i2s: add missing company name on Copyright
...
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_virtual.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index 0d2f060206dc..5ed919e45351 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |||
@@ -112,16 +112,6 @@ static int dce_virtual_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, | |||
112 | u16 *green, u16 *blue, uint32_t size, | 112 | u16 *green, u16 *blue, uint32_t size, |
113 | struct drm_modeset_acquire_ctx *ctx) | 113 | struct drm_modeset_acquire_ctx *ctx) |
114 | { | 114 | { |
115 | struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); | ||
116 | int i; | ||
117 | |||
118 | /* userspace palettes are always correct as is */ | ||
119 | for (i = 0; i < size; i++) { | ||
120 | amdgpu_crtc->lut_r[i] = red[i] >> 6; | ||
121 | amdgpu_crtc->lut_g[i] = green[i] >> 6; | ||
122 | amdgpu_crtc->lut_b[i] = blue[i] >> 6; | ||
123 | } | ||
124 | |||
125 | return 0; | 115 | return 0; |
126 | } | 116 | } |
127 | 117 | ||
@@ -233,11 +223,6 @@ static int dce_virtual_crtc_set_base(struct drm_crtc *crtc, int x, int y, | |||
233 | return 0; | 223 | return 0; |
234 | } | 224 | } |
235 | 225 | ||
236 | static void dce_virtual_crtc_load_lut(struct drm_crtc *crtc) | ||
237 | { | ||
238 | return; | ||
239 | } | ||
240 | |||
241 | static int dce_virtual_crtc_set_base_atomic(struct drm_crtc *crtc, | 226 | static int dce_virtual_crtc_set_base_atomic(struct drm_crtc *crtc, |
242 | struct drm_framebuffer *fb, | 227 | struct drm_framebuffer *fb, |
243 | int x, int y, enum mode_set_atomic state) | 228 | int x, int y, enum mode_set_atomic state) |
@@ -253,14 +238,12 @@ static const struct drm_crtc_helper_funcs dce_virtual_crtc_helper_funcs = { | |||
253 | .mode_set_base_atomic = dce_virtual_crtc_set_base_atomic, | 238 | .mode_set_base_atomic = dce_virtual_crtc_set_base_atomic, |
254 | .prepare = dce_virtual_crtc_prepare, | 239 | .prepare = dce_virtual_crtc_prepare, |
255 | .commit = dce_virtual_crtc_commit, | 240 | .commit = dce_virtual_crtc_commit, |
256 | .load_lut = dce_virtual_crtc_load_lut, | ||
257 | .disable = dce_virtual_crtc_disable, | 241 | .disable = dce_virtual_crtc_disable, |
258 | }; | 242 | }; |
259 | 243 | ||
260 | static int dce_virtual_crtc_init(struct amdgpu_device *adev, int index) | 244 | static int dce_virtual_crtc_init(struct amdgpu_device *adev, int index) |
261 | { | 245 | { |
262 | struct amdgpu_crtc *amdgpu_crtc; | 246 | struct amdgpu_crtc *amdgpu_crtc; |
263 | int i; | ||
264 | 247 | ||
265 | amdgpu_crtc = kzalloc(sizeof(struct amdgpu_crtc) + | 248 | amdgpu_crtc = kzalloc(sizeof(struct amdgpu_crtc) + |
266 | (AMDGPUFB_CONN_LIMIT * sizeof(struct drm_connector *)), GFP_KERNEL); | 249 | (AMDGPUFB_CONN_LIMIT * sizeof(struct drm_connector *)), GFP_KERNEL); |
@@ -273,12 +256,6 @@ static int dce_virtual_crtc_init(struct amdgpu_device *adev, int index) | |||
273 | amdgpu_crtc->crtc_id = index; | 256 | amdgpu_crtc->crtc_id = index; |
274 | adev->mode_info.crtcs[index] = amdgpu_crtc; | 257 | adev->mode_info.crtcs[index] = amdgpu_crtc; |
275 | 258 | ||
276 | for (i = 0; i < 256; i++) { | ||
277 | amdgpu_crtc->lut_r[i] = i << 2; | ||
278 | amdgpu_crtc->lut_g[i] = i << 2; | ||
279 | amdgpu_crtc->lut_b[i] = i << 2; | ||
280 | } | ||
281 | |||
282 | amdgpu_crtc->pll_id = ATOM_PPLL_INVALID; | 259 | amdgpu_crtc->pll_id = ATOM_PPLL_INVALID; |
283 | amdgpu_crtc->encoder = NULL; | 260 | amdgpu_crtc->encoder = NULL; |
284 | amdgpu_crtc->connector = NULL; | 261 | amdgpu_crtc->connector = NULL; |