Received: from eggs.gnu.org ([2001:4830:134:3::10]:53312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcZa7-0001nq-0y for qemu-devel@nongnu.org; Tue, 01 Aug 2017 11:59:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcZa2-0006zt-8H for qemu-devel@nongnu.org; Tue, 01 Aug 2017 11:59:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5554) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcZa2-0006zR-1X for qemu-devel@nongnu.org; Tue, 01 Aug 2017 11:59:34 -0400 References: <1501285073-2215-1-git-send-email-zuban32s@gmail.com> <1501285073-2215-3-git-send-email-zuban32s@gmail.com> <20170801183208-mutt-send-email-mst@kernel.org> <789fdbb3-73b8-9308-5d94-b3944fd70d03@redhat.com> <20170801184904-mutt-send-email-mst@kernel.org> From: Marcel Apfelbaum Message-ID: <7e95ab84-5a71-c483-0b18-5534ef5ff1bf@redhat.com> Date: Tue, 1 Aug 2017 18:59:16 +0300 MIME-Version: 1.0 In-Reply-To: <20170801184904-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 2/5] hw/pci: introduce pcie-pci-bridge device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Alexander Bezzubikov , qemu-devel@nongnu.org, Kevin OConnor , lersek@redhat.com, seabios@seabios.org, Gerd Hoffmann , Igor Mammedov , pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com On 01/08/2017 18:51, Michael S. Tsirkin wrote: > On Tue, Aug 01, 2017 at 06:45:13PM +0300, Marcel Apfelbaum wrote: >> On 01/08/2017 18:32, Michael S. Tsirkin wrote: >>> On Mon, Jul 31, 2017 at 09:40:41PM +0300, Alexander Bezzubikov wrote: >>>>>> +typedef struct PCIEPCIBridge { >>>>>> + /*< private >*/ >>>>>> + PCIBridge parent_obj; >>>>>> + >>>>>> + bool msi_enable; >>>>> >>>>> >>>>> Please rename the msi_enable property to "msi" in order >>>>> to be aligned with the existent PCIBridgeDev and >>>>> consider making it OnOffAuto for the same reason. >>>>> (I am not sure about the last part though, we have >>>>> no meaning for "auto" here) >>>>> >>>> >>>> Agreed about "msi", but OnOffAuto looks weird to me >>>> as we always want MSI to be enabled. >>> >> >> Hi Michael, >> >>> Why even have a property then? Can't you enable it unconditionally? >>> >> >> Because of a current bug in Linux kernel: >> https://www.spinics.net/lists/linux-pci/msg63052.html >> msi will not work until the patch is merged. Even when >> it will be merged, not all linux kernels will contain the patch. > > You should Cc stable to make sure they all gain it eventually. > Right! thanks, we missed cc-ing stable. Added stable to the mail thread. Marcel >> Disabling msi is a workaround for the above case. >> >> Thanks, >> Marcel > > Really enabling MSI without bus master is a bug that I'm not 100% sure > it even worth working around. But I guess it's not too bad to have a > work-around given it's this simple. >