Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp299009imu; Fri, 16 Nov 2018 02:45:27 -0800 (PST) X-Google-Smtp-Source: AJdET5cVzaUBJV5aF8xlPizMgRUOa5tGMJ1RY4w0P0KobfstXnBM20g1fubCD4z0Qxvf/ukqgIgZ X-Received: by 2002:a63:a51b:: with SMTP id n27mr9588799pgf.17.1542365127549; Fri, 16 Nov 2018 02:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542365127; cv=none; d=google.com; s=arc-20160816; b=TNzhJcRjjpVKzap6O0u+CkVIOWZL9Jdx51w1I/LI0arvWe9h5bGvYPssun81HrAPnr 9w1KtY7kXQtgLMFwyULAD9nYq/dlWmgk3t9b6LwuOxJBAoNZy+bHY5UpxcE2Y08XAzfM 5awE92viBCyfR6Zlffyaqfd/OX3tCYWkX6z9gAaMgldwjW1JYfBpmFbiGn8JmJWknxFP TIwppaa+hQx1QMFrtLxpbwk8VS6ldL4TFLG8zGK858lmlwTMr7TcM5pAQQQ9FVKBuKPq kBo44MbtN3VJEjVtCb50S4nzMSoVIvp7pgqTkkWmVf++DaWMgQEQ3RAZO68dnv8QE/sd SJyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=TVzE65YhFDHrEgc+dXGWxu7VmrbNve0MN6BFQMZ7CVA=; b=mDuPd51TnISD3vDhsM6HyWFoEGFkmj25jMGJZWYRJ+ej/G/eDbhh2v7/b5NWqnGqh6 Y6dyBZu63Fx0LvlgpQ5xLiCPP3evl2w4f228ODg9rDu4P3Lv5gHqy9Pb5qrdeiogRwUd B9It+z8up66DRa2nbgHsCTpFBkG/86PFqA3taRMexnh/KoVsk+wN8axkNYMUq3YcyrWz wP4b6YML5iZx24bV2HnA3WR0MyXZU6gVypUwEjxFsH1nQiGO04pbNE9DAXvp1wwW6HhW RxBhv3woPs5AYMjWyO3MM4hjkZID0+Pr75n1/sMDbBi7nw63AepJKgenz2Y+OLDSu6tJ lbjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=EG5n7FGX; 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=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j20si28238364pgg.162.2018.11.16.02.45.12; Fri, 16 Nov 2018 02:45:27 -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=@synopsys.com header.s=mail header.b=EG5n7FGX; 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=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389436AbeKPU4S (ORCPT + 99 others); Fri, 16 Nov 2018 15:56:18 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:47748 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727493AbeKPU4S (ORCPT ); Fri, 16 Nov 2018 15:56:18 -0500 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 1784724E10E9; Fri, 16 Nov 2018 02:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1542365072; bh=kCPYB2jQ/w0IfwYzOdggZsIISG93zH3jNtdKWKDCm2w=; h=From:To:Cc:Subject:Date:From; b=EG5n7FGXTWpXcMAHI/VYFoJoGMX0eQqnjALJR9l6DXYMn2kOv0EdsvQZc1Okp0lgw vJf0f+0ifauZ6SKWjFZn28prtrzJtoYhX5V60X0mQModoycc+2bBbsR6VKzJfRrLCV sa8n+d2M7EfczcSy7aaDfG4tXvSrHmN6YX1kkC/LHeEH7CxYNhLnvEBTreaZTLK3OR jUTPHHi0Hf6Uo8lVRrzXxVyEjbDOJrdhjoRerX9t2y2pMyvh7KTbNDt7vXISc0Mnlr yVx+R0iRnsOjcxOcgNysk4Gndgxkgxo5gRqATjBlHexMjl9Xg7AzMOCd5OtzKet36c vaJrt2Hod/F+Q== Received: from paltsev-e7480.internal.synopsys.com (paltsev-e7480.internal.synopsys.com [10.121.3.66]) by mailhost.synopsys.com (Postfix) with ESMTP id 295705527; Fri, 16 Nov 2018 02:44:29 -0800 (PST) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org, Vineet Gupta Cc: linux-kernel@vger.kernel.org, Alexey Brodkin , Eugeniy Paltsev Subject: [PATCH 0/3] ARC: ARCv2: Introduce SmaRT support Date: Fri, 16 Nov 2018 13:44:24 +0300 Message-Id: <20181116104427.25264-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.14.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add compile-time 'ARC_SMART_TRACE' option for enabling SmaRT support. Small real time trace (SmaRT) is an optional on-chip debug hardware component that captures instruction-trace history. It stores the address of the most recent non-sequential instructions executed into internal buffer. NOTE: this PATCH series has prerequisite: http://patchwork.ozlabs.org/patch/986820/ Changes RFCv2->PATCHv1: * Move smart_exists, smart_supported and smart_stack_size functions to smart.h * Improve Kconfig SmaRT help description. * Other minor changes. Changes RFCv1->RFCv2: * Changes in output display: * Only print VMAs if they are changed. * Split entry for two lines and print source and destination addresses on different lines. * Add procfs options to configure/suspend SmaRT in runtime. * Add SmaRT version check. Limit supported SmaRT versions to >= 0x03. * Move all SmaRT related stuff to smart.h and smart.c * Other minor changes. Eugeniy Paltsev (3): ARC: split show_faulting_vma for logic and representation parts ARC: ARCv2: Introduce SmaRT support ARC: show detaled SmaRT configuration in mumbojumbo arch/arc/Kconfig | 12 ++ arch/arc/include/asm/arcregs.h | 23 ++++ arch/arc/include/asm/bug.h | 9 ++ arch/arc/include/asm/smart.h | 62 ++++++++++ arch/arc/kernel/Makefile | 1 + arch/arc/kernel/setup.c | 21 +++- arch/arc/kernel/smart.c | 253 +++++++++++++++++++++++++++++++++++++++++ arch/arc/kernel/traps.c | 8 ++ arch/arc/kernel/troubleshoot.c | 46 ++++++-- arch/arc/mm/fault.c | 2 + 10 files changed, 420 insertions(+), 17 deletions(-) create mode 100644 arch/arc/include/asm/smart.h create mode 100644 arch/arc/kernel/smart.c -- 2.14.5