From patchwork Fri Dec 20 01:28:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13915980 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E04752594A6 for ; Fri, 20 Dec 2024 01:28:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658118; cv=none; b=pYE82/4oku6oLlBMQR4/v6xrl/q5EOseU7f1iOjqBMN1k54fIT5T48SPm7V3Ng8Dk9i/mQcfdarGyxrY4ekbq5I9rlfLsnmzeGvQvcf8sB8UX9j8TD1zRhiCziowN5lcRsnPhwf0aFh/7kUs+FGOEU8xY7sRkWQuo3XZU82km48= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658118; c=relaxed/simple; bh=8xOZo6SIWZxsw847lHaBi8XDboA4fhIU/Ie9tsdlCGA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t1YMb/4aW2Pl2KnY+JdzXQT3/Gf6PAfjjDFqmU8usAvJVaDrb1gN8d7s0OAMHWskDdxKznYBABICsGWFCHK/8jhzI/ojBQc+OGKFgPLbVZ6892RG8M7ikKycyZ9FK7ZmtZs9t0C93sdFshlgMJnLmxL2RmxIXPti+gJ+wjM8ee8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cWa2njMI; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cWa2njMI" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5401c68b89eso1572554e87.0 for ; Thu, 19 Dec 2024 17:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734658115; x=1735262915; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7bHjE0IB/vPqzg640QI5Oh3Go2fZYjsbzOVZvfoGOak=; b=cWa2njMI4AwzqIxC3vnJlCZlK7QeWDuIsYlgwi0pe9+Dq18XBxt69o6fYGSWXNtlC8 quVvOrhUQfofflXPLffGI+eabKfxviux6irTMcCutheO5NggcBuOnRvX36yp47cbB6VX GJYjm7NFHNPqvmFtYxc/aiqYwaIRvuQRiYLtCLRMSyB5e0JXb6f3Z3U6z+sqAbV0+sfO AAkxKO6gF36A0FTGzZumExz2l9Nm33SyWzoP/kHADvCzRfC2aMlgxxXjsnxzEezaY+aH TV5Zc+7suhxdIT0wB/905QAASEJgswzZwfwV1uf3J5TRciVhgfAn9jD6EkiKlDmMONgp jyxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734658115; x=1735262915; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7bHjE0IB/vPqzg640QI5Oh3Go2fZYjsbzOVZvfoGOak=; b=Kqn8+xX5696zOE3/gCYsilHzuPoro+wYcU12HGzP1RXmFHk2cxByS3UebyYlgof1+6 e6dhjNQpwo5UNWza4h+HgV4Gem4MWMk4EHJyjkKG3lj0I0i8q2c/paj7yH4XZ/nJ4rmm lK4scL/xKAHlvNj9GbmTS2nOyUSg58WSKjjOMAYQILOIW0+8cb05Cy7Ud28gJxMePMZN yPZeZVsskp0o8s9AHhuYp0SknS1rSPiWtP/JGf1KR+4PcVI2wn2yi4fuRaVgPkUaDHAN SDPUzWSZVuVvqEItet2xzepNVWqe5PgxSBDTgMNun+nwglJ1v+70J9z8dLeUjog4OjLE Pyhg== X-Forwarded-Encrypted: i=1; AJvYcCVl3993d5IRtkFO+i550TWXXcJ76q/icZjxYfwrXNrn948i4Pe0V05Wx0GUuH7m7tkH5ligdIPFA6bPlaal@vger.kernel.org X-Gm-Message-State: AOJu0YxAw+tnfGXZDh/HvFrte9DJVEuMh2U4w2i6ro48u9pWj0BZje99 C7S+vUOZallQHqot/xL91bhQC3N1W7O3R8r9Uhq7u37tao2qtM0OLYlCGbC0IwE= X-Gm-Gg: ASbGncsaKtNBAF2vDezicqwNBcjPq7m2CfiPtI9lofjE7I4ddBsT3OxmTdrbCqe2N9C +ziS/a68tYtHrujQtRhgqiIPC0r0HKgkYF7NvQg8mRfbxAY5KzaWuQlMq21B5+WtKOPAGPcW9Nq y/dJwKtUx5D+Eitkll6aoXW5TrNBYD0mJN0MX8MLM4J9mW6MosdN/Iy7UlQl7m5ODuAqPaz9kQo QS37r1v6K9LXJQfsUTfkWnFAvUc5OVOPNROy9rZxX32yiGHK1EKujgekdIuO7an X-Google-Smtp-Source: AGHT+IFkoQ1wDgLQWAyIiR/AcniX2onayOceXrfk5sMzc7gbQE21NuoTAbl5Sm7gK6XKGLR3lUJqKg== X-Received: by 2002:a05:6512:401b:b0:540:2247:ac4e with SMTP id 2adb3069b0e04-542212e1035mr1554510e87.7.1734658114788; Thu, 19 Dec 2024 17:28:34 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54227a89c2csm170540e87.71.2024.12.19.17.28.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 17:28:34 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 20 Dec 2024 03:28:29 +0200 Subject: [PATCH v2 1/8] drm/msm/dpu: provide DSPP and correct LM config for SDM670 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241220-dpu-fix-catalog-v2-1-38fa961ea992@linaro.org> References: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> In-Reply-To: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Robert Foss , Neil Armstrong , Abel Vesa , Richard Acayan Cc: Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Johan Hovold X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2719; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=8xOZo6SIWZxsw847lHaBi8XDboA4fhIU/Ie9tsdlCGA=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ3rKCbumdReXcE032tvX8uVtkUq/Z2LV+d0SUiebi6Ndt m7iKJbqZDRmYWDkYpAVU2TxKWiZGrMpOezDjqn1MINYmUCmMHBxCsBEPudxMKycxy78X35p3YJn SvLzV++eevbUwSP9647Uss0yfqXNsmPyhwdafeG2B+yaGHyYRSSMjRXLrqi/1wqU/i1ZqS3AHh5 kH76Nm1P6Z+z/eI64ZQ+u997bPGt2rtkE7pd2oofu5GcHOVt8sVA9JsXrviqvzqp0fwCnTsrzxX PzU6oW3LVJF9nUHGIRb9VTLpUVJKAdbn/J63rnt/iSE2Uxa6Tr94SeOnJJZm5SvZ1RltjEQ61Pe N7PSz35y6DthOZ23Xm/T/yKiFlYkK0494n26+SZivk/6t+xsAmyW8RN9T+hWZ5vd/7bi4mTXG6I 9Wnoqd8wm250y0tXSW/NF6e9mX/TPlhJiVW8dpTV4PIEAA== X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A On SDM670 the DPU has two DSPP blocks compared to 4 DSPP blocks on SDM845. Currently SDM670 just reuses LMs and DSPPs from SDM845. Define platform-specific configuration for those blocks. Fixes: e140b7e496b7 ("drm/msm/dpu: Add hw revision 4.1 (SDM670)") Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/catalog/dpu_4_1_sdm670.h | 54 +++++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_1_sdm670.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_1_sdm670.h index cbbdaebe357ec4a82a3c3d950aa13792a1fb2d6e..daef07924886a529ee30349ae80375a324bbc245 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_1_sdm670.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_1_sdm670.h @@ -65,6 +65,54 @@ static const struct dpu_sspp_cfg sdm670_sspp[] = { }, }; +static const struct dpu_lm_cfg sdm670_lm[] = { + { + .name = "lm_0", .id = LM_0, + .base = 0x44000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_1, + .pingpong = PINGPONG_0, + .dspp = DSPP_0, + }, { + .name = "lm_1", .id = LM_1, + .base = 0x45000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_0, + .pingpong = PINGPONG_1, + .dspp = DSPP_1, + }, { + .name = "lm_2", .id = LM_2, + .base = 0x46000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_5, + .pingpong = PINGPONG_2, + }, { + .name = "lm_5", .id = LM_5, + .base = 0x49000, .len = 0x320, + .features = MIXER_SDM845_MASK, + .sblk = &sdm845_lm_sblk, + .lm_pair = LM_2, + .pingpong = PINGPONG_3, + }, +}; + +static const struct dpu_dspp_cfg sdm670_dspp[] = { + { + .name = "dspp_0", .id = DSPP_0, + .base = 0x54000, .len = 0x1800, + .features = DSPP_SC7180_MASK, + .sblk = &sdm845_dspp_sblk, + }, { + .name = "dspp_1", .id = DSPP_1, + .base = 0x56000, .len = 0x1800, + .features = DSPP_SC7180_MASK, + .sblk = &sdm845_dspp_sblk, + }, +}; + static const struct dpu_dsc_cfg sdm670_dsc[] = { { .name = "dsc_0", .id = DSC_0, @@ -88,8 +136,10 @@ const struct dpu_mdss_cfg dpu_sdm670_cfg = { .ctl = sdm845_ctl, .sspp_count = ARRAY_SIZE(sdm670_sspp), .sspp = sdm670_sspp, - .mixer_count = ARRAY_SIZE(sdm845_lm), - .mixer = sdm845_lm, + .mixer_count = ARRAY_SIZE(sdm670_lm), + .mixer = sdm670_lm, + .dspp_count = ARRAY_SIZE(sdm670_dspp), + .dspp = sdm670_dspp, .pingpong_count = ARRAY_SIZE(sdm845_pp), .pingpong = sdm845_pp, .dsc_count = ARRAY_SIZE(sdm670_dsc), From patchwork Fri Dec 20 01:28:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13915981 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C5CE8F6B for ; Fri, 20 Dec 2024 01:28:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658119; cv=none; b=OBVznAaADC7hJLwGKQarGkDPvJw4qDb1uPbG8WVmu3/Ycl0G/WZmdqts7IKn6H+LsPebXEOfqxglcSqrkQ9M0dbBNTZRtM+7mUbYHnTXXvgxOiQeFghU06qxKatFuoUur3TYN7JS4IHknGJc8ThCWGo37GpbNfzRmdZAcJNZ24I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658119; c=relaxed/simple; bh=0nHV+KsFnBOLA7ZxxfDPuxSHN3vDdgnluGgG9s77asY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qXD1dC45o+8Tj5QMgmeqwKAtFd2rVycYOOzHCC+OQcz3ntpxMlSgjMgvlytKMVwL+fH+7czZeq7i+TYxOxSvh8lf9t9AoGzu7wHEixxhFAdpI4ZzHUeqbSEIMV0yPCoFruk7GWC6R6lUR6XaicF0G+jhBjZhA6rdM996ANrmtuI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=p83fbR5E; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="p83fbR5E" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-53f22fd6832so1343910e87.1 for ; Thu, 19 Dec 2024 17:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734658115; x=1735262915; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=w4ndfZOZJO1jxo/ZES5BqsNFMwpzqaVZfLDHYM6sZiI=; b=p83fbR5EKtBHDtWWtr49cJOvqsDIzQWp/wU2bXU+MWMMI58bD7z8/iJF3tZPZ8MpOD s6FsDpZnVuHderTIYtCdJhCP5afOkyTtMblHxSPnLsEQCzE72KYyOFf+R5bFzjAeLIi0 bVOX9XM/WyrI8qvmBANfH6CqKuSNkhrkmswdQmQ5rhpEa23uiqqrKNVyFYPoWxi0XQk6 1hfFSk1VRGe2VqahgWikxpMH4qk6UjegCsYr/x1rM2Uzw0Xbz2lz4hM6JjN8ymQXEtV/ RHA5YmI4tqQFnmDWPXsp1zQAfQwp3o1oN968I/idFQfyF+NJPnbXWlWUPFtdhIKVIQb3 16TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734658115; x=1735262915; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w4ndfZOZJO1jxo/ZES5BqsNFMwpzqaVZfLDHYM6sZiI=; b=cVe2aOoDUQzyPM9PzZk5lys82d0CNQuCFyW6WgiKY1lePjoU5zKbC07laM5Hxbtict P/iOOH2niMovDyZHefhsdIbk+cuV0d1IA8IDD4SBmFv4KlhTiE3mQ5jH6tFzCECU8FzA Xx+6deXrF9xMrXohu/UoTEkim3YLsOf9kfBmrfZO+FmYXplO65uCs3h7kOXccPFUoBK5 /CMqCB+TJQy7txDKiQaJhmZLbNBKkdiDErNizzDTFm8etaUUcTwdTB+XojQVRZzALAyj ls+ZYqXrWjpcTeqZWEmcksajWRIOVS0+9NzwJpbPya+Oq1jyR8L+l/h1tNzGOxsruw7y xpEw== X-Forwarded-Encrypted: i=1; AJvYcCWplfh7nATj5F9m70LvHIy5sJ9zrDedmgOILyuTtBFriRKyaGiLytkArAnnd/0nJ5uhlcxgBHgRKB+Vd3R5@vger.kernel.org X-Gm-Message-State: AOJu0Yyh+Enhdnqy7nSqIXjLdjyJO3WFctV/qV2W5ycT9yuBZ82tQCOq /0VkWmOIs0hra8jFrajeSuON1gbz9e7hTlbhuKcbheLiLb7YaXuXULIoPWgbo+o= X-Gm-Gg: ASbGncvvUA7/OqYqafTFYo8GzB3CB1KdWAmvIod4dAtESOeByXMEGzLPUW84PHuElO1 Nq8rMolv/QYWPetSnvOXOfx+GLcR6WAzNM00x96aJsB9aELzkmoZnknSMdcnfKwc/7Gm4oSKBxi nzmV4kk8Dn+8efuFefoKodk6fnS2m05R8YziTeSP9ZJsTHNXQkBzAghBeZr/ubp1zBzX1VphOQK OFiENyGMSczTYzKadH5NMFEYq/gNiClfs3he+prLekDwJyjFpxNMiXrdCCYZ+Pn X-Google-Smtp-Source: AGHT+IHs8K/VbvXTO8Xz4iZdDagLPpBuaGlYHTDPeiDhViakq0c6cSmYpXdTleF1r+SIikPOF9knag== X-Received: by 2002:a05:6512:2308:b0:53e:2f9d:6a81 with SMTP id 2adb3069b0e04-54229560339mr177427e87.39.1734658115428; Thu, 19 Dec 2024 17:28:35 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54227a89c2csm170540e87.71.2024.12.19.17.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 17:28:35 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 20 Dec 2024 03:28:30 +0200 Subject: [PATCH v2 2/8] drm/msm/dpu: link DSPP_2/_3 blocks on SM8150 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241220-dpu-fix-catalog-v2-2-38fa961ea992@linaro.org> References: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> In-Reply-To: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Robert Foss , Neil Armstrong , Abel Vesa , Richard Acayan Cc: Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Johan Hovold X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1305; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=0nHV+KsFnBOLA7ZxxfDPuxSHN3vDdgnluGgG9s77asY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnZMg+cUL3mr5ppuT98cOi+fVsGwppbZmBA/cXY T6tI8w+2GOJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ2TIPgAKCRCLPIo+Aiko 1d8ZB/0YSHJHTNMquXkcsraZdDPc40CYd7yWi8YA/3S2WD+87CVaoICq8y56B8NmuLoeaq+eBGK +Ju8Le/3jUsJlwb2kHtL7vGpEnux9+b8ozLGdL0xs19S37/SkWOO3N5eIKrQXygVIN9kpEaJijD yh2Sidt+1WbR7/x43yLNs0T4kQK/9Y75INqPBRRq3xm4PEBsB5SFG2yK62owBF6kAJJs8mwE16X +nStEKtF2sMuZNvPkRZ7a9wkLNx5Edr4QMeXFsU/KQTDbh+Hgb1lbRsls+LnnRc4/jpeZfPgWyX kmdbILxAjDIHpvSQdHUN3I72Y6Uxeu+Vhr+jVwV+C2LMv5cI X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Link DSPP_2 to the LM_2 and DSPP_3 to the LM_3 mixer blocks. This allows using colour transformation matrix (aka night mode) with more outputs at the same time. Fixes: 05ae91d960fd ("drm/msm/dpu: enable DSPP support on SM8[12]50") Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h index 6ccfde82fecdb4e3612df161814b16f7af40ca5f..421afacb7248039abd9fb66bcb73b756ae0d640a 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h @@ -164,6 +164,7 @@ static const struct dpu_lm_cfg sm8150_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_3, .pingpong = PINGPONG_2, + .dspp = DSPP_2, }, { .name = "lm_3", .id = LM_3, .base = 0x47000, .len = 0x320, @@ -171,6 +172,7 @@ static const struct dpu_lm_cfg sm8150_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_2, .pingpong = PINGPONG_3, + .dspp = DSPP_3, }, { .name = "lm_4", .id = LM_4, .base = 0x48000, .len = 0x320, From patchwork Fri Dec 20 01:28:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13915982 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 856B018641 for ; Fri, 20 Dec 2024 01:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658121; cv=none; b=bBWj/6teQ5LrFhUxYsjyA+4D1sPycliYpe32kUphlpUFsB1lgeiiHBLNeCTWtPxKbqAbhpKYFIyT+CwEq4oy1Np+KhqtRI4IqSwa+ap1U8Gs7CCQxjR5RL/bEZXnO3MXlyjZMkZLZrhOiNMQGpbr/rSGzDUe5j3DQFolhiiDVEY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658121; c=relaxed/simple; bh=EPTpddReUdMYZ2WS7Ttu60U++lU0UI8BvSWUbWEeV/s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EzMs4vZr8loQoKpuzHiUhLqIbJvSrmMOGNmM0NhMuYpbjKj77Pvv6I+Y5EAo4P00naUqIy7QAAky/Jm0gyGsHgsUB7s2aYMspwBDfKQxamUhY4Nf0eX832BK3vNeyHTy/YFovALxP3FxiahAK+4VE3Ia0X543dKDeaBQl5Pieic= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FLLv5YCl; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FLLv5YCl" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-30229d5b1caso15944161fa.2 for ; Thu, 19 Dec 2024 17:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734658118; x=1735262918; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=B+IOu8UV/6vM6ydhmIg2O/tJH2Ir+xajrwaLNWIqsKA=; b=FLLv5YClzgDjGZ0n6nEzr2+273GXYZirDmxz3W/ZYQzWW/PN4vtaaFAqdpFSEOaFBs W51t2riA0KqbPm4XeGM7XM4Y3ZtfsgiXWz4sDfWzrqNF8q5mZL0+eoA42B+vQSPxxOxW N6t68S1Sp2HHEfzKBbLzMRs3syjbfp4tAl8tXCzW6nymP/27OYr0XL1mNBzPq/z0XE5S bOOLmIROPvpSz672wq8QuWUiwk4YP0qEqR1VInhw6PeQeJKomqOZVCrLow/GS823dgN8 b6jmykz9QvKi2kvKcduiSOWqIvWFn6JUqZe8+9n8JQkmYYYL93UtKagaYeq5t6hiwNU2 uOPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734658118; x=1735262918; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B+IOu8UV/6vM6ydhmIg2O/tJH2Ir+xajrwaLNWIqsKA=; b=uA+0XJrkQSEbL+USVtN7VkioxXcpJPwblfLW6JjKFw9KgP13SWwKdniX8DuZKJetCf RK6CTV7zjISEr2dOl56YU44hQCvEmB4M95cqxk2VtaHM6Tva45//PFfcFjQ0gTqpi40E 0c/6wGl2rtOqQYc5bI32tkt/AKXAW9njuGuV0/0Z3AafcUwhTY1E8eJY9d2c/WacsE6X uFFb2e9qOrD1TWPAHkWRIskEFyBwyvv9I6mL8KsjDgI0XUL8ErStKTAjdEhW23BYnaYp 1HaC5gt591NwN64AEtRUsJ4yNccr7mp8Ude8Yt7Ejs+oFHS3QrxSZck7RjM6HqsrjV2x zk8Q== X-Forwarded-Encrypted: i=1; AJvYcCUtagXipqETpRRgKEi3UXOi+5nuwAm22TLKEJBQYw8Yehe7TYmu/JsmCks2ASR0hcSkPNBQpJGESiEE+TMr@vger.kernel.org X-Gm-Message-State: AOJu0Yw0qbgL2ESo/y8EmolPfZOzejsJHhvUefVwJRGkLeWtLUnDtadn YPhB59otWGOwElNXX9DxpHbnhu3dl8z6vdW59fL/7Y8FYIJcbbZjVTBAKfT65YU= X-Gm-Gg: ASbGncsoWIqYwHNzHxJMjtU41HczgJB1XZJ9gNixL0XdnH97j/tIve4quzdNcrab2bP FmFXbesb4+LK7kxDzdQUy+bTtfxmANbq69Xi5nh36yWRWx2Gyyha65uS5RC6uvDtepC8WBvvsvc 7P3hafskP/6KFlLG3DruY+DDQJ8HPqjwT1nkKZdwJm+Kv9Te8f7dr3EjVN6dJr+qAJe1xeMCeiA evu0vl2xM58BaMl5g9aCWXFTEMoEFZZSGgcnBWE8vga/B7MVPyWY7uEegRqswe9 X-Google-Smtp-Source: AGHT+IF/gOolHvWa7yF/iCUiShP09wS2f5aMQOTOUG5/8f9sFilzuUtqb9Nhi5hK3cHa1R8oVHUSSA== X-Received: by 2002:a05:6512:281b:b0:540:1fae:b355 with SMTP id 2adb3069b0e04-5422956bdc1mr180935e87.52.1734658117831; Thu, 19 Dec 2024 17:28:37 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54227a89c2csm170540e87.71.2024.12.19.17.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 17:28:36 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 20 Dec 2024 03:28:31 +0200 Subject: [PATCH v2 3/8] drm/msm/dpu: link DSPP_2/_3 blocks on SC8180X Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241220-dpu-fix-catalog-v2-3-38fa961ea992@linaro.org> References: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> In-Reply-To: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Robert Foss , Neil Armstrong , Abel Vesa , Richard Acayan Cc: Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Johan Hovold X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1310; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=EPTpddReUdMYZ2WS7Ttu60U++lU0UI8BvSWUbWEeV/s=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnZMg+ULIs7Do/CbVm2Z6XMut+0mgevQOhJC9Jk e4FFOsZiDmJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ2TIPgAKCRCLPIo+Aiko 1bvoB/wJarARi6agh4POgzBYGs/R1Pm89eSXojW6joFnqCgC2QvVp+stKH+rcPi2Wl6d+0/o+aH BdAxxQcwy/OW+NhaRsZexjjzlOncTAtHoKB+we8AoFIM3g3n9c8hwFokeEvb4VhXrOul5w91yhe DsyAFaF3+bmiobrYFvxa7bnUgIPGRCkGOQntnBoAZGXpN5cGaHUO/JcJO5wEEtEB8O3Ok8IpFpd 89rOzGUCUP4i+RKYppwE1gmtJQoprSHu00XVXVaFBWacndtQwQW6nYWE96xuRAzuc007SEFWj1L mYri9Rmscfeo9wbdMqO/zbgQx35nRB4C+0VZMtLLzS2Sj4aQ X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Link DSPP_2 to the LM_2 and DSPP_3 to the LM_3 mixer blocks. This allows using colour transformation matrix (aka night mode) with more outputs at the same time. Fixes: f5abecfe339e ("drm/msm/dpu: enable DSPP and DSC on sc8180x") Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h index bab19ddd1d4f97805c1bfba8ba6e117ae77c6c2e..641023b102bf59352546f0782d9264986367de78 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h @@ -163,6 +163,7 @@ static const struct dpu_lm_cfg sc8180x_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_3, .pingpong = PINGPONG_2, + .dspp = DSPP_2, }, { .name = "lm_3", .id = LM_3, .base = 0x47000, .len = 0x320, @@ -170,6 +171,7 @@ static const struct dpu_lm_cfg sc8180x_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_2, .pingpong = PINGPONG_3, + .dspp = DSPP_3, }, { .name = "lm_4", .id = LM_4, .base = 0x48000, .len = 0x320, From patchwork Fri Dec 20 01:28:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13915983 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 064AA364BA for ; Fri, 20 Dec 2024 01:28:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658123; cv=none; b=kfxyn6yfQM1tNqLAl3jIQJHs3D3HLKpujpFEcZBUqhP88XKwW5DbOO/8S4jd7p96tdAAarorrDwj50chVwkcwSxoAkBWg3iNLElpS36Fjkou+qeChotOoYVAMq/Xyrhfx3mTQM9zlvAWFtPeU+2kNXRjQxIyZFgHAnYn0296i20= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658123; c=relaxed/simple; bh=dZzh3PXS76i6xnboEA79w1m+EII00mpCa9Y07Mzie78=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=adyv6Zhk6a3ipXcRQzQ2/iRCPpWw3xIWt6JCbzwoqBQjoZnCPU63k/LwX3p6Ukg2F1wO4cil/lNO/pPWDnXyICvB3nz87Q7vxJc6t1N9DVRSFdvbyIoy+YHRVf0TV14gRe1bnARuaRYotMJGnaBHKtsRDhLdxiiDvo8GOpr5Z8Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=JovlaRKI; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JovlaRKI" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-53df6322ea7so1606149e87.0 for ; Thu, 19 Dec 2024 17:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734658120; x=1735262920; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cNGurZx5APr5o8b1YKpzmXoTLfFEipQsrmLsb92m7mw=; b=JovlaRKIDTfJefd/T0szl2myZ43St9vKUW3JmKj5R/gW/btRjlIRnPWjMw1H7e0UCI pOSU7JYJBJjrJHIixkRvgqDSmtvD4qm3teN/DBng5vrDPR2nFXjJwPkGvZH3cGXOMfXf 9zUPtPLYvjLgw0zu0BIEb2ZHBdtGVziTqAoiW472BDKZ8bueGqH6nVIRmmKvp9FImTW3 DdAS4zRxU3IbpDvAFett6WNlHxjOuy1LylHFbqv9PplhBIb+6U9M6wiPHcOVlKCiqqH/ 5i44Wui2eGDmrTgL3+7c0D9AWrdfyV4ktqT1HbNbIIoVbSJ7U+qVK6YKdPGIaUn/cgkD YGAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734658120; x=1735262920; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cNGurZx5APr5o8b1YKpzmXoTLfFEipQsrmLsb92m7mw=; b=UBi5buveSC8JTFe5igdOrGOxPJPHKs2reRMbS5bmag9SkgVw0LopcOHuExIGBatyjd M8smvv+vfONOUKVPaGOLez76+RDt+w8nwP6K7b5REParMe1DNz6gn/qfCC67afHOxUPn ItsYrz2XBwEOt0tUbqtJ3Tzyik2RafaN00XYdfSZQw0O52NtkXrOjlG/LoVHz2q2Jxiu bEGin2ds6DJuk8Hj9Dvk9h45iDJ+MA++VURiXX3kHkxHOt3OHvFg6BPtDb7myFEs4CIw IpvkshecI5MOVyF2vDhZuo1zxCxm5dDb3X9nJHF6ALB4dIRdS7wCCdoxRrCTkSEoUcYg WwSQ== X-Forwarded-Encrypted: i=1; AJvYcCXGKZQZ5p+j80+Jdv/zWy5SiF4K7Yk1FBrxIm97LR6N1RI3n/o5Tu6+Db3gTeLlTtKFz0sHBFpNwY+HpnnL@vger.kernel.org X-Gm-Message-State: AOJu0YzlOYIiAG1kUYk55OyfvEDZIdxMhxZucNz9Wm79IvHwp2YCppum wWxyim985ihQZIaMBP7l73makOmvNYs2aUGoaGGUIegreVhEUeAF90FSRzo9KCk= X-Gm-Gg: ASbGncvKIgDxza5PChGqQPKR81jUIC4tNKptWfyBc6qtuXvqayXV7DsftwVO6mCh06p 35hIhpjQhTSR0GEwZS6Xs+hE7uNI/4iGwKRgtJn4ySNtbqbJjodn/lDefh8zPDzkRZVLJTPsAqs icBI2XNHHSPowBVk6bclw6KAvPuChduy0I93cr8E4umsjcM3r025mroW6QbGkKl0bg3NcfCz5QV J2MERtI4pvVjsADYVzAUQi8B6cd7Z4BXVNh1IiAtmV1t5bImmm8P/Kdwz+jlCLz X-Google-Smtp-Source: AGHT+IEzZsIs9KHrk+RQNoZgbtix0ubEjo1ieObMZDI8gSvt5gDisA0jhTtuC/z1S2rpaDu+Y3v9hg== X-Received: by 2002:a05:6512:1055:b0:542:232a:7b2c with SMTP id 2adb3069b0e04-54229548e22mr177814e87.29.1734658120251; Thu, 19 Dec 2024 17:28:40 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54227a89c2csm170540e87.71.2024.12.19.17.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 17:28:39 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 20 Dec 2024 03:28:32 +0200 Subject: [PATCH v2 4/8] drm/msm/dpu: link DSPP_2/_3 blocks on SM8250 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241220-dpu-fix-catalog-v2-4-38fa961ea992@linaro.org> References: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> In-Reply-To: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Robert Foss , Neil Armstrong , Abel Vesa , Richard Acayan Cc: Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Johan Hovold X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1305; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=dZzh3PXS76i6xnboEA79w1m+EII00mpCa9Y07Mzie78=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ3rKCbtco8lmN7xdHszWyrTvlH/Va6gQOXnhca6J55/M0 p37RvtvJ6MxCwMjF4OsmCKLT0HL1JhNyWEfdkythxnEygQyhYGLUwAmIrmfg2Eiu2lo8Z5c6RyX Hbeui8duXMSxykPaoNlh5Uo74cSQ5uqnWzdV58azlf/mWDmlbH5Hw9a4FIdH3driHWsvxvwUtTB 2axMLkbA5VPRimZ5xj8qq3a8Nij+x+VmWO2rJh+u8rnQUObWBkedeih4j6/pp3YZXONOZ1M7yBy f5V6te134k+J7T2fzD8b3y0+6aCbYnXhDc95szle/A+kN1O2yOf2FakcvMOTHkFnuigg+PuaCog +rO4Bt7Y9h8w52CuOoWTq9z15bgdqrv6k+ZtEKD40bKgWWtT5YvzXt1d5JHaHjAPG0+2eeHhaqa LsYr7n67PT+z7cyEmZ27tCWysvutb34uDlu2guuBSSUA X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Link DSPP_2 to the LM_2 and DSPP_3 to the LM_3 mixer blocks. This allows using colour transformation matrix (aka night mode) with more outputs at the same time. Fixes: 05ae91d960fd ("drm/msm/dpu: enable DSPP support on SM8[12]50") Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h index a57d50b1f0280776bb95f55b8fce9aa8259d7041..e8916ae826a6daf30eb08de53521dae89c07636c 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h @@ -162,6 +162,7 @@ static const struct dpu_lm_cfg sm8250_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_3, .pingpong = PINGPONG_2, + .dspp = DSPP_2, }, { .name = "lm_3", .id = LM_3, .base = 0x47000, .len = 0x320, @@ -169,6 +170,7 @@ static const struct dpu_lm_cfg sm8250_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_2, .pingpong = PINGPONG_3, + .dspp = DSPP_3, }, { .name = "lm_4", .id = LM_4, .base = 0x48000, .len = 0x320, From patchwork Fri Dec 20 01:28:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13915984 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FE746F06B for ; Fri, 20 Dec 2024 01:28:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658126; cv=none; b=D1Wm8IKIyZfVmD6yiyIXTN1manTk7tBMEVmJbtUXiKvjwuqN3jMR3fLb1ZhLENQB8pe/3jFNK5Zj8/m1N35sYQtOjgOyRVeGA6voJRyi85GqL3ltnoNqeMnnG+Q/spa4GjttVpydg8t9hqLTZPasYQdXuaQVhvhRbOdgnYUDyEE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658126; c=relaxed/simple; bh=i4FVDn+/rOcn2C84yQSmmpsO3jO494mbVjBwMlV07+c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SVVED0/tiJRf7yXPqCEbJcism/epMbu4k16w6XzkMxKSaQJdwGrvpDpBRyktn1Q3P6SNx3Jad33dc9zF5p5W2hajFDo0t4+nu2zTDGMWW9binM305lkar+rSdW0ZxyDi/w6By3xvgWngQ5NHTDQNk+IfRj+q5ZgS36U+OgeuTak= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=lu85H6Mk; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lu85H6Mk" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-54025432becso1452764e87.1 for ; Thu, 19 Dec 2024 17:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734658123; x=1735262923; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=r8niegYZnY9morgL7MxhpeF/UQMeeTk6uKDQF2VfVac=; b=lu85H6Mkrxc+kvUe7h5mD8qdGqPooPP/4FZcV297BMD//p5gtICKbKgAW/lDvXNCs5 YCKhTbnslBkQat9X5vCtVyvF4umih5z/JodNBiUJCThI0DXmE+xsy1j/Mbj16kRJfdBL 5lylyOkfEtR4Kglu6YmVHpvQrkL9fh5jrINLi4rGg6m+lNODi82QnCwkXtmHa67lgTqP +7DpnTmcrXvh6j3LT5VbX2GWqxFSCtL2Q5gHK5WZN3XeGPmcjHjAoDki/1UkJ9/05fL7 0f/GBoY5GFTTwwiXYnc/42SpKloR0EpFejN1MQ6bf1DNTM0lOS7TnFgdbkpIl1nsc9tO yZ9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734658123; x=1735262923; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r8niegYZnY9morgL7MxhpeF/UQMeeTk6uKDQF2VfVac=; b=An81pct8Yld2f5+vkg2RRZEwUY0jrj0hxNfNnFx1bMFuE/Wd5PsdFi9EXiauHGCP25 8irE/zOCNPhKlWIeAytJUF02wEvwiHYp+oW89XnUD2ZY3fWKq5y3gbXufktX8Ap4Lwfw Tdfkys/Ze4exXgacxTMQ7EYhCwiyogKbZMH50+GCnZAw03b5qRP0b0T0izSxLrMweKgl 2Bpa/lSQnR+irzi1OPQTAqQVHqxZUOJwpooZApKgLqJqKYnURwRHnilIMHNA5zfo3HGQ YJ3j5OZDVS0zT8orn2TJjrgvGQz7xiW3LeyhEuhiup+cpRN7Xpc9uGE1BevEstiuOyg+ WSVQ== X-Forwarded-Encrypted: i=1; AJvYcCWyuC/hlFTofTv5HrPb89GhC+hyGYgdngVpyTVr2cVGbEAB7D63bkTkPnlWAutsT8ihde8GmsSzzSlaBYqX@vger.kernel.org X-Gm-Message-State: AOJu0Yw2jZ7FILigcsZTKFr9YOeD/vTIIPsvJ2vF0WxKhlE13P14qAem drqUAvrlpPjM6yj+VSpRNqqqOdDfzXOTc4en77Glq/Xr2kzW0EOFWjiH2MG9hLs= X-Gm-Gg: ASbGnct3Qie5M/LMe3gSSEOFyVK9uPN774ww5mFHyGcwViRywb2bqcukXasxVc811ni ppv0AHgPytr+NEUi0mhB/IUxRsTKCGOWjw1wJkSl75fTGOoVEWiIP2KAqaFIiAKHBVkr1S4pNjL ChH0rfkH3IuStiNkXh+ungpx+slcaFYoxp5LVLnTbFO6CSJhhjWkp2qhU4/vAOw4oStcYqcHFxS 7qQxAuIB9p1IPlt6KvkB+MP4GsOurcsuWsGQlxrbW6pViJ4bRPsCtqRlOHIhbs3 X-Google-Smtp-Source: AGHT+IF5Nq2wfvPB92CZMzX3Vkpwjzw8xyQ2wYN5LaM5HZlw7C5cwQ3Tpe29jJapNts5wwecQpNCpg== X-Received: by 2002:a05:6512:3b99:b0:540:cc4e:6e20 with SMTP id 2adb3069b0e04-5422958245cmr173527e87.42.1734658122638; Thu, 19 Dec 2024 17:28:42 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54227a89c2csm170540e87.71.2024.12.19.17.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 17:28:41 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 20 Dec 2024 03:28:33 +0200 Subject: [PATCH v2 5/8] drm/msm/dpu: link DSPP_2/_3 blocks on SM8350 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241220-dpu-fix-catalog-v2-5-38fa961ea992@linaro.org> References: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> In-Reply-To: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Robert Foss , Neil Armstrong , Abel Vesa , Richard Acayan Cc: Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Johan Hovold X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1297; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=i4FVDn+/rOcn2C84yQSmmpsO3jO494mbVjBwMlV07+c=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnZMg+fZYsheFVecn80/JQlhFbjlEtvUNOb5WRv Y2n8WFMVhSJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ2TIPgAKCRCLPIo+Aiko 1YoMB/4yMWZzpGpG+2PXtT/HTOXM6tBCGMchJ/4CkZavOgbJxQHJkQjxk8vw1CVxJ5U/s20ffmj MOkyl9JUAElhkUXb8wt0aqM5r476DzWlXwcCtKsUEvmbZHYzZLGSqYFsk/SaYfXxk5bL/31ZGVZ 1hTNDmw4hhs4xYpQ87HvCnTrfTbV1T7GaiFXm8fuhaH7M3AM0Z/3/74R5IjdkpTCEbtQui/nNhG 6vG1agZoeNsl9f02sHLpTgq7EAz3qKipD4X7ddvTwcst7oLxo/vI/KxU35F+pjyn3Hy4pW+vrD5 Cz0wSqb+t+w5LIESymNJ4Ij5C6mTZdDbJhcZcaBL6+JDg45f X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Link DSPP_2 to the LM_2 and DSPP_3 to the LM_3 mixer blocks. This allows using colour transformation matrix (aka night mode) with more outputs at the same time. Fixes: 0e91bcbb0016 ("drm/msm/dpu: Add SM8350 to hw catalog") Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h index aced16e350daa1bf5d24078b2468b5095a40ce07..f7c08e89c882038aa658955ca1202bda3d928e80 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h @@ -162,6 +162,7 @@ static const struct dpu_lm_cfg sm8350_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_3, .pingpong = PINGPONG_2, + .dspp = DSPP_2, }, { .name = "lm_3", .id = LM_3, .base = 0x47000, .len = 0x320, @@ -169,6 +170,7 @@ static const struct dpu_lm_cfg sm8350_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_2, .pingpong = PINGPONG_3, + .dspp = DSPP_3, }, { .name = "lm_4", .id = LM_4, .base = 0x48000, .len = 0x320, From patchwork Fri Dec 20 01:28:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13915985 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0DBA770FE for ; Fri, 20 Dec 2024 01:28:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658128; cv=none; b=TaCJcQk+I/me1PcvbJQbFTM149rTak2nKqvODk4P/nhdwCLpSeWqurKSo/kFRbz1XlzGKxEwbmm3b3FH4D85TLsr/hE+PrLtM8aEYSeJllQRfowhKwIwS33vGAE6tPNLmsQ6wavA6K9CNIrxltJB2dsfD14P4TwwDJxEDflvrfY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658128; c=relaxed/simple; bh=vb3CBdu7rRYdoP/BORloE4ExhCArGx9G4wRA2z3QaT0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mRsEP2ruMT+rhGQWtcBeJXeolSfG5r3TByqSCk/CF8E4ZWSYTIny8U0LjtO6n3tMzVfycisuZ5m1aYlGLddxzrmXBepO6fYFvws3qqBcFn3IqGutwy5fBZV5rV4FkLSQMxfvza67QOVUSBbimrQuxW74g0hVTRJpWvVuj6wSo1E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=b7OoKju1; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="b7OoKju1" Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-5401c68b89eso1572647e87.0 for ; Thu, 19 Dec 2024 17:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734658125; x=1735262925; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=p3GKBJwWEfw1/CxFlxhza+7CDGlBelmYowiHKIMRKmk=; b=b7OoKju1ajy0KIrsxVGicjCP+HD4YuM56+P6/zz57uvNWLT6BeIHTpFbeB7vSvx3zf PvTdegdWqQl9ZgFiXHU5fSzJoVcgqIIO4WoHFkKPeYc7bXDnKoDAF9DpAEKJMjuW7p2L z7okANWdXGchcGGWSIX5AHlKWba+pHUQy0fPEF8jLTb7pQlfN6HayUmEa0QfZxwW34BY VqHC1PYmJYdBMVa/H5ehaisaAsHmIKE/bm6cjH8OR3/BthoKlUCC77YVUwOqk5m0qutP 9qV9PVyBdIdmnWDDmBwLNyODzoFxFAIg/czPlbqTZ/NRI0UqFtS8bD/gel+lVYQDsmxw aYow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734658125; x=1735262925; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p3GKBJwWEfw1/CxFlxhza+7CDGlBelmYowiHKIMRKmk=; b=PZsjMUDl9bIyBPtwu+XzGcRAWKQfpNiw1vMJFF7YI9s1w/UNwIC17oKO8i7eHVS9Mn pUlueFocG3EGg6V1ZFR3ojmU/ANn741TkPOCuJgX1n3xVCT8rK1lMbGnJvB/9xwzG8FJ OrSYm3iZjMz/6iXN2OoU882PFrmb6hNqCUIE1WMNemS9wA4036CLh8KG+n50VmtZlCgJ L4JjjGp2UTP6HFippI0sv3L2noVXzW02HiMvgSJqOrl59OoOveTA7FwmGDUGGl8ePUi7 nboG+AJhSZp5gJ4V1Q0WztTrAy6aElOOTCntHEuku01GEAczoysnuglnIyrGVgqO98Nq YEog== X-Forwarded-Encrypted: i=1; AJvYcCXmQvMP0E66vqpUlFEcjW9goUu985Xlc3JAnKKN7HS/yQZBMhh1bXtrPbM/fKLL2P0ysPCGG6+ej3HbK74S@vger.kernel.org X-Gm-Message-State: AOJu0Yw6ELxouiT0cUp2KotCUMNGiKlSfjavgSlodhL9uzHUnpUtNgry 7tTm/0aU0YKjezvQFfFj2Hkbh5zoOxUrMcV4YGfkcTXLp80e8x3rtkuBnoekhpc= X-Gm-Gg: ASbGncuJz9KPoKCdcRfUMU25gofGXvCkkpFY3dH41pvx1NrsDrNoSlJLio7XWVSp5DX B25cg6fTBLZr6GDpPdzdBOmJYaBlhbqvBMUdYfr6JTuGVY3JNfu5ZylFByQxD8tbmU/I8Z7A6QQ TJvySwII9MWCaY6L/uzu7XU1vU76oU9/S/crHe9ZPo392Uew9KxvbzIhdwUIhei4vOWxgk1F/9y 1GVPOP1+e9VqvVwBDWuioltoS5pjE5WVaBmHJw2uqdo7yOcBAuQLJwDcBPsmsUd X-Google-Smtp-Source: AGHT+IHESAj0aPRm12hAGclUJ3UmR8oxmXDZHMsUjV8nmvQd5MLhJkySZ0kJVJQK5K08IYjyPoxqEQ== X-Received: by 2002:a05:6512:3f04:b0:542:28af:816 with SMTP id 2adb3069b0e04-5422946ed34mr244788e87.20.1734658125099; Thu, 19 Dec 2024 17:28:45 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54227a89c2csm170540e87.71.2024.12.19.17.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 17:28:43 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 20 Dec 2024 03:28:34 +0200 Subject: [PATCH v2 6/8] drm/msm/dpu: link DSPP_2/_3 blocks on SM8550 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241220-dpu-fix-catalog-v2-6-38fa961ea992@linaro.org> References: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> In-Reply-To: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Robert Foss , Neil Armstrong , Abel Vesa , Richard Acayan Cc: Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Johan Hovold X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1295; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=vb3CBdu7rRYdoP/BORloE4ExhCArGx9G4wRA2z3QaT0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnZMg/ND6AujJKVlejqIx5KgOPU/QuqfhojOWOi DhTvYmZfx2JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ2TIPwAKCRCLPIo+Aiko 1bHqCACxnLhTsGmevsDSoJuKkR2vjzK5c0HdYKwGpX6aV+XMirfriaa2P5aaQ/tlhTRWFh6ufvm UUq/IdVRCqTPCoyRknT5AR0bXpShVOk7mW1h1BL+zhdkygTNie8HqmjBrQI13S/VEDjAgf9vS2A XM47vQjpfYpCw0wkwQXpW75lPPE+DCkEIzfR9srWIxj3eHjgsFU/543xYYM37xUlZPIcCyLYp4K k2NC9DgkYTXIQ8ICtLnna3UzGRR6GyX81wPnLPjU2NUNBCI1kgJfrZtamqnexvEo4OJNwUXA8f7 cOG+Yn9ZFNI1Aa+KLW57vbItrG5Rt6xAVM0V8DPL+XcK90l/ X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Link DSPP_2 to the LM_2 and DSPP_3 to the LM_3 mixer blocks. This allows using colour transformation matrix (aka night mode) with more outputs at the same time. Fixes: efcd0107727c ("drm/msm/dpu: add support for SM8550") Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h index ad48defa154f7d808c695860fd91e60bbb08f42a..a1dbbf5c652ff9f21c02af2e2520f019702f29c1 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h @@ -160,6 +160,7 @@ static const struct dpu_lm_cfg sm8550_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_3, .pingpong = PINGPONG_2, + .dspp = DSPP_2, }, { .name = "lm_3", .id = LM_3, .base = 0x47000, .len = 0x320, @@ -167,6 +168,7 @@ static const struct dpu_lm_cfg sm8550_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_2, .pingpong = PINGPONG_3, + .dspp = DSPP_3, }, { .name = "lm_4", .id = LM_4, .base = 0x48000, .len = 0x320, From patchwork Fri Dec 20 01:28:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13915986 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D3F57DA6C for ; Fri, 20 Dec 2024 01:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658131; cv=none; b=CsBlLKGBmRhQKxwUzy8RvO78+srlFEns1V+LDhmnIv54SdPNqspNHWtAAqxdtwBMIZSDjsOvf07pmWKGErxlwMggbiACj+XCI9mEOsPBt2h9d5i5WJHiobEB+qZ+pf2kixQPQjZxEdi16UpJkjMaqpgjJ4bD4o6wiGDhCIsbtS0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658131; c=relaxed/simple; bh=X7FvetBkuSIFwQPFNTIHnsnsMQMhXRkzYapuXItW/ig=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TU5x1RksavJvcDFTVBDQp12bvpBdeiWLmMgSzSs4RKRTKpyGSAPGbDovrmzVXWEf4gtxSNvxgFKc87mZG8ps3hUZroKJ4TzC/TKn21hAParjl2ApNpmyVyMi8/lGJcnKBna2dUC6YhmmF/zuYDOOhC1kzBnCcYXpWkwKbg0LoFc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FYDUg1HE; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FYDUg1HE" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-53ffaaeeb76so1418840e87.0 for ; Thu, 19 Dec 2024 17:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734658127; x=1735262927; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=iGem3bHUSgcY0xYR5Szm4SGhekE0/o689Nmwl8dsbT4=; b=FYDUg1HEpWY4OL4kAXNKRNJQF2SRwp3d39ADxWbTsOD3Y+mU9/814Hskun/VufYZUP kBL5sLakxO8K8BgGsxpBtj5V+MS+iNVbUledrJFR2W9XM+6WzZCaqxR8jY7ScktVuM0p vhZqxZ6QKh8n0d73qLoj3dKw2/+j84xTSFBuir4FgQqmqOUZeZr5njf8kfgGHrz52AxR zQ7CIlZQsloXn7maQe7ZNZitwupj/oL2TBV7v2xR/muAP+/1kOreBEMou+bYP/IjoJFi S3KAmURuMnTCkwmGVRHyFu1AnTHp3KEcgJq7IZMtGU9uxcYTYg+th8jveQ10AC63/xZi VgtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734658127; x=1735262927; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iGem3bHUSgcY0xYR5Szm4SGhekE0/o689Nmwl8dsbT4=; b=VuFX8l9PJmST39oJXW+lv7jGVQw6tZxhkQ2iQHywz5J5U3fcK6FCjh+t3BjlbxFzQQ Qr5KZ3RDrc3MwdPdhCr2JCszTHYJqjCJXFoogWBMFjMYIYBUuYKqwBjy/TIIKUjEaOcF DCH+d59Io10m1KgO0Kg78gt/gvI0HXoeQQBizE/FQooKJYcaMS/K5wVUKfbdkLjmLQAe H4oGzgooGWYMy3ypXgibalstuFGYuhba5xm1rEVOgjz+/l6Gg8XijBlLvzCgJVzwDNyR c0DdJkW6oRvLZhEVBpd4vUbMnujTmZkmKxX5eAOfEbphtOjrk56OGCpWYRJ9MA3Lr86w hfXw== X-Forwarded-Encrypted: i=1; AJvYcCWsBoXetqkGVCcyJOoW2TpjyVsMroc1Z2wBToTaVa+p5yFwDgJalNYI9Fti8qsJOT6Ir6NF48pk/wpdvxoV@vger.kernel.org X-Gm-Message-State: AOJu0YxwDn8LoA77CNM4o8t5XnFtjmKsik6Hmj8rQ3bzt+2QSni4FBT0 +BeHFOM2W2L1Q696dRze4n1qTxjDxiWxBOgJOuCaiTBHL5o1mKWZA3lsaxMKOQNfBn9LPj5wLg8 c X-Gm-Gg: ASbGncs//uhsilT0Z39dYBfs7XW5ebx31dgA3+aW+2dqsoud+IHnAGvFEnGTDST3vjy pZt7JjQT1JEykfLsh0Pli5R98RI/PmCcpQqI1xzghIlUkZSriPGyhQQUb/KevfkOBKW2U7hIhYP 14qh3fbELlupt3g+rPQaHIGO3v+5KwS6+6Q+ChOTLhQzNNRySdYy1cf9mV/9giPW+y91pS5JxUS IHNv+koo4eLceEBgfHfAJy6KeHnxGzSAFy128iBNxVmMHLqCgpmO1KhOgK7AT+/ X-Google-Smtp-Source: AGHT+IFlLa1rzI9ywvTJgP+UZWS6o2QRUDkLVRX0vF55rzdqfZOrzFhtlmkOZ3P7H/6LEWkwS0b3DA== X-Received: by 2002:a05:6512:2346:b0:542:1b8f:a922 with SMTP id 2adb3069b0e04-5422953332fmr191927e87.13.1734658127556; Thu, 19 Dec 2024 17:28:47 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54227a89c2csm170540e87.71.2024.12.19.17.28.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 17:28:46 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 20 Dec 2024 03:28:35 +0200 Subject: [PATCH v2 7/8] drm/msm/dpu: link DSPP_2/_3 blocks on SM8650 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241220-dpu-fix-catalog-v2-7-38fa961ea992@linaro.org> References: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> In-Reply-To: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Robert Foss , Neil Armstrong , Abel Vesa , Richard Acayan Cc: Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Johan Hovold X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1304; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=X7FvetBkuSIFwQPFNTIHnsnsMQMhXRkzYapuXItW/ig=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnZMg/v9DmM5T2yxcq/g6fD7SJF08okGiWvXljD A+sHsPo32aJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ2TIPwAKCRCLPIo+Aiko 1YdiB/9rgVTCRMCi/eCKZkC3QRKJkXBrXzrFD1gJRnAnmiBIJw3rs/CqcZNs+y9qE8Rs3HErKQD 1GRF18FqRlktpoMn/wWx0XVfvcqvF1/JOwIaufOYW/gHeDqX9bcljy+lV5BEETGiHPHlKLUSeeF lfPMYDBMKMh6fg2aMIeLOcPkBrvtuLrves2QMTCj3MzOi96WM0CFNWRijeJkeMEA21Piev+6WNP ru5ILrSjJlfyDl0PHKOOum6RS7vclvX/USM04KP03T+jQpOucULYy0PesTYVXGuxlHwqgKOwkdk q9c5a6ORSLriEroIZi3LtZE3dEhGouXRoh/oPAMTx9tic1Ex X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Link DSPP_2 to the LM_2 and DSPP_3 to the LM_3 mixer blocks. This allows using colour transformation matrix (aka night mode) with more outputs at the same time. Fixes: b94747f7d8c7 ("drm/msm/dpu: add support for SM8650 DPU") Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h index eb5dfff2ec4f48d793f9d83aafed592d0947f04b..e187e7b1cef1677261a5de7b01ea3fa8136723ac 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h @@ -160,6 +160,7 @@ static const struct dpu_lm_cfg sm8650_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_3, .pingpong = PINGPONG_2, + .dspp = DSPP_2, }, { .name = "lm_3", .id = LM_3, .base = 0x47000, .len = 0x400, @@ -167,6 +168,7 @@ static const struct dpu_lm_cfg sm8650_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_2, .pingpong = PINGPONG_3, + .dspp = DSPP_3, }, { .name = "lm_4", .id = LM_4, .base = 0x48000, .len = 0x400, From patchwork Fri Dec 20 01:28:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13915987 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C99AD86334 for ; Fri, 20 Dec 2024 01:28:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658132; cv=none; b=r/EPUh3BgSu4O+MKEY04gbai65at+qX8A79kdYclnicJbu9X8FkJ7+/CgdadtL7BXO4fwiL9SW2ZPSXvGsjdlyK/9H3PX27lif0ewBp2h9GgWV8FxgRWi0+BniarZfJaeZI/nIFekgWoMMtB2UVTvOtnWyAxqKVd0dzL1FYFt30= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734658132; c=relaxed/simple; bh=5058CHEvuHi6y1shjj/7LSsaLqFOGpH0zSafsGTeHak=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H2k8RFCuKZu4X2VLSvILnlO/f5SJPz5OortRPtmnK4NLErM8cuiQE7/MDPgeFPcy9Q1Z0J9CCfXtrZxGThvPI2/klZyAwtF56Y9NjPUfQ3C4+jQCQh2OXexr2YF/QpkHt1+q6ukDm2++YSHtTSJf0j0kZYgXiUxJ1NUnpmrssZU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=TGx19XRV; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TGx19XRV" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-54021daa6cbso1414776e87.0 for ; Thu, 19 Dec 2024 17:28:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734658129; x=1735262929; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=g+UxLeMEKZ0drgg5vIKf6D6FbqGDQrxrvZvv2J0cYAE=; b=TGx19XRVlEHchzn1valKhCMRQtPTCC0JjYSZtdjU9kLEaCKzLyddPjvrMFvZiHsUAO grUo4aO/hNwwGc3oVShvC0XLqyyyASHv3VjsNKPkBVRYot0f1ENiC6cX61KhzuTWtezB dpLLYlwN3HHV6ZNZ0KsRfJpPzeO7LEzIomNQk/ozNpKaG9voFDXZ1YsWOp01pwg3+T/a FF3JGb7JBk5CTjVBAyAVUjWF5Ic5uPUHv22mlmwIC/g+EaaHpT0uvs/xKx7psna1Sy5G bnM6KYvG7Wx3cx+ggiNdwFLSuYLhmvO5sFtdhL4ssxVic8Z9w/uGH3l1PTyVB3z2eCmj hj2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734658129; x=1735262929; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g+UxLeMEKZ0drgg5vIKf6D6FbqGDQrxrvZvv2J0cYAE=; b=fA+ZnTOsD+WtrgZVG5n3sHL+CQC+L/YDK+R1S16L+u+sI0smaMIMu3BXGEUVdGbkG9 WfBiKF3EBWVvfveGJAxZP+Obag2cMLAYnR9c8S7Uedn/mlK+d00hd/rFpO8lt3RKpnNf mZHhT8ATMvbh8tNea/LvxPaYl9NvQKvLLqP8p6g3rugQY/LEzYFDXm4f0rcb41DbXqRk ENXFeqPYNFHuaDzEheKdf/1D9ocg42d4I1Mdueewd7uDMxrXbAfUvL7pQ1LYvxjRkPMa cTLQx+Y0Umegte7DXpcO/HABaJVJv8/EdXBK8WJzsrJSvdq19L3UdNVoMW0idizLUVQj 5Sag== X-Forwarded-Encrypted: i=1; AJvYcCXLE9VSlgiEhUW+KBHdZnUNPsatKorHpBcCI/mZwEFFTnEY0EOaFoCHRTdBfaDAvGkN9PlnTihotuD/yvjw@vger.kernel.org X-Gm-Message-State: AOJu0Yz87SASS6Sfcw7dNbE3Y9rP7K6lwPdGGmG0klULojUDi38aR1g5 tyIJxMZkDfG/Vv7oZz4Gk+HCAbU7Fh9rVvj3PESbCi3Av8hnTbhATJRNgyM2XWQ= X-Gm-Gg: ASbGncvG8DnyZgt9njw9wN7od+D1zyS+DFDlBPzpSw+TPswBzWu81p8sFQ7YPvybjb3 vGmIrqfr3IQCovzsCiQnEgzJIAPz9ZYQuhVKcjruZOQXIbdG5Ra8MzshdgFu6FAZhDBYiBqzgkd c5xdP/g/VikMMpM/Pt9lPjjZIBARXrEbDf2RFjnxuXp2LgGmHzVe/jgunSgNAIil0TehiD7adrf vdVWtiQJPCN/GXvXMAYEbzoqwpUNswq8c4rbYInVTUNRUmNfAp+ASXnqFe9rBxB X-Google-Smtp-Source: AGHT+IH5Icut19CrQRKgtDSzCRG8qNy2m4CTSKGxVWKKTUEhiYw6FKBa1WmLIGAIiUsb9ae8mcxHFQ== X-Received: by 2002:a05:6512:1055:b0:53e:39e6:a1c1 with SMTP id 2adb3069b0e04-54229560360mr232733e87.43.1734658129064; Thu, 19 Dec 2024 17:28:49 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54227a89c2csm170540e87.71.2024.12.19.17.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 17:28:47 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 20 Dec 2024 03:28:36 +0200 Subject: [PATCH v2 8/8] drm/msm/dpu: link DSPP_2/_3 blocks on X1E80100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241220-dpu-fix-catalog-v2-8-38fa961ea992@linaro.org> References: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> In-Reply-To: <20241220-dpu-fix-catalog-v2-0-38fa961ea992@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Robert Foss , Neil Armstrong , Abel Vesa , Richard Acayan Cc: Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Johan Hovold X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1307; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=5058CHEvuHi6y1shjj/7LSsaLqFOGpH0zSafsGTeHak=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnZMg/RB+Fi7NOIgUKpxxiaLrBsE7s80wm6VMMl UTR4BMn15uJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ2TIPwAKCRCLPIo+Aiko 1QbaB/9MRXkpbzcxPF0Rcp5LR396dEkAkPli7KvHNg1toaDhWPRd5C5qR8G8fog0tXC0vQP8SLm zqaHgaRd+nheWQRf69qtmv5FXJoNt0oiyjgtNcxeokyocr3GYy07Y3hR592MYN5EJwu6aE9X+5+ HCHKAZDNf2apKR+GPHPXPoZZ1UVJLScMigOzkAX72Sq5+kUzu2XB3OvlVhrXMQPBb0BTbvEtPCp rkHncfnva1A2cFkxmw5imydwNGwSq4yiGLKiiaW+cOf/jdDMnCs9KdR7a/28KDRO1a4ZxiD+oEp pAcUn1XMmvDK83Iy5U4XmQGl8eaE4EtvxRff50IJWybEfSH3 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Link DSPP_2 to the LM_2 and DSPP_3 to the LM_3 mixer blocks. This allows using colour transformation matrix (aka night mode) with more outputs at the same time. Fixes: e3b1f369db5a ("drm/msm/dpu: Add X1E80100 support") Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h index d61895bb396fb4287e9b41807a3bb0cdb25d4e25..4f110be6b750d30e158d517aaa507c7b4eda0af4 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h @@ -159,6 +159,7 @@ static const struct dpu_lm_cfg x1e80100_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_3, .pingpong = PINGPONG_2, + .dspp = DSPP_2, }, { .name = "lm_3", .id = LM_3, .base = 0x47000, .len = 0x320, @@ -166,6 +167,7 @@ static const struct dpu_lm_cfg x1e80100_lm[] = { .sblk = &sdm845_lm_sblk, .lm_pair = LM_2, .pingpong = PINGPONG_3, + .dspp = DSPP_3, }, { .name = "lm_4", .id = LM_4, .base = 0x48000, .len = 0x320,