Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp48740ybt; Thu, 9 Jul 2020 15:08:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1MyWQViiSjdJjYiT0sqwGq9Y5XZWpQayUEXhA/yJYpf9eep3sWmTA5a1B3sIYdcef691H X-Received: by 2002:a05:6402:1c8f:: with SMTP id cy15mr74861961edb.308.1594332500540; Thu, 09 Jul 2020 15:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594332500; cv=none; d=google.com; s=arc-20160816; b=upN5n1dvv59RoENTD0OH9cx5IgpHW8Be8uUzgMSYdOMKKawCfZ9z+rc9Q8gMK0x9zv N2v0MXOnSaU9sfdePrd7xpQsjZ7FyYQWAOlCG2IbnXfksPvg5xEzETgujM7JCry2w3Ei X+Kp6XNKTnuf8Yv6ydyrwPZP8pfY7mUCpcDBmm5mG18cjCNj6CW06EbkSE85aj27b7o5 iibx6VVi2Fe6ViYwDv7RDSaMnrG9aWJYZoACzOW4AnXGXOdtDbIl4O8Aj/+sPupTY8LU KO9eyFOWDhPs2pUYrKl891Oh+DEr8HaCXBun/PYqRnaqs7YTWtYT8JOf4Ym7OKp/KEmo uHDA== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=8CK0I8zJbGlH0rJDFXmQvv5rpjqRFDp888sWR1bVovw=; b=X5/nDu6A2hrpFebM6VZdZsVEOSPub1/wAL7QIhUjKXpADLM8TOjYDJZ/UEZrQFmcCV UgD4JH3hep105zyqqWAnCTlyr4uZU96hAlK/ynXvPChOGrArTaOLxUCR3FQU3eR8UaFh c+amTi7jdf0oEXsgWqcC1f7DsXgybImPCK7XE0uoldSKb7EqYVoe+6ToLgXJt1+RQWw/ Gjp6xd5xN82UwZy7NNwmfONulzFRBukdFKBwimUVnS+SC+13QTVLNJabinMkmhFIMPZk dfMyRo5BQbOQBGGnzOOCJbcg3TvQTEyADHk2Y57XjxZ8FoNMZouH+CSS/Ul8BSKYoHx+ nqUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="s0JZ5pO/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si2699949ejf.344.2020.07.09.15.07.16; Thu, 09 Jul 2020 15:08:20 -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=@google.com header.s=20161025 header.b="s0JZ5pO/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726789AbgGIWGo (ORCPT + 99 others); Thu, 9 Jul 2020 18:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbgGIWGo (ORCPT ); Thu, 9 Jul 2020 18:06:44 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42BE7C08C5DC for ; Thu, 9 Jul 2020 15:06:44 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id k4so1368067pld.12 for ; Thu, 09 Jul 2020 15:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=8CK0I8zJbGlH0rJDFXmQvv5rpjqRFDp888sWR1bVovw=; b=s0JZ5pO/GZ7fXyqQDzDmx8kuDguwspLqorvrH+OdYjBFl/uCF0Be7BpE7WGfgBRcen 4Htj9cQoZMRn4Z3ToPS9QIEmkfghneRkevOktoFcG7CLk7KCwN8ZyJsceZArCZZB7TBu IGhyyBu38L+7+mARgarW6v6rqsVnMQKlVY45ClkQpAPr/4D5jgxo9kTmKcVSn9RTkkYL eMsOxA2kaMLQ5LTNrvMTzqstPrtXoLW2AAoozhtuV31v0esflicl6y61CUlNWmJc1oxj Zt/saYZAe1nU4NqGrqLWw5l2dmiBQix+rIP2lxS/8JIODBlTgY7VEUtpa0VT92815QnE 1+jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=8CK0I8zJbGlH0rJDFXmQvv5rpjqRFDp888sWR1bVovw=; b=UqR7Fd1129DKuX2vGyt37jSx6uNvLBXHl8SOiXWGeD0NjBoIBn0wkLZtN222EWrS/1 e8V0rqBWgHCVVVHrbMRguwzzHa8f3wR/WJX9Qe5cjVeMBT3hno6vRgQLOIx9d9Eggcpp WqXjRU7l2MwVkT4lS2tEdb//KIKyCNGAGZnS4VTIPSIzhBrtZvrxSPoWOj++Iz9FOVZj UONWPFbsK0YKetAn7CrgtOFC4znjRuJTzsr8fRr5erOeoi8aK+2o9el0DqBbF+Y4l9zB hCVDClziYHHJ3QOQBV6+S0XjJ3MMv2Lbd8QcDtLguOHDFyduc4CXGMpUPMxDgn5XdLe9 RDxg== X-Gm-Message-State: AOAM531CLBdrrYeBzSTamz3sU7+0LSsSv93Bp/Z26nLgZyyxjvc4kJP8 HMR3KEgoT1HjwIT6gX7OBqv2VQ== X-Received: by 2002:a17:90a:2367:: with SMTP id f94mr2400859pje.20.1594332403444; Thu, 09 Jul 2020 15:06:43 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id q20sm3875614pfn.111.2020.07.09.15.06.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 15:06:42 -0700 (PDT) Date: Thu, 09 Jul 2020 15:06:42 -0700 (PDT) X-Google-Original-Date: Thu, 09 Jul 2020 14:48:00 PDT (-0700) Subject: Re: [PATCH V2 0/3] riscv: Enable LOCKDEP In-Reply-To: <1593266228-61125-1-git-send-email-guoren@kernel.org> CC: Paul Walmsley , anup@brainfault.org, greentime.hu@sifive.com, zong.li@sifive.com, aou@eecs.berkeley.edu, tglx@linutronix.de, tycho@tycho.ws, nickhu@andestech.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, guoren@linux.alibaba.com From: Palmer Dabbelt To: guoren@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 27 Jun 2020 06:57:05 PDT (-0700), guoren@kernel.org wrote: > From: Guo Ren > > Lockdep is needed by proving the spinlocks and rwlocks. To support it, > we need to add TRACE_IRQFLAGS codes in kernel/entry.S. These patches > follow Documentation/irqflags-tracing.txt. > > Fixup 2 bugs that block the lockdep implementation. > > --- > Changes in v2 > - Remove sX regs recovery codes which are unnecessary, because > callee will handle them. Thx Greentime :) > > - Move "restore a0 - a7" to handle_syscall, but if _TIF_SYSCALL_WORK > is set, "restore a1 - a7" is still duplicated. I prefer a C wrapper > for syscall. > > Guo Ren (2): > riscv: Fixup static_obj() fail > riscv: Enable LOCKDEP_SUPPORT & fixup TRACE_IRQFLAGS_SUPPORT > > Zong Li (1): > riscv: Fixup lockdep_assert_held with wrong param cpu_running > > arch/riscv/Kconfig | 3 +++ > arch/riscv/kernel/entry.S | 33 ++++++++++++++++++++++++++++++++- > arch/riscv/kernel/smpboot.c | 1 - > arch/riscv/kernel/vmlinux.lds.S | 2 +- > 4 files changed, 36 insertions(+), 3 deletions(-) These are on for-next. As far as I can tell lockdep is working, but I'm just doing some simple boot tests. Thanks!