Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp312587ybl; Thu, 30 Jan 2020 22:54:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxDN9OhCzHcugh2U8X19yQH/NWAlcoLsg13tF5VJVdKY1HWfMW6vVDUdGCnXOgievggXLdU X-Received: by 2002:a9d:7ccc:: with SMTP id r12mr6870002otn.22.1580453677251; Thu, 30 Jan 2020 22:54:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580453677; cv=pass; d=google.com; s=arc-20160816; b=XYlzOruhMHM50bNQGCdxGbBJ51vRT5b7AG9HRVY3rgl+fXeyqcC6uIp8AKFT6lfYIx 2tDssrapUUikZA/TyKZjgvRkFv9SQgFgZc/aDVH5YzwOVCxid0h5IRFzWbb7R54KHAt1 S5XcFdTEO/9aSvpSPuyCp5mGFUGB684Zx2TRe6qM+yL9s6nJ6es9tMLZqQO/rDRA6d3X q2Z2VLQ+5fkfvXFDxQPBltbrbdyo9L2LyKvrZnwWB/omHUXQeaYqr5CkbB+YdS5OZZ+F e+yQQk/Riqfztz2dXbA7lXP02SVM3++BzeKvLntETfCIcgBLTTlo4tUourExvCO5jd12 iBCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_contentbits :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_actionid :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_siteid :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_name :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_method :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_setdate :msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_enabled:msip_labels :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=YKGmfEFVVTA4GppOpbRRAvFXjZBdQ/99pPP4amGciKU=; b=fTPPSiBSlTMjcpIaX4Rn69qGeZby6PdHH0BavM277mKYIiTHO1/rp9zhQ1jNgqerH5 TbAr6dPFlfD1nN5dg/gUei6P+uulrsDmZFuxWreTjbXHOMZdmmOIN5tVLGJIu/h+Ia+z AvTW5EDuLpgeZbmxUef9z5aOupUjf7TchphVpPR2E7oo5ZfdunR/JQFRAzU2R0svYc8J gyFjMyA5O29tU9QS9wfZGQIcsxYbbus6JVRf5PTUXGdEsQ3AzYBuIihIvO9bcWGWLg09 HFw68TcAYESGf5IwUt+VQgQZFz6ZZDPscr/e2h9FWZtm+mSIRAsIsh+C7rcXXgM5g4K9 qN6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=m9enIdGG; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z206si2997978oia.142.2020.01.30.22.54.22; Thu, 30 Jan 2020 22:54:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=m9enIdGG; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728027AbgAaGxO (ORCPT + 99 others); Fri, 31 Jan 2020 01:53:14 -0500 Received: from mail-eopbgr770089.outbound.protection.outlook.com ([40.107.77.89]:55105 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726127AbgAaGxN (ORCPT ); Fri, 31 Jan 2020 01:53:13 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XEcpRTzqAu4EzZpmTTNuBD8J/AE2oNRqyHCjvzcYa+iS/gvhjwbIUZ36QQs2AwsrDVCohQIvhT787JNDxO3oIQ0Du6sH9J8cUixECkZzc9jHMosVYO6GPD4xc7HP820ZkVuD4bp0dgVf5vkKsADOmVI8xOfNxsU8+RxeZXI97/ajMonPi4CGblCuvwFsMbjmm8rw6OpnQ2ULRi2VVtFzLagKQB1MGExCIKB9mTh/fzfoXIiWy3ucXOJz5WNRp/uMcaxmg1ZN2HWEd+NqIQdW7wSLNHL+SJ2OXxf5lJFPLTAzJ20wJs7S9xw0UX7WQmoSqsqN5AEgk2BZzjC0WauRRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YKGmfEFVVTA4GppOpbRRAvFXjZBdQ/99pPP4amGciKU=; b=AzoOjUtflFltJaQmKgRrKSojuoAl/FlP6A5YROO+XXlEwavSjlgUCk4z3vvYOE/BHFZukGlLMDv0iImgApr5R1CRGTH5XH4cDRSesP1MOofc8h5AMKgrN0/2VRLbAYLARyWLEtpDnTeeToVBe8FpXFzoTZ3wSlbM/G26NFMwHqMb2ovfo3W2bcCHiWeliSdjYh8Z+RDQM3+GQlaqwZJ90DyBciS1EhD6vPRGlgJgYm16f1uOerPszPuwgfyZvpw3Pkwz9TPgalkARdV+FEKAm9TgZZwyJc6s8Trn0gV7wRiOESQcRFTDew8CszAdspWKU7h39Q6JCELfMpxBBD3VMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YKGmfEFVVTA4GppOpbRRAvFXjZBdQ/99pPP4amGciKU=; b=m9enIdGG8KM618wB+LWMWuM7xIUvjMFKTx15V9Y6dwHcLJ3/z2+anRkv1UZyp8HN1mCMS7A55SoUTL10YYHCzDsbA7ZVi09sq8GpQkhMMlXjBh2dwhEAsdu1dXRBUeriBFI+4BwSmtrRA9WQyksrGzP4Ha8NYMHJMgZzFhDeirA= Received: from DM6PR12MB4137.namprd12.prod.outlook.com (10.141.186.21) by DM6PR12MB3388.namprd12.prod.outlook.com (20.178.30.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.22; Fri, 31 Jan 2020 06:52:32 +0000 Received: from DM6PR12MB4137.namprd12.prod.outlook.com ([fe80::cd1d:def3:d2df:3882]) by DM6PR12MB4137.namprd12.prod.outlook.com ([fe80::cd1d:def3:d2df:3882%7]) with mapi id 15.20.2686.028; Fri, 31 Jan 2020 06:52:32 +0000 From: "Lin, Wayne" To: Lyude Paul , "dri-devel@lists.freedesktop.org" CC: Maarten Lankhorst , Maxime Ripard , David Airlie , Daniel Vetter , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] drm/dp_mst: Convert drm_dp_mst_topology_mgr.is_waiting_for_dwn_reply to bitfield Thread-Topic: [PATCH] drm/dp_mst: Convert drm_dp_mst_topology_mgr.is_waiting_for_dwn_reply to bitfield Thread-Index: AQHV0Vz/lTSU5ZZbzkearP0fAkbEEagEYIwg Date: Fri, 31 Jan 2020 06:52:31 +0000 Message-ID: References: <20200122194846.16025-1-lyude@redhat.com> In-Reply-To: <20200122194846.16025-1-lyude@redhat.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_Enabled=true; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_SetDate=2020-01-31T06:42:47Z; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_Method=Privileged; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_Name=Public_0; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_ActionId=b6468822-e034-49ef-ba8b-00006071610b; MSIP_Label_0d814d60-469d-470c-8cb0-58434e2bf457_ContentBits=1 msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_enabled: true msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_setdate: 2020-01-31T06:52:28Z msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_method: Privileged msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_name: Public_0 msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_siteid: 3dd8961f-e488-4e60-8e11-a82d994e183d msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_actionid: d74e6f03-1f34-4652-92a9-0000ba605691 msip_label_0d814d60-469d-470c-8cb0-58434e2bf457_contentbits: 0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wayne.Lin@amd.com; x-originating-ip: [165.204.134.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 84a657bd-5bf1-4bcb-84d3-08d7a61a253f x-ms-traffictypediagnostic: DM6PR12MB3388: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 029976C540 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(396003)(366004)(39860400002)(346002)(136003)(199004)(189003)(186003)(52536014)(2906002)(26005)(86362001)(5660300002)(66476007)(76116006)(33656002)(66446008)(53546011)(4326008)(81156014)(54906003)(478600001)(6506007)(110136005)(55016002)(66946007)(316002)(9686003)(81166006)(7696005)(71200400001)(8936002)(66556008)(8676002)(64756008);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3388;H:DM6PR12MB4137.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 76x8vwH50yqxce1APBlzgH2esPdUhHslQ9m1idFDInhxd6GnJ/DPKiqRf9v3GcwbdLi2aetukwL0Spgg4ulomGuHbuq8LyyFzJ6hqeQlevYvyVq7uoCw+fJGoRedlm3YaDoRaUZOTb8d26pG0jdnBtMm54FChgLDGi78nJ2XXFFDIusl8DnjjA6er/r11yGjYKwUcRyl1QcuXGtT2TAzqSB2XMZjDW0fVJxfM1YrJG3mwPSw8Oln0S9WOZ5QCq5BdCKzyaIbu7wWwD7lMD+jq+zl0+3Eu/LBOF0JA78uVFeVkLip27muyRw9lPBp9OVL7SwLxmz6/mtMybp7RSmQSSPfxI+uloedn91Be+ODAI1thQGyPa39wJ+ndvXmKIT5+1LP6iNI1d0jMqPTDl2oAPNVk94tzZHNiMMpHuz1h2htA8jM0kkHQU7ccvptJoKi x-ms-exchange-antispam-messagedata: mAQzgwbDwDnwNB3YRSOPCjc3UX5llFu9fY7VJbj0i+K1zlpJBRW9YChMshj+B2jdSWCEYtorbqLd1oExllOF3raXpRjpUMka25xTlyqcJitMkD8GmeZ4VPO5lTRvfeNzuNNOt7voCywB2QLBFrsZ5Q== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84a657bd-5bf1-4bcb-84d3-08d7a61a253f X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2020 06:52:31.7199 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wRygC6qtkLTIFemjFolQqu+TLKV4zm6oRN9Xe1TMq4smDj4Ten2Al53ThxXHP1rWHiDZUavyYu8YsEKEUqNJow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3388 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [AMD Public Use] Reviewed-by: Wayne Lin Thanks! > -----Original Message----- > From: Lyude Paul > Sent: Thursday, January 23, 2020 3:49 AM > To: dri-devel@lists.freedesktop.org > Cc: Lin, Wayne ; Maarten Lankhorst > ; Maxime Ripard ; > David Airlie ; Daniel Vetter ; > linux-kernel@vger.kernel.org > Subject: [PATCH] drm/dp_mst: Convert > drm_dp_mst_topology_mgr.is_waiting_for_dwn_reply to bitfield >=20 > Small nitpick that I noticed a second ago - we can save some space in the > struct by making this a bitfield and sticking it with the rest of the bit= fields. Also, > some small cleanup to the kdocs for this member. >=20 > There should be no functional changes in this patch. >=20 > Signed-off-by: Lyude Paul > Cc: Wayne Lin > --- > include/drm/drm_dp_mst_helper.h | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/include/drm/drm_dp_mst_helper.h > b/include/drm/drm_dp_mst_helper.h index bcb39da9adb4..58bbab3684b5 > 100644 > --- a/include/drm/drm_dp_mst_helper.h > +++ b/include/drm/drm_dp_mst_helper.h > @@ -590,6 +590,11 @@ struct drm_dp_mst_topology_mgr { > */ > bool payload_id_table_cleared : 1; >=20 > + /** > + * @is_waiting_for_dwn_reply: whether we're waiting for a down reply. > + */ > + bool is_waiting_for_dwn_reply : 1; > + > /** > * @mst_primary: Pointer to the primary/first branch device. > */ > @@ -619,11 +624,6 @@ struct drm_dp_mst_topology_mgr { > */ > struct mutex qlock; >=20 > - /** > - * @is_waiting_for_dwn_reply: indicate whether is waiting for down > reply > - */ > - bool is_waiting_for_dwn_reply; > - > /** > * @tx_msg_downq: List of pending down replies. > */ > -- > 2.24.1