Received: by 10.223.185.116 with SMTP id b49csp1375116wrg; Fri, 23 Feb 2018 17:41:09 -0800 (PST) X-Google-Smtp-Source: AH8x225NPoBjIOVv5dKsZboI1S1MYG0zrTYDFvT2m93a4Gl8OsmVNRPLaSqPwzXDXChE8Vg351BA X-Received: by 2002:a17:902:7593:: with SMTP id j19-v6mr2869152pll.408.1519436469242; Fri, 23 Feb 2018 17:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519436469; cv=none; d=google.com; s=arc-20160816; b=rIyTo9bioZ1qXIyT7anyZJi0QXbEPYMvMPrgUmO4Ot7COuR3C+pmRgJNuALz5DgoAc rUPPE2JLUxx5QMHYYx3G9aSOAjUjg1XcC3l/KaFiNUjGDAGFwy9BmPGWvNJx6HpZ0wZi t6MBmjgKP2W8ycIi/hYagkZrKfkXyaxRtIn2CQxxXjqN+5sSu3SZ2PQDq9iyknC7zGFV feg0wJPUu/pMc3P3BiPn1HJrZtYWfhLFYS2Yla3z6oXQ6DJy8i3o+jg1vahsHfbghHW9 ggzLCsPPCDqxb6w5ry2/DPPhG+Ac892bTFxkb4IDDCfOYFwDaz+49BOYCQxSY5veurDZ c2IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=pahFpy0iDH6vdf8q/aH9pYOH9YltQ/mo0qXxwd8tJ5Y=; b=a8lrFUemwCSuGaEplRZzViMwLUkO6Ws2y57F8Bu4xKKldMTShKiJIZ8EZFsZfFtksr 1GwAna+Eu8q48Wi92CZUd1d6VDDtyE8z84dUS3b6Mn+zQwj6ZfYGnJ923MKHfIZMb6Ry 4x2f/xJJ9Wav0NHH9kD66gTt0gN+ukdEQlvW29aMvvBWhQ7jgOhiY8kVX6gBZbPHLspV TKFKXSDocPNKURAmiDHfW5WqWGG8T/lp1U4GnAiQqJAyTymoSpNBlCl9+Jb7TilAfPHm LlFFRlz5Zu77uriiXeUyc0HHKRwpwgcSsEgbwlCsogQXejKuBo26HAwOvfjM72YRR6zC H+qA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 p10si2712541pfe.171.2018.02.23.17.40.14; Fri, 23 Feb 2018 17:41:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433AbeBXBi1 (ORCPT + 99 others); Fri, 23 Feb 2018 20:38:27 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:33435 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751873AbeBXBiZ (ORCPT ); Fri, 23 Feb 2018 20:38:25 -0500 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 5CFB024E05BA; Fri, 23 Feb 2018 17:38:25 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 3B71D3D26; Fri, 23 Feb 2018 17:38:25 -0800 (PST) Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id 293343D24; Fri, 23 Feb 2018 17:38:25 -0800 (PST) Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.266.1; Fri, 23 Feb 2018 17:38:25 -0800 Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.103) by IN01WEHTCB.internal.synopsys.com (10.144.199.105) with Microsoft SMTP Server (TLS) id 14.3.266.1; Sat, 24 Feb 2018 07:08:22 +0530 Received: from [10.10.161.84] (10.10.161.84) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.266.1; Sat, 24 Feb 2018 07:08:21 +0530 Subject: Re: [PATCH v2 1/3] ARC: mcip: halt GFRC together with ARC cores To: Eugeniy Paltsev , "linux-snps-arc@lists.infradead.org" CC: "linux-kernel@vger.kernel.org" , "Alexey Brodkin" References: <20180223164154.22377-1-Eugeniy.Paltsev@synopsys.com> From: Vineet Gupta Message-ID: <49291bc3-665b-2cd8-aabc-4adb67b73413@synopsys.com> Date: Fri, 23 Feb 2018 17:38:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180223164154.22377-1-Eugeniy.Paltsev@synopsys.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.10.161.84] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/23/2018 08:41 AM, Eugeniy Paltsev wrote: > Currently GFRC is running regardless state of ARC cores in the SMP cluster. > That means even if ARC cores are halted when doing JTAG debugging GFRC > [our source of wall-time] continues to run giving us unexpected warnings > once we allow ARC cores to run due to some tasks being stuck for too > long. > > Starting from ARC HS v3.0 it's possible to tie GFRC to state of up-to 4 > ARC cores with help of GFRC's CORE register where we set a mask for > cores which state we need to rely on. > > We update cpu mask every time new cpu came online instead of using > hardcoded one or using mask generated from "possible_cpus" as we > want it set correctly even if we run kernel on HW which has fewer cores > than expected (or we launch kernel via debugger and kick fever cores > than HW has) > > Signed-off-by: Alexey Brodkin > Signed-off-by: Eugeniy Paltsev Acked-by: vineet Gupta