if (!(dsi->state & DSIM_STATE_ENABLED))
return;
- if (!samsung_dsim_hw_is_exynos(dsi->plat_data->hw_type))
- samsung_dsim_set_stop_state(dsi, true);
-
+ samsung_dsim_set_display_enable(dsi, false);
-
dsi->state &= ~DSIM_STATE_VIDOUT_AVAILABLE;
}
{
struct samsung_dsim *dsi = bridge_to_dsi(bridge);
- if (!samsung_dsim_hw_is_exynos(dsi->plat_data->hw_type))
- samsung_dsim_set_stop_state(dsi, true);
- samsung_dsim_set_display_enable(dsi, false);
--
dsi->state &= ~DSIM_STATE_ENABLED;
pm_runtime_put_sync(dsi->dev);
}
static struct ttm_placement sys_placement = {
.num_placement = 1,
.placement = &sys_placement_flags,
-- .num_busy_placement = 1,
-- .busy_placement = &sys_placement_flags,
};
--static const struct ttm_place tt_placement_flags = {
-- .fpfn = 0,
-- .lpfn = 0,
-- .mem_type = XE_PL_TT,
-- .flags = 0,
++static const struct ttm_place tt_placement_flags[] = {
++ {
++ .fpfn = 0,
++ .lpfn = 0,
++ .mem_type = XE_PL_TT,
++ .flags = TTM_PL_FLAG_DESIRED,
++ },
++ {
++ .fpfn = 0,
++ .lpfn = 0,
++ .mem_type = XE_PL_SYSTEM,
++ .flags = TTM_PL_FLAG_FALLBACK,
++ }
};
static struct ttm_placement tt_placement = {
-- .num_placement = 1,
-- .placement = &tt_placement_flags,
-- .num_busy_placement = 1,
-- .busy_placement = &sys_placement_flags,
++ .num_placement = 2,
++ .placement = tt_placement_flags,
};
bool mem_type_is_vram(u32 mem_type)
bo->placement = (struct ttm_placement) {
.num_placement = c,
.placement = bo->placements,
-- .num_busy_placement = c,
-- .busy_placement = bo->placements,
};
return 0;
/* Don't handle scatter gather BOs */
if (tbo->type == ttm_bo_type_sg) {
placement->num_placement = 0;
-- placement->num_busy_placement = 0;
return;
}
bo->placement = (struct ttm_placement) {
.num_placement = 1,
.placement = place,
-- .num_busy_placement = 1,
-- .busy_placement = place,
};
return 0;
xe_place_from_ttm_type(mem_type, &requested);
placement.num_placement = 1;
-- placement.num_busy_placement = 1;
placement.placement = &requested;
-- placement.busy_placement = &requested;
/*
* Stolen needs to be handled like below VRAM handling if we ever need