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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E2BAC5479D for ; Sat, 7 Jan 2023 00:24:05 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 025708560E; Sat, 7 Jan 2023 01:23:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="X3Eypemo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F1B0E8559E; Sat, 7 Jan 2023 01:23:43 +0100 (CET) Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8E1EA8559E for ; Sat, 7 Jan 2023 01:15:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-4b6255ce5baso42361307b3.11 for ; Fri, 06 Jan 2023 16:15:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=e+hKJVlKnPnW7JAVs4WmU+hp4/2yGYs8T/Cc0bvjlV4=; b=X3EypemoEmNB/dtMz9fGusACwwM7N1P0MCDtaZdeOW//o8n2DHu5RZYEgjIFwpXKyy GYD7TFBxtqrH/KBAT6szXF6w0U8SizB5ejcDV0l4UYBMc1q0a9Kh3QS20HHn3DfMoQll h4dxB935KNSqUTIJapeZ2PtaHCqMyCu7D+Ryc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e+hKJVlKnPnW7JAVs4WmU+hp4/2yGYs8T/Cc0bvjlV4=; b=JWixI+soNGoarRAGg/EgG0GtGkbT12ZJJeY8TjwtxQ3aiwHQvOPtp2W4ga87TvZ8N4 E+YKH/1Lt79D3In/1ViqXKTSY/EVe3sNp6AI+rkbYZNb0RXF9585WRa46y6cQ7i5MUuh VEGqs4oc2auePOVpUjZVvur4Gmm23prziQWDMAscAgFu1i0Vxwl66+ggGE29mw6E20lw FjgoCNphM3f6WOVrxhlnt/THBeI48igKYX6nQZ2eiZXkMB0VIhooNRU++jlVcSZhgnBh zJSc8IeFmjK+y6gjW0sLp0adYRVlj5TIcjTAdm8fIUyqYCUEXs9+IeJY2sVo8PQYTXeF yvPg== X-Gm-Message-State: AFqh2ko1pKruWj/eo0Nmrcfe0FJO7iKeKS5DmhiW1l1AaUiJoTv6Gm/2 pb/R1QghsbD8kSDBwGWnC6NmCcN/6X+DCzYHg5JiYQGmpWTn3Q== X-Google-Smtp-Source: AMrXdXvbLUmWFcFnd9Rh3aC2opuMm/Cx5uU6U4QRjKYgU1maTptzyaPFmqAzM/0TPQlTo04cpOgWoQB+tOGT8bmmcwY= X-Received: by 2002:a81:17d6:0:b0:3ea:9ce2:cd76 with SMTP id 205-20020a8117d6000000b003ea9ce2cd76mr945595ywx.217.1673050470547; Fri, 06 Jan 2023 16:14:30 -0800 (PST) MIME-Version: 1.0 References: <20230103215004.22646-1-agraf@csgraf.de> <20230103215004.22646-10-agraf@csgraf.de> In-Reply-To: <20230103215004.22646-10-agraf@csgraf.de> From: Simon Glass Date: Fri, 6 Jan 2023 17:13:40 -0700 Message-ID: Subject: Re: [PATCH v4 9/9] video: Enable VIDEO_DAMAGE for drivers that need it To: Alexander Graf Cc: u-boot@lists.denx.de, Matthias Brugger , Heinrich Schuchardt , Anatolij Gustschin , Da Xue , Ilias Apalodimas , Jagan Teki , Andre Przywara , Neil Armstrong , Philipp Tomsich , Kever Yang , Patrick Delaunay , Patrice Chotard , uboot-stm32@st-md-mailman.stormreply.com, u-boot-amlogic@groups.io Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hi Alex, On Tue, 3 Jan 2023 at 14:50, Alexander Graf wrote: > > Some drivers call video_set_flush_dcache() to indicate that they want to > have the dcache flushed for the frame buffer. These drivers benefit from > our new video damage control, because we can reduce the amount of memory > that gets flushed significantly. > > This patch enables video damage control for all device drivers that call > video_set_flush_dcache() to make sure they benefit from it. > > Signed-off-by: Alexander Graf > --- > arch/arm/mach-omap2/omap3/Kconfig | 1 + > arch/arm/mach-sunxi/Kconfig | 1 + > drivers/video/Kconfig | 9 +++++++++ > drivers/video/exynos/Kconfig | 1 + > drivers/video/imx/Kconfig | 1 + > drivers/video/meson/Kconfig | 1 + > drivers/video/rockchip/Kconfig | 1 + > drivers/video/stm32/Kconfig | 1 + > 8 files changed, 16 insertions(+) > > diff --git a/arch/arm/mach-omap2/omap3/Kconfig b/arch/arm/mach-omap2/omap3/Kconfig > index 3e97ec2629..ea231f16a2 100644 > --- a/arch/arm/mach-omap2/omap3/Kconfig > +++ b/arch/arm/mach-omap2/omap3/Kconfig > @@ -113,6 +113,7 @@ config TARGET_NOKIA_RX51 > select CMDLINE_TAG > select INITRD_TAG > select REVISION_TAG > + select VIDEO_DAMAGE Please avoid using select since it means that boards cannot disable it. You can use 'imply' instead. Or you can use 'default y' for the damage Kconfig. Regards, Simon