Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1649012ybt; Thu, 2 Jul 2020 10:18:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLdedtYNQzHtoEbTgC4Vd8nuBhZ0h3o0Cm6NIDRgaQ3bsimcI29n3LRU5USqSNgsuszin9 X-Received: by 2002:a05:6402:1614:: with SMTP id f20mr34556009edv.129.1593710311603; Thu, 02 Jul 2020 10:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593710311; cv=none; d=google.com; s=arc-20160816; b=vuh34ZQbXXXx0t9R/7DKxViR45/0e6JtK8M7xg16n+SQMGpY5wc7MuGihqWjHtq8FG W4OH3ALao2OuDyN8OMxVEAslsk70aUd0dbsKtIpiM745fdMTSMSAqBmpeMgIuapxZtxG saz+EjkMIFPOWs23fgAfzrNmLwQnlPg/rJMq3O2ZdXNjzcLywHmo1AT3TrfdnfdKO1jU bG/UEItZTWUhmN4sotKnHShDUQLgUU6dWkuujyssjyZ2SRWHkQ5F1tB+yh+Aa4hbTx/F ep5zGbpT7LzkZPW7WbeCbsp6L+NI35RXeLiKXnxYIyK4bsPBosUR4jbe3EgJba11e0U8 MSvQ== 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=5MMSu0IKj9agZGg9cxf0hzKiayIrDKbeVQZ3G6flH/I=; b=l90khUxKiwcJ5a9Dp9yZSHPzPiu4M/xgcJENFHJX3jD/FcKmWa5CLNiD25E5VpQPiK D9c21rhd5aVRRCepMcKB4H8gp83OfB4HgxAg+zHqMt/dsnGG8d5J/yibKJ9W6NtSbSgK PYcEuWaDuu5YmL9qaANoV5UQ9kp+jXGWyGnrT5bYPWvH0kV7XAELoXFQl7Ycj1PEiUwK IHkDh/S1i8ZUzeN9+oRIve867+//704VGtAcxcoWqnCrVBUhAW3IQSKMCGS0MSEpmaOf JjEEhP4Le67BooE1XYYFaCo2LTdHMRqd4A6GmW8IXyErAQPrumcwG/fOYr8jfbNIuUl7 XRtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="oQfpCz/d"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si6183155ejx.493.2020.07.02.10.18.08; Thu, 02 Jul 2020 10:18:31 -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=@linaro.org header.s=google header.b="oQfpCz/d"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbgGBRPt (ORCPT + 99 others); Thu, 2 Jul 2020 13:15:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbgGBRPt (ORCPT ); Thu, 2 Jul 2020 13:15:49 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6132C08C5C1 for ; Thu, 2 Jul 2020 10:15:48 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id g2so16700537lfb.0 for ; Thu, 02 Jul 2020 10:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5MMSu0IKj9agZGg9cxf0hzKiayIrDKbeVQZ3G6flH/I=; b=oQfpCz/dy0nMemAHyrv4rMS95h2aDl4GHkuT8qBY18btLj85NW9YlPOKrGKA9duufq MN3gP2GdE2sL81ExpJYM3YTD07rEOHG/Pd64sI13/Iz51FYHGRwGaIOiPYpJeVMezdw5 zYWMoytINWNRDAh4jdUkVy67/llD3vZzEv4tkc35z4Qrp9em14RsK/EVjt8fAg9TvJ/k pIpzWM2YdDNsBwyOeMTK4f4CXT1UAagYeX+Bwzv9bvXaW+4pF8TQIVLt2GaEaF7LNCZe xdq8xwsgpaPtAuHTSihqtF+xC2AJCSB10WovcHxZV5/qW1g4GvGrWAFz8j0eRTabXNUJ XZ9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5MMSu0IKj9agZGg9cxf0hzKiayIrDKbeVQZ3G6flH/I=; b=Bg3IdzF3rpelvZqvxI/SmN9NaCuxOWpujguKFsRR9kYjoPNDFoo00Ri/e0pChJXirK CF5HJik4Uj/nvLGWNCIhNKRQKY1VwVbFyoowu7KRSB3F51wSFvIQXmJN3En/nLBfv2SB etyeKKi1V8Q1Y4irrpzmNe5fGa7GIPMUuBJC/iPkui6O/7WSdddhCX4Wkp3ehM6VMWL+ 7w2W0+MGHMn7utxDaghd3BgvbRW+M/KaBFg4f2u97j7Me6kao2ShrbalxisM6HKSDnW0 cej7xv2sxVVVudoaKFK7XYo3ylPvllvnC0Y1ZxDwGYJnlVBnDqx/ltnQVedsSBHC8zlL cCpw== X-Gm-Message-State: AOAM530PMpJnMn+JA3v6aBzrT8vWVjzqo4Ypca5mzSISGVPf0PLNeKX9 tVRzHk0jojj21eVn2EyBbHNCcUZhua8606p6yRpRQw== X-Received: by 2002:a05:6512:74f:: with SMTP id c15mr8465079lfs.26.1593710147267; Thu, 02 Jul 2020 10:15:47 -0700 (PDT) MIME-Version: 1.0 References: <87imfwd5f6.fsf@nanos.tec.linutronix.de> <8DD3180E-0E69-4FD6-92C3-311AAB3F688F@amacapital.net> <87d064d13p.fsf@nanos.tec.linutronix.de> <20200702150250.GS4800@hirez.programming.kicks-ass.net> In-Reply-To: <20200702150250.GS4800@hirez.programming.kicks-ass.net> From: Naresh Kamboju Date: Thu, 2 Jul 2020 22:45:35 +0530 Message-ID: Subject: Re: Perf: WARNING: arch/x86/entry/common.c:624 idtentry_exit_cond_rcu+0x92/0xc0 To: Peter Zijlstra Cc: Andy Lutomirski , Thomas Gleixner , Andy Lutomirski , open list , X86 ML , cj.chengjian@huawei.com, Arnaldo Carvalho de Melo , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Minchan Kim , Andrew Morton , Michel Lespinasse , lkft-triage@lists.linaro.org, Dave Hansen 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 On Thu, 2 Jul 2020 at 20:33, Peter Zijlstra wrote: > > How's this? > > DEFINE_IDTENTRY_DEBUG() is DEFINE_IDTENTRY_RAW on x86_64 > DEFINE_IDTENTRY on i386 > > calling exc_debug_*() from DEFINE_IDTENTRY() does a double layer of > idtentry_{enter,exit}*() functions. > > Also, handle_debug() is still a trainwreck, we should never get to > cond_local_irq_enable() when !user. > > Completely untested... Reported-by: Naresh Kamboju Tested-by: Naresh Kamboju The patch did not apply smooth. I have manually edited the patch [1] and applied it on top of linus master branch and tested on x86_64 and i386 and test pass and the reported WARNING gone. ref: patch link [1] https://pastebin.com/mBHkP1A6 Test jobs links, https://lkft.validation.linaro.org/scheduler/job/1538367#L1218 https://lkft.validation.linaro.org/scheduler/job/1538368#L1271 - Naresh