Received: by 10.223.164.202 with SMTP id h10csp265433wrb; Mon, 13 Nov 2017 06:11:24 -0800 (PST) X-Google-Smtp-Source: AGs4zMZrszgw+zHXSNfP+kbP5gGfMQIo5F8ZowC3OKmxBPFgBuCRBZ0BJhrWkVEISjSqeuc/h8Jd X-Received: by 10.99.95.70 with SMTP id t67mr8814717pgb.49.1510582284550; Mon, 13 Nov 2017 06:11:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510582284; cv=none; d=google.com; s=arc-20160816; b=Q5L6q+o+KuY7eKfGGz7neqJykCqrXgoSmepXnfyUGykqd+oDuYTwKP8wUE4SeWaQ7P xMs6G7iyhU5hRVtQ9O3ZMLv4vLh+s8m654IfsrwbkWO5J7j/xzJLuKWI1gJ6IJRajoOJ VqZyxLKIXhpAWS11paIbcdoRdpMe2wX+TOEnPBYI/ViHGKi55JOX9U8ySWwMxhu7hWH8 5m+3DFvBOFqXyNfwpRHTDOe/0ScCUIZSrSi5wpsHgfdTALzfTIO4LnAScqQrcILC1/Mu sSyg8O5RGY3En7cDOTjFlc2vMx7aPPhJCzq0A353af0HyyReDVU99Ej1FN7unKOzurpn VOpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=18k7u+Af3GHq6oew5yCS61SvYUQBqM347FpofLalKdQ=; b=uWDpxl/I8zclWUpw/A4+bdlj45SZBg9DBN1yZjG0+Ss1NCveo4A/LuZ5rlX1td4Gui fFAL7EftPEmPX3VmL1ImqX3sqwrMLJ+qhCuc0DH8P1MFYi3oACLCz5mBwSYXYIo5LEOE 0HyHfcmlJTGvSUE9ClPfkKvWCLWEbOFnfcKiDV2/M6J5AcQC7E2wtrFg5iaK0LgW3Fiz orQp7w0Wcuor1MKNFxA93PnT+kDMK+XnemOYEvIdQeqqXHrlEDV+iEBYbQOKzLBUhNtd 6eIB7nxvQ9GNbjmjS60576KCbO0Bq246pkeuTkglfI0iLauUm2a7d2pEdHOBflu+wgWj pJag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SDbZnSqH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n22si13888527pgc.652.2017.11.13.06.11.11; Mon, 13 Nov 2017 06:11:24 -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=@gmail.com header.s=20161025 header.b=SDbZnSqH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752677AbdKMOJ3 (ORCPT + 93 others); Mon, 13 Nov 2017 09:09:29 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:44564 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751128AbdKMOJ1 (ORCPT ); Mon, 13 Nov 2017 09:09:27 -0500 Received: by mail-pf0-f196.google.com with SMTP id x7so11910644pfa.1 for ; Mon, 13 Nov 2017 06:09:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=18k7u+Af3GHq6oew5yCS61SvYUQBqM347FpofLalKdQ=; b=SDbZnSqHqgxFYjuZH6OB+Awkz1fUbHd1yx011TBr1meUYHgPgBdEOPX5WgOEdxPklq lBkc4YtZDh2Z44+Z1+1BgF0M8TqVYvqAQUPkS0/FcKXYYkLklhm6nC8GcdAxvl90lI2t q+UAYmgO+aFyH7RZY9idV6jmv0N/lBlCyYNgemgJ4Z3baLxK53DoCRWKIiUKiI8CrVAB ZD1qA1x8IyqGTCKIQQeqd4pqAce3ynkp7ZGQvhzHKuLX2t4woyxHiS6aWxa7ROW7PLMW f4cXb9cui5GnnxewSJl8Esrduv3PlxO5WQntzy++jMizUQlM7rnEDBbWzGq/OI6TCjOv dQnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=18k7u+Af3GHq6oew5yCS61SvYUQBqM347FpofLalKdQ=; b=Z40rCMQy3wTtNPGfv0R8jZfjLM9dEVuvQJQCsvL1UbTrYb4+6tuPsIqno3YnllMDFL Oz9xHIlDWHUDcpdb4LGjMDiWCQ2gJ38gFTJGHOiHpH/hkiymdHSc3N+5gr82AodU1zMx 85pVuLXboWDnKydV3E/Cmzg9HaQv6nIYqoa4sL2RGZO0kY8JoCpiycr1VNuJvc31hkEu P8eTISjDuVn0xPBrf9pTJQ3GwhNPJD3t8JSB5gFPwPF9HmrzB020wyeRj3qVY2W5Bq+S KgJ6aL6oLYWl/dD514TvyN2zXx7a94S8WM78q3lRUG4mEVIGvl2kCRVxKAzEA2lxIoKo jtcA== X-Gm-Message-State: AJaThX7sb6MMotWpH0YSZvuxgAD/MFmElcqDc1/BCcS2JHUS51rUUkHD /WZw2D/rfYg7NNv7UCLmcH0= X-Received: by 10.84.131.36 with SMTP id 33mr9038305pld.348.1510582166660; Mon, 13 Nov 2017 06:09:26 -0800 (PST) Received: from localhost (g183.61-45-92.ppp.wakwak.ne.jp. [61.45.92.183]) by smtp.gmail.com with ESMTPSA id u9sm38214540pfa.40.2017.11.13.06.09.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Nov 2017 06:09:25 -0800 (PST) Date: Mon, 13 Nov 2017 23:09:23 +0900 From: Stafford Horne To: Linus Torvalds Cc: LKML , Marc Zyngier Subject: [GIT PULL] OpenRISC updates for 4.15 Message-ID: <20171113140923.GS29237@lianli.shorne-pla.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Linus, The OpenRISC work is a bit more interesting this time, adding SMP support and a few general cleanups. Please consider for pull, The following changes since commit bb176f67090ca54869fc1262c913aa69d2ede070: Linux 4.14-rc6 (2017-10-23 06:49:47 -0400) are available in the git repository at: git://github.com/openrisc/linux.git tags/for-linus for you to fetch changes up to 610f01b9a88a9ef8b506709a825c17395c56a62a: openrisc: fix possible deadlock scenario during timer sync (2017-11-03 14:01:17 +0900) ---------------------------------------------------------------- OpenRISC updates for v4.15 Small Things: - Move OpenRISC docs into Documentation and clean them up - Document previously undocumented devicetree bindings - Update the or1ksim dts to use stdout-path OpenRISC SMP support details: - First the "use shadow registers" patch get's the architecture ready for SMP. - The "add 1 and 2 byte cmpxchg support" and "use qspinlocks and qrwlocks" add the SMP locking infrastructure as needed. Using the qspinlocks and qrwlocks as suggested by Peter Z while reviewing the original spinlocks implementation. - The "support for ompic" adds a new irqchip device which is used for IPI communication to support SMP. - The "initial SMP support" adds smp.c and makes changes to all of the necessary data-structures to be per-cpu. - The remaining patches are bug fixes and debug helpers which I wanted to keep separate from the "initial SMP support" in order to allow them to be reviewed on their own. This includes: - add cacheflush support to fix icache aliasing - fix initial preempt state for secondary cpu tasks - sleep instead of spin on secondary wait - support framepointers and STACKTRACE_SUPPORT - enable LOCKDEP_SUPPORT and irqflags tracing - timer sync: Add tick timer sync logic - fix possible deadlock in timer sync, pointed out by mips guys Note: the irqchip patch was reviewed with Marc and we agreed to push it together with these patches. ---------------------------------------------------------------- Jan Henrik Weinstock (1): openrisc: add cacheflush support to fix icache aliasing Luc Van Oostenryck (1): openrisc: pass endianness info to sparse Stafford Horne (15): openrisc: dts: or1ksim: Add stdout-path MAINTAINERS: Add OpenRISC pic maintainer Documentation: Move OpenRISC docs out of arch/ Documentation: openrisc: Updates to README dt-bindings: openrisc: Add OpenRISC platform SoC openrisc: add 1 and 2 byte cmpxchg support openrisc: use qspinlocks and qrwlocks dt-bindings: add openrisc to vendor prefixes list irqchip: add initial support for ompic openrisc: fix initial preempt state for secondary cpu tasks openrisc: sleep instead of spin on secondary wait openrisc: support framepointers and STACKTRACE_SUPPORT openrisc: enable LOCKDEP_SUPPORT and irqflags tracing openrisc: add tick timer multi-core sync logic openrisc: fix possible deadlock scenario during timer sync Stefan Kristiansson (3): openrisc: use shadow registers to save regs on exception openrisc: initial SMP support openrisc: add simple_smp dts and defconfig for simulators .../interrupt-controller/openrisc,ompic.txt | 22 ++ .../bindings/openrisc/opencores/or1ksim.txt | 39 ++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + .../openrisc/README | 65 +++--- .../TODO.openrisc => Documentation/openrisc/TODO | 0 MAINTAINERS | 4 + arch/openrisc/Kconfig | 49 +++- arch/openrisc/Makefile | 1 + arch/openrisc/boot/dts/or1ksim.dts | 7 +- arch/openrisc/boot/dts/simple_smp.dts | 63 +++++ arch/openrisc/configs/simple_smp_defconfig | 66 ++++++ arch/openrisc/include/asm/Kbuild | 5 +- arch/openrisc/include/asm/cacheflush.h | 96 ++++++++ arch/openrisc/include/asm/cmpxchg.h | 147 +++++++++--- arch/openrisc/include/asm/cpuinfo.h | 7 +- arch/openrisc/include/asm/mmu_context.h | 2 +- arch/openrisc/include/asm/pgtable.h | 18 +- arch/openrisc/include/asm/serial.h | 2 +- arch/openrisc/include/asm/smp.h | 26 +++ arch/openrisc/include/asm/spinlock.h | 12 +- arch/openrisc/include/asm/spinlock_types.h | 7 + arch/openrisc/include/asm/spr_defs.h | 14 ++ arch/openrisc/include/asm/thread_info.h | 2 +- arch/openrisc/include/asm/time.h | 23 ++ arch/openrisc/include/asm/tlbflush.h | 25 +- arch/openrisc/include/asm/unwinder.h | 20 ++ arch/openrisc/kernel/Makefile | 4 +- arch/openrisc/kernel/dma.c | 14 +- arch/openrisc/kernel/entry.S | 74 +++++- arch/openrisc/kernel/head.S | 239 ++++++++++++++++--- arch/openrisc/kernel/setup.c | 165 ++++++++----- arch/openrisc/kernel/smp.c | 259 +++++++++++++++++++++ arch/openrisc/kernel/stacktrace.c | 86 +++++++ arch/openrisc/kernel/sync-timer.c | 120 ++++++++++ arch/openrisc/kernel/time.c | 66 ++++-- arch/openrisc/kernel/traps.c | 54 +---- arch/openrisc/kernel/unwinder.c | 105 +++++++++ arch/openrisc/lib/delay.c | 2 +- arch/openrisc/mm/Makefile | 2 +- arch/openrisc/mm/cache.c | 61 +++++ arch/openrisc/mm/fault.c | 4 +- arch/openrisc/mm/init.c | 2 +- arch/openrisc/mm/tlb.c | 16 +- drivers/irqchip/Kconfig | 3 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ompic.c | 202 ++++++++++++++++ 46 files changed, 1940 insertions(+), 262 deletions(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/openrisc,ompic.txt create mode 100644 Documentation/devicetree/bindings/openrisc/opencores/or1ksim.txt rename arch/openrisc/README.openrisc => Documentation/openrisc/README (56%) rename arch/openrisc/TODO.openrisc => Documentation/openrisc/TODO (100%) create mode 100644 arch/openrisc/boot/dts/simple_smp.dts create mode 100644 arch/openrisc/configs/simple_smp_defconfig create mode 100644 arch/openrisc/include/asm/cacheflush.h create mode 100644 arch/openrisc/include/asm/smp.h create mode 100644 arch/openrisc/include/asm/spinlock_types.h create mode 100644 arch/openrisc/include/asm/time.h create mode 100644 arch/openrisc/include/asm/unwinder.h create mode 100644 arch/openrisc/kernel/smp.c create mode 100644 arch/openrisc/kernel/stacktrace.c create mode 100644 arch/openrisc/kernel/sync-timer.c create mode 100644 arch/openrisc/kernel/unwinder.c create mode 100644 arch/openrisc/mm/cache.c create mode 100644 drivers/irqchip/irq-ompic.c From 1583927296557042610@xxx Mon Nov 13 05:26:21 +0000 2017 X-GM-THRID: 1583927296557042610 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread