Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp4208991ybt; Sun, 5 Jul 2020 21:36:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUwn92uGY5wyACy5nv3vC0Yy8N1tcDl3aEFz2u/RhUgsP5e9PQOfLrtbPnULpA4YqNTRr2 X-Received: by 2002:a17:906:2b0e:: with SMTP id a14mr15281251ejg.459.1594010184321; Sun, 05 Jul 2020 21:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594010184; cv=none; d=google.com; s=arc-20160816; b=XzyA52SXcrmF2T617e6oNmh6Ns5xRVN7E5FfZhJWXyjIPvxUukdS+qylG7jfXKMqLK 7hjlDGFU83lY1lLFDoCg+eFHkRMkhoa3PT/AI0BpInZkTL2V89EyYQynzRW5m1yTOPe+ Cy7fP9TRjiuuunRbvDzayP19h/HGXaK0HYbTqR5OUW0zu2NateK6k00YB59UxRIw3Gwn j44+bZwhuX6TBG6nYoDqtwKt6Ud0TrfVQXRnHfU0rmjRa2pA+oAGLqpO47+MjJuJkpU/ PCCnTlL1ySs5G6+Q508ZO2SvjZHJu8jfpaAh7JuYmxtlycWnMw8da0Fu8J0n2A80Og4N ySrg== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZKbw/z5L6V9QIy1x3CDqGbQPwSP3RR4H4VZhRPfsp8M=; b=mI4BTx7xkv+bci7INZ1BzXgWVF22MtQE0gG6UoilYnVrHaoCu0hukGlJIoVFpESt+5 1ewWF3nCWf/5RrHN0WFMMLtqkosL4KDLvU4aUFP/gtAQ0vuysfvmuEr8gyG6j+2AtjXV yyfoB5JThdL5gWwAQEjIT2aPTRFOA31NPzjo4XmpBKh+FWzkt9ZrVwAVkG7iufcbblYd 3BZH9MOFtyOwK/cUyFqd59Wb+3FIlXoswg4KOkXyX1ViPLAz4Hu0LgUjua/1TPoCYR9d ogRgDmN41xV/3E+MCk1k04s3fQwqnWwb8g9gfixjfJPpPunkLEwAht6Y9z0iOoQv1NGt pQJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hkf1JzYh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si12322494edr.106.2020.07.05.21.36.02; Sun, 05 Jul 2020 21:36:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hkf1JzYh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728117AbgGFEfy (ORCPT + 99 others); Mon, 6 Jul 2020 00:35:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgGFEfy (ORCPT ); Mon, 6 Jul 2020 00:35:54 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3CB2C061794; Sun, 5 Jul 2020 21:35:53 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id k6so39344719wrn.3; Sun, 05 Jul 2020 21:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZKbw/z5L6V9QIy1x3CDqGbQPwSP3RR4H4VZhRPfsp8M=; b=Hkf1JzYh8wjUYolV0yaByArSjR1r/H4U8J4WcN5XtRtVGH5W1a+waY2FcTp6vNrLBv jUMpiNqYBpmtBNy0cshISgyAcM8ayGC//EhS4EYX7SaFkqXmDS7tGBDLg5gGMwx+RI0v rFOVnaVf/ZahbQA9k3IR3fBN0Nr5dbv8ZnaxhEiQ8cS4v1n7xBWwPFfjtuUabcwR3wgn Pn010T/J+8URF0VzurWA/Zg0X0kLeBB6VLgpir94tXXLt4ibfN8TCZXm0Uqe8IgWEk7r i10AkbH3ZRjLbsnoD+AFWUwuWz0ZGk7mbp96o/clHt9q62DneKcDYbkA09H3OaLiOHAV /a/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZKbw/z5L6V9QIy1x3CDqGbQPwSP3RR4H4VZhRPfsp8M=; b=HEldRPJ9r/E1p99rvXlu7gofH5pLoEi1IDsCsLlfH09au6wCtleWN0Et9/q9yLaFKR ReepX5og+5iLoFqO2S4vclLmU9aGdy8txk4D1Hyf7LthwI97KEpNj/b3iM14NB61T1KG P0qQWPwQGu9I9d+q2cV8gMW1yYi25EBynz7kMovOM1uBANnK5m+mC/camk7ZjwE1kvsl V1jbR0vgB+kthLosFSp9JsAOyYxtHcB5PxQ+WJkCk49ZJsBOgh65iW7MUAusoaihhjh+ QesHjF1TqEvxOEo1slyFb0QoQtdwmj22yISJ7eABULYbv1w/MxkQCO+17JK/O4O6wKcf 0B8g== X-Gm-Message-State: AOAM531wqKzVhNPMSEKJ/Gy6gl9AZf8wiXEkZ4NB3w3HrzpZ4Frr07oN jS+9ROEwJZERz6Ifp6q3Rezgi35l X-Received: by 2002:adf:f34e:: with SMTP id e14mr46431344wrp.299.1594010152557; Sun, 05 Jul 2020 21:35:52 -0700 (PDT) Received: from bobo.ibm.com (61-68-186-125.tpgi.com.au. [61.68.186.125]) by smtp.gmail.com with ESMTPSA id r10sm22202309wrm.17.2020.07.05.21.35.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jul 2020 21:35:51 -0700 (PDT) From: Nicholas Piggin To: linuxppc-dev@lists.ozlabs.org Cc: Nicholas Piggin , Will Deacon , Peter Zijlstra , Boqun Feng , Ingo Molnar , Waiman Long , Anton Blanchard , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm-ppc@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH v3 0/6] powerpc: queued spinlocks and rwlocks Date: Mon, 6 Jul 2020 14:35:34 +1000 Message-Id: <20200706043540.1563616-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v3 is updated to use __pv_queued_spin_unlock, noticed by Waiman (thank you). Thanks, Nick Nicholas Piggin (6): powerpc/powernv: must include hvcall.h to get PAPR defines powerpc/pseries: move some PAPR paravirt functions to their own file powerpc: move spinlock implementation to simple_spinlock powerpc/64s: implement queued spinlocks and rwlocks powerpc/pseries: implement paravirt qspinlocks for SPLPAR powerpc/qspinlock: optimised atomic_try_cmpxchg_lock that adds the lock hint arch/powerpc/Kconfig | 13 + arch/powerpc/include/asm/Kbuild | 2 + arch/powerpc/include/asm/atomic.h | 28 ++ arch/powerpc/include/asm/paravirt.h | 89 +++++ arch/powerpc/include/asm/qspinlock.h | 91 ++++++ arch/powerpc/include/asm/qspinlock_paravirt.h | 7 + arch/powerpc/include/asm/simple_spinlock.h | 292 +++++++++++++++++ .../include/asm/simple_spinlock_types.h | 21 ++ arch/powerpc/include/asm/spinlock.h | 308 +----------------- arch/powerpc/include/asm/spinlock_types.h | 17 +- arch/powerpc/lib/Makefile | 3 + arch/powerpc/lib/locks.c | 12 +- arch/powerpc/platforms/powernv/pci-ioda-tce.c | 1 + arch/powerpc/platforms/pseries/Kconfig | 5 + arch/powerpc/platforms/pseries/setup.c | 6 +- include/asm-generic/qspinlock.h | 4 + 16 files changed, 577 insertions(+), 322 deletions(-) create mode 100644 arch/powerpc/include/asm/paravirt.h create mode 100644 arch/powerpc/include/asm/qspinlock.h create mode 100644 arch/powerpc/include/asm/qspinlock_paravirt.h create mode 100644 arch/powerpc/include/asm/simple_spinlock.h create mode 100644 arch/powerpc/include/asm/simple_spinlock_types.h -- 2.23.0