Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp117352lqe; Thu, 4 Apr 2024 01:05:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1ABuyEu8v38G5Hc15tXx/CPFSYpYdaWx5GhEuiqi58NGS4RTHKojy4Yuog/EpDVuBXyeumAwJoOVBW3E+KEtzczO9s/huQULqdPrdOw== X-Google-Smtp-Source: AGHT+IHhhSxp0+QfDoT0h3LZYCEda1cbwV0tPGAM4KdbViV4XLj9pyr/2Tyz7NDdbBbkUI0wM1EB X-Received: by 2002:a17:90a:dc06:b0:2a2:b308:f78f with SMTP id i6-20020a17090adc0600b002a2b308f78fmr1877176pjv.0.1712217948379; Thu, 04 Apr 2024 01:05:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712217948; cv=pass; d=google.com; s=arc-20160816; b=zN4RILa5+90Rh8VGB842LUx+8iqMiHgvzdKV8s1ZXD6twD1859xpZK/lq35XDiDrDC J7NJrAilWZae1BRoY05/N0ksn/hAgVKaf+kKjrZGM43ErbpgW2drSX5CXt82U1vGRHaa SEhMlhrUYxkpFcrcbvVAWgDFD2SwZ81VORZeXGaVMVARDXvhBBorGFl6DHhUVvnNeMWb 9HdyRdhAzCV+0oinwF/Mygh+q02tFzSXMh5cCVSlQMev+JrffjBP0btheCupzOeUDLLv fao1lJrSoU8tqKMMzV2G4wkTBKivunrZnRIg0lUV/GqAev0b/O2cBkWqqM1Ws+hFvOx6 IrQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=f1T8/3OvwSnwBuMf0Y9HpOJTgaM0nW3wOnUThkX9kfc=; fh=TRA8RzFMiQyvDdHx9ylQDQO2Wenf9a1qX8yWABPy2r8=; b=a1TPqHL04LXySTpCyLRkmOWhCPEOBtAtNfxSlozc9BWuqQse2YjJTywf9z889CGdXG fheQQErp/Fu7GQzcoJjgJpUOlj+ewgHqhhIEDUEkERoEkdo82FFyn7ahV3QgfMfscVO6 6TY/dPV9UcWTHaygYMH0cA/lKQGPdc6PPSWRT3xVThiOIgBu6DkoH0/z7dESi7xNa2yS orbZuj5+4xrtHGYG0qTmrMiwEodUn8W1RP8e/nH0qLf/FF2CTzhZyFjv1ymQ97orqNrA KTRvpWVkaQu+yDB+ZlNnkfxtJQmMIsNVTJy4q7M3KO2V+V3xsYip3ZwESQZR5deaO7uu RnAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NX6sNIxx; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-131061-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q14-20020a656a8e000000b005f3d54f00desi3828185pgu.740.2024.04.04.01.05.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:05:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131061-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NX6sNIxx; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-131061-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A7142B233FE for ; Thu, 4 Apr 2024 07:58:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AA6A5D731; Thu, 4 Apr 2024 07:58:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="NX6sNIxx" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 980A45D461 for ; Thu, 4 Apr 2024 07:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712217481; cv=none; b=I8HEQWJ85udG+IIAW6T0V3W6Bn+I55QsA514dydBbqOtqqcGgT2NXCRFmHSR66Y5woQQpNnFTBGa32+MSz9pNh6kfaGqq/eH/35redHJuTcPZDj7aFPK99V/goxWZwibgEr8q1zxY+b+d5jIF2yooIN6CnJSd5dggncLUPU/Pf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712217481; c=relaxed/simple; bh=JR03O6DqtWABDbF+UOdTpqbBb6MC16JinmCC+MPaEF8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y25tFg1tdsjUV/qC52J7DONyFQSpeviTFu4IASiWiWh9brLdjQOonypbYLGRiXCXqpWM32u+lAcNVkXG9RFFC+3ZEpTMMS9pfZDWJjWkbJCAvkR7L5U17uonnxVlWiX54irmH0B+rzocOXWCEW7g+YknRPW/9Xsceg7Ehn2U2bk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=NX6sNIxx; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712217477; bh=JR03O6DqtWABDbF+UOdTpqbBb6MC16JinmCC+MPaEF8=; h=From:To:Cc:Subject:Date:From; b=NX6sNIxxfrVG0gUBHik5LbRQh3vPBIVl+iz/L8TLewL2G9Zr5eU+16R/ZPZQ8U1f/ 417XkgyZ9trxK6wGGymLro2RJ8Emegg5FvEDpcwLhl+SNhpChMFIuBrMsvisR5kNJ+ XOLai6pqtm4XYbxlsnRKoWIR7ITgdE9/aSOjZSvIFCoLO8DSOssa9ppH+LN3+WAUbk CYG9rDEk0sEdJdjlAn3cmVMZYyIUM4KcUTGypSaEjo/87DaeWXwxOhSnNcLb01GZAP PGRsa7eCaO+TLwsm3YkJFGzmfGDK9ScyLmHZv+HtD1kyQVf7EQKef+a9ptAOZ3PetT j4tj8H2HPMrcw== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (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) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id DD48D378209A; Thu, 4 Apr 2024 07:57:56 +0000 (UTC) From: AngeloGioacchino Del Regno To: chunkuang.hu@kernel.org Cc: p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, ck.hu@mediatek.com, nancy.lin@mediatek.com, nathan.lu@mediatek.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, wenst@chromium.org Subject: [PATCH v2 0/3] drm/mediatek: Fixes for DDP component search/destroy Date: Thu, 4 Apr 2024 09:57:51 +0200 Message-ID: <20240404075754.83455-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Changes in v2: - Fixed patch [2/3] This series performs some cleanups for DDP component CRTC search and correctly iounmaps the previously of_iomap() calls from drm_ddp_comp. Tested on MT8195 Cherry Tomato AngeloGioacchino Del Regno (3): drm/mediatek: drm_ddp_comp: Fix and cleanup DDP component CRTC search drm/mediatek: Perform iounmap on simple DDP component destruction drm/mediatek: drm_ddp_comp: Add mtk_ddp_is_simple_comp() internal helper drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 113 +++++++++++++------- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 4 +- 3 files changed, 80 insertions(+), 38 deletions(-) -- 2.44.0