Message ID | 20210201181351.1475223-27-mathieu.poirier@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=ZBoG=HD=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 9D2D3C433DB for <linux-arm-kernel@archiver.kernel.org>; Mon, 1 Feb 2021 18:18:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 2B16164DE1 for <linux-arm-kernel@archiver.kernel.org>; Mon, 1 Feb 2021 18:18:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B16164DE1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6b57Y9jYBhcPdR4goUgI155JtEOIp57hBpbkvttVe/w=; b=zySZ0DU+/v1S9SkhYS1RfMpe5 ZJQjKWOGhiRPiZpcKtF3ZwCrcu88CqXRcAOYi2tr8lCuPftVtzY5isWyS1wQdj/32ZdZXQU677Qwg 5kwo3rjKKFxncAxPgLhzmXZHg1qjvY5JGMlgY297JU+mZpJ1tpxyzwGXWu+pNNWaX99RlWaRp2lJE tE/8HBpeMmJaZprnPDrAdwTIZmEDGjJINOI9P2z0V5WfCd0++m2jQvq9SLqSmLT6YG8h1WhAFE/mp IP5bwEmk/M3VA/WicROylvhGUXn6yODDCI8WhE3zcl+n5QrwtXuYL1JijHTcMNrFtATQ1U9cgS0Bb x1/uXmvoQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6dkl-0004R1-AI; Mon, 01 Feb 2021 18:16:47 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6diX-0003CU-MG for linux-arm-kernel@merlin.infradead.org; Mon, 01 Feb 2021 18:14:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=ujWQ8IDdSbwnxaXGdwQTjjikP4XSbHlkV7TpzfD9xCo=; b=oRDP1zbdHd1ZAU19txNTQIi5DI LkkAsLiqKnGpYKzhCCDBrcbTnj4Jv0R5MXeRMKykRXASZvblMRXjiDyLtZRTysQUsF1lCrYKCa4se EuAClLcP8whnSliYAxJ3tbYfMeYIroekr5/I0oXEEtTffFsZpzTt+dR/AqqcxyRNu/IoBZ+HX4YwU 7BCDBYiikBvGsx58/nL6x9dvqO0BWH2M6QjtnI4ymQz6n/alsgPXfeb1UatFiF3XAjDB1ryoVBgAj lRQQoZNwUCCQdNzxDURBq2C3A0dWPa10AXNI/W2xM1s66YsJOyxdp7PPSVDzBuVRi+s3NLdlrXObK 2rBJHRUg==; Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by casper.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1l6diU-00E8DI-KD for linux-arm-kernel@lists.infradead.org; Mon, 01 Feb 2021 18:14:27 +0000 Received: by mail-pj1-x102c.google.com with SMTP id kx7so83934pjb.2 for <linux-arm-kernel@lists.infradead.org>; Mon, 01 Feb 2021 10:14:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ujWQ8IDdSbwnxaXGdwQTjjikP4XSbHlkV7TpzfD9xCo=; b=QjzcqOoF+3AYpu6gKQF4yC3TQxBXrzL3mj0CT+BimMgQMbTp27c99IwABcp3t2sERt CatbW0kbH4brDMyfDaoidDWbeapQc8XtVxl1yCKP0dSf4OFqSmDP3oYIcxIEhh1CLoR6 mjpAncFt1MAtEDsTW26606Km/TyI1Ux8Rj6R99+VR1kH/REGOu8V7huYvyyff/njmT/V 11nkGTrXuaMGn5f5ciToOMU9nIgoA6aaQSTbkb3GlNL1uS9qcmHrpUGwdPQo9iN2v/Qp ctXRQgmECt5xAtl7XwduDl1hygEDbpj3eTzg+ecY+ttac3jsMunPl0sedhW9SaX+cze6 Bcag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ujWQ8IDdSbwnxaXGdwQTjjikP4XSbHlkV7TpzfD9xCo=; b=RyUEolPeGcwIvuyLOxvmvUr9CryCQMQsCjVBm4P0f3zbpjNanlJyzn5r269aZPTMKQ 53DgyU/MNi7IWjwaphXnOBo+N6qL2trPeboWuLT/AAKYqfWAekhQXPrIfHLH3kx/xz2N jf2/7NYs+XSSY2UhkZzy8UrQe/sQNDpUQdw8CcTwzaW595cjyJBlVrOxIrJsV85r0ypi PqGDTLZc92lVn5BdwhxFT6bnPBn8IlLaNqFsfcGC+jgkqyWyAzp/BaMx2ppo0XfCvpfK wIHjpAtQUhmX6ZUM++Mgcsc5SndHpp7Jc6BFmEZm55crZ1snBrDwFeUXZ8NqQwD4uT54 ygng== X-Gm-Message-State: AOAM532LVHvHq3FMxBrfIpCtSpthmm14h/DMNBKYslpim7vMw70uoiuV D+CBlojP4SBRWLftFB/xC7J13OWddATv3g== X-Google-Smtp-Source: ABdhPJz9ZOmrWeFX+5JZYxQzresYToTz+3Wh8DeKHMzMvM5i51L/SqeO+RvVteVTFPFKCqQV/5TpLA== X-Received: by 2002:a17:90a:f295:: with SMTP id fs21mr105601pjb.227.1612203261415; Mon, 01 Feb 2021 10:14:21 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id e12sm75784pjj.23.2021.02.01.10.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 10:14:20 -0800 (PST) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: gregkh@linuxfoundation.org Subject: [PATCH 26/31] coresight: etm4x: Run arch feature detection on the CPU Date: Mon, 1 Feb 2021 11:13:46 -0700 Message-Id: <20210201181351.1475223-27-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210201181351.1475223-1-mathieu.poirier@linaro.org> References: <20210201181351.1475223-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_181427_270887_3A5F4032 X-CRM114-Status: GOOD ( 15.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
coresight: Patches for v5.12
|
expand
|
diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index c3e458af618a..fc26ecbc2d87 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -60,6 +60,7 @@ static u64 etm4_get_access_type(struct etmv4_config *config); static enum cpuhp_state hp_online; struct etm4_init_arg { + unsigned int pid; struct etmv4_drvdata *drvdata; struct csdev_access *csa; }; @@ -884,6 +885,8 @@ static void etm4_init_arch_data(void *info) etm4_os_unlock_csa(drvdata, csa); etm4_cs_unlock(drvdata, csa); + etm4_check_arch_features(drvdata, init_arg->pid); + /* find all capabilities of the tracing unit */ etmidr0 = etm4x_relaxed_read32(csa, TRCIDR0); @@ -1750,6 +1753,7 @@ static int etm4_probe(struct device *dev, void __iomem *base, u32 etm_pid) init_arg.drvdata = drvdata; init_arg.csa = &desc.access; + init_arg.pid = etm_pid; if (smp_call_function_single(drvdata->cpu, etm4_init_arch_data, &init_arg, 1)) @@ -1794,8 +1798,6 @@ static int etm4_probe(struct device *dev, void __iomem *base, u32 etm_pid) drvdata->boot_enable = true; } - etm4_check_arch_features(drvdata, etm_pid); - return 0; }