Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2451526rdb; Wed, 21 Feb 2024 08:04:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWpuED+GE8UrQJryApHIgdWIrHQsCo0KzJ6d9hV+xTc9qjvmH7rU4Hkv3m/oPyYYIgnNehyGVElHhid0ojx6Z/Rw5QQSmGvVQCjHXl2kw== X-Google-Smtp-Source: AGHT+IG0tCmUC6pnioI5t3YV1C7Hhe1jzX9AYplUE6b66Hfp++wt9shVcmEklvWWjY5sM4npgS0A X-Received: by 2002:a05:622a:1a23:b0:42e:4039:3154 with SMTP id f35-20020a05622a1a2300b0042e40393154mr1039242qtb.18.1708531479108; Wed, 21 Feb 2024 08:04:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708531479; cv=pass; d=google.com; s=arc-20160816; b=EcPaO/4O6npStKuBUUmz63l0Ti4a6zFjCFpuqzbTjeyYGtJ1hKBORNuUR49go0MM9x neWmJzENVNDvs1jx4eT7z26qTCxIvDfOSL8f1EgY/bV73zfBEs8fHeRA9dQqI2G4zNis 92DhasvtDY6xLpCX3EFQSfKenNP8+POTbLZyt5uOi4yUJO/56+Xb5bmdJwkqTz9fe6el tBsPOd1a4KA30AJk3wo7VxeS+ycgWgF35jIkRNGhhLkLoFobUtwbsplHyKaEfTn+VnwQ 4nGlSAvEFHdWRmb7D+P4+MxBDXRoyLeDDxcCzWR+GZ+4qrSodFmGnCQmjmm36NlhJil1 f4Wg== 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=jnqnjQDU6WxVzzZ+ac7V7PyPPfIa26jAPZrzYY3D8HM=; fh=o1V6ttP4dmOzZpVzf5QZp9RT5gtTMe5xM9nK3Olzb1k=; b=yclEltppcBrPmksHrLYn7Z/JoYSZ4IJYJQFrOxmrSd739veYusyF/oKZiqn+yn4XWj JCAh0FB+jxw9t5quPfKf5jRdSIEybGXAD+FggAiW+37kr/NkSPFKcib/FIn35TOBqjki 7eNcmztzzzyWlqVN9aqQyX1TM3j9re74AqlTfoUBfc6CjWpPFegOYJTq7ziDN6msbJ9w Gs/H+XSJhIM4kvISRiz/cIGGKmWv5+roxrHaKTYqWMMIVdGIA0OQLhZChSdUU40YG755 kGuUbqVNUec4z6cKbfGsfCd+QgQbdVMRYxboiZ3kniBHlNiud5SslcjIBsqChaCfWo/m Tmdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=cgLboe9B; 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-75068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g22-20020ac85d56000000b0042df2d53197si10831185qtx.788.2024.02.21.08.04.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:04:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=cgLboe9B; 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-75068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75068-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C3C6E1C221AD for ; Wed, 21 Feb 2024 16:04:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0038683CA4; Wed, 21 Feb 2024 16:02:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="cgLboe9B" 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 65AD582D8B for ; Wed, 21 Feb 2024 16:02:42 +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=1708531364; cv=none; b=WdFT9HzVJPTv6rzk9RLQsqH7RWVnzgGo0otimGhvE/5Ht59GTa6KU45c72fdUd8ax0tp+g4GAdvDk64QtiAZug69gdq4bokncuHCcPOa4okUbMGx/wi/kGB9r7MhV0sYSOnbGrsf2oZ/SUBXK7Q3o7q9wiiWh1ZGxrJqkYP0QDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708531364; c=relaxed/simple; bh=e7qm5eiW5ti8yJrl72MZC/g4CHZO9+imwD4cHOXfYkk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JeEQekme3twHdtvlv+a1WNxw8h5RSL2WthFOlMf/Z1qXu+UMfZpfCNLqt5FDY+ezX/o41px2msOXf4Mzpiat7eWKEMypZs/79kHWZehtxSf7wqgSkLH7dBmA/Y7z+Mo3ZFiaC//z8+So+BtcT5GX4nCB/kovO/ks9rKKPcMJd9U= 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=cgLboe9B; 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-40d62d3ae0cso3965885e9.2 for ; Wed, 21 Feb 2024 08:02:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708531361; x=1709136161; 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=jnqnjQDU6WxVzzZ+ac7V7PyPPfIa26jAPZrzYY3D8HM=; b=cgLboe9BX/f5X5344EogEbINt5fc+NHzcXiiFTuYRq/U46Ulu0ljPZnOGpRmq7VseC LBTOq0XQF3c2ics9lNjOhtJJ7YrsAGBay9SHnIjldbQL7xhA0yO15TfEoxISkOZKLU3k 1Bi8RyAs9EQAROmZEBN996+bumWE8Ggp8W9Dav0QmCaS4kaCZZTzqnOuoKorc8ymYLbN p4OZc0jv7YLxN/DDwXF5J+yxJYyb9vFJeK/l+/S6fiLk8RswFZDhUx+Et2Y8r9yeAN2J vJTtXsNZskjt8PfENXnO4xiEabMqrkm1NFxn604H/Q3HGvTCC+5A9tcfxwA2Ndf+SQ5r sXJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708531361; x=1709136161; 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=jnqnjQDU6WxVzzZ+ac7V7PyPPfIa26jAPZrzYY3D8HM=; b=kOHBuSNiSfoG0EhXxmYAMagvqvE/+9QMiszlBsxkHZsPQxwPkR4PRKIaNoUqYjlA3w 34JejE9vEmcLVDz5Ib9lFU1WaPSBj332AXQjzvmZ1qNGJDC3RYWKC8yoGllL2JTXlxsv zuo2VLcxN5J0mWcLXRD+Xyl/BlLeguvIXaFzvV3Phd+MWVVktMXIjXhw17VomkFbE71Z /fHiiTcfBIxMKIVK6E1ey9JzhP0XGbFP1CnuYNnBYhkmUeVO78m5prg3a2leqJI+AhGp bdNhTeJOzNZJYXfKat+uq6IWPh+f7FL2oq6sBfk3LpY1jMvpIrRAPDTvp/wr1rpdISlA FYvw== X-Forwarded-Encrypted: i=1; AJvYcCU3v2ILehLD2CwBS4E46u/zuy3sU4yI4qt3ZkF2KGQ+PFRh4R4nLAjIMxesC8SY22KMUk/bPiXPMECPIJ5Yn+KQL8rwI6yjoxtgxA4W X-Gm-Message-State: AOJu0Yxc5ZaSn6enika7hLqX68qSUFiOMbi4SJEVUPrBtiFiHW6iK7oN uYq14Y9RdLjhu2VhPGgpR/MN38BUmPoSTJb7QXhVicAIItIf69t8cNxg0mu3MmqfQrjjpWqy5in VuStsk/44zQ== X-Received: from szatan.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:2d83]) (user=panikiel job=sendgmr) by 2002:a05:600c:a399:b0:411:efec:cf6d with SMTP id hn25-20020a05600ca39900b00411efeccf6dmr101907wmb.3.1708531360602; Wed, 21 Feb 2024 08:02:40 -0800 (PST) Date: Wed, 21 Feb 2024 16:02:11 +0000 In-Reply-To: <20240221160215.484151-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: <20240221160215.484151-1-panikiel@google.com> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Message-ID: <20240221160215.484151-6-panikiel@google.com> Subject: [PATCH v2 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.44.0.rc0.258.g7320e95886-goog