From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EADF3C388F7 for ; Thu, 12 Nov 2020 13:21:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 648702224A for ; Thu, 12 Nov 2020 13:21:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 648702224A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=amd-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 125E06E223; Thu, 12 Nov 2020 13:21:31 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id B45956E102; Thu, 12 Nov 2020 13:21:29 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 61F1EAC75; Thu, 12 Nov 2020 13:21:28 +0000 (UTC) From: Thomas Zimmermann To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org Subject: [PATCH 0/7] drm/radeon: Convert to generic fbdev emulation Date: Thu, 12 Nov 2020 14:21:10 +0100 Message-Id: <20201112132117.27228-1-tzimmermann@suse.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Zimmermann , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" This patchset replaces radeon's framebuffer emulation with the generic code from fb helpers. This reduces the driver size and complexity. As a nice side effect, it also reduces memory pressure on low-memory devices. Patches #1 and #2 add features to fbdev emulation to bring it on par with radeons code. Patch #4 adds internal pinning to vmap operations. This guarantess that the framebuffer BO is not relocated while being updated. Patch #5 and #6 replace radeon's framebuffer code with the generic helper with shadow buffering. All userspace mappings interact with the shadow buffer and the BO can be relocated an necessary. This allows to enable 32-bit colors on low-memory devices. Patches #3 and #7 are merely cleanups. Smoke tested with an AMD R5 (Oland) card by running the console and switching to/from Xorg and weston. Thomas Zimmermann (7): drm/fb-helper: Set framebuffer for vga-switcheroo clients drm/fb-helper: Add hint to enable VT switching during suspend/resume drm/radeon: Whitespace fixes drm/radeon: Pin buffers while they are vmap'ed drm/radeon: Replace framebuffer console with generic implementation drm/radeon: Use fbdev shadow fb drm/radeon: Move radeon_align_pitch() next to its only caller drivers/gpu/drm/drm_fb_helper.c | 16 +- drivers/gpu/drm/radeon/radeon_device.c | 11 +- drivers/gpu/drm/radeon/radeon_display.c | 2 - drivers/gpu/drm/radeon/radeon_drv.c | 5 +- drivers/gpu/drm/radeon/radeon_fb.c | 366 +----------------------- drivers/gpu/drm/radeon/radeon_gem.c | 77 ++++- drivers/gpu/drm/radeon/radeon_kms.c | 14 +- drivers/gpu/drm/radeon/radeon_mode.h | 10 +- include/drm/drm_mode_config.h | 7 + 9 files changed, 111 insertions(+), 397 deletions(-) -- 2.29.2 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx