Received: by 10.213.65.68 with SMTP id h4csp2118445imn; Sun, 8 Apr 2018 20:09:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx48I3ua5hXzq160q9jmDu6ogshTeQR6bRwPSRIVh3gMkMVX08yhivyr1VMQjadoyhGwa+QIc X-Received: by 2002:a17:902:684d:: with SMTP id f13-v6mr36113713pln.230.1523243386475; Sun, 08 Apr 2018 20:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243386; cv=none; d=google.com; s=arc-20160816; b=GqmIxP66G46AGNlHYomvlwhy1RLC3GjABChhBqiS+y+ypdM1SwAtEQHVSo2qlF4x9T 0eBtvID8ZNmrP/y8EybNZX0W7d47zcnKKdhP9WurbWBD4+wy+GRMVleAVZL6HPxC/KJE MVQVuwkFzrbnG+iSgrYlVKbT7IZ3lTmJzmdrRczv398yD5vm8XQx3Hsj17iwkfzmxKBi RbAIr9NtJw4V/grUPNBMLkE/liMJIecSL2htxNSQ7/ysLouuozKQ0JvP4WYaeBlOne9w dsYcVZ0LVPVmH6H1lBOrveq70wtEklxk9L47riNqWiUDS0jqW2/2Inse18zDdgQDFzuS 24nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=UmW30/ZGXIYGJ1s5blcJf0EuWFE1nyhSuZgOO+qCxzQ=; b=cSCu2aoMsW+r/W6VWrJ40HPW/i2Ssx5vxmym7gQvV4qnTg5LE08HbMUl2nsNGHPGIm GNdWkpooKMHre9Lgf6vfjYkfnQuLo3gdBDd/IK+Uxd3uyriBbggb4eAXM049LvuXNTNo 3Sp9KVQpwDonDPNtPzum6v/Q3epP91fvtkqZCePJvt1bJel2eUA0WQA+uONEILvtPtIv 3HFaiwfIFZAHoHIDmtAA/P0hxmDL58k5g1yYEevk5uTh7RkQwP/8u+tWKWNL40/qYfNF z1VGCYGZM541Ihk7MaUI82H+MRdQ4nIKA12GOOflcaoWIbXkgUwLAMemmT37cBbWrpd6 3hyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=i+rHOOyw; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a32-v6si13528353pla.313.2018.04.08.20.09.10; Sun, 08 Apr 2018 20:09:46 -0700 (PDT) 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=@microsoft.com header.s=selector1 header.b=i+rHOOyw; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757986AbeDICnm (ORCPT + 99 others); Sun, 8 Apr 2018 22:43:42 -0400 Received: from mail-by2nam03on0126.outbound.protection.outlook.com ([104.47.42.126]:2432 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755451AbeDIA0t (ORCPT ); Sun, 8 Apr 2018 20:26:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UmW30/ZGXIYGJ1s5blcJf0EuWFE1nyhSuZgOO+qCxzQ=; b=i+rHOOywbr+OlO4bEtCxN+I68agFh10LNhAkIvwgXMCM81mZden76T2FoGyk++CftecOdZBGdWKtx2blPfjSPQ71WAi01zMNrB1ja/gl7KUQmqQiCFudzeGDGusejxBfNeizod6iMJcWu5U1eB7oRnPnF7scms7DIp3hI7kCTQA= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0885.namprd21.prod.outlook.com (52.132.132.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:26:42 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:26:42 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Robin Murphy , Mathieu Poirier , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 022/293] coresight: tmc: Configure DMA mask appropriately Thread-Topic: [PATCH AUTOSEL for 4.9 022/293] coresight: tmc: Configure DMA mask appropriately Thread-Index: AQHTz5jufdwICRLG7UGk4r2MzNFWFA== Date: Mon, 9 Apr 2018 00:23:07 +0000 Message-ID: <20180409002239.163177-22-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0885;7:RSm6haq0zVm3UMtD85ErJZv7nxsa1zGcniBjk+xkKtOsjgy1lVwX9b/1hDvCiQjCjl0FUZqxm6V9FkFbjmjNjFI+A2wRQt4OfYOeYBzkmm+Si0PfprSKxZK6jHoMFU73CDKn076/bQbbWjLmCtMIY/paOYtdaxbuuS821wx5G3o3/PICeE7BLfHop5BzOxmCXmzdIol6MDKbk+0jIoXFlTkjR5jLikeeSh2mp60deoiOauz2/2D/vZjKElD8MU6v;20:ytsYtLU4MazO2E0Z3LdKMa1In9bK7fNpc/YhUcSMKSbquKhysORaekBFioMFkxnbXsYKBAHQpVigI1W0E7Iiqo1f9Uljgr1KOd8lh8cy8+y0hJl43WmiKYfkHDFx0HuEnum9HyMoYAWiexoD9tQdEgNWsK7JkEt0o6tqfvxHUP8= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: a99cf975-2e55-41fc-52d1-08d59db091d0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0885; x-ms-traffictypediagnostic: DM5PR2101MB0885: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(180628864354917)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0885;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0885; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(366004)(346002)(376002)(396003)(39380400002)(189003)(199004)(2906002)(68736007)(22452003)(316002)(6512007)(5660300001)(6666003)(54906003)(110136005)(486006)(6486002)(102836004)(36756003)(14454004)(99286004)(86612001)(105586002)(72206003)(106356001)(2900100001)(1076002)(97736004)(10090500001)(3280700002)(5250100002)(6436002)(3660700001)(6116002)(575784001)(3846002)(305945005)(86362001)(66066001)(10290500003)(186003)(81166006)(8936002)(478600001)(476003)(25786009)(81156014)(8676002)(4326008)(7736002)(2501003)(107886003)(6506007)(2616005)(26005)(76176011)(446003)(53936002)(11346002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0885;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: P9gLEnoxzEe//eH/LGWkcrK0nQIQUuQOhF6NiBYpfk5i4mrjdOvNxswgbOQQscuOqLrew6/M5wDyQ9seVr7bRM4HjNsy6tBNa2Vf1xxiSwNB1MdF6V9zzgzq9M43ND0DLrF4eqtAD4+BkGO3CHrr67BefAeD06EOW3yYzmfIQUZy+ZZRLhFV/AT2ZfAyCa0mjCrwojL543BqL6kO0ytUXOSIyYKtYpZq/M+u2wpvPxo65JTWerAYwmoJUYjEhRKGNPVbv2G+4meQzBlqr6cZOQZeJ7pK1yetlQax9N1KQi8NxIfexxenzGxNUpKRRRN2Rz0iKgAmU4DewG9w0TSMaFQuh0K9Ufdce23D5qLRmO/RrBwvKSjN8b93JiX0bT399KqalvkVNKUPCF4S/diW5gEu7Nl/kH9nSJBEUxP+6ag= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: a99cf975-2e55-41fc-52d1-08d59db091d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:23:07.1435 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0885 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robin Murphy [ Upstream commit a3959c50b02f57df4c4e4f14f632220f1c0b1f79 ] Before making any DMA API calls, the ETR driver should really be setting its masks to ensure that DMA is possible. Especially since it can address more than the 32-bit default mask set by the AMBA bus code. Signed-off-by: Robin Murphy Tested-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/hwtracing/coresight/coresight-tmc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracin= g/coresight/coresight-tmc.c index d8517d2a968c..864488793f09 100644 --- a/drivers/hwtracing/coresight/coresight-tmc.c +++ b/drivers/hwtracing/coresight/coresight-tmc.c @@ -362,6 +362,13 @@ static int tmc_probe(struct amba_device *adev, const s= truct amba_id *id) desc.type =3D CORESIGHT_DEV_TYPE_SINK; desc.subtype.sink_subtype =3D CORESIGHT_DEV_SUBTYPE_SINK_BUFFER; desc.ops =3D &tmc_etr_cs_ops; + /* + * ETR configuration uses a 40-bit AXI master in place of + * the embedded SRAM of ETB/ETF. + */ + ret =3D dma_set_mask_and_coherent(dev, DMA_BIT_MASK(40)); + if (ret) + goto out; } else { desc.type =3D CORESIGHT_DEV_TYPE_LINKSINK; desc.subtype.link_subtype =3D CORESIGHT_DEV_SUBTYPE_LINK_FIFO; --=20 2.15.1