Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp719404ybl; Sun, 1 Dec 2019 11:08:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwn7dKK30A5K8TSIeOQ4OGllDqhjXJSBLNs5aCEy21PbkuXx7n6U6n8f9RgKiIyriGQMrB8 X-Received: by 2002:a17:906:ece4:: with SMTP id qt4mr20337799ejb.244.1575227319779; Sun, 01 Dec 2019 11:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575227319; cv=none; d=google.com; s=arc-20160816; b=k4jCPTVM+dUS3hZuKqNAQoAdeCiFCtB3m+7ptWktzKk1eN1DceI4j9bmomCDt+p3aR uaxemFoZ+aHBr1pl6cVDPSUxI4mdhQez1kYhEoblc6oC9Pd22o6ZJ3b0nS5SF6pdXcWx KjZH/qZMPoZRc/htOjtuPWyIgmL3MMn0swvMqsjdJIJ93gyfW616sGl8WMxd7trMYHoE U5OXdjKEdYzNpBhzNnCzktp82eZTUpUiiV6+nXAGtVw4mn36AeGt+mgOePGdi+CbG0+M qFjb3pYp5ucw1vbEnAdVnu2R9dsP9acyidLkcqFsuNckdThGfVJwdPd0y9a4P7b7nviF VKEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=MYJMRHaiXc+sf5WEZ2y2GPKTcfT0mAf/egNeoJkGqUk=; b=lfC3DlzSRixmMdx3fH4H2d0GJGMesG80SYy2dSRkLa7Qj0MNyE2go1oLwglB37rR0K ZRnH1741CeiHghAYkkOiKpiPUneokqDoUiKACKmJj3kEOGCS6eGfs9IH4rB56V88JpAk 30Sm6XMslRknljljcqy6VuJ1VPRyVF9PvCr4e8YTsTBD14diJLgCn/xKGt95/+LbwrkI vk36aIW0+IjObpznlxAkMm48vTvZI6+z6iruo83kUbZFM9JP7PdBSayiGVCeJLVvm8mx iYFNA+aksr2sSq90u/Cln6dh5yd9J610qNvDDndiCuHz9ZAXWZs4/Poh35VUMu7TLrTC Fjvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jonmasters-org.20150623.gappssmtp.com header.s=20150623 header.b=jwOVcGbn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc21si628551edb.308.2019.12.01.11.08.16; Sun, 01 Dec 2019 11:08:39 -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=@jonmasters-org.20150623.gappssmtp.com header.s=20150623 header.b=jwOVcGbn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727318AbfLATG1 (ORCPT + 99 others); Sun, 1 Dec 2019 14:06:27 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:43622 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726965AbfLATG0 (ORCPT ); Sun, 1 Dec 2019 14:06:26 -0500 Received: by mail-qk1-f194.google.com with SMTP id q28so11456414qkn.10 for ; Sun, 01 Dec 2019 11:06:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jonmasters-org.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MYJMRHaiXc+sf5WEZ2y2GPKTcfT0mAf/egNeoJkGqUk=; b=jwOVcGbncaHcFffRkMA7LE9/UEhFUaIT8HSLGGQg6lzBye14j5BgANn42w4XkkyUfV ZOeYTUI0Dd3YuYKHFmy8XJ288eAiat5tF1T/Annsj7YQszO0ng4s3PnYNlcc6EvK8Mst nsUxYHAo+BA5vFB6wpkDCkxk7TWJ8NevfsWgUFUPHAht5Wo6CiF4uhiBp8edAwy1OiuX S1Jd1DrmUKk4BtedkskZETWYwSznYKzddZWM91onELxBhwwxx64JfrvTFsVTo8CLYBUB zeMcq1mqFwHppbPvN09508FJp8LjKrr8nCXj4xoCiyXtevuoR+S4h+dA+WQi+mdQEGob fBEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=MYJMRHaiXc+sf5WEZ2y2GPKTcfT0mAf/egNeoJkGqUk=; b=pDq8V3QGvt1DfnfQmBfa8YmeE8efbMpQH2H+BwEv1ZuxuunXjZPLJZ+FcAOWb5u3J8 pwMvf2R8894N+tfU0iFSUUc4RY0qEK89BWN1tapBg68yS3wffnKaQxoN6gmF/lFzNIn+ MWlRAAPQtp7NOVXnMnHTkxXt2y3xtYFocF/6GHGR+oUME1TZCXM91VlN6jc3Ru6s43ti t/fYTLmLXMNyST1yZk4sRZZ5/9+CI1Xo0PrO28QpYMqo61HYW4SlknJxy61ANhbjmreR eIp3+oFo7lUUHDr0I5iccjxSyR1wJjcKR86khVFpCj5fZLtQ3aurYKjB9qAl066fL9oG kItg== X-Gm-Message-State: APjAAAVzNGChMt1MOKOA615Y7OmBDImdd7iVMgTplPQhjNjG5VJ2TZ/K MvA+h/XRU1R5VApemDBKKkktpg== X-Received: by 2002:a05:620a:16a4:: with SMTP id s4mr5994651qkj.488.1575227185774; Sun, 01 Dec 2019 11:06:25 -0800 (PST) Received: from independence.bos.jonmasters.org (24-148-33-89.s2391.c3-0.grn-cbr1.chi-grn.il.cable.rcncustomer.com. [24.148.33.89]) by smtp.gmail.com with ESMTPSA id k123sm6414644qkd.4.2019.12.01.11.06.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Dec 2019 11:06:25 -0800 (PST) Subject: Re: [PATCH 0/2] arm64: Introduce boot parameter to disable TLB flush instruction within the same inner shareable domain To: Will Deacon , "qi.fuli@fujitsu.com" Cc: Jonathan Corbet , Catalin Marinas , Will Deacon , Itaru Kitayama , "peterz@infradead.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "indou.takao@fujitsu.com" , "maeda.naoaki@fujitsu.com" , "misono.tomohiro@fujitsu.com" , "tokamoto@jp.fujitsu.com" References: <20190617143255.10462-1-indou.takao@jp.fujitsu.com> <93009dbd-b31c-7364-86d2-21f0fac36676@jp.fujitsu.com> <20191101172851.GC3983@willie-the-truck> From: Jon Masters Organization: World Organi{s,z}ation of Broken Dreams Message-ID: Date: Sun, 1 Dec 2019 11:02:42 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191101172851.GC3983@willie-the-truck> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/1/19 1:28 PM, Will Deacon wrote: > On Fri, Nov 01, 2019 at 09:56:05AM +0000, qi.fuli@fujitsu.com wrote: >> In this thread, I explained that: >> * I found a performance problem which is caused by TLBI-is instruction. >> * The problem occurs like this: >> 1) On a core, OS tries to flush TLB using TLBI-is instruction >> 2) TLBI-is instruction causes a broadcast to all other cores, and >> each core received hard-wired signal >> 3) Each core check if there are TLB entries which have the specified >> ASID/VA (the above confuses implementation with architecture) > I think it's worth bearing in mind that I have little sympathy for the > problem that you are seeing. As far as I can tell, you've done the > following: > > 1. You designed a CPU micro-architecture that stalls whenever it receives > a TLB invalidation request. s/SPARC/Arm/ && wire in DVM > 2. You integrated said CPU design into a system where broadcast TLB > invalidation is not filtered and therefore stalls every CPU every > time that /any/ TLB invalidation is broadcast. > > 3. You deployed a mixture of Linux and jitter-sensitive software on > this system, and now you're failing to meet your performance > requirements. > > Have I got that right? > > If so, given that your CPU design isn't widely available, nobody else > appears to have made this mistake and jitter hasn't been reported as an > issue for any other systems, it's very unlikely that we're going to make > invasive upstream kernel changes to support you. I'm sorry, but all I can > suggest is that you check that your micro-architecture and performance > requirements are aligned with the design of Linux *before* building another > machine like this in future. > > I hate to be blunt, but I also don't want to waste your time. I always tried to ask nicely for the above to be heeded. There's a difference between "hi, our implementation doesn't scale, and here's why" vs "there's a problem with all TLBIs...". There isn't. The problem is the implementation and that should have been called out first thing. Jon. -- Computer Architect