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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1A3EFCD6E56 for ; Mon, 1 Jun 2026 11:48:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C0DD11323C; Mon, 1 Jun 2026 11:48:09 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.b="f6guXCpi"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Z1zBm3G9"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="CX3D8qSt"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="sbqX6kPe"; dkim-atps=neutral Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 49E3911323C for ; Mon, 1 Jun 2026 11:48:07 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2C32E68238; Mon, 1 Jun 2026 11:48:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1780314482; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eX5LCwHmzTtL0/zNYbMXlZ0Hw9ptYnpry332rkN2zRE=; b=f6guXCpihg0DDuf2neuq4bFKtLhGUONe2F3phVPYzLGOQ0IjYBfpOIVRPWr8gGHDza2v3c lhXSKSC35AGeykESIlYiZYSg04sSV5+Ivosk7PabYY9Lam0lYrmJBcx0jfynBsB0qifGuU PtFn2czD4l8p1kP1cWXmfGlxn2udwyg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1780314482; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eX5LCwHmzTtL0/zNYbMXlZ0Hw9ptYnpry332rkN2zRE=; b=Z1zBm3G9WxllEtewiRAasjPbnBrw0OB5Wg5o7j/nqWrKuoa0e97nbcg/zn+xJ/HvqFxj7l JBx7atoHhVrAewBQ== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=CX3D8qSt; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=sbqX6kPe DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1780314481; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eX5LCwHmzTtL0/zNYbMXlZ0Hw9ptYnpry332rkN2zRE=; b=CX3D8qSt6Itv0Wsmr3wXv8G31iByzWGAXcZc9VV7lpDX/Hf8+JXN4rvJPLttghB5mu5Fkk Z6lVoLfVBtpLwXaVERsoLvVrn6EpaGHEbnRgZ1PKkpGOrkuGzfWegpop/Neks44FwfqCh4 p8uHoqea2CjzjZyu9KZSsxjGahnZT5Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1780314481; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eX5LCwHmzTtL0/zNYbMXlZ0Hw9ptYnpry332rkN2zRE=; b=sbqX6kPetwjlZ+TrhL6oHH2LJJlnbW6jPeJ2ExgjnsL8GbLmM17Yanguxl0VkGCMEgS5Ti wGc/XQ/PJxWwRCAQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id C4A90779A7; Mon, 1 Jun 2026 11:48:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id A2GgLnBxHWq0XAAAD6G6ig (envelope-from ); Mon, 01 Jun 2026 11:48:00 +0000 From: Thomas Zimmermann To: shiyongbang@huawei.com, xinliang.liu@linaro.org, tiantao6@hisilicon.com, kong.kongxinwei@hisilicon.com, sumit.semwal@linaro.org, yongqin.liu@linaro.org, jstultz@google.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@gmail.com, simona@ffwll.ch Cc: dri-devel@lists.freedesktop.org, Thomas Zimmermann Subject: [PATCH v3 0/4] drm/hibmc: Fix plane helpers and convert to gem-shmem Date: Mon, 1 Jun 2026 13:45:14 +0200 Message-ID: <20260601114756.51953-1-tzimmermann@suse.de> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Action: no action X-Rspamd-Queue-Id: 2C32E68238 X-Spamd-Result: default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-0.998]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWELVE(0.00)[13]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid,suse.de:dkim,imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo]; FUZZY_RATELIMITED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FREEMAIL_TO(0.00)[huawei.com,linaro.org,hisilicon.com,google.com,linux.intel.com,kernel.org,gmail.com,ffwll.ch]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.de:+] X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert hibmc's memory management from gem-vram ot gem-shmem. Fix a number of bugs in preparation. Patches 1 to 3 fix various bugs in the plane code. Patch 4 replaces gem-vram with gem-shmem. The rational is that gem-vram has corner cases on low-end devices and is limited in functionality. The commit messages state a list of possible issues. Switching to gem-shmem avoids these problems. It also enables buffer sharing via dma_buf, which improves the hibmc driver's integration with the overall graphics ecosystem. We've done these changes on drivers for similar hardware, such as ast and mgag200. Hibmc is the last of these drivers to run on gem-shmem. Gem-vram instead is deprecated and can hopefully be removed in a later release. Tested on an RH1288 v3 system. v3: - fix coding style - rebase on display-detection fixes v2: - extend commit message of patch 2 (Yongbang) - so not select TTM any longer Thomas Zimmermann (4): drm/hibmc: Use drm_atomic_helper_check_plane_state() drm/hibmc: Fix list of formats on the primary plane drm/hibmc: Do not use cpp from struct drm_format_info drm/hibmc: Use gem-shmem with shadow-plane helpers for memory management drivers/gpu/drm/drm_gem_shmem_helper.c | 22 +++- drivers/gpu/drm/hisilicon/hibmc/Kconfig | 4 +- .../gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 110 +++++++++--------- .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 62 +++++++--- .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 5 + include/drm/drm_gem_shmem_helper.h | 4 + 6 files changed, 129 insertions(+), 78 deletions(-) base-commit: 4f554688dffcacf48630c14f9fb77a9f60394c1c -- 2.54.0