* [Qemu-devel] [PULL] rtl8139,pci,msi
@ 2012-06-07 16:38 Michael S. Tsirkin
2012-06-11 17:16 ` Anthony Liguori
0 siblings, 1 reply; 5+ messages in thread
From: Michael S. Tsirkin @ 2012-06-07 16:38 UTC (permalink / raw)
To: qemu-devel, Anthony Liguori
Cc: mst, jan.kiszka, fernando, kakuta.hayato, jbaron
The following changes since commit 8cc9b43f7c5f826b39af4b012ad89bb55faac29c:
target-microblaze: lwx/swx: first implementation (2012-06-04 10:19:46 +0200)
are available in the git repository at:
git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony
for you to fetch changes up to 11e02c393109508fde4d99650f003dd2d6029bc5:
pci_bridge_dev: fix error path in pci_bridge_dev_initfn() (2012-06-07 17:19:01 +0300)
----------------------------------------------------------------
rtl8139,pci,msi
This pull includes a bugfix for rtl8139 (this is independent of
Jason Wang's fix which Anthony has merged) and pci bridge hotplug bugfixes.
Further there are MSI/MSIX fixes and changes by Jan which should
also help merging device assignment down the road.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
----------------------------------------------------------------
Fernando Luis Vazquez Cao (1):
rtl8139: honor RxOverflow flag in can_receive method
Jan Kiszka (9):
ahci: Fix reset of MSI function
intel-hda: Fix reset of MSI function
ahci: Clean up reset functions
msi: Guard msi_reset with msi_present
msi: Invoke msi/msix_reset from PCI core
msi: Guard msi/msix_write_config with msi_present
msi: Invoke msi/msix_write_config from PCI core
msi: Use msi/msix_present more consistently
msix: Drop unused msix_bar_size
Jason Baron (2):
qdev: release parent properties on dc->init failure
pci_bridge_dev: fix error path in pci_bridge_dev_initfn()
Michael S. Tsirkin (1):
shpc: unparent device before free
hw/ide/ahci.c | 25 +++++++++++++++----------
hw/ide/ahci.h | 2 +-
hw/ide/ich.c | 19 ++++++++-----------
hw/intel-hda.c | 12 ------------
hw/ioh3420.c | 3 +--
hw/ivshmem.c | 1 -
hw/msi.c | 11 ++++++++---
hw/msix.c | 23 +++++++++--------------
hw/msix.h | 2 --
hw/pci.c | 8 ++++++++
hw/pci.h | 2 --
hw/pci_bridge.c | 10 ++--------
hw/pci_bridge_dev.c | 8 ++++----
hw/qdev.c | 1 +
hw/rtl8139.c | 2 +-
hw/shpc.c | 1 +
hw/virtio-pci.c | 3 ---
hw/xio3130_downstream.c | 3 +--
hw/xio3130_upstream.c | 3 +--
19 files changed, 61 insertions(+), 78 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PULL] rtl8139,pci,msi
2012-06-07 16:38 [Qemu-devel] [PULL] rtl8139,pci,msi Michael S. Tsirkin
@ 2012-06-11 17:16 ` Anthony Liguori
2012-06-11 17:22 ` Jan Kiszka
2012-06-11 18:07 ` Michael S. Tsirkin
0 siblings, 2 replies; 5+ messages in thread
From: Anthony Liguori @ 2012-06-11 17:16 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: jan.kiszka, fernando, jbaron, qemu-devel, kakuta.hayato
On 06/07/2012 11:38 AM, Michael S. Tsirkin wrote:
> The following changes since commit 8cc9b43f7c5f826b39af4b012ad89bb55faac29c:
>
> target-microblaze: lwx/swx: first implementation (2012-06-04 10:19:46 +0200)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony
>
> for you to fetch changes up to 11e02c393109508fde4d99650f003dd2d6029bc5:
>
> pci_bridge_dev: fix error path in pci_bridge_dev_initfn() (2012-06-07 17:19:01 +0300)
>
> ----------------------------------------------------------------
> rtl8139,pci,msi
>
> This pull includes a bugfix for rtl8139 (this is independent of
> Jason Wang's fix which Anthony has merged) and pci bridge hotplug bugfixes.
> Further there are MSI/MSIX fixes and changes by Jan which should
> also help merging device assignment down the road.
>
> Signed-off-by: Michael S. Tsirkin<mst@redhat.com>
>
> ----------------------------------------------------------------
> Fernando Luis Vazquez Cao (1):
> rtl8139: honor RxOverflow flag in can_receive method
>
> Jan Kiszka (9):
> ahci: Fix reset of MSI function
> intel-hda: Fix reset of MSI function
> ahci: Clean up reset functions
> msi: Guard msi_reset with msi_present
> msi: Invoke msi/msix_reset from PCI core
> msi: Guard msi/msix_write_config with msi_present
> msi: Invoke msi/msix_write_config from PCI core
> msi: Use msi/msix_present more consistently
> msix: Drop unused msix_bar_size
This last commit made GCC unhappy.
CC libhw64/hw/msix.o
/home/anthony/git/qemu/hw/msix.c: In function ‘msix_add_config’:
/home/anthony/git/qemu/hw/msix.c:58:14: error: variable ‘new_size’ set but not
used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
Regards,
Anthony Liguori
>
> Jason Baron (2):
> qdev: release parent properties on dc->init failure
> pci_bridge_dev: fix error path in pci_bridge_dev_initfn()
>
> Michael S. Tsirkin (1):
> shpc: unparent device before free
>
> hw/ide/ahci.c | 25 +++++++++++++++----------
> hw/ide/ahci.h | 2 +-
> hw/ide/ich.c | 19 ++++++++-----------
> hw/intel-hda.c | 12 ------------
> hw/ioh3420.c | 3 +--
> hw/ivshmem.c | 1 -
> hw/msi.c | 11 ++++++++---
> hw/msix.c | 23 +++++++++--------------
> hw/msix.h | 2 --
> hw/pci.c | 8 ++++++++
> hw/pci.h | 2 --
> hw/pci_bridge.c | 10 ++--------
> hw/pci_bridge_dev.c | 8 ++++----
> hw/qdev.c | 1 +
> hw/rtl8139.c | 2 +-
> hw/shpc.c | 1 +
> hw/virtio-pci.c | 3 ---
> hw/xio3130_downstream.c | 3 +--
> hw/xio3130_upstream.c | 3 +--
> 19 files changed, 61 insertions(+), 78 deletions(-)
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PULL] rtl8139,pci,msi
2012-06-11 17:16 ` Anthony Liguori
@ 2012-06-11 17:22 ` Jan Kiszka
2012-06-11 20:01 ` Michael S. Tsirkin
2012-06-11 18:07 ` Michael S. Tsirkin
1 sibling, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2012-06-11 17:22 UTC (permalink / raw)
To: Anthony Liguori
Cc: jbaron@redhat.com, fernando@oss.ntt.co.jp,
kakuta.hayato@oss.ntt.co.jp, qemu-devel@nongnu.org,
Michael S. Tsirkin
On 2012-06-11 19:16, Anthony Liguori wrote:
> On 06/07/2012 11:38 AM, Michael S. Tsirkin wrote:
>> The following changes since commit 8cc9b43f7c5f826b39af4b012ad89bb55faac29c:
>>
>> target-microblaze: lwx/swx: first implementation (2012-06-04 10:19:46 +0200)
>>
>> are available in the git repository at:
>>
>> git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony
>>
>> for you to fetch changes up to 11e02c393109508fde4d99650f003dd2d6029bc5:
>>
>> pci_bridge_dev: fix error path in pci_bridge_dev_initfn() (2012-06-07 17:19:01 +0300)
>>
>> ----------------------------------------------------------------
>> rtl8139,pci,msi
>>
>> This pull includes a bugfix for rtl8139 (this is independent of
>> Jason Wang's fix which Anthony has merged) and pci bridge hotplug bugfixes.
>> Further there are MSI/MSIX fixes and changes by Jan which should
>> also help merging device assignment down the road.
>>
>> Signed-off-by: Michael S. Tsirkin<mst@redhat.com>
>>
>> ----------------------------------------------------------------
>> Fernando Luis Vazquez Cao (1):
>> rtl8139: honor RxOverflow flag in can_receive method
>>
>> Jan Kiszka (9):
>> ahci: Fix reset of MSI function
>> intel-hda: Fix reset of MSI function
>> ahci: Clean up reset functions
>> msi: Guard msi_reset with msi_present
>> msi: Invoke msi/msix_reset from PCI core
>> msi: Guard msi/msix_write_config with msi_present
>> msi: Invoke msi/msix_write_config from PCI core
>> msi: Use msi/msix_present more consistently
>> msix: Drop unused msix_bar_size
>
> This last commit made GCC unhappy.
>
> CC libhw64/hw/msix.o
> /home/anthony/git/qemu/hw/msix.c: In function ‘msix_add_config’:
> /home/anthony/git/qemu/hw/msix.c:58:14: error: variable ‘new_size’ set but not
> used [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
Grr, compiler too old to have this.
Please just drop, I'll post a better cleanup in another round.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PULL] rtl8139,pci,msi
2012-06-11 17:16 ` Anthony Liguori
2012-06-11 17:22 ` Jan Kiszka
@ 2012-06-11 18:07 ` Michael S. Tsirkin
1 sibling, 0 replies; 5+ messages in thread
From: Michael S. Tsirkin @ 2012-06-11 18:07 UTC (permalink / raw)
To: Anthony Liguori; +Cc: jan.kiszka, fernando, jbaron, qemu-devel, kakuta.hayato
On Mon, Jun 11, 2012 at 12:16:09PM -0500, Anthony Liguori wrote:
> On 06/07/2012 11:38 AM, Michael S. Tsirkin wrote:
> >The following changes since commit 8cc9b43f7c5f826b39af4b012ad89bb55faac29c:
> >
> > target-microblaze: lwx/swx: first implementation (2012-06-04 10:19:46 +0200)
> >
> >are available in the git repository at:
> >
> > git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony
> >
> >for you to fetch changes up to 11e02c393109508fde4d99650f003dd2d6029bc5:
> >
> > pci_bridge_dev: fix error path in pci_bridge_dev_initfn() (2012-06-07 17:19:01 +0300)
> >
> >----------------------------------------------------------------
> >rtl8139,pci,msi
> >
> >This pull includes a bugfix for rtl8139 (this is independent of
> >Jason Wang's fix which Anthony has merged) and pci bridge hotplug bugfixes.
> >Further there are MSI/MSIX fixes and changes by Jan which should
> >also help merging device assignment down the road.
> >
> >Signed-off-by: Michael S. Tsirkin<mst@redhat.com>
> >
> >----------------------------------------------------------------
> >Fernando Luis Vazquez Cao (1):
> > rtl8139: honor RxOverflow flag in can_receive method
> >
> >Jan Kiszka (9):
> > ahci: Fix reset of MSI function
> > intel-hda: Fix reset of MSI function
> > ahci: Clean up reset functions
> > msi: Guard msi_reset with msi_present
> > msi: Invoke msi/msix_reset from PCI core
> > msi: Guard msi/msix_write_config with msi_present
> > msi: Invoke msi/msix_write_config from PCI core
> > msi: Use msi/msix_present more consistently
> > msix: Drop unused msix_bar_size
>
> This last commit made GCC unhappy.
>
> CC libhw64/hw/msix.o
> /home/anthony/git/qemu/hw/msix.c: In function ‘msix_add_config’:
> /home/anthony/git/qemu/hw/msix.c:58:14: error: variable ‘new_size’
> set but not used [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
>
> Regards,
>
> Anthony Liguori
Something like the following will be needed on top.
I'll fix it up but for now will drop this and resend pull request.
diff --git a/hw/msix.c b/hw/msix.c
index 2b86cdf..b64f109 100644
--- a/hw/msix.c
+++ b/hw/msix.c
@@ -55,21 +55,15 @@ static int msix_add_config(struct PCIDevice *pdev, unsigned short nentries,
{
int config_offset;
uint8_t *config;
- uint32_t new_size;
if (nentries < 1 || nentries > PCI_MSIX_FLAGS_QSIZE + 1)
return -EINVAL;
if (bar_size > 0x80000000)
return -ENOSPC;
- /* Add space for MSI-X structures */
- if (!bar_size) {
- new_size = MSIX_PAGE_SIZE;
- } else if (bar_size < MSIX_PAGE_SIZE) {
- bar_size = MSIX_PAGE_SIZE;
- new_size = MSIX_PAGE_SIZE * 2;
- } else {
- new_size = bar_size * 2;
+ /* Require aligned offset for MSI-X structures */
+ if (bar_size & ~(MSIX_PAGE_SIZE - 1)) {
+ return -EINVAL;
}
config_offset = pci_add_capability(pdev, PCI_CAP_ID_MSIX,
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PULL] rtl8139,pci,msi
2012-06-11 17:22 ` Jan Kiszka
@ 2012-06-11 20:01 ` Michael S. Tsirkin
0 siblings, 0 replies; 5+ messages in thread
From: Michael S. Tsirkin @ 2012-06-11 20:01 UTC (permalink / raw)
To: Jan Kiszka
Cc: jbaron@redhat.com, fernando@oss.ntt.co.jp, qemu-devel@nongnu.org,
Anthony Liguori, kakuta.hayato@oss.ntt.co.jp
On Mon, Jun 11, 2012 at 07:22:53PM +0200, Jan Kiszka wrote:
> On 2012-06-11 19:16, Anthony Liguori wrote:
> > On 06/07/2012 11:38 AM, Michael S. Tsirkin wrote:
> >> The following changes since commit 8cc9b43f7c5f826b39af4b012ad89bb55faac29c:
> >>
> >> target-microblaze: lwx/swx: first implementation (2012-06-04 10:19:46 +0200)
> >>
> >> are available in the git repository at:
> >>
> >> git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony
> >>
> >> for you to fetch changes up to 11e02c393109508fde4d99650f003dd2d6029bc5:
> >>
> >> pci_bridge_dev: fix error path in pci_bridge_dev_initfn() (2012-06-07 17:19:01 +0300)
> >>
> >> ----------------------------------------------------------------
> >> rtl8139,pci,msi
> >>
> >> This pull includes a bugfix for rtl8139 (this is independent of
> >> Jason Wang's fix which Anthony has merged) and pci bridge hotplug bugfixes.
> >> Further there are MSI/MSIX fixes and changes by Jan which should
> >> also help merging device assignment down the road.
> >>
> >> Signed-off-by: Michael S. Tsirkin<mst@redhat.com>
> >>
> >> ----------------------------------------------------------------
> >> Fernando Luis Vazquez Cao (1):
> >> rtl8139: honor RxOverflow flag in can_receive method
> >>
> >> Jan Kiszka (9):
> >> ahci: Fix reset of MSI function
> >> intel-hda: Fix reset of MSI function
> >> ahci: Clean up reset functions
> >> msi: Guard msi_reset with msi_present
> >> msi: Invoke msi/msix_reset from PCI core
> >> msi: Guard msi/msix_write_config with msi_present
> >> msi: Invoke msi/msix_write_config from PCI core
> >> msi: Use msi/msix_present more consistently
> >> msix: Drop unused msix_bar_size
> >
> > This last commit made GCC unhappy.
> >
> > CC libhw64/hw/msix.o
> > /home/anthony/git/qemu/hw/msix.c: In function ‘msix_add_config’:
> > /home/anthony/git/qemu/hw/msix.c:58:14: error: variable ‘new_size’ set but not
> > used [-Werror=unused-but-set-variable]
> > cc1: all warnings being treated as errors
>
> Grr, compiler too old to have this.
>
> Please just drop, I'll post a better cleanup in another round.
>
> Jan
I pushed a fixed for_anthony tag but didn't have time to test yet.
> --
> Siemens AG, Corporate Technology, CT T DE IT 1
> Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-11 20:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-07 16:38 [Qemu-devel] [PULL] rtl8139,pci,msi Michael S. Tsirkin
2012-06-11 17:16 ` Anthony Liguori
2012-06-11 17:22 ` Jan Kiszka
2012-06-11 20:01 ` Michael S. Tsirkin
2012-06-11 18:07 ` Michael S. Tsirkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).