Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6194916ybv; Wed, 12 Feb 2020 07:42:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwvgLJj95E8QBaz9Gvn1fCXQqZ4WlSJ3yjlAKcJbfOMTR7ENG1D3EEuNTJuND5rTWgTRM5j X-Received: by 2002:a9d:6f0d:: with SMTP id n13mr9978109otq.165.1581522172445; Wed, 12 Feb 2020 07:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581522172; cv=none; d=google.com; s=arc-20160816; b=xHBmMrcwWlwL/VMeQQs2B9fDbPqrIsA3cwB4Kelj0jnw3cZcpCOe6Wms50NxH7biDL 9nz9SPuopKyKOJmI3A/+ij7ZnXKSKtNBvbm+v0oyoD7WzDTIhIql5DicMCyAIuYjXYiv pbp79xJbnuVIXYOgLnm3tukkqzxs5hrYJWfr9SnLplT4WrwalnQ/7KE9wy0FpfBuMv8e h2cJ6Zdw23ArmlixMbCEPC0+xablUf/1KARy+xFTuOuEm2jarDYNe1XRamc+tSddzvR4 xWApYt2V8ycoDWAtmzhvSbH/il8bxnnDmBk+0vVCmIPS0yen78sMEi7GaGJcvr197RN3 OovQ== 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=Px26pf7EXM1W2V2xAjAh/vP9L1myxsWPT5mia8fyb6o=; b=wMWj717TchTPIWPxRpY9MPnasC/9Uc1LB1vkenV0ibim0Ylu+UaeaASrZGrbfjwhYB 4dHFFPxz9K8JDi/mv/Tagd8wM+GFonspWLEdD7shLg9VwuSevkf33mVF6OOGDuQ9vS58 b6StVKJyQvons9YvKMQG61/F/v1/gmaMKQsGeHyFvlx80CzowPLe2S53AIpOEf9jCOpi Yd+M2o1A9XTir4dnfVmSFmLoA1/01RkjkgtFLi1cZG17rZUHkMvU9dikw8Zu7y/nr5DN 5vA9htymOBntD2Y0e88/tWp8s6jggS5lsWoZXuJr+Q7AMVkz4NjEF3A2kSHNb3pfl76i B72A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=iiHDHGle; 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 t128si3305943oie.176.2020.02.12.07.42.40; Wed, 12 Feb 2020 07:42:52 -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=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=iiHDHGle; 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 S1728080AbgBLPmd (ORCPT + 99 others); Wed, 12 Feb 2020 10:42:33 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39504 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbgBLPmd (ORCPT ); Wed, 12 Feb 2020 10:42:33 -0500 Received: by mail-wm1-f68.google.com with SMTP id c84so3035692wme.4 for ; Wed, 12 Feb 2020 07:42:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Px26pf7EXM1W2V2xAjAh/vP9L1myxsWPT5mia8fyb6o=; b=iiHDHGleyiMEEbRFVTO5T0+iJy+NzduG/SZ3j/LsaT438a+ah2ZOpk6xVU54KoLTVu PX4Usu716O2rm0+bwNmlQpomsZGvjIwrYi1yYv5s5auhwMlcp4qtw0JsZT27tGROf6Xx 1uCAinSeSG68QXsVsFp03rduLqSZ0dyIrupBKPw3EAHQkmtMTNsD5seR1JK2pWDB2/oy IreOw4Fea6Yts3IAM3WHzixkcaBpyAEmAFm8qXvhU5spd/vLH9I0ETXuDDHXAHUfaEwH tejNju+7uU3hAFgVhZY924LDQhTpiswmwDb65NVzf6pIlxwbGHfmirJrRgywgsfzWOel PkUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=Px26pf7EXM1W2V2xAjAh/vP9L1myxsWPT5mia8fyb6o=; b=m5EGS4H+ebp2mHQ0O+rJ95p3om/zfl6LcrylNQqbhogkbQ46CIGE/mKjjIgVuGsyk8 vYJtZjAvTtyJRfTZEICPz7ErCRq3ENWN4aiXi2Egy0nI0hdSzvW3E//a5bQAL8qUabcl wMPCD1ForMlQ6TUT5MxLCDYYOVyOsGMksk96KNgNdUhZnLuZCfBnGHkj1Dgh4gQLcfrx OPSZaGjeoa4KupHWoM1cKoi3ES0LDfFouzv3aRz3TzyvsPhFOsKp9LnfQqQxfiPcEJRG U0u16g91naxgA7CaBvOQUQq+hMgLeXkYRtAnFWAPOf1X9lbURlJSUgOMjFY/NBQQGd36 A/xQ== X-Gm-Message-State: APjAAAUAlp8rqicc/UnUA6FD13BD30A1flHjip/nTcyaBEO10LzF4BcB +GKL0L/bgWMtF7v4uU5vYeyyiRlNt0EvUbNA X-Received: by 2002:a05:600c:294:: with SMTP id 20mr13765397wmk.135.1581522150880; Wed, 12 Feb 2020 07:42:30 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id g2sm1000605wrw.76.2020.02.12.07.42.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Feb 2020 07:42:30 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, arnd@arndb.de Cc: Allison Randal , Andrew Morton , Boqun Feng , Enrico Weigelt , Greg Kroah-Hartman , Ingo Molnar , Kate Stewart , Masahiro Yamada , Mike Rapoport , Peter Zijlstra , Shubhrajyoti Datta , Stefan Asserhall , Thomas Gleixner , Will Deacon Subject: [PATCH 0/7] microblaze: Define SMP safe operations Date: Wed, 12 Feb 2020 16:42:22 +0100 Message-Id: X-Mailer: git-send-email 2.25.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 Hi, This is follow up series on the top of cleanup series available here. https://lkml.org/lkml/2020/2/12/215 There are two things together. 1. Changes in cpuinfo structure in patches 1 and 2 2. Defining SMP safe operations instead of IRQ disabling Microblaze has 32bit exclusive load/store instructions which should be used instead of irq enable/disable. For more information take a look at https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_2/ug984-vivado-microblaze-ref.pdf starting from page 25. Thanks, Michal Michal Simek (1): microblaze: timer: Don't use cpu timer setting Stefan Asserhall (5): microblaze: Make cpuinfo structure SMP aware microblaze: Define SMP safe bit operations microblaze: Add SMP implementation of xchg and cmpxchg microblaze: Remove disabling IRQ while pte_update() run microblaze: Implement architecture spinlock Stefan Asserhall load and store (1): microblaze: Do atomic operations by using exclusive ops arch/microblaze/include/asm/Kbuild | 1 - arch/microblaze/include/asm/atomic.h | 265 ++++++++++++++++++- arch/microblaze/include/asm/bitops.h | 189 +++++++++++++ arch/microblaze/include/asm/cmpxchg.h | 87 ++++++ arch/microblaze/include/asm/cpuinfo.h | 2 +- arch/microblaze/include/asm/pgtable.h | 19 +- arch/microblaze/include/asm/spinlock.h | 240 +++++++++++++++++ arch/microblaze/include/asm/spinlock_types.h | 25 ++ arch/microblaze/kernel/cpu/cache.c | 154 ++++++----- arch/microblaze/kernel/cpu/cpuinfo.c | 38 ++- arch/microblaze/kernel/cpu/mb.c | 207 ++++++++------- arch/microblaze/kernel/timer.c | 2 +- arch/microblaze/mm/consistent.c | 8 +- 13 files changed, 1040 insertions(+), 197 deletions(-) create mode 100644 arch/microblaze/include/asm/bitops.h create mode 100644 arch/microblaze/include/asm/spinlock.h create mode 100644 arch/microblaze/include/asm/spinlock_types.h -- 2.25.0