Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10930701ybi; Thu, 25 Jul 2019 07:14:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFbOin4Ey0RSp02H+A7BYN5uSqcc5LeTv15raGZJNckRNvQZeiuVsqc2hfhfWaIKXpO9++ X-Received: by 2002:a17:90a:db08:: with SMTP id g8mr89895953pjv.39.1564064048812; Thu, 25 Jul 2019 07:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564064048; cv=none; d=google.com; s=arc-20160816; b=S8OEjdQoIdiDGO9IHxB8h3pQxxay1wX2C1eE1C32deax7Q2CU1FCfgBE9eJAiScIud lZ/KgFRC6OjOTPv8U9UVSa/1ceUaA/HDYPv5EgNbUyBTvApLX1XH8jsQQtekPdwcnc+h BfqS/Ne3yyQ6OathaH8YxaaGRT7n+JQPF4pm/VPjSRkw4mQi9zVU9FE536ZQITaiO3DO Wd4OkYrMQQteqWhHMG3VtmazDYTVKFzrJk04JT0+rP0R4tYo/PZi4nw51pQi4vdCivaJ 7GbY4Y8uuOuDRjkA4n4O0MEG6EHs9btDCJKmoalrN8XShr2o0421Y+KnNbGh0FkQliJv ZoHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=K9eMCw3jAxoAtaPEd9Qxf82N4fdegG1b1QPnake64r4=; b=CEklFmJHFs7PAEyXaZ32crVuthKn0vD7X7MPU8B8pz+fmv0As6C2oejbZpwvjyD1me M2Kyl+dYXu2avfsw/uqjhikfgfI+1ffD3eDGOocPClkWROn5It+8GersUQt7TRymXAea ppNZrHeobreCFpk4G5lRi+tTmZOaUuLk115K2bQ23eHT4cwb//pDDQyY5IuXb039hEaK FUNzOQBVr2VCDM8KZxdXIL6UXHbS0vZUP4Lk42EphACrF8NmqLHpCs0Ouz3T0bDA7q1e 83rv3ymwavPQbvIZyh2jwZDaiAeaTAcni35kf/TpyovXBekwh9WjckdW0I7quy955edH 7aLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si18070100pgd.261.2019.07.25.07.13.50; Thu, 25 Jul 2019 07:14:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727128AbfGYN0u (ORCPT + 99 others); Thu, 25 Jul 2019 09:26:50 -0400 Received: from mga05.intel.com ([192.55.52.43]:63208 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbfGYN0u (ORCPT ); Thu, 25 Jul 2019 09:26:50 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 06:26:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,306,1559545200"; d="scan'208";a="253932233" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga001.jf.intel.com with ESMTP; 25 Jul 2019 06:26:47 -0700 Received: from sivswdev08.ir.intel.com (sivswdev08.ir.intel.com [10.237.217.47]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id x6PDQl5I026858; Thu, 25 Jul 2019 14:26:47 +0100 Received: from sivswdev08.ir.intel.com (localhost [127.0.0.1]) by sivswdev08.ir.intel.com with ESMTP id x6PDQkKH017252; Thu, 25 Jul 2019 14:26:46 +0100 Received: (from gcabiddu@localhost) by sivswdev08.ir.intel.com with LOCAL id x6PDQjLP017244; Thu, 25 Jul 2019 14:26:45 +0100 Date: Thu, 25 Jul 2019 14:26:45 +0100 From: Giovanni Cabiddu To: "Sverdlin, Alexander (Nokia - DE/Ulm)" Cc: "qat-linux@intel.com" , "linux-crypto@vger.kernel.org" , Herbert Xu , "David S. Miller" , "stable@vger.kernel.org" Subject: Re: [PATCH] crypto: qat - Silence smp_processor_id() warning Message-ID: <20190725132645.GA16573@sivswdev08.ir.intel.com> References: <20190723072347.16247-1-alexander.sverdlin@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190723072347.16247-1-alexander.sverdlin@nokia.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Alexander, Thanks for you patch. On Tue, Jul 23, 2019 at 07:24:01AM +0000, Sverdlin, Alexander (Nokia - DE/Ulm) wrote: > It seems that smp_processor_id() is only used for a best-effort > load-balancing, refer to qat_crypto_get_instance_node(). It's not feasible > to disable preemption for the duration of the crypto requests. Therefore, > just silence the warning. This commit is similar to e7a9b05ca4 > ("crypto: cavium - Fix smp_processor_id() warnings"). > > Silences the following splat: > BUG: using smp_processor_id() in preemptible [00000000] code: cryptomgr_test/2904 > caller is qat_alg_ablkcipher_setkey+0x300/0x4a0 [intel_qat] > CPU: 1 PID: 2904 Comm: cryptomgr_test Tainted: P O 4.14.69 #1 How did you reproduce this problem? Thanks, -- Giovanni