Displaying 3 results from an estimated 3 matches for "drm_fbdev_ttm_setup".
2024 Aug 21
2
[PATCH v2 65/86] drm/amdgpu: Run DRM default client setup
...pdev,
*/
if (adev->mode_info.mode_config_initialized &&
!list_empty(&adev_to_drm(adev)->mode_config.connector_list)) {
+ const struct drm_format_info *format;
+
/* select 8 bpp console on low vram cards */
if (adev->gmc.real_vram_size <= (32*1024*1024))
- drm_fbdev_ttm_setup(adev_to_drm(adev), 8);
+ format = drm_format_info(DRM_FORMAT_C8);
else
- drm_fbdev_ttm_setup(adev_to_drm(adev), 32);
+ format = NULL;
+
+ drm_client_setup(adev_to_drm(adev), format);
}
ret = amdgpu_debugfs_init(adev);
@@ -2957,6 +2962,7 @@ static const struct drm_driver amdgpu_kms_d...
2024 Sep 09
1
[PATCH v4 68/80] drm/nouveau: Run DRM default client setup
...ce *device;
struct nouveau_drm *drm;
+ const struct drm_format_info *format;
int ret;
if (vga_switcheroo_client_probe_defer(pdev))
@@ -873,9 +875,11 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
goto fail_pci;
if (drm->client.device.info.ram_size <= 32 * 1024 * 1024)
- drm_fbdev_ttm_setup(drm->dev, 8);
+ format = drm_format_info(DRM_FORMAT_C8);
else
- drm_fbdev_ttm_setup(drm->dev, 32);
+ format = NULL;
+
+ drm_client_setup(drm->dev, format);
quirk_broken_nv_runpm(pdev);
return 0;
@@ -1317,6 +1321,8 @@ driver_stub = {
.dumb_create = nouveau_display_dumb_create,...
2024 Sep 12
1
[PATCH v4 68/80] drm/nouveau: Run DRM default client setup
...const struct drm_format_info *format;
> int ret;
>
> if (vga_switcheroo_client_probe_defer(pdev))
> @@ -873,9 +875,11 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
> goto fail_pci;
>
> if (drm->client.device.info.ram_size <= 32 * 1024 * 1024)
> - drm_fbdev_ttm_setup(drm->dev, 8);
> + format = drm_format_info(DRM_FORMAT_C8);
> else
> - drm_fbdev_ttm_setup(drm->dev, 32);
> + format = NULL;
> +
> + drm_client_setup(drm->dev, format);
>
> quirk_broken_nv_runpm(pdev);
> return 0;
> @@ -1317,6 +1321,8 @@ driver_stub...