Repository navigation
Commit df57480
PCI: aardvark: Implement re-issuing config requests on CRS response
commit 223dec1 upstream.
Commit 43f5c77 ("PCI: aardvark: Fix reporting CRS value") fixed
handling of CRS response and when CRSSVE flag was not enabled it marked CRS
response as failed transaction (due to simplicity).
But pci-aardvark.c driver is already waiting up to the PIO_RETRY_CNT count
for PIO config response and so we can with a small change implement
re-issuing of config requests as described in PCIe base specification.
This change implements re-issuing of config requests when response is CRS.
Set upper bound of wait cycles to around PIO_RETRY_CNT, afterwards the
transaction is marked as failed and an all-ones value is returned as
before.
We do this by returning appropriate error codes from function
advk_pcie_check_pio_status(). On CRS we return -EAGAIN and caller then
reissues transaction.
Link: https://lore.kernel.org/r/20211005180952.6812-10-kabel@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent e7f2e2c commit df57480
1 file changed
Lines changed: 43 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| 702 | + | |
702 | 703 | | |
703 | 704 | | |
704 | 705 | | |
| |||
723 | 724 | | |
724 | 725 | | |
725 | 726 | | |
| 727 | + | |
726 | 728 | | |
727 | 729 | | |
728 | 730 | | |
729 | 731 | | |
730 | 732 | | |
731 | 733 | | |
732 | 734 | | |
| 735 | + | |
733 | 736 | | |
734 | 737 | | |
735 | 738 | | |
| 739 | + | |
736 | 740 | | |
737 | 741 | | |
738 | 742 | | |
| |||
750 | 754 | | |
751 | 755 | | |
752 | 756 | | |
| 757 | + | |
753 | 758 | | |
754 | 759 | | |
755 | 760 | | |
| |||
765 | 770 | | |
766 | 771 | | |
767 | 772 | | |
768 | | - | |
769 | | - | |
| 773 | + | |
| 774 | + | |
770 | 775 | | |
771 | 776 | | |
| 777 | + | |
772 | 778 | | |
773 | 779 | | |
774 | 780 | | |
| 781 | + | |
775 | 782 | | |
776 | 783 | | |
777 | 784 | | |
| 785 | + | |
778 | 786 | | |
779 | 787 | | |
780 | 788 | | |
781 | 789 | | |
782 | | - | |
| 790 | + | |
783 | 791 | | |
784 | 792 | | |
785 | 793 | | |
| |||
789 | 797 | | |
790 | 798 | | |
791 | 799 | | |
792 | | - | |
| 800 | + | |
793 | 801 | | |
794 | 802 | | |
795 | 803 | | |
796 | 804 | | |
797 | 805 | | |
798 | 806 | | |
799 | 807 | | |
800 | | - | |
| 808 | + | |
801 | 809 | | |
802 | 810 | | |
803 | 811 | | |
804 | 812 | | |
805 | 813 | | |
806 | | - | |
| 814 | + | |
807 | 815 | | |
808 | 816 | | |
809 | 817 | | |
| |||
1075 | 1083 | | |
1076 | 1084 | | |
1077 | 1085 | | |
| 1086 | + | |
1078 | 1087 | | |
1079 | 1088 | | |
1080 | 1089 | | |
| |||
1117 | 1126 | | |
1118 | 1127 | | |
1119 | 1128 | | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1123 | 1134 | | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1127 | 1144 | | |
1128 | | - | |
1129 | | - | |
1130 | 1145 | | |
1131 | 1146 | | |
1132 | 1147 | | |
| |||
1158 | 1173 | | |
1159 | 1174 | | |
1160 | 1175 | | |
| 1176 | + | |
1161 | 1177 | | |
1162 | 1178 | | |
1163 | 1179 | | |
| |||
1199 | 1215 | | |
1200 | 1216 | | |
1201 | 1217 | | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
1205 | 1223 | | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
1209 | 1227 | | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
| 1228 | + | |
1213 | 1229 | | |
1214 | | - | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
1215 | 1234 | | |
1216 | 1235 | | |
1217 | 1236 | | |
| |||
0 commit comments