Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp578920lqp; Thu, 21 Mar 2024 09:19:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWU+vAoYTXnBd2aAyTNIEAPII6jeJN7Q/31NaagWWPLtLWdyJ4rigZ5wdkp5CvHpD4Sa10GENcyF11OGOJ2uKATCUQuFrSbHNox+hfQIw== X-Google-Smtp-Source: AGHT+IHIj7CSBvfcPokra9Ivd+7PLYfCyEuYc/R8xuezrThkDIlksj4MZGRsa8wqRlP+bdgQ42kV X-Received: by 2002:a17:902:ccce:b0:1e0:36e:2bb9 with SMTP id z14-20020a170902ccce00b001e0036e2bb9mr3003783ple.11.1711037944180; Thu, 21 Mar 2024 09:19:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711037944; cv=pass; d=google.com; s=arc-20160816; b=BqPkyPYzijdtLF8ulH+O0FDxegj4Rnn4laA4BFtyXvIDZYvB3G8qvnyWJzvlBLjqmD VA+WjNtBw+HtADogJHZIjWXeOobxWiYw7ZNUKQeOXcjmUbcuCzwSCMNtZradKQl+tvmb 8AOgQXQcVJt00BWmwo8pbDGJxyt9bntzlqvuGOG4Zhi+40Whs5vnI2Donii3aGfI11qA 1EQhvm0Pt9HAD9VBRBuRHDXdMIOgD2IATYhDxmGdjAhY+7qCKCJq1X70DmXMzbHDOgwo o1SV1B7k+P7q7D9gO5YDcJldauNNuSBlxCxq7+pQCbUYyMf7xQs2BT5HxOFk8F3OVstV Nyrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=nYGs6j1CcJBZpXqqpvnZVExRCl/iMQ6GtORK4GaVepw=; fh=Tjrdt/RtV1BbMi/RWh79PEXdRY8Dlhde1AbpWkRi2R0=; b=mrAwUETmWfPQjDYXJ8qB3KrK8cSKD2D8WnhKMdela2ApaYQH1U0GCMyXD3XZV/yp8/ V9JlmD9pD9p3XgFf0S3B3gx4x7EHlAiLdiPb59ZbChi/4LU5zl1WlpTUBa5DY9pRIW4+ ce3jiXjzQSdu6zS8yOTNulEoZThkp8zl8mFr2mCBRs92yAHjN6eTOYCIqErqpUuuJpOh Fq0SVxBC5nZGKOK+8TJGSNyVIfV8ZJ3sDDvtChSbiycMCcqsMVUkeYwN+Bnq0lYn+jKO ZzIgOQeU+lJycxhhwZ64ZcUADcEjwWTnKOoE0NQJCqEL8EQBy87itQQO6jXYbZsiUMl8 lJdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TGlqxFn8; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-110311-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n4-20020a170902d2c400b001deef2c7089si12345plc.354.2024.03.21.09.19.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 09:19:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110311-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TGlqxFn8; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-110311-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 43FBC286DFA for ; Thu, 21 Mar 2024 16:09:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 471E212BF29; Thu, 21 Mar 2024 16:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="TGlqxFn8" Received: from out-176.mta0.migadu.com (out-176.mta0.migadu.com [91.218.175.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 433748662F for ; Thu, 21 Mar 2024 16:08:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711037336; cv=none; b=EHnEHExKu7SS1Thq0gcncGDD2UL6WdP1U96logzkIgCYqeZimLc9HNy68V9DdGiScLu80OjeK+RTmP+HZqXTv3nehX/aPUrqmhM/eHbGVnVn1aYtXNN9auZmK9/hcb9xXy0dQVaoJkqIgjMRACOMqhyjAfi+rtvTObBHLVRMSf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711037336; c=relaxed/simple; bh=Q9gMT2+hbazlKA/kuIHmYSPxFl1qWt7jCrvNYESr4l0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gOxtzlJlJLXeLWFqtODFKs+nmJ/TZEm0XvrEpVQeLvH/u5IOmQVW/0Njk6uxwHSr6rozkNJarQ52VsIPYHkHl0tJ4ZbRyM/mWk0JLsU02+I70OkGvVJqsq6cMWbGTHvMkRTa0mFFgdmcnC93gR4xd3R5xOeDbyGmysZX0nycPKA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=TGlqxFn8; arc=none smtp.client-ip=91.218.175.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <76831c1e-216f-430b-bacd-2d50f352e61f@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1711037331; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nYGs6j1CcJBZpXqqpvnZVExRCl/iMQ6GtORK4GaVepw=; b=TGlqxFn8rv4WjNNL+kr5zeS2uvA9xjrL/AHHaAsiK+u4aCpDCFl/lLQwqqfKew/PAgKd6i h2BG1OVzI3HWvHRBnzpGgGbl7a2NFHZbuZDP/SUhcfBZxardWlIVB5JgFmrue+WtCjvcwm KAII2X78oz7JI4lt6vzOWy7op1WzAyU= Date: Thu, 21 Mar 2024 12:08:44 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v2 8/8] drm: zynqmp_dp: Add debugfs interface for compliance testing Content-Language: en-US To: Tomi Valkeinen Cc: Michal Simek , David Airlie , linux-kernel@vger.kernel.org, Daniel Vetter , linux-arm-kernel@lists.infradead.org, Laurent Pinchart , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org References: <20240319225122.3048400-1-sean.anderson@linux.dev> <20240319225122.3048400-9-sean.anderson@linux.dev> <7aa16340-6a87-4110-8114-c1b863b100c9@ideasonboard.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson In-Reply-To: <7aa16340-6a87-4110-8114-c1b863b100c9@ideasonboard.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 3/20/24 03:49, Tomi Valkeinen wrote: > On 20/03/2024 00:51, Sean Anderson wrote: > >> +/** >> + * enum test_pattern - Test patterns for test testing > > "for test testing"? =) > >> @@ -1655,6 +2321,9 @@ static void zynqmp_dp_hpd_irq_work_func(struct work_struct *work) >> u8 status[DP_LINK_STATUS_SIZE + 2]; >> int err; >> + if (READ_ONCE(dp->ignore_hpd)) >> + return; >> + >> mutex_lock(&dp->lock); >> err = drm_dp_dpcd_read(&dp->aux, DP_SINK_COUNT, status, >> DP_LINK_STATUS_SIZE + 2); > > Why do you need READ/WRITE_ONCE() for ignore_hpd? It's not protected by dp->lock so we don't have to take it for zynqmp_dp_hpd_work_func. Although maybe we should make a version of zynqmp_dp_bridge_detect which assumes we already hold the lock. --Sean