summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/openchrome
AgeCommit message (Collapse)AuthorFilesLines
2021-04-02drm/openchrome: Version bumped to 3.4.7drm-next-5.12Kevin Brace1-2/+2
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-04-02drm/openchrome: Change openchrome_driver{} member namesKevin Brace3-17/+16
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-04-02drm/openchrome: Move openchrome_ttm_mmap() into openchrome_object.cKevin Brace3-22/+25
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-04-02drm/openchrome: Move openchrome_pci_driver{} member structsKevin Brace1-9/+11
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-04-02drm/openchrome: Convert via_* to openchrome_* inside openchrome_drv.cKevin Brace1-8/+8
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-04-02drm/openchrome: Convert via_hdmi_audio parameter to openchrome_hdmi_audioKevin Brace3-4/+4
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-04-02drm/ttm: cleanup BO size handling v3Kevin Brace3-3/+3
Based on commit e11bfb9 (drm/ttm: cleanup BO size handling v3). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/openchrome: Version bumped to 3.4.6drm-next-5.11Kevin Brace1-2/+2
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/ttm: wire up the new pool as default one v2Kevin Brace1-0/+2
Based on commit ee5d2a8 (drm/ttm: wire up the new pool as default one v2). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/ttm: replace last move_notify with delete_mem_notifyKevin Brace1-5/+11
Based on commit 6a6e598 (drm/ttm: replace last move_notify with delete_mem_notify). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/ttm: drop move notify around move.Kevin Brace1-0/+21
Based on commit 6d82000 (drm/ttm: drop move notify around move.). Add openchrome_bo_move_notify() where it did not used to exist. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/atomic: Pass the full state to CRTC atomic enable/disableKevin Brace1-2/+2
Based on commit 351f950 (drm/atomic: Pass the full state to CRTC atomic enable/disable). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/openchrome: implement a ttm move callback.Kevin Brace1-0/+17
Based on commit 2b8283f (drm/vram_helper: implement a ttm move callback.). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/ttm: nuke caching placement flagsKevin Brace1-4/+3
Based on commit ce65b87 (drm/ttm: nuke caching placement flags). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/ttm: set the tt caching state at creation timeKevin Brace1-1/+1
Based on commit 1b4ea4c (drm/ttm: set the tt caching state at creation time). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/openchrome: Introduce GEM object functionsKevin Brace1-0/+18
The commit is similar to commit ed853f6 (drm/nouveau: Introduce GEM object functions). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/openchrome: switch over to the new pin interfaceKevin Brace4-35/+10
Based on commit 0b8793f (drm/radeon: switch over to the new pin interface). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/openchrome: Prevent double calling of ttm_bo_put()Kevin Brace1-1/+0
openchrome_bo_create() sets up openchrome_ttm_bo_destroy() for releasing resources allocated by openchrome_bo_create(). When ttm_bo_put() is called for releasing BO allocated by openchrome_bo_create(), the current implementation of openchrome_ttm_bo_destroy() is calling ttm_bo_put() again. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/openchrome: Stop the use of openchrome_bo_io_mem_free()Kevin Brace1-9/+0
openchrome_bo_io_mem_free() implements io_mem_free() callback of ttm_bo_driver struct. The registered member function does absolutely nothing, so it should not be there at all. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/openchrome: switch to gem vma offset managerKevin Brace1-1/+1
Based on commit 8b53e1c (drm/radeon: switch to gem vma offset manager). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31drm/ttm: turn ttm_bo_device.vma_manager into a pointerKevin Brace1-0/+1
Based on commit 9d6f448 (drm/ttm: turn ttm_bo_device.vma_manager into a pointer). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2021-03-31Revert "drm/openchrome: switch to own vma manager"Kevin Brace2-7/+0
This reverts commit 536f622d1ae3947c2d092fcf38a48aa33922cab2. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-27drm/openchrome: Version bumped to 3.4.5Kevin Brace1-2/+2
Fix for resume failure on Foxconn 400M01-G-6L mainboard (VIA Technologies KM400 chipset). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-27drm/openchrome: Fix for resume failure on some modelsKevin Brace1-1/+0
It appears that specifying PCI power state to D3hot during suspend causes Foxconn 400M01-G-6L mainboard (VIA Technologies KM400 chipset) to freeze during resume. This issue was not observed on ASUS P5V800-MX mainboard (VIA Technologies P4M800 Pro chipset) where the atomic mode setting code was primarily developed. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-23drm/openchrome: Version bumped to 3.4.4Kevin Brace1-1/+1
Finally, atomic mode setting is in! It took a long time for this, but the code stability is now comparable to the existing "legacy" mode setting code. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-23drm/openchrome: Convert to atomic mode settingKevin Brace13-286/+413
The conversion to atomic mode setting was done in a way to preserve the old "legacy" mode setting code as much as possible. The changes between the two are fairly minimal considering the difference in semantics. The suspend and resume code was borrowed from AST (ASpeed Technology) DRM, and applied to the existing power management code. This code update was necessary for suspend and resume to work properly with atomic mode setting. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-23drm/openchrome: Version bumped to 3.4.3Kevin Brace1-2/+2
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-23drm/openchrome: Discontinue drm_mode_crtc_load_lut()Kevin Brace1-17/+0
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-23drm/openchrome: Pass drm_device type pointer to openchrome_hide_cursor()Kevin Brace1-5/+4
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-23drm/openchrome: Use resource_size_t for MMIO base address and sizeKevin Brace2-5/+2
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-23drm/openchrome: Stop displaying VRAM physical address and sizeKevin Brace1-7/+0
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-23drm/openchrome: Keep count of BO pin countKevin Brace2-3/+25
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-23drm/openchrome: Use only 64 x 64 cursor dimensionsKevin Brace3-29/+8
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-09drm/openchrome: Version bumped to 3.4.2Kevin Brace1-2/+2
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-11-09Revert "drm/openchrome: Initialize plane and crtc separately"Kevin Brace3-74/+23
This reverts commit e3a26f777b06e0d8a02868cbd2916484b51da940.
2020-10-27drm/openchrome: Version bumped to 3.4.1drm-next-5.10Kevin Brace1-1/+1
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/openchrome: Fill drm_mode_config struct fb_base with VRAM addressKevin Brace1-0/+2
Note sure why this was never done previously. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/openchrome: Version bumped to 3.4.0Kevin Brace1-3/+3
TTM discontinued TTM_PL_FLAG_SYSTEM, TTM_PL_FLAG_TT, and TTM_PL_FLAG_VRAM placement flag macros. Since OpenChrome DDX was passing them to OpenChrome DRM, there is now a uAPI breakage. Instead, pass TTM placement macros. Increment the minor version number to indicate a uAPI change. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/ttm: remove available_cachingKevin Brace1-1/+0
Based on commit 9c3006a (drm/ttm: remove available_caching). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/ttm: remove default cachingKevin Brace1-1/+0
Based on commit 0fe438c (drm/ttm: remove default caching). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/ttm: nuke memory type flagsKevin Brace6-16/+15
Based on commit 48e07c2 (drm/ttm: nuke memory type flags). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/ttm: merge offset and base in ttm_bus_placementKevin Brace2-4/+4
Based on commit 54d04ea (drm/ttm: merge offset and base in ttm_bus_placement). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/ttm: init mem->bus in common code.Kevin Brace1-7/+0
Based on commit 098754f (drm/ttm: init mem->bus in common code.). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/ttm: rename ttm_mem_reg to ttm_resource.Kevin Brace1-2/+2
Based on commit 2966141 (drm/ttm: rename ttm_mem_reg to ttm_resource.). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/ttm: make ttm_range_man_init/takedown take type + argsKevin Brace1-7/+5
Based on commit 3720589 (drm/ttm: make ttm_range_man_init/takedown take type + args). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/openchrome/ttm: use wrapper to access memory managerKevin Brace1-2/+4
Based on commit 47c0550 (drm/radeon/ttm: use wrapper to access memory manager). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/openchrome/ttm: use new takedown pathsKevin Brace1-1/+2
Based on commit f0fe3f7 (drm/radeon/ttm: use new takedown paths). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/openchrome: use new ttm man init pathKevin Brace1-2/+4
Based on commit e33dc18 (drm/radeon: use new ttm man init path). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/ttm: remove the init_mem_type callbackKevin Brace1-30/+0
Based on commit 1a3fb59 (drm/ttm: remove the init_mem_type callback). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2020-10-27drm/ttm: remove TTM_MEMTYPE_FLAG_FIXED v2Kevin Brace1-2/+0
Based on commit be1213a (drm/ttm: remove TTM_MEMTYPE_FLAG_FIXED v2). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>