Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2454629rdb; Mon, 12 Feb 2024 05:40:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFt0N+q4KusJRB384if5nDI1ZJaNrgI0GmGhW3IwlxXBCe0vF0ieU3mtt96xQ+GyQ4td1Mh X-Received: by 2002:a05:6a21:9186:b0:19b:56f0:c880 with SMTP id tp6-20020a056a21918600b0019b56f0c880mr4978983pzb.39.1707745202950; Mon, 12 Feb 2024 05:40:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707745202; cv=pass; d=google.com; s=arc-20160816; b=PXGL9LQyWCwQHdKEL0WrDDND+Mo3UOhC+poOHo2kXnZ86DHXlZADFa5zecu2tovy+N ezWrJfQC4tK97CoEsTUI/BRs732Onqqxj8QvfH+lGjtu5+GBz6jT+eMQ5LG2s0ZhIDmm A/mWH0x8uh7STR0RtBKX4ONLRMei5VrfKY5MpC8G6B7tljZAg2PIt6XrYjK+5qvK6TaM ABLsPn8rtQVS1mVCojLaUc9CObyiBf2GXiEm6ADfVYsiBMnSRsb0wJgUnWBnTdrbiwkl cYBtySYgVAYV3xzOhCizKcnTwCWvoNyIFGn6FM8KHCoZHm1yVVnuAn6Ah7rXjSOktLpz 56kw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:date:dkim-signature; bh=RCSDKBlfQwozprcRZ3oUdFL3KROvOog8qplv+oCSSMA=; fh=GNIlI2tCh8B0Nqe36PEBGNaOmaiwW1bguru0q7ATa0U=; b=hPXwSpsaMGFvJIYAkHg496zyiPLw1cYwDAuACdaMZQ/inhvxq20AODAPB2XG0heFg1 p9uCKW81cpFEO0SUTHJr8Qg6dbDQ7HuUim2mX83X8uRqa+Rsdd1idpDul4UR1EwyCGcR hHxpep+cv29wQzM9R5L0eQh1aRLMIH8u9FvxmHOLxBInnn+g6+e6hb63j2eL4fpkQ9A5 p4tzM1NU6qUQ4akfLbZD8QirpkA5oQ5XBL0n+872tuRVBBUkk0NcVXGemQNU98NsWKQ5 cPgOvyJXOF1O9AH7O5eis1tBgdOOEAivVSg8KvFMIyToQYzC65u0iUClDkjKA1/qDoQB YGKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="YVfhB7/a"; arc=pass (i=1 spf=pass spfdomain=flex--panikiel.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-61642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCXnpoe2gjtVD4P1zQWXsm6Qh8JosxkJcMCT5rzV8oRBZh4Aaqm8oPHnR7Z02KYvCM2VW32kqe7h3c+J5IqoJPX9B6prEHNBKMF9g5Z6Vw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u71-20020a63854a000000b005d79b83e587si254854pgd.2.2024.02.12.05.40.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:40:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61642-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=@google.com header.s=20230601 header.b="YVfhB7/a"; arc=pass (i=1 spf=pass spfdomain=flex--panikiel.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-61642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 CE34BB21D58 for ; Mon, 12 Feb 2024 13:22:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 686F0482E9; Mon, 12 Feb 2024 13:14:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="YVfhB7/a" Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 7C9DC4655F for ; Mon, 12 Feb 2024 13:14:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743672; cv=none; b=emF/raWR4i0PCk0kWM/kXTenhF7FZoOr91frJr2N71ZhQ8qBwz0oDHwz5V64t/JHQc486GSt+q8iBHeb+BsE8zrXfElMPE9tvg33dhqi5t3uJzP1TS/DHap1ED3pkism5CDYkgsmVVPY9HseWn6+1zHL+ZcBwW5yWR6szlR+XKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743672; c=relaxed/simple; bh=NdMiTtGUPnnvJjmNHvIliTvDWwAYmwJMytgJIs+agUg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Pgxroxd4swnXc/K8f8CigsvgDx9z1U6koXgWoqtGTEpjfZtljIfPJ/fCSO5CcUDZnaD/aM27KhAbnAtRwTDHHQvn+4NCsfmq8hgevQbyhSEihwnr3mwGtuUUrNvMObBEWmuvGF6BIr5DTDxPD08z78Mykr05uwew9HwRVgSUrfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--panikiel.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=YVfhB7/a; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--panikiel.bounces.google.com Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-410c65efe5bso6197395e9.1 for ; Mon, 12 Feb 2024 05:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707743669; x=1708348469; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=RCSDKBlfQwozprcRZ3oUdFL3KROvOog8qplv+oCSSMA=; b=YVfhB7/aqosYLzDMv7XIyEgioXA9DQeUzuQVwqlulfIBIJu17jMIearJxsFlTLsVpn cKEjvwF79MIvGnisoOYb4cF54JU6MK3jf6nyjlS5Gi1NGNvuxk5+GFQ9pJAR+GEJ/s9q 4w9dk71h7gBCEDPAkmRwZxkgA06aQ0YLQEUgAnzwUKqKF/R08p+pPbxU9ph4XoI1K/HK F0HZP81F5FykYjGmvj7A7hxB8hk/fcJHpvFIKKicXzE/HIAFk65oXCyIeHH8HZP/f1if qUjVknv5+Rk0nDmKPIb0rThCsKtfahci4z3sHMz0ZN86j0VvZ+JWV//E7e9wns0m04Pi ZigA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707743669; x=1708348469; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=RCSDKBlfQwozprcRZ3oUdFL3KROvOog8qplv+oCSSMA=; b=dAHrLdwUHIrmQ5UU+Lu+m9jxpI8j2pBh5UB0lI6UyaCGbawq572hUYiFJkqDtNm3Vj 6maYQDW3ILYVpo4zTnfWz8b3nbF/zpxNmhK0UBnOqKOT9+qUVKO8o9vqXmQ1i594Z+TD sBw/7vNJaEb/HzjDiCiLy+EK0h7Dh3MzSLu0xzgUdYafixkL8IAMNEp2GP8v7aTVZr/p 5v3l8u0uPV0SVutjPkgmAetvAez85cbBTRPyx3eXcNdcQGznu4ObuOHcvk9Y9WGbXl+E 0q1xul7ctfyy70niafwxc2+hktFKT5LVL91U0Kpd/AEqCdj2wEg9qt00Y2BfxGhpYnIo EQLQ== X-Gm-Message-State: AOJu0YybfgCM/Jhad81edR4AaZVc8i9rTS/a7jrzSxGw5pyLmMBEAhQi U90E2D9VZqQKbXMFScluGWSBsgz/wCSKy+Gds9AfxMSF1QMSI1I8UvXxAvsPm61+eKwSCWzI7cp L17YCbOn6cw== X-Received: from szatan.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:2d83]) (user=panikiel job=sendgmr) by 2002:a05:600c:6002:b0:410:e190:b1b3 with SMTP id az2-20020a05600c600200b00410e190b1b3mr5577wmb.4.1707743668739; Mon, 12 Feb 2024 05:14:28 -0800 (PST) Date: Mon, 12 Feb 2024 13:13:19 +0000 In-Reply-To: <20240212131323.2162161-1-panikiel@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240212131323.2162161-1-panikiel@google.com> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog Message-ID: <20240212131323.2162161-6-panikiel@google.com> Subject: [PATCH 5/9] drm/display: Add mask definitions for DP_PAYLOAD_ALLOCATE_* registers From: "=?UTF-8?q?Pawe=C5=82=20Anikiel?=" To: airlied@gmail.com, akpm@linux-foundation.org, conor+dt@kernel.org, daniel@ffwll.ch, dinguyen@kernel.org, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, maarten.lankhorst@linux.intel.com, mchehab@kernel.org, mripard@kernel.org, robh+dt@kernel.org, tzimmermann@suse.de Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, chromeos-krk-upstreaming@google.com, ribalda@chromium.org, "=?UTF-8?q?Pawe=C5=82=20Anikiel?=" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Each of these registers contains a single value, but not the entire 8 bits: DP_PAYLOAD_ALLOCATE_SET - Bit 7 Reserved DP_PAYLOAD_ALLOCATE_START_TIME_SLOT - Bits 7:6 Reserved DP_PAYLOAD_ALLOCATE_TIME_SLOT_COUNT - Bits 7:6 Reserved Add definitions to properly mask off values read from these registers. Signed-off-by: Pawe=C5=82 Anikiel --- include/drm/display/drm_dp.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/drm/display/drm_dp.h b/include/drm/display/drm_dp.h index 3731828825bd..9dee30190f14 100644 --- a/include/drm/display/drm_dp.h +++ b/include/drm/display/drm_dp.h @@ -733,8 +733,13 @@ # define DP_PANEL_REPLAY_SU_ENABLE (1 << 6) =20 #define DP_PAYLOAD_ALLOCATE_SET 0x1c0 -#define DP_PAYLOAD_ALLOCATE_START_TIME_SLOT 0x1c1 -#define DP_PAYLOAD_ALLOCATE_TIME_SLOT_COUNT 0x1c2 +# define DP_PAYLOAD_ALLOCATE_SET_MASK 0x7f + +#define DP_PAYLOAD_ALLOCATE_START_TIME_SLOT 0x1c1 +# define DP_PAYLOAD_ALLOCATE_START_TIME_SLOT_MASK 0x3f + +#define DP_PAYLOAD_ALLOCATE_TIME_SLOT_COUNT 0x1c2 +# define DP_PAYLOAD_ALLOCATE_TIME_SLOT_COUNT_MASK 0x3f =20 /* Link/Sink Device Status */ #define DP_SINK_COUNT 0x200 --=20 2.43.0.687.g38aa6559b0-goog