Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3384633pxu; Mon, 30 Nov 2020 01:41:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0WV0lzCZ3n/03sAw0u1/VgxvzrA+8S8QpYGl0WeeF6VMYjh4yzHvi91CBLFvYpSIolVKi X-Received: by 2002:a50:d555:: with SMTP id f21mr9196754edj.70.1606729295466; Mon, 30 Nov 2020 01:41:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606729295; cv=none; d=google.com; s=arc-20160816; b=xB6tjyIA6bShK+zl1pUw/HGsNTuRJ9y5NaBmqFu8XcieffyHEGxTZmTMWzyf3zIgqG jnNrPf+IfIY3yJVtJjPvD3JUQ0SUPYd4IVCoNRAw7Vi2XuQOD/mIUBiPq0V406T3KtGW hA95EE2PLiNTh1eq/eArnK/ownb49e8fXG9a1Fn1c9ZNPxsTEcAmDyIdYXGR3Ub8966E jDNm4YJLNYMTkiGL8wyJsrjBuyI/4CAc/2NlHCzuva2U7sf+gDg/bA8HgEd5hbv4pG8X 6WbMvlVQEGQIsqb6z9QkfqeBwhRv/u7iDnWUcw0hKD6TgjCgiq+raEe07vSIKVdqXwSs CvAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=rTmzeKjdCT0KWDMCi4ZQKSje1h0M5II1rlEZ1+gMYKc=; b=eUAVxqYk15uAyLCy6kxsU9H6Em0eIuMF0R03T1JDqZlzADT8s7ayrHddwPpneQQPzh H0j340Iu0Tx9bXn9kHqRBXqEvpXYdLUy9iA8AlYj2+x9ALOQEFNtWUcfFgR60WJFffIi uw3IGnf4fGwnCSp+UXVo2K8KMcHVOSpTiK6siYQodr2HzDnPBC20wFw/F8sA6xeysGeG 4Vcou4R3qmFcpd2bRwkOWYGjJY64u760ypuiy9Us/ZN5v3IMjPFzuICttKv0Hn1uRjYz ovqL362ml+KXEMnRRDU66656x0xzHLhYRWxnAsdrkGlonIBJB/6z8CUuyh9nr3anwirG 2BMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc18si5173865edb.76.2020.11.30.01.41.12; Mon, 30 Nov 2020 01:41:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727272AbgK3Jit (ORCPT + 99 others); Mon, 30 Nov 2020 04:38:49 -0500 Received: from foss.arm.com ([217.140.110.172]:51052 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbgK3Jit (ORCPT ); Mon, 30 Nov 2020 04:38:49 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B6898101E; Mon, 30 Nov 2020 01:38:03 -0800 (PST) Received: from [10.57.56.151] (unknown [10.57.56.151]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C83B93F23F; Mon, 30 Nov 2020 01:38:00 -0800 (PST) Subject: Re: [PATCH v4 02/25] coresight: etm4x: Skip accessing TRCPDCR in save/restore To: Mathieu Poirier Cc: linux-arm-kernel@lists.infradead.org, mike.leach@linaro.org, linux-kernel@vger.kernel.org, anshuman.khandual@arm.com, jonathan.zhouwen@huawei.com, coresight@lists.linaro.org, Sai Prakash Ranjan , Tingwei Zhang References: <20201119164547.2982871-1-suzuki.poulose@arm.com> <20201119164547.2982871-3-suzuki.poulose@arm.com> <20201127185522.GB1092947@xps15> From: Suzuki K Poulose Message-ID: <136f420d-7848-3ba3-fbb0-9f7edee1377b@arm.com> Date: Mon, 30 Nov 2020 09:37:56 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201127185522.GB1092947@xps15> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/20 6:55 PM, Mathieu Poirier wrote: > On Thu, Nov 19, 2020 at 04:45:24PM +0000, Suzuki K Poulose wrote: >> When the ETM is affected by Qualcomm errata, modifying the >> TRCPDCR could cause the system hang. Even though this is >> taken care of during enable/disable ETM, the ETM state >> save/restore could still access the TRCPDCR. Make sure >> we skip the access during the save/restore. >> >> Found by code inspection. >> >> Fixes: commit 02510a5aa78df45 ("coresight: etm4x: Add support to skip trace unit power up") > > https://elixir.bootlin.com/linux/v5.10-rc5/source/Documentation/process/submitting-patches.rst#L121 Thanks, I will remove the "commit". Suzuki