Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp87943ybt; Thu, 9 Jul 2020 16:16:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1PCsHNQv+zIS3YyvDQoDUrUp7pVHncccUYM6cNDgEFZ22IrAmhmNpifbPmAIpU7TAi5n1 X-Received: by 2002:aa7:d90f:: with SMTP id a15mr61185864edr.86.1594336615339; Thu, 09 Jul 2020 16:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594336615; cv=none; d=google.com; s=arc-20160816; b=oquV9EdbehFy9qe6gEeFPtoBPtPwen4LSbuLgYJp27AZXiVsI7+mpC/LlsctLNBO3L EOQoXLVwGtV2ghNqmjkDqQ/7dIYh0NghPN62xssQnBo+E0dcsta8SBJV1MVbmBvsVt/Y qKvNOWuW7oAsczmsJIo1u+6ZABOGWxwBEPTa3uSh44KXsYvN3vMhpmLOiBWgf8M4Gvhn 2jycQ1C3xTnE0VZT+k8ycmDl+cpzH+2LxW+gUSunBckwO8r4XYxD1//Acy3xEFNyLqYZ Ojflx6hZPP9NVn9c/ThZ31JHkdmwPWksA4yYoWWKvS8kmFmiSA+V4z8r8PH/P6zZGpdA WBFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=y7HZIpsgP55ivk5gQX9iALwjFera11VZ4jSx1L2/CX8=; b=RhbrQVGPOtyEb0WpEKwb6jowfIZq0howLoBV5G4e0QsUNwyqRkozGf4fMunuJIezLA kY4eEAb3SDlHqtBCa25901IuZtgHk3epZvHtkS5OUuJc5LXEeTElaB7hSr1N0PuIkfY4 f3xh7VusHP5/jr8jzUmRx78OxpsfrtWgZ4Ihf0nimpLhkduCIV+PjQFJJnX1LWLVjIv4 rF105xbxc2qu93epUVtkrTtsPFdBv1vexvCr+qqAap61GDTl0y/aNwAjt2jmmVkCKQZx mTCVGBOLWKrItUp4s9IHGj6Obn1NblK95kE1DEZFDFGTQbsa1wVzsNgvEIcejOolksbr HF3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sTKNHyrG; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si3027839edy.476.2020.07.09.16.16.32; Thu, 09 Jul 2020 16:16:55 -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=@kernel.org header.s=default header.b=sTKNHyrG; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726817AbgGIXPp (ORCPT + 99 others); Thu, 9 Jul 2020 19:15:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:42572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726311AbgGIXPp (ORCPT ); Thu, 9 Jul 2020 19:15:45 -0400 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9373420786; Thu, 9 Jul 2020 23:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594336544; bh=WKp2RVFe68SGsfy7Hqg46eACLbZJztj8u5UjJnydzJw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sTKNHyrGxjZHVmElPsUrMB0oPbGEmh5sIBbuCWoItrDYOtZOQtKBzRCD1UOwRW0ps xYuzzensHJN29VXkbSU6m244+1lhHoeEjAUc8IQj6dY7k1sZULyLeqTvV0ZhOND5I2 qIvmbbAXmhQevnKbX//nYKBoVOqX97awD/JvDNdA= Received: by mail-lj1-f180.google.com with SMTP id h19so4255625ljg.13; Thu, 09 Jul 2020 16:15:44 -0700 (PDT) X-Gm-Message-State: AOAM532uWMyOy5m3fbk7zDok68KOihMBZRyldLWzAHuloYpDFEvb4KkP U8SjEndGk57z1Lt/5BO+kC3sQNO0yZBP2V3UvjM= X-Received: by 2002:a05:651c:111:: with SMTP id a17mr16456695ljb.265.1594336542920; Thu, 09 Jul 2020 16:15:42 -0700 (PDT) MIME-Version: 1.0 References: <1593266228-61125-1-git-send-email-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Fri, 10 Jul 2020 07:15:31 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V2 0/3] riscv: Enable LOCKDEP To: Palmer Dabbelt Cc: Paul Walmsley , Anup Patel , Greentime Hu , Zong Li , Albert Ou , Thomas Gleixner , Tycho Andersen , Nick Hu , linux-riscv , Linux Kernel Mailing List , linux-csky@vger.kernel.org, Guo Ren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you, Palmer On Fri, Jul 10, 2020 at 6:06 AM Palmer Dabbelt wrote: > > 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! -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/