From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162778AbdEYLKZ (ORCPT ); Thu, 25 May 2017 07:10:25 -0400 Received: from smtprelay.synopsys.com ([198.182.60.111]:47250 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759483AbdEYLKX (ORCPT ); Thu, 25 May 2017 07:10:23 -0400 From: Alexey Brodkin To: "noamca@mellanox.com" CC: "linux-kernel@vger.kernel.org" , "linux-snps-arc@lists.infradead.org" Subject: Re: [PATCH 07/10] ARC: [plat-eznps] disabled stall counter due to a HW bug Thread-Topic: [PATCH 07/10] ARC: [plat-eznps] disabled stall counter due to a HW bug Thread-Index: AQHS1P+Owwxn+FseHE+lva4Fo2lwb6IEw3gA Date: Thu, 25 May 2017 11:10:20 +0000 Message-ID: <1495710620.5393.29.camel@synopsys.com> References: <1495679660-9598-1-git-send-email-noamca@mellanox.com> <1495679660-9598-8-git-send-email-noamca@mellanox.com> In-Reply-To: <1495679660-9598-8-git-send-email-noamca@mellanox.com> Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.121.8.122] Content-Type: text/plain; charset="utf-8" Content-ID: <7A8B623762DCA04D901C8F8301042DD2@internal.synopsys.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v4PBAXAg018438 Hi Noam, On Thu, 2017-05-25 at 05:34 +0300, Noam Camus wrote: > From: Noam Camus > > This counter represents threshold for consecutive stall that which > trigger HW threads scheduling. > Low values of this counter cause downgrade in performance > and in the worst case even a livelock. > > Signed-off-by: Noam Camus > --- >  arch/arc/plat-eznps/mtm.c |    2 -- >  1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/arch/arc/plat-eznps/mtm.c b/arch/arc/plat-eznps/mtm.c > index aaaaffd..e0cb36b 100644 > --- a/arch/arc/plat-eznps/mtm.c > +++ b/arch/arc/plat-eznps/mtm.c > @@ -119,8 +119,6 @@ void mtm_enable_core(unsigned int cpu) >   mt_ctrl.value = 0; >   mt_ctrl.hsen = 1; >   mt_ctrl.hs_cnt = MT_CTRL_HS_CNT; > - mt_ctrl.sten = 1; > - mt_ctrl.st_cnt = MT_CTRL_ST_CNT; Even though I don't know your architecture this change doesn't make enough sense to me in absence of better explanation of what is really done here. I.e. how removal of those 2 lines above improve your situation. -Alexey From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey.Brodkin@synopsys.com (Alexey Brodkin) Date: Thu, 25 May 2017 11:10:20 +0000 Subject: [PATCH 07/10] ARC: [plat-eznps] disabled stall counter due to a HW bug In-Reply-To: <1495679660-9598-8-git-send-email-noamca@mellanox.com> References: <1495679660-9598-1-git-send-email-noamca@mellanox.com> <1495679660-9598-8-git-send-email-noamca@mellanox.com> List-ID: Message-ID: <1495710620.5393.29.camel@synopsys.com> To: linux-snps-arc@lists.infradead.org Hi Noam, On Thu, 2017-05-25@05:34 +0300, Noam Camus wrote: > From: Noam Camus > > This counter represents threshold for consecutive stall that which > trigger HW threads scheduling. > Low values of this counter cause downgrade in performance > and in the worst case even a livelock. > > Signed-off-by: Noam Camus > --- > ?arch/arc/plat-eznps/mtm.c |????2 -- > ?1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/arch/arc/plat-eznps/mtm.c b/arch/arc/plat-eznps/mtm.c > index aaaaffd..e0cb36b 100644 > --- a/arch/arc/plat-eznps/mtm.c > +++ b/arch/arc/plat-eznps/mtm.c > @@ -119,8 +119,6 @@ void mtm_enable_core(unsigned int cpu) > ? mt_ctrl.value = 0; > ? mt_ctrl.hsen = 1; > ? mt_ctrl.hs_cnt = MT_CTRL_HS_CNT; > - mt_ctrl.sten = 1; > - mt_ctrl.st_cnt = MT_CTRL_ST_CNT; Even though I don't know your architecture this change doesn't make enough sense to me in absence of better explanation of what is really done here. I.e. how removal of those 2 lines above improve your situation. -Alexey