PCI: Fix bus address conversion (was Re: commit rules for common git tree)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Anthony Liguori
Quoted 4 lines
Likewise, if you see a patch go in that you think would have benefited from being on the list, point it out. People are reasonable and if you have a good suggestion, they'll value your input and be likely to seek it out in the future.
Here is another patch that would have benefitted from review before commit:
Quoted 9 lines
commit
cf616802171905a9b6d087a69caa3b978b9cd741Author: Blue Swirl <[email protected]> Date: Sun Dec 27 20:52:36 2009 +0000PCI: Fix bus address conversion
Pass physical addresses to map functions instead of PCI bus addresses.
Signed-off-by Blue Swirl <[email protected]>
and previous related patches. The issues here that I see are:
- IMO mem_base should really be pci_bus_t, as pci address might be 64 bit mapped into 32 bit target
- I think pci to pci bridges need mem_base copied from parent to child, this does not seem to be done?
- map functions need to get pci_bus_t (for io), and now they get a cpu address there. The real fix IMO is moving the mapping to within pci.c. I think Avi had a patch to do this - any objections to refreshing it?
Blue Swirl, could you comment please?
Signature · 1 line
MST
Quoted 9 lines · Michael S. Tsirkin
Quoted 5 lines · Anthony Liguori
Quoted 4 lines
Likewise, if you see a patch go in that you think would have benefited from being on the list, point it out. People are reasonable and if you have a good suggestion, they'll value your input and be likely to seek it out in the future.
Here is another patch that would have benefitted from review before commit:
This is the kind of patch I send to the mailing first first.
I am still waiting for you to list patches from Anthony or me, that is the only two persons that have been pointed into your original mail.
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net
Quoted 1 line · Aurelien Jarno
I am still waiting for you to list patches from Anthony or me,
Why should I go look for them? I thought you basically agreed it's a good idea to post patches publically either before or - for trivial patches - after commit?
Signature · 1 line
MST
Quoted 27 lines · Michael S. Tsirkin
Quoted 5 lines · Anthony Liguori
Quoted 4 lines
Likewise, if you see a patch go in that you think would have benefited from being on the list, point it out. People are reasonable and if you have a good suggestion, they'll value your input and be likely to seek it out in the future.
Here is another patch that would have benefitted from review before commit:
Quoted 9 lines
commit
cf616802171905a9b6d087a69caa3b978b9cd741
Author: Blue Swirl <[email protected]>
Date: Sun Dec 27 20:52:36 2009 +0000PCI: Fix bus address conversion
Pass physical addresses to map functions instead of PCI bus addresses.
Signed-off-by Blue Swirl <[email protected]>and previous related patches. The issues here that I see are:
- IMO
mem_baseshould really bepci_bus_t, as pci address might be 64 bit mapped into 32 bit target- I think pci to pci bridges need
mem_basecopied from parent to child, this does not seem to be done?
Quoted 6 lines
- map functions need to get
pci_bus_t(for io), and now they get a cpu address there. The real fix IMO is moving the mapping to withinpci.c. I think Avi had a patch to do this - any objections to refreshing it?Blue Swirl, could you comment please?
The issues you point out (which may well be valid) are not related to the change made by the patch and should be addressed by new patches.
IIRC Avi promised to refresh his patch but never delivered. I think Paul also wanted that the bus translation would be handled in a more generic way (eliminate map functions).
Quoted 33 lines · Blue Swirl
Quoted 32 lines · Michael S. Tsirkin
Quoted 5 lines · Anthony Liguori
Quoted 4 lines
Likewise, if you see a patch go in that you think would have benefited from being on the list, point it out. People are reasonable and if you have a good suggestion, they'll value your input and be likely to seek it out in the future.
Here is another patch that would have benefitted from review before commit:
Quoted 9 lines
commit
cf616802171905a9b6d087a69caa3b978b9cd741
Author: Blue Swirl <[email protected]>
Date: Sun Dec 27 20:52:36 2009 +0000PCI: Fix bus address conversion
Pass physical addresses to map functions instead of PCI bus addresses.
Signed-off-by Blue Swirl <[email protected]>and previous related patches. The issues here that I see are:
- IMO
mem_baseshould really bepci_bus_t, as pci address might be 64 bit mapped into 32 bit target- I think pci to pci bridges need
mem_basecopied from parent to child, this does not seem to be done?- map functions need to get
pci_bus_t(for io), and now they get a cpu address there. The real fix IMO is moving the mapping to withinpci.c. I think Avi had a patch to do this - any objections to refreshing it?
Quoted 4 lines
Quoted 1 line
Blue Swirl, could you comment please?
The issues you point out (which may well be valid) are not related to the change made by the patch and should be addressed by new patches.
Yes, there's no harm in fixing them separately. The point I was making is it is better to post patches on list so issues can be pointed out and discussed without the need to dig through git history.
Quoted 3 lines
IIRC Avi promised to refresh his patch but never delivered. I think Paul also wanted that the bus translation would be handled in a more generic way (eliminate map functions).
I'd like to eliminate map functions as well. Do you have a link to the original patch btw?
Signature · 1 line
MST
Quoted 34 lines · Michael S. Tsirkin
Quoted 33 lines · Blue Swirl
Quoted 32 lines · Michael S. Tsirkin
Quoted 5 lines · Anthony Liguori
Quoted 4 lines
Likewise, if you see a patch go in that you think would have benefited from being on the list, point it out. People are reasonable and if you have a good suggestion, they'll value your input and be likely to seek it out in the future.
Here is another patch that would have benefitted from review before commit:
Quoted 9 lines
commit
cf616802171905a9b6d087a69caa3b978b9cd741
Author: Blue Swirl <[email protected]>
Date: Sun Dec 27 20:52:36 2009 +0000PCI: Fix bus address conversion
Pass physical addresses to map functions instead of PCI bus addresses.
Signed-off-by Blue Swirl <[email protected]>and previous related patches. The issues here that I see are:
- IMO
mem_baseshould really bepci_bus_t, as pci address might be 64 bit mapped into 32 bit target- I think pci to pci bridges need
mem_basecopied from parent to child, this does not seem to be done?- map functions need to get
pci_bus_t(for io), and now they get a cpu address there. The real fix IMO is moving the mapping to withinpci.c. I think Avi had a patch to do this - any objections to refreshing it?
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Blue Swirl, could you comment please?
The issues you point out (which may well be valid) are not related to the change made by the patch and should be addressed by new patches.
Yes, there's no harm in fixing them separately. The point I was making is it is better to post patches on list so issues can be pointed out and discussed without the need to dig through git history.
This may happen in any case, for example if you are busy and have no time to review the patch in time before it's committed. It has happened to me many times. Also patches that seem harmless can and will break stuff.
Quoted 6 lines
Quoted 3 lines
IIRC Avi promised to refresh his patch but never delivered. I think Paul also wanted that the bus translation would be handled in a more generic way (eliminate map functions).
I'd like to eliminate map functions as well. Do you have a link to the original patch btw?
I couldn't find it from the archives, maybe I didn't remember correctly. I think the discussions were about generic DMA.
Quoted 40 lines · Blue Swirl
Quoted 39 lines · Michael S. Tsirkin
Quoted 37 lines · Blue Swirl
Quoted 27 lines · Michael S. Tsirkin
Quoted 5 lines · Anthony Liguori
Quoted 4 lines
Likewise, if you see a patch go in that you think would have benefited from being on the list, point it out. People are reasonable and if you have a good suggestion, they'll value your input and be likely to seek it out in the future.
Here is another patch that would have benefitted from review before commit:
Quoted 9 lines
commit
cf616802171905a9b6d087a69caa3b978b9cd741
Author: Blue Swirl <[email protected]>
Date: Sun Dec 27 20:52:36 2009 +0000PCI: Fix bus address conversion
Pass physical addresses to map functions instead of PCI bus addresses.
Signed-off-by Blue Swirl <[email protected]>and previous related patches. The issues here that I see are:
- IMO
mem_baseshould really bepci_bus_t, as pci address might be 64 bit mapped into 32 bit target- I think pci to pci bridges need
mem_basecopied from parent to child, this does not seem to be done?Quoted 6 lines
- map functions need to get
pci_bus_t(for io), and now they get a cpu address there. The real fix IMO is moving the mapping to withinpci.c. I think Avi had a patch to do this - any objections to refreshing it?Blue Swirl, could you comment please?
The issues you point out (which may well be valid) are not related to the change made by the patch and should be addressed by new patches.
Quoted 8 lines
Quoted 3 lines
Yes, there's no harm in fixing them separately. The point I was making is it is better to post patches on list so issues can be pointed out and discussed without the need to dig through git history.
This may happen in any case, for example if you are busy and have no time to review the patch in time before it's committed. It has happened to me many times. Also patches that seem harmless can and will break stuff.
Yes, it may. But hey, give people a chance.
Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
IIRC Avi promised to refresh his patch but never delivered. I think Paul also wanted that the bus translation would be handled in a more generic way (eliminate map functions).
I'd like to eliminate map functions as well. Do you have a link to the original patch btw?
I couldn't find it from the archives, maybe I didn't remember correctly. I think the discussions were about generic DMA.
DMA? Sounds strange ... these are PCI memory/io/ROM mappings.
Signature · 1 line
MST
Re: [Qemu-devel] Re: PCI: Fix bus address conversion
In reply to Michael S. TsirkinAm 04.01.2010 um 19:33 schrieb Michael S. Tsirkin:
Quoted 19 lines
Quoted 5 lines · Anthony Liguori
Quoted 4 lines
Likewise, if you see a patch go in that you think would have benefited from being on the list, point it out. People are reasonable and if you have a good suggestion, they'll value your input and be likely to seek it out in the future.
Here is another patch that would have benefitted from review before commit:
Quoted 10 lines
commit
cf616802171905a9b6d087a69caa3b978b9cd741Author: Blue Swirl <[email protected]> Date: Sun Dec 27 20:52:36 2009 +0000PCI: Fix bus address conversion
Pass physical addresses to map functions instead of PCI bus
addresses.Signed-off-by Blue Swirl <[email protected]>
While irrelevant for this discussion, for the record, this one was posted to and tested on OpenBIOS list instead.
Andreas