From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 305C8C31E5B for ; Wed, 19 Jun 2019 18:28:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 09BB8214AF for ; Wed, 19 Jun 2019 18:28:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qfwX+IDg"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="1+2CDxiP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 09BB8214AF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=paTxmhKRoccUdXxk+v+L2br/CkL53Mv5FGXVrNNb/6w=; b=qfwX+IDg+VG6Uz +pQqHol4pGR1Ur7tPExhWPbDUC+c8WEy2hXAkUytWZDC6R9/LXz9fxOq0sqEWmGuAdXt92f3OHigi JYizfA/hvpmVGZLf302/eAnaAnFUgbNoEak2iGLHijQ3aKp6mrJ06JhACOWnSyvOU+jOV+xeQMLfl k94kUEZW7yq2c8HVyBUlW3OAUh1ynM3y5Va4gNozROzIW1YGyk1qLCayiuwLdDT7gV0q97aXJdWo8 0oWIiuKf5zz+MuM6dZVjI0nANW7Lt1ehWm6qoG+0RMlchK8caH87xAwIv9+vmGv6x5SNb2DuMqurh THQX8Jflq86cAMrPUHvw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hdfJX-0002Yk-G0; Wed, 19 Jun 2019 18:28:07 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hdfJU-0002YK-1A for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2019 18:28:05 +0000 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 20C25214AF; Wed, 19 Jun 2019 18:28:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560968883; bh=/wNSfQX+r+Mdb+QviSo4bqAAG6leBKa5hm2EX2QSK1s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1+2CDxiPq70B6Htl+9JImYWJVjtBI4H8KkHTE14ZAtYWcpQ1hmV2J+pIjrNC6HGUV KQMceQcoEevsDncJTM5lO1TRn0Y3D49EeTAlHgvZ1K4mY3HJxiDdM3hgiy/neDnOC8 vtYVSzKL8hWQ7yGBnI1//nvA79WuSsLYrJKhkBOI= Date: Wed, 19 Jun 2019 20:28:01 +0200 From: Greg KH To: Mathieu Poirier Subject: Re: [PATCH 01/45] coresight: etb10: Properly set AUX buffer head in snapshot mode Message-ID: <20190619182801.GB18202@kroah.com> References: <20190619172949.4522-1-mathieu.poirier@linaro.org> <20190619172949.4522-2-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190619172949.4522-2-mathieu.poirier@linaro.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190619_112804_143398_5CC77036 X-CRM114-Status: GOOD ( 14.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jun 19, 2019 at 11:29:05AM -0600, Mathieu Poirier wrote: > Unify amongst sink drivers how the AUX ring buffer head is communicated > to user space. That way the same algorithm in user space can be used to > determine where the latest data is and how much of it to access. > > Signed-off-by: Mathieu Poirier > Reviewed-by: Suzuki K Poulose > Tested-by: Leo Yan > --- > drivers/hwtracing/coresight/coresight-etb10.c | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c > index 4ee4c80a4354..60e753b1768d 100644 > --- a/drivers/hwtracing/coresight/coresight-etb10.c > +++ b/drivers/hwtracing/coresight/coresight-etb10.c > @@ -548,13 +548,14 @@ static unsigned long etb_update_buffer(struct coresight_device *csdev, > writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); > > /* > - * In snapshot mode we have to update the handle->head to point > - * to the new location. > + * In snapshot mode we simply increment the head by the number of byte > + * that were written. User space function cs_etm_find_snapshot() will ^^ two spaces? :) happens everywhere you cut/pasted this comment. Not a big deal... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel