Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9694584imu; Sun, 30 Dec 2018 03:08:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN7EdSM4zxuhRSNl4douQwcWqPD2/nqNwQoADGzkA+mW3S/nD8AfBeSFu8kvE470quvA+sNk X-Received: by 2002:a17:902:a6:: with SMTP id a35mr33889219pla.201.1546168107916; Sun, 30 Dec 2018 03:08:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546168107; cv=none; d=google.com; s=arc-20160816; b=KtW4cNqGCrCMrQlzlajGA0FoCR+0Av23HXCmkEN8akD9Kvt6xKCArMxg4grWcTeO60 MmTTh43Tc2T9x303zP4PX752/Td3tSm+8ZsFDdIWPJWf6UFOe4cXuL3BS1oDNSHfqWU0 yh8Le6U54MvvF0ffYnRbSf/0HDAmQdmWOFKbYBL1CleeY+M9rm9a21a61fE48a9mcg9u FOhfg4gLRCaz/yiNOoYQAe9V+4glFK+H4AfI/qYuDbj9RSPSAoe3XIMf7qC4QVZC5mjB Bqc6N4sqAYyph7wA4aLBFw+CZHeTZlHWg2glSyAxTM94E5O8nxpGTaNi30pHQjQklvvu DonA== 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 :references:in-reply-to:mime-version:dkim-signature; bh=lgP/UprBW1s6ALayPxXb+efhKUeteJhzopQLqYk5dbU=; b=mj23SG6ocV4qwMiDGh9lrClYwOxsJdbm1YgQFf49ym5qfrxchAZOYRh8cTNdxv4ihV bpBPEWxhvoDIylux0H6jRxMzdLIjX/o6ati9YY3F4FD/rVuTUSm/cTx3n8M+VskBt7yE 1UpSv712CY3aUES0wHqrMrdcBnkcwYFfcSsN5gN3OPonnVayA77nIKm8tLnEToLycaFT sY2VNtEmYGDD5RGXZ2Hwlf6SprokdSjdW+7kCvzmPcw3m4Q5JVZeq4I0RMOZVB+AgaDT aBcBSuiBVl9l/9d2tyxoIRrBz6iTqO3oNrys43mZr6Epw2Kvm0DtB/ZvRGXKq5BMl2+J Oo8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="IGwD/NKx"; 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=QUARANTINE 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 3si42560708plv.258.2018.12.30.03.08.09; Sun, 30 Dec 2018 03:08:27 -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="IGwD/NKx"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726154AbeL3LHQ (ORCPT + 99 others); Sun, 30 Dec 2018 06:07:16 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:33955 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbeL3LHP (ORCPT ); Sun, 30 Dec 2018 06:07:15 -0500 Received: by mail-it1-f195.google.com with SMTP id x124so33267055itd.1 for ; Sun, 30 Dec 2018 03:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lgP/UprBW1s6ALayPxXb+efhKUeteJhzopQLqYk5dbU=; b=IGwD/NKxwXPc+tVo974Tl/JCqE6Nkp4exCiRNW7qiI3QTKLtIwm1lLFh7Qfviw1Oqf LvBu2LX+o+PQveyBZXCaBGaDyD5SL1feMPcM7thBPOIBegEFE3b7jE+DSdkwkhfEvT/o Bi5OzhQ1YlJN8buFxhwoALC0Vuv3kJzT2nmtnBuV0R96QJCEc9Zkt1SF4pDoeAneNSu5 TEA/Pc8QmZJWD2UevGFFVLIgdtK1q7bBtMNncuthEQ9QJi4h6yLf+Htuxz9qsngK0MA/ e92YWlIqZqYtdYvinrrWbKuTb4F/AgMOpbTOpItonH6b/suyhvNhWM2cYHoqKQaT0wSP iL7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lgP/UprBW1s6ALayPxXb+efhKUeteJhzopQLqYk5dbU=; b=s/NedCYiA13COoykF7gDQzLo3IgwN690uXjZNznYPvIvBzjEADq/tGvC1AmcgMTi9i 99ZDvXgSXK7RQaCrrtAExw3ADr0Tf33s4cMTpu9JObTnAIxsxXCzTFAwoo2S0Nali4YF uCsuKjAI6pYnJ6gdkejnKxKcupOlsCVIyc7uNpmRD2dPb2A8plM8V6l3g0LeCaTO44Zw uwnSzwJWqHAcJM6dG6AO36SW7tqq+l5yk09OjTXOstzi6ZuIWWX44bPsypJPMAk8/dxa Tflk877XwQvIGmnmsnqi7j809W322gpw5gDeAtU4Pdy0ZHGEoQjRrt8GiSP/f33Urk4P blNg== X-Gm-Message-State: AA+aEWaL/QUQ46V//PsVoCjBRYFB39lUvMVw3Xu5Aj5KY/XMdmXWKiPB aqu8i5gx+iVYRkPPCVPuntAY+HGGd2RJcur6sBELyQ== X-Received: by 2002:a05:660c:781:: with SMTP id h1mr17721309itk.52.1546168033708; Sun, 30 Dec 2018 03:07:13 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a02:6f53:0:0:0:0:0 with HTTP; Sun, 30 Dec 2018 03:07:13 -0800 (PST) In-Reply-To: <20181228153759.3132-1-ubizjak@gmail.com> References: <20181228153759.3132-1-ubizjak@gmail.com> From: Uros Bizjak Date: Sun, 30 Dec 2018 12:07:13 +0100 Message-ID: Subject: Re: [PATCH] x86/asm: Use CC_SET/CC_OUT in percpu_cmpxchg16b_double To: linux-kernel@vger.kernel.org Cc: Uros Bizjak , x86@kernel.org 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 12/28/18, Uros Bizjak wrote: > Use CC_SET(z)/CC_OUT(z) instead of explicit setz instruction. > Using these two defines, the compiler that supports generation of > condition code outputs from inline assembly flags generates one > conditional jump instruction, e.g: Unfortunatelly, the 0day kernel test robot reports: [ 1.569154] DEBUG_LOCKS_WARN_ON(unlikely(early_boot_irqs_disabled)) [ 1.569287] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:2803 lockdep_hardirqs_on+0xc5/0x19e presumably due to unconditional interrupt enable in this_cpu_cmpxchg16b_emu. I have to somehow disable X86_FATURE_CX16 and thoroughly test the library path. Uros.