Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5430071iob; Mon, 9 May 2022 16:34:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBNHfG9vvBuo7TmvKIU98MZnf67I/pVYeIU5ogeX3Z4Ss1A06mhejWlS+fBixxUOHe7Fsb X-Received: by 2002:a05:6a00:2442:b0:4fd:8b00:d2f with SMTP id d2-20020a056a00244200b004fd8b000d2fmr17941169pfj.39.1652139280599; Mon, 09 May 2022 16:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652139280; cv=none; d=google.com; s=arc-20160816; b=zcRRbFwqWK9AYxnF1DNSp1I9nhMXbA9wn1MHOl2FzaCt4lKTwl/XLMCQx28ZhLdowu b7+QO9KIEl3fLb3PXMWvaYTTPwFYC9LUo0r/qXbwniefqut8KXl1ScFL4oqV8gT7/QqR Q/cVHv9t/52jm4wG9iKppEXJ6raQ40LZjWhs60RBAiFM2YH5m9UudiDg0G9fLmSizu7l QH0Wxwh7dBwKwszlMs9fTvXMInyJ/wYkrOLVV/ZOVCX8gaUKSbg/fXBwpp2Bsxg1oI4+ yHFzYGOJHm7h6FkHkDmWmQK8kbRxXJv7qA1VQd/a1HsBv/k08nkGHbehUUhkrcfglLNA Epgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:to:from:cc:subject:date :dkim-signature; bh=OGnpUghGinTHrKMvuIufYZhVKzsWXTtBz74k+ehQUmU=; b=p8cZXSrLZVOcgzPziVpgJqL2Lh2JR/96SH7PPo5zsQPfTmlohHnhDdPCUYIWbMTW2H S6Rnq1RpiVqLQ78yp+TXio0HvTDGWFDEC5gxD+RtSF1oapcAzgbAFBCUo5dBbbtAaGn1 rthy1IH489LkvOz7PzA40w6o6irS8fRYidYqYvkG50KKaLZh6YmCOoWbInHAgfdCCk9C 2asflx1CBdB13ggtH5dUmfYTA2tMslgndvpxMXliflX3laL9bhsCaDYlchVMymO7xPii 2jyq+NKLzLUaOXurp3cb77cpYU1w2EmRYa7ZGLSFsuDXWbOOV+azLwVWbumB/kz3Yc0c muDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=P4847mqY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a170902f09200b00156a95ac6efsi839790pla.611.2022.05.09.16.34.24; Mon, 09 May 2022 16:34:40 -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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=P4847mqY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229451AbiEIWgT (ORCPT + 99 others); Mon, 9 May 2022 18:36:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbiEIWgS (ORCPT ); Mon, 9 May 2022 18:36:18 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 035792B94FB for ; Mon, 9 May 2022 15:32:23 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id j14so15181514plx.3 for ; Mon, 09 May 2022 15:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=date:subject:cc:from:to:message-id; bh=OGnpUghGinTHrKMvuIufYZhVKzsWXTtBz74k+ehQUmU=; b=P4847mqYvFJU1r8pM8dySzlwyIgNtXMJtbDDKvWSq5MGwtlscsCCXVAVp3Een15tLe 5n1Ydmj9moMd6LKmt4gHIKvaic1BzqcoqL6KWFbWTtasDJ3BWP2ccEtahvna+yVemzis iN1RQFTG6BN5PoYdPoJ61hmhf2JFm/LbRNK7uIE236X3HolKFjadTFcKKEk9AsvQjYjP pJsGtCW77rc+iguSk+VXaKEz+BzOH2GG5CD1ihjlYTqHbZayoqPzwmAotJfU6v9gDP1k Vjt4YeEEM1KNCc4W6h/eu83swnsrnpDl8df6+epZYsqG0Wy5wIR7B4EHFLkXh/EjiI7J du5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:cc:from:to:message-id; bh=OGnpUghGinTHrKMvuIufYZhVKzsWXTtBz74k+ehQUmU=; b=O5CmVWnf81t/YlrVENK2LwD7AQV1sX0+neabnIqwxjB1qYk5zMx1EB7pAHnn0MXLY1 n4YIC1V6OxKz+R/0JNHVdmHYdNZ1WUxi4G+mOe/Ba49ZO31xlvmA0xzBw/J0kg3Uhxrf 9Bq/cYxK3vPzFd/VSRlkR2sBUmuhndb4qQBPeg3KeBgFbB7JlGR0nl4Qxtq0ghXPX7Ck l6PwkVok/F2Xnpj8Nt9uBnstKuW9QFEs+5a2yF8fWIqoEvf5NsrU0XUEryNYBjKOz9WH L8TG0gIUDn+3VsBTEJ5CCNS/GUyDFPyh4547LdCqElexI1pMLLpeUsxxw+aKb79gurqs StTg== X-Gm-Message-State: AOAM533mCxYD2FxuJyRGVQeuDAm8ZPnpUBDor+QEll5KjljGzuXbtp6w Vg26y5lSYsbr/Rt9ghSeLlsmlyc/yj3DsA== X-Received: by 2002:a17:902:e94d:b0:158:2f50:d04c with SMTP id b13-20020a170902e94d00b001582f50d04cmr17881540pll.11.1652135542508; Mon, 09 May 2022 15:32:22 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id v10-20020aa799ca000000b0050dc7628166sm9164094pfi.64.2022.05.09.15.32.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 15:32:22 -0700 (PDT) Date: Mon, 09 May 2022 15:32:22 -0700 (PDT) X-Google-Original-Date: Mon, 09 May 2022 15:29:55 PDT (-0700) Subject: [GIT PULL] asm-generic: New generic ticket-based spinlock CC: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Arnd Bergmann Message-ID: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 The following changes since commit 3123109284176b1532874591f7c81f3837bbdc17: Linux 5.18-rc1 (2022-04-03 14:08:21 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git tags/generic-ticket-spinlocks-v5 for you to fetch changes up to ed9604312e917c3167f156025f45245d4971415d: asm-generic: qrwlock: Document the spinlock fairness requirements (2022-05-09 12:42:17 -0700) ---------------------------------------------------------------- asm-generic: New generic ticket-based spinlock This contains a new ticket-based spinlock that uses only generic atomics and doesn't require as much from the memory system as qspinlock does in order to be fair. It also includes a bit of documentation about the qspinlock and qrwlock fairness requirements. This will soon be used by a handful of architectures that don't meet the qspinlock requirements. ---------------------------------------------------------------- This is aimed towards at least Arnd's tree, assuming it lands I'll deal with the follow-on bits as per the notes in v5 of the whole patch set. ---------------------------------------------------------------- Palmer Dabbelt (1): asm-generic: qrwlock: Document the spinlock fairness requirements Peter Zijlstra (2): asm-generic: ticket-lock: New generic ticket-based spinlock asm-generic: qspinlock: Indicate the use of mixed-size atomics include/asm-generic/qrwlock.h | 4 ++ include/asm-generic/qspinlock.h | 29 +++++++++++ include/asm-generic/spinlock.h | 94 +++++++++++++++++++++++++++++++++--- include/asm-generic/spinlock_types.h | 17 +++++++ 4 files changed, 137 insertions(+), 7 deletions(-) create mode 100644 include/asm-generic/spinlock_types.h