mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/vram: Have VRAM MM call GEM VRAM functions directly
VRAM MM and GEM VRAM buffer objects are only used with each other; connected via 3 function pointers. Simplify this code by making the memory manager call the rsp. functions of the BOs directly; and remove the functions from the BO's public interface. v2: * typos in commit message Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190911110910.30698-3-tzimmermann@suse.de
This commit is contained in:
@@ -37,8 +37,7 @@ int mgag200_mm_init(struct mga_device *mdev)
|
||||
struct drm_device *dev = mdev->dev;
|
||||
|
||||
vmm = drm_vram_helper_alloc_mm(dev, pci_resource_start(dev->pdev, 0),
|
||||
mdev->mc.vram_size,
|
||||
&drm_gem_vram_mm_funcs);
|
||||
mdev->mc.vram_size);
|
||||
if (IS_ERR(vmm)) {
|
||||
ret = PTR_ERR(vmm);
|
||||
DRM_ERROR("Error initializing VRAM MM; %d\n", ret);
|
||||
|
||||
Reference in New Issue
Block a user