Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1396446rwr; Wed, 26 Apr 2023 14:33:17 -0700 (PDT) X-Google-Smtp-Source: AKy350bRbxtG0NIyT7ph+4FdXd7e56iSUNuzVItqhjSs4QV3lNW/uPwLUn1LHb3uVtHMYyr/WZKW X-Received: by 2002:a05:6a00:b42:b0:63d:2d99:2e72 with SMTP id p2-20020a056a000b4200b0063d2d992e72mr33501749pfo.7.1682544796942; Wed, 26 Apr 2023 14:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682544796; cv=none; d=google.com; s=arc-20160816; b=ltIV1VpnWwNgj9D9IGQv7MkSeot9NmRWUHCss/jr1l39WiiE9JoOx1tikvzoHVX+XC awx4kBebLNGESzrTOPocULmtDPjkxJ0e37F8SYPxoVQLXlYLg2/p8FzlnseNEikVW6Ci 5d4i/FreJR2+5nMd2kRGPQ3cUTLx1R+mModZ1WB3G1djgLLLYan1K3z6+vxethchavnb /gIYu10Als0dndnaU+rhKKI4kbBwu5iyN2VfBAhhsazUhagRmAcjx4c0kpKim3j6n4ky tatdU5kX+1ZP0WvPuDxEgsMoaNwJhFq3OYbGHZtDnI5vyUQd76l+ep8iyC9C5PvHuJVC A6JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=fwiQaWIRHQyq7je3uiXIYH4HOfAwQIaSflkAEcF6eh8=; b=h7NJfYNkqn3errXjCEWcBOaESSJR2IYQXmcZksCfKzaU/uyKeKr5CrYUg1Kt6YO8jW OjBzaaYgNDYXHZdOJfChZYo8rE9vZZz/pzLmMboAE7shYZuli5R4vc3asF3LkitFGpAE ZcbS4YdaSwJda8UCNOVihLpTqKsZTJIcrNloyLhbIkruHJkw14NehnGqe9aEkA84iOdE yM+5ns0Vzqnj9nX/AkNeF5U2UMMtd0xmxs766x4vvWSw1EBrSoL6Vq/1CXT/+oTs585f oaQTVtl7HODleaDwjsuqVO8do20nvRWGWREFM0gNDxafb+8PNZqDiSFQfdOxcFGYnktL 96pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=B9QDZ0qR; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020aa794a3000000b00640f72fb516si3312198pfl.40.2023.04.26.14.33.05; Wed, 26 Apr 2023 14:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=B9QDZ0qR; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240059AbjDZVaU (ORCPT + 99 others); Wed, 26 Apr 2023 17:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240147AbjDZVaC (ORCPT ); Wed, 26 Apr 2023 17:30:02 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ECAEE76; Wed, 26 Apr 2023 14:29:49 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682544586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fwiQaWIRHQyq7je3uiXIYH4HOfAwQIaSflkAEcF6eh8=; b=B9QDZ0qRvllVXbYmnanLl1ovYM3aOLpWhAF+F82mr/sHwScw4NB2YzXdlUBccBYRxOd9U4 bvKiCt1ex+1KKGOFNXNBHRCU1RmAio5V++JhFLqath6WUBx9PKjA6sFtMPGfzw2SKGuO9F ssit9S+1Bx9s0QR5XCyOyQDfQghfryUJrJPQe+D5efffpWcLyDrmo11g7jPIfN3FCiRicH xKo1OX6bz7cqONbVIeixBvZreanatItV0kQxDGkLA1TtjoaWsQ9nZfsyEhlMLevoNc78YS Q0KC6EUH4hCDdJfvDQr/jj61AOQtCllRSbeqE8GGT+SLNm6wfvRQgPFONTrNbQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682544586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fwiQaWIRHQyq7je3uiXIYH4HOfAwQIaSflkAEcF6eh8=; b=WJX2ivJ5pOIVjXh0XT2pQWl0AO1BXk5NMBCI+1TkxCZps2pFiYmBvL8jn/HqSVE36smstx BrCQwH0F6YLGPTAw== To: "Bouska, Zdenek" , Will Deacon , Catalin Marinas Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Kiszka, Jan" , "linux-rt-users@vger.kernel.org" , Nishanth Menon , Puranjay Mohan Subject: Re: Unfair qspinlocks on ARM64 without LSE atomics => 3ms delay in interrupt handling In-Reply-To: References: Date: Wed, 26 Apr 2023 23:29:45 +0200 Message-ID: <87pm7qxrg6.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 26 2023 at 12:03, Zdenek Bouska wrote: > following patch is my current approach for fixing this issue. I introduced > big_cpu_relax(), which uses Will's implementation [1] on ARM64 without > LSE atomics and original cpu_relax() on any other CPU. Why is this interrupt handling specific? Just because it's the place where you observed it? That's a general issue for any code which uses atomics for forward progress. LL/SC simply does not guarantee that. So if that helps, then this needs to be addressed globaly and not with some crude hack in the interrupt handling code. > Anyone has a better idea how to solve this issue properly? Use hardware with LSE atomics :) Thanks, tglx