Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1111338imm; Wed, 13 Jun 2018 13:34:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKx8GOijYRVaNBDP/9QP4Z26KBYrkDnWOvRv87KdWo+Uv9PdyjnHarVshjHGkMyQhUeEdLJ X-Received: by 2002:a62:458a:: with SMTP id n10-v6mr6374962pfi.215.1528922049399; Wed, 13 Jun 2018 13:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528922049; cv=none; d=google.com; s=arc-20160816; b=rmAkoz4ihP3PtU9MYgPDDIgXiKVu4EkSMGkSDvGsfbykrApCwWDfoBatoOjr4NbBMr NygwibVNo21l3bQw292HCDQB3yTBrSuQexPYk1EQUrVzcC6g8+OwgF8BfIk9IEpfT8e0 zwdW+LkdKAnjggvOVXljAdqwYN8IKSAoxCB2UrBFV9DeHP/8GBXK/fJ94ErXbt2A3Bgy wm1oZjYP1+xnz18Q4RbVchXUXBfiz0bD2Be9J0mhDhk3WxeBpJvucPfUyuntFbYJgbjp y6jRyiKWRsvoQeHLUSM4+GjTfVNRtAql7gkrvPFg5ITICQug/wL7J+1O3daJiqSK0Z0t kTaQ== 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=7WSIPZHgIbaPbrIZqcZVds5l7Jax7Xa/tvCd0dHMH58=; b=s3QIVzvLSADAhAr4Vaz7QnuJSsnktd1c9evSRttZVP0BddCvg3UiCWYD1n+iIW1MtT Np3o908i0zm/MA731P6XBO1Iv8sUCYTfhB3w+hBOAzwQ6LJkoPg5fsGjTvcv0e4krLx+ +nBOUjiqSxPZFyC6PQbQClVPaHIT5CsLui9O6xw+vbg2uwBipbRgZX900k1P5bB7V0+/ XWLhGGA+onNgdEsv5zRZBTCQLB12pe4k+FnkFE2ZmZylZ83L6WyGgEKZi5p7PS10uOBq NpFlDeleBaSoyLFpPgoTGnze/WZcGbSePNWEnKDvopTH/EB15ffHLV7C6ghgzDCOr26J jXWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=f92qb37g; 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 d10-v6si3682156pfh.119.2018.06.13.13.33.54; Wed, 13 Jun 2018 13:34:09 -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=f92qb37g; 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 S935623AbeFMUc3 (ORCPT + 99 others); Wed, 13 Jun 2018 16:32:29 -0400 Received: from mail-hk2apc01on0132.outbound.protection.outlook.com ([104.47.124.132]:11929 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754504AbeFMUc1 (ORCPT ); Wed, 13 Jun 2018 16:32:27 -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=7WSIPZHgIbaPbrIZqcZVds5l7Jax7Xa/tvCd0dHMH58=; b=f92qb37gtwkS7+TQPD0MVFTEnjdvny4R2ZHgOLZYRFY+Pj9Kslas7HX8zw/1jDhRBCzelVBndxaFVRHqvaEY151dXMLwbQLMD2g4kdXx6fVP41PPmH0Kd/cZV7/0CteMOADNZC18fxo+U7Zm//+wKuZuhQa+rkznxLAc4kZGZOQ= Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM (10.170.167.17) by KL1P15301MB0086.APCP153.PROD.OUTLOOK.COM (10.170.164.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.12; Wed, 13 Jun 2018 20:32:13 +0000 Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([fe80::91a9:30c3:c99f:a8bc]) by KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([fe80::91a9:30c3:c99f:a8bc%6]) with mapi id 15.20.0884.010; Wed, 13 Jun 2018 20:32:13 +0000 From: Dexuan Cui To: 'Bjorn Helgaas' , Haiyang Zhang , 'Lorenzo Pieralisi' , "'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+RTSKXedSJeHHcgCNtVtQAmSYQFABWDo6wA== Date: Wed, 13 Jun 2018 20:32:13 +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:a:c9b:1056:d0e5:5bb1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;KL1P15301MB0086;7:9u7oyX30zPApoK7ci1Ris93VkWkCNfOQ+TkbIHqtH+M4lmwSeyzGrwm68pFZhct0nmY+jIUhsTlyqGpiKQUANygpCSlzmZzgIpMJEjJu9NBjPcJrKklFEK7fOiFpoR6P0oOLoAza+9HrK+F6cGVapC8Dy9GFdZKM394n12mHUJ7NHkzQj7eFqlq679drXcUlCMaJVH1zEpSvbY69W0/y8n0TgD9K8Eu1GKZ7wGwm0/lCkAQAk+kxKnC8hCB+11Pk x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 91012310-5a5e-4c75-5885-08d5d16cbf35 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:KL1P15301MB0086; x-ms-traffictypediagnostic: KL1P15301MB0086: 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)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:KL1P15301MB0086;BCL:0;PCL:0;RULEID:;SRVR:KL1P15301MB0086; x-forefront-prvs: 07025866F6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39850400004)(396003)(376002)(346002)(366004)(39380400002)(189003)(199004)(9686003)(53936002)(105586002)(8936002)(81156014)(81166006)(86612001)(7416002)(6246003)(5250100002)(8676002)(1511001)(4326008)(229853002)(55016002)(14454004)(68736007)(5660300001)(10090500001)(8990500004)(305945005)(6116002)(7736002)(6436002)(46003)(74316002)(106356001)(102836004)(316002)(54906003)(76176011)(99286004)(2906002)(7696005)(110136005)(25786009)(53546011)(3280700002)(86362001)(446003)(6506007)(22452003)(97736004)(476003)(575784001)(486006)(478600001)(59450400001)(33656002)(11346002)(2900100001)(186003)(10290500003)(3660700001)(491001);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1P15301MB0086;H:KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: f3lBez3FWwMArhsjeCAAiG7DK4JMXRiluXUQF8mLlx8ZF9jeYVXdme6LXy0EMLDQ6oClEDgYQ3QCvFmiLotQP9vN58qb2gnIjpnE1aSBX4olrcZZOXLyDYzwbzkUgBr80vQvR6q5wCKAKuIWjj2vM3NyHlLXRbrT7kqu5Cajob/vjKiyka/S3vI5+wmj9fKJ spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91012310-5a5e-4c75-5885-08d5d16cbf35 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jun 2018 20:32:13.2526 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1P15301MB0086 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Dexuan Cui > Sent: Wednesday, June 6, 2018 17:15 > 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() >=20 > > 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.or= g; > > vkuznets@redhat.com; marcelo.cerri@canonical.com > > Subject: RE: [PATCH] PCI: hv: Fix a __local_bh_enable_ip warning in > > hv_compose_msi_msg() > > > > > 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.= org; > > > 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() = can > > also > > > run in tasklet context as the channel event callback. > > > > > > With CONFIG_PROVE_LOCKING=3Dy in the latest mainline, or old kernels = that > > > don't have commit f71b74bca637 ("irq/softirqs: Use lockdep to assert = IRQs > > are > > > disabled/enabled"), it turns out can we trigger a warning at the begi= nning > 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(). Thi= s is not an > > > issue because hv_pci_onchannelcallback() is not slow, and it not a ho= t 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 > > > --- > > > > Reviewed-by: Haiyang Zhang > > > > Thanks you. >=20 > Hi Lorenzo, >=20 > Can I have your reply to this patch? >=20 > -- Dexuan It looks Lorenzo's pci.git tree has not been updated for 3+ weeks. I guess Lorenzo may be on vacation.=20 @Bjorn, can this patch go through your tree? Should I resubmit it? Thanks, -- Dexuan