Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1178974ybe; Thu, 5 Sep 2019 11:30:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJo8ClhVO4oSRteWR8nwH8wqT/Oo4I52ovM+pGTnOLuUEFChP4UNKK44658ptngF8yjILY X-Received: by 2002:a62:5c5:: with SMTP id 188mr5584356pff.227.1567708230754; Thu, 05 Sep 2019 11:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567708230; cv=none; d=google.com; s=arc-20160816; b=cO2yqC1dniE54sOaADBIJ/eSuv0J84DW2ovzkllLz8kXz4Kn5VaDDCiHOsqlg23Chp cSdsgl/+uWjgFfz3+F4D/+ix7AwFaZrh9rb1Ir4BluggCkZ3O4GY7UOf+a7EBO2GSAbu MrUvozcEa+xJcAbs7ULdmvE0gJsZ9+122RibxOL0ASlTSOvylOMFDo6b9jaqKF8CWB01 sVFrYrdC+wEJjjg1u0sUoQSaIcI0nHooB7g3qXY+4LYMc9hN+HBd8mR4P4eJVdDvxFD9 m9s59nQr2ljMOm/ez1KSaYUxy49KT8u1Vmnebj+L4SGIgdlV7aF+M5QZ81h5F3nSrj/Q H7UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=C9WCa8n9bmVGGB5ga9In+tesJS93Rr3Gmtin8llWgPg=; b=H+Sj7iRNdexOzSdXgViLr22l/PYNpCEN2JG5DSI4YU2sWZTEbsrKAz/0OHaQIPaWls q6PWcRFH1KokEmrixrwxOJTEdcbEsWbnwghZSUOZ5zRVM8hKPLXkXjxfw0eDrUKm3idC RA9rBHusVkIcbjKXrdoPAsaBzFqohmInhDafdU2TCveDRSJmvftoBjrY2l2KXxe1V9uP QP4Q3JP8vQjxt35yykyM7fxkXE658iETK8s48MLhdw2rsf5T5fgaYFPzfZlZ0TDz4eG5 I14mnV3Vg8FS8u4mSLC8+SNKBm9useQPEMU6yg3Km3P8zUOP7qyY92Jw7EpFcs0ImvI5 cMDg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e91si1399723pjk.82.2019.09.05.11.30.14; Thu, 05 Sep 2019 11:30:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390116AbfIEOxs (ORCPT + 99 others); Thu, 5 Sep 2019 10:53:48 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47076 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726080AbfIEOxr (ORCPT ); Thu, 5 Sep 2019 10:53:47 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A22CFA20C1A2DEF0BBF8; Thu, 5 Sep 2019 22:53:43 +0800 (CST) Received: from [127.0.0.1] (10.202.227.238) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Thu, 5 Sep 2019 22:53:34 +0800 Subject: Re: PCI/kernel msi code vs GIC ITS driver conflict? To: Marc Zyngier , Andrew Murray References: <5fd4c1cf-76c1-4054-3754-549317509310@kernel.org> <20190904102537.GV9720@e119886-lin.cambridge.arm.com> <8f1c1fe6-c0d4-1805-b119-6a48a4900e6d@kernel.org> <84f6756f-79f2-2e46-fe44-9a46be69f99d@huawei.com> <651b4d5f-2d86-65dc-1232-580445852752@kernel.org> <8ac8e372-15a0-2f95-089c-c189b619ea62@huawei.com> <73c22eaa-172e-0fba-7a44-381106dee50d@kernel.org> CC: Thomas Gleixner , Bjorn Helgaas , Linux PCI , Linuxarm , "luojiaxing@huawei.com" , "linux-kernel@vger.kernel.org" From: John Garry Message-ID: Date: Thu, 5 Sep 2019 15:53:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.238] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> > >> > root@(none)$ echo 0000:74:02.0 > ./sys/bus/pci/drivers/hisi_sas_v3_hw/unbind >> > >> > >> > >> > [ 34.806156] Freed devid 7410 LPI 0 >> > [ 34.809555] Freed devid 7410 LPI 0 >> > [ 34.812951] Freed devid 7410 LPI 0 >> > [ 34.816344] Freed devid 7410 LPI 0 >> > [ 34.819734] Freed devid 7410 LPI 0 >> > [ 34.823122] Freed devid 7410 LPI 0 >> > [ 34.826512] Freed devid 7410 LPI 0 >> > [ 34.829901] Freed devid 7410 LPI 0 >> > [ 34.833291] Freed devid 7410 LPI 0 >> > [ 34.836680] Freed devid 7410 LPI 0 >> > [ 34.840071] Freed devid 7410 LPI 0 >> > [ 34.843461] Freed devid 7410 LPI 0 >> > [ 34.846848] Freed devid 7410 LPI 0 >> > [ 34.850238] Freed devid 7410 LPI 0 >> > [ 34.853627] Freed devid 7410 LPI 0 >> > [ 34.857017] Freed devid 7410 LPI 0 >> > [ 34.860406] Freed devid 7410 LPI 0 >> > [ 34.863797] Unmap devid 7410 shared 0 lpi_map >> > [ 34.868229] Unmap devid 7410 >> > root@(none)$ >> > root@(none)$ >> > root@(none)$ echo 0000:74:02.0 > ./sys/bus/pci/drivers/hisi_sas_v3_hw/bind >> > [ 39.158802] scsi host0: hisi_sas_v3_hw >> > [ 40.383384] ITS: alloc 9920:32 >> > [ 40.386429] ITT 32 entries, 5 bits >> > [ 40.389970] ID:0 pID:9920 vID:23 >> > [ 40.393188] ID:1 pID:9921 vID:24 >> > [ 40.396404] ID:2 pID:9922 vID:25 >> > [ 40.399621] ID:3 pID:9923 vID:26 >> > [ 40.402836] ID:4 pID:9924 vID:27 >> > [ 40.406053] ID:5 pID:9925 vID:28 >> > [ 40.409269] ID:6 pID:9926 vID:29 >> > [ 40.412485] ID:7 pID:9927 vID:30 >> > [ 40.415702] ID:8 pID:9928 vID:31 >> > [ 40.418916] ID:9 pID:9929 vID:32 >> > [ 40.422132] ID:10 pID:9930 vID:33 >> > [ 40.425435] ID:11 pID:9931 vID:34 >> > [ 40.428739] ID:12 pID:9932 vID:35 >> > [ 40.432042] ID:13 pID:9933 vID:36 >> > [ 40.435345] ID:14 pID:9934 vID:37 >> > [ 40.438648] ID:15 pID:9935 vID:38 >> > [ 40.441951] ID:16 pID:9936 vID:39 >> > >> > >> > > Awesome. Can I take this as a Tested-by? Sure, btw, could you please also add: Reported-by: Jiaxing Luo ... as he did initial discovery and analysis on the problem. > >> > Btw, I hacked the "Freed devid %x event %d LPI %ld\n" print to remove >> > the "event" value, as you may have noticed. > Yup, not meaningful for the problem at hand. > > Thanks again for your help! > Thanks for the help, John > M.