Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1486375imm; Wed, 6 Jun 2018 17:20:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI1ZCaY02mIY5EAllrpWIaxPm8CRYnlvhVi2zUrPaNiMx9LkLcLGdwBKdCyo6XSX70DfANq X-Received: by 2002:a17:902:8b8c:: with SMTP id ay12-v6mr5217254plb.74.1528330847483; Wed, 06 Jun 2018 17:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528330847; cv=none; d=google.com; s=arc-20160816; b=WQxd4OhlTLk5xCjxs6t978+EtT2oDnME6b6BU3hzlyLSZv0SEZ7TJbkWGjc1ikDfOp wTGSjE1szVRxZXaNHKsefbnavv8V2UR15Pf08OtxC0cABiaA7PKngypX2GN/7GOgYA28 jZ3ML/xrNetgWWqk1a6Wjk0fcSu5n9sHt1BN7Lkjvfi9G+7yr2y2qpJhdIRuH+IzjfSs N7RRx5AajrriuRiCzzMl6AqjrzyrLgovtp8k5IrhvHOIvtCTwM2dkKXzL6qcucICveU0 2ynWaA4GMI6eeAHqb50tV0DlafBsfpgRTwzrQbWf+XqrZcFZA1LOecbB5w75SttpO7D2 JCTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:msip_labels :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=AptLwHSunMkUed8bSwit4tAXP9VE5YqjHUXBIAfCZBY=; b=gpytX94CHV3ZEHWrkcPOifpkqJkC0pMoS9+cYSuEd9mocnHLX6q5k/f7B/8cKSRFqO h9HGuQU+1vLPGtm5wjhnX351pOu/Tq+6meAAxGAA3DbkKPClwhWheeIx1a3PJUryYdki fzN3Ev8x3ceEWj0iJxdalO3MGboqnSUrJm+G1b8F00Lp9khEBB9Rz3r42Qbe0x2w2Hgi N44jMNEP1VS9Dqj1Fdgil1HOOsVy9lm52vMjmPCKt5h/+NmYJwRhFxXerz9uzBNJdu4B TLn4yeglecPFcbxrekuLfRfhP5fG/cqH+TG8cVmQMLBS5RiTfZhP2DoUy8Vu564ZDfBR hBIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=YvgjEyx1; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b67-v6si50398724pfa.71.2018.06.06.17.19.49; Wed, 06 Jun 2018 17:20:47 -0700 (PDT) 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=@microsoft.com header.s=selector1 header.b=YvgjEyx1; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752423AbeFGAO6 (ORCPT + 99 others); Wed, 6 Jun 2018 20:14:58 -0400 Received: from mail-pu1apc01on0093.outbound.protection.outlook.com ([104.47.126.93]:15369 "EHLO APC01-PU1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752213AbeFGAO5 (ORCPT ); Wed, 6 Jun 2018 20:14:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AptLwHSunMkUed8bSwit4tAXP9VE5YqjHUXBIAfCZBY=; b=YvgjEyx12kEZ2G7YKdmFZSDLLnlSzV/4ajJSZOMjSv4RE+MYqQUrT05FSP52nKkVumBfC2Y86UXh6+y0T3A3Pg8fyEjfFaOgeYMKMQhbDfkQRDVydwSWUt1EQrgDnzdG8RbpNQJ4EgTmhxhn+xUSltTxnPHNK3UQtCpu/A1hw2I= Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM (10.170.167.17) by KL1P15301MB0054.APCP153.PROD.OUTLOOK.COM (10.170.168.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.2; Thu, 7 Jun 2018 00:14:40 +0000 Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([10.170.167.17]) by KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([10.170.167.17]) with mapi id 15.20.0863.004; Thu, 7 Jun 2018 00:14:40 +0000 From: Dexuan Cui To: Haiyang Zhang , Lorenzo Pieralisi , Bjorn Helgaas , "linux-pci@vger.kernel.org" , KY Srinivasan , Stephen Hemminger , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" CC: "linux-kernel@vger.kernel.org" , "driverdev-devel@linuxdriverproject.org" , "vkuznets@redhat.com" , "marcelo.cerri@canonical.com" Subject: RE: [PATCH] PCI: hv: Fix a __local_bh_enable_ip warning in hv_compose_msi_msg() Thread-Topic: [PATCH] PCI: hv: Fix a __local_bh_enable_ip warning in hv_compose_msi_msg() Thread-Index: AdPyKucLHxE0xn3+RTSKXedSJeHHcgCNtVtQAmSYQFA= Date: Thu, 7 Jun 2018 00:14:39 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=decui@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-05-23T00:18:18.8931354Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General authentication-results: spf=none (sender IP is ) smtp.mailfrom=decui@microsoft.com; x-originating-ip: [2001:4898:80e8:0:512f:6303:d09e:a11f] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;KL1P15301MB0054;7:wVzuXfuw1kHDyysSWN7ljOFu32WMu71vqketLcS2aQh1aPuKLjJHir22PK8XNbvC6wp/3xf/0G2QO1DeVNxWaLSstc8QLQMo6FQ57L2flBBYJosMfu1rin7AQN5WSmMfTplcoh63ZvRkVIY6jWJUMavvvX7sPDOhrLXAz+gkxl7wiKMlZ6hOonvr9u+5fh/U+iPSWtdtqrpVqO+aOKMff9sNEe579VJO1wt2p+KZmVSFXEcct/KKWnRaVo6kSH9k x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7193020);SRVR:KL1P15301MB0054; x-ms-traffictypediagnostic: KL1P15301MB0054: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(180628864354917)(89211679590171)(9452136761055)(211936372134217)(153496737603132)(198206253151910); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:KL1P15301MB0054;BCL:0;PCL:0;RULEID:;SRVR:KL1P15301MB0054; x-forefront-prvs: 06968FD8C4 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(396003)(39860400002)(366004)(346002)(376002)(199004)(189003)(105586002)(106356001)(77096007)(10290500003)(14454004)(10090500001)(22452003)(2906002)(316002)(6246003)(1511001)(3280700002)(3660700001)(8990500004)(4326008)(33656002)(2900100001)(68736007)(7416002)(6116002)(478600001)(5660300001)(53936002)(9686003)(11346002)(97736004)(54906003)(476003)(6506007)(53546011)(59450400001)(446003)(76176011)(486006)(102836004)(110136005)(46003)(99286004)(86612001)(81156014)(2201001)(86362001)(25786009)(8936002)(8676002)(74316002)(6436002)(7736002)(305945005)(81166006)(575784001)(55016002)(229853002)(7696005)(2501003);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1P15301MB0054;H:KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Zv3+ZLqmvGj7YCVaf9TJUVMQ2y3uXVmFg+RvQjPnld0QZBL8fN18A8ku2Qxr+uzDSHa79Z8Xgn8wrS4t0ebhY4fAv76f97Z+hSaVyC40w/E8yX05x+xgepsQP4ffiEeVe25puVOsPD6GLBe+0ba25m+dZyauli4f/v5NiCUL2bTuV0S447vS3CSYchVlHsXc spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 0e3ce6f9-2009-46a2-35af-08d5cc0ba99d X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e3ce6f9-2009-46a2-35af-08d5cc0ba99d X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2018 00:14:39.9987 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1P15301MB0054 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Haiyang Zhang > Sent: Friday, May 25, 2018 12:52 > To: Dexuan Cui ; Lorenzo Pieralisi > ; Bjorn Helgaas ; > linux-pci@vger.kernel.org; KY Srinivasan ; Stephen > Hemminger ; olaf@aepfle.de; > apw@canonical.com; jasowang@redhat.com > Cc: linux-kernel@vger.kernel.org; driverdev-devel@linuxdriverproject.org; > vkuznets@redhat.com; marcelo.cerri@canonical.com > Subject: RE: [PATCH] PCI: hv: Fix a __local_bh_enable_ip warning in > hv_compose_msi_msg() >=20 > > From: Dexuan Cui > > Sent: Tuesday, May 22, 2018 8:18 PM > > To: Lorenzo Pieralisi ; Bjorn Helgaas > > ; linux-pci@vger.kernel.org; KY Srinivasan > > ; Stephen Hemminger ; > > olaf@aepfle.de; apw@canonical.com; jasowang@redhat.com > > Cc: linux-kernel@vger.kernel.org; driverdev-devel@linuxdriverproject.or= g; > > Haiyang Zhang ; vkuznets@redhat.com; > > marcelo.cerri@canonical.com > > Subject: [PATCH] PCI: hv: Fix a __local_bh_enable_ip warning in > > hv_compose_msi_msg() > > > > > > Commit de0aa7b2f97d ("PCI: hv: Fix 2 hang issues in > hv_compose_msi_msg()") > > uses local_bh_disable()/enable(), because hv_pci_onchannelcallback() ca= n > also > > run in tasklet context as the channel event callback. > > > > With CONFIG_PROVE_LOCKING=3Dy in the latest mainline, or old kernels th= at > > don't have commit f71b74bca637 ("irq/softirqs: Use lockdep to assert IR= Qs > are > > disabled/enabled"), it turns out can we trigger a warning at the beginn= ing of > > __local_bh_enable_ip(), because the upper layer irq code can call > > hv_compose_msi_msg() with local irqs disabled. > > > > Let's fix the warning by switching to local_irq_save()/restore(). This = is not an > > issue because hv_pci_onchannelcallback() is not slow, and it not a hot = path. > > > > Fixes: de0aa7b2f97d ("PCI: hv: Fix 2 hang issues in hv_compose_msi_msg(= )") > > Signed-off-by: Dexuan Cui > > Cc: > > Cc: Stephen Hemminger > > Cc: K. Y. Srinivasan > > --- >=20 > Reviewed-by: Haiyang Zhang >=20 > Thanks you. Hi Lorenzo, Can I have your reply to this patch? -- Dexuan