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 6E2A3C433EF for ; Sat, 23 Jul 2022 17:01:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A71E3833B3; Sat, 23 Jul 2022 19:01:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nm481l9l"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 379A483FA5; Sat, 23 Jul 2022 13:29:04 +0200 (CEST) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 88F6583F88 for ; Sat, 23 Jul 2022 13:29:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=frattaroli.nicolas@gmail.com Received: by mail-ed1-x52d.google.com with SMTP id e15so8544957edj.2 for ; Sat, 23 Jul 2022 04:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=ZSHKVl/Mcp1mNKhqM5F4lXnpkUbo0sk8mrWCcV4PXkY=; b=nm481l9lHeNkm53IZJCzxvktc+ihnsVL2/9/wXJokjddT5gGoF1bbs/X6h/G36PK7V Tf/WmbPRl207/I2OrboyErkJs3pXvAKQn9NKV+buejBx41KbrVIecfBP4dWiJ+42PPhd 0EHTn66NFiu6BJDk++aRVRmsFLxci5mjAH2p1guiOwqwUV48/WH4ddBoU6oKe8S2OfoD hbT4CdIPHP2+Rut1p2Ea2vBleHBrATd1mMYpcw2wy4BeBUTcr4iYnypABUYRh5pIIUS0 CtaBLJpXa2TDevBy0pvcUgK3q2/1CoE/uMO2YhBJgRVEf72j9SPnB+Kq3DHefXW8uiYS oZwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=ZSHKVl/Mcp1mNKhqM5F4lXnpkUbo0sk8mrWCcV4PXkY=; b=z3jIrfflVvVr82fY1N0wYnuiBMwzlFqcSSlHjz6UKkFzJuEWknCn6FSwZJ0aS5zExD koKjfQAUOMuri8dHtJtFuwbhYwcrfu72AFxF1Qfrselxt+9n6YEmpSFHjCvCK1MG1x6S ydLn4eOW5q3CUUBnH3LJlfQvFJmmLKz9bEKaPhWloyBnEO7uLO2SDHcYK6IC+gFT5G+E dlqfiqti9LPCQDtV/R0VkW3eqkLXOR0bAl3uqoL2Cdl20N0aSlPZgP98BuTPYmx5yTGH +zsbm8dP/sM1nxIZPtFOuDAbK4S4ljR8tzTr5IKqspuvcddGJx0MG29H92URsRWMGQer Xofw== X-Gm-Message-State: AJIora8f6zAZQvoKGTun3b+y30y3Twr+fsOpvnF+rni7xszAQeT7QCts Yx1Ag1sVVYDyuwuLMywB2Vg= X-Google-Smtp-Source: AGRyM1tCVq577wNV970GDrkDUZYAkSF8kcHuo1aWXvsZWR/RzADtNGKkvyTh3I3dUfZWhRT6o5EKPg== X-Received: by 2002:a05:6402:378a:b0:431:6d8d:9023 with SMTP id et10-20020a056402378a00b004316d8d9023mr4041904edb.98.1658575740774; Sat, 23 Jul 2022 04:29:00 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id u1-20020a1709061da100b00722e50dab2csm3034456ejh.109.2022.07.23.04.28.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 04:29:00 -0700 (PDT) From: Nicolas Frattaroli To: Simon Glass , Philipp Tomsich , Kever Yang Cc: Nicolas Frattaroli , u-boot@lists.denx.de Subject: [PATCH] rockchip: rk3328: Set VOP QoS to high priority Date: Sat, 23 Jul 2022 13:28:36 +0200 Message-Id: <20220723112836.88814-1-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Sat, 23 Jul 2022 19:01:51 +0200 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 The default priority for the quality of service for the video output results in unsightly glitches on the output whenever there is memory pressure on the system, which happens a lot. This sets the VOP QoS to high priority, which fixes this issue. Signed-off-by: Nicolas Frattaroli --- arch/arm/mach-rockchip/rk3328/rk3328.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3328/rk3328.c b/arch/arm/mach-rockchip/rk3328/rk3328.c index de17b88682..2373586b14 100644 --- a/arch/arm/mach-rockchip/rk3328/rk3328.c +++ b/arch/arm/mach-rockchip/rk3328/rk3328.c @@ -19,6 +19,8 @@ DECLARE_GLOBAL_DATA_PTR; #define GRF_BASE 0xFF100000 #define UART2_BASE 0xFF130000 #define FW_DDR_CON_REG 0xFF7C0040 +#define QOS_VOP_OFFSET 0xFF760080 +#define QOS_VOP_PRIORITY 0x8 const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { [BROM_BOOTSOURCE_EMMC] = "/mmc@ff520000", @@ -54,6 +56,9 @@ int arch_cpu_init(void) /* Disable the ddr secure region setting to make it non-secure */ rk_setreg(FW_DDR_CON_REG, 0x200); +#else + printf("Setting VOP QoS\n"); + rk_setreg(QOS_VOP_OFFSET + QOS_VOP_PRIORITY, 0x2); #endif return 0; } -- 2.37.1