From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2563C433FE for ; Wed, 2 Nov 2022 14:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231337AbiKBOVq (ORCPT ); Wed, 2 Nov 2022 10:21:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231610AbiKBOV3 (ORCPT ); Wed, 2 Nov 2022 10:21:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C0A02A266; Wed, 2 Nov 2022 07:20:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 07EDD619D2; Wed, 2 Nov 2022 14:20:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E27BC433D7; Wed, 2 Nov 2022 14:20:56 +0000 (UTC) Date: Wed, 2 Nov 2022 10:20:54 -0400 From: Steven Rostedt To: Leonid Ravich Cc: Jason Gunthorpe , "mingo@redhat.com" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Yigal Korman , "linux-trace-kernel@vger.kernel.org" , Leon Ravich Subject: Re: BUG: ib_mad ftrace event unsupported migration Message-ID: <20221102102054.30f5adfc@rorschach.local.home> In-Reply-To: References: <20221102074457.08f538a8@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Wed, 2 Nov 2022 14:02:49 +0000 Leonid Ravich wrote: > >I'm guessing some driver's query_pkey op, but AFAIK we don't have any > >explicit pre-emption reenablements in the code - unless it is sneaky.. > trace infra uses preempt_disable_notrace/preempt_enable_notrace to disable/enable preemtion but my kernel compiled without CONFIG_PREEMPTION so this functions are only barriers - looks like the idea behind was to avoid involuntary preemtion but in our case it is a voluntary (there is a wait_for_completion in the query_pkey rabbit hole). > > so no scheduler here to warn about illegal migration. Well, you should be testing under different configs ;-) It would have given you the reason for the real bug. -- Steve