Skip to content

Commit 15f9d8b

Browse files
committed
Merge tag 'drm-misc-fixes-2020-08-04' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
* backmerge from drm-fixes at v5.8-rc7 * add orientation quirk for ASUS T103HAF * drm/omap: force runtime PM suspend on system suspend * drm/tidss: fix modeset init for DPI panels * re-added docs for drm_gem_flink_ioctl() * ttm: fix page-offset calculation within TTM Signed-off-by: Dave Airlie <[email protected]> From: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20200804125510.GA29670@linux-uq9g
2 parents c44264f + b5ac98c commit 15f9d8b

File tree

8 files changed

+17
-2
lines changed

8 files changed

+17
-2
lines changed

drivers/gpu/drm/drm_gem.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,9 @@ drm_gem_flink_ioctl(struct drm_device *dev, void *data,
879879
* @file_priv: drm file-private structure
880880
*
881881
* Open an object using the global name, returning a handle and the size.
882+
*
883+
* This handle (of course) holds a reference to the object, so the object
884+
* will not go away until the handle is deleted.
882885
*/
883886
int
884887
drm_gem_open_ioctl(struct drm_device *dev, void *data,

drivers/gpu/drm/drm_panel_orientation_quirks.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ static const struct dmi_system_id orientation_data[] = {
121121
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T101HA"),
122122
},
123123
.driver_data = (void *)&lcd800x1280_rightside_up,
124+
}, { /* Asus T103HAF */
125+
.matches = {
126+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
127+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
128+
},
129+
.driver_data = (void *)&lcd800x1280_rightside_up,
124130
}, { /* GPD MicroPC (generic strings, also match on bios date) */
125131
.matches = {
126132
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),

drivers/gpu/drm/omapdrm/dss/dispc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4915,6 +4915,7 @@ static int dispc_runtime_resume(struct device *dev)
49154915
static const struct dev_pm_ops dispc_pm_ops = {
49164916
.runtime_suspend = dispc_runtime_suspend,
49174917
.runtime_resume = dispc_runtime_resume,
4918+
SET_LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
49184919
};
49194920

49204921
struct platform_driver omap_dispchw_driver = {

drivers/gpu/drm/omapdrm/dss/dsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5467,6 +5467,7 @@ static int dsi_runtime_resume(struct device *dev)
54675467
static const struct dev_pm_ops dsi_pm_ops = {
54685468
.runtime_suspend = dsi_runtime_suspend,
54695469
.runtime_resume = dsi_runtime_resume,
5470+
SET_LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
54705471
};
54715472

54725473
struct platform_driver omap_dsihw_driver = {

drivers/gpu/drm/omapdrm/dss/dss.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,6 +1614,7 @@ static int dss_runtime_resume(struct device *dev)
16141614
static const struct dev_pm_ops dss_pm_ops = {
16151615
.runtime_suspend = dss_runtime_suspend,
16161616
.runtime_resume = dss_runtime_resume,
1617+
SET_LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
16171618
};
16181619

16191620
struct platform_driver omap_dsshw_driver = {

drivers/gpu/drm/omapdrm/dss/venc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,7 @@ static int venc_runtime_resume(struct device *dev)
903903
static const struct dev_pm_ops venc_pm_ops = {
904904
.runtime_suspend = venc_runtime_suspend,
905905
.runtime_resume = venc_runtime_resume,
906+
SET_LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
906907
};
907908

908909
static const struct of_device_id venc_of_match[] = {

drivers/gpu/drm/tidss/tidss_kms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static int tidss_dispc_modeset_init(struct tidss_device *tidss)
154154
break;
155155
case DISPC_VP_DPI:
156156
enc_type = DRM_MODE_ENCODER_DPI;
157-
conn_type = DRM_MODE_CONNECTOR_LVDS;
157+
conn_type = DRM_MODE_CONNECTOR_DPI;
158158
break;
159159
default:
160160
WARN_ON(1);

drivers/gpu/drm/ttm/ttm_bo_vm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,10 @@ static int ttm_bo_vm_access_kmap(struct ttm_buffer_object *bo,
510510
int ttm_bo_vm_access(struct vm_area_struct *vma, unsigned long addr,
511511
void *buf, int len, int write)
512512
{
513-
unsigned long offset = (addr) - vma->vm_start;
514513
struct ttm_buffer_object *bo = vma->vm_private_data;
514+
unsigned long offset = (addr) - vma->vm_start +
515+
((vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node))
516+
<< PAGE_SHIFT);
515517
int ret;
516518

517519
if (len < 1 || (offset + len) >> PAGE_SHIFT > bo->num_pages)

0 commit comments

Comments
 (0)