-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional configuration options for DaynaPort emulation #1098
Comments
Note that this needs to be updated on the fly, since the Mac will boot into MacOS first, then switch over to BSD |
Here's diffs that enables both MacOS and NetBSD to use the DaynaPort emulation: |
@speakers-k64 It may now be possible to make progress on this ticket. For the upcoming bookworm release (also running on bullseye) I removed the strange delay work-around. Testing has shown that it is not needed for the Mac. @mzryz Would you be willing to test this with your Atari? @benjamink I'm aware that you have already spent a lot of time on #1306, but it would be great if you could also help here. I would like to verify whether the Mac really needs a work-around for the packet size. Most work-arounds in the piscsi code have turned out not to be required and some have even made things worse, so we should verify this. |
@uweseimet absolutely! Let me know what you need. |
@benjamink Thank you! As far as I can tell two things have to be tested, and I created a new branch testing_daynaport_2 for this. This branch is identical to issue_1306, which you have tested earlier, except for a work-around I removed. I would like to know whether networking still works for you with this branch. |
@uweseimet commit The Mac boots quickly without getting stuck on the AFP share mount but once the desktop loads the share is not mounted & an error pops up on the screen (I'll attach screenshot in a moment). |
@benjamink OK, thank you. I just reverted the change and now applied a different change in order to test the second work-around regarding the packet size. Please update your testing_daynaport_2 branch and test again. No "make clean" required, just "make". |
@uweseimet commit |
@benjamink Once more, thank you for testing. This means that the Mac would be fine with unconditionally setting the packet size to a minumum of 128 bytes. |
No problem. Just let me know if you need me to run any more. |
@benjamink Not currently, thank you for the offer. |
@anodynesoftware Just a quick question: Before we spend time on a trial-and-error approach, maybe you know by heart or can check whether your driver is fine with a minimum packet siize of 128 instead of 64 bytes? |
OK, with some help I have managed to use the daynaport emulation with an Atari. I have just tested transfers with a minimum packet size of 128 bytes and there has not been an obvious issue. |
Development note: For a work-around like the one suggested the initiator ID has also to be remembered. Otherwise there would be issues with more than one initiator on the same SCSI chain. |
@speakers-k64 In the latest develop branch the minimum packet size is 128 bytes now. The other change you suggested might also be added, but needs to take the initiator ID into account (see my previous comment). |
On 8 Nov 2023 at 14:08, Uwe Seimet wrote:
@anodynesoftware Just a quick question: Before we spend time on a
trial-and-error approach, maybe you know by heart or can check whether your
driver is fine with a minimum packet siize of 128 instead of 64 bytes?
Sorry for the delay in responding to this. All the driver cares about is that
the encapsulated Ethernet packet size is within the range specified by the
Ethernet standard. So if a packet is padded out to 128 bytes rather than 64 it
should make no difference.
Roger
|
@anodynesoftware Thank you for the feedback. Previous testing has confirmed this (eventually with a lot of help I was able to set up a running network on my TT). For PiSCSI the size has already been increased in the develop branch. |
Apologies for the delay .. I needed to acquire another Pi. I've verified that the development build works with MacOS 7.6 on my SE/30 and that, unmodified, it fails with NetBSD. In addition to the packet size increase, my NetBSD driver also requires no send delay. I'm attaching a revised version of my patch against the develop branch. Note that the NetBSD booter runs under MacOS so that piscsi must dynamically adapt to MacOS running first and then NetBSD gaining control. @uweseimet - I don't understand your comment about initiator ID: what hardware configuration would give rise to any issue and how so? |
@speakers-k64 Thank you for your feedback. Regarding the initiator ID, you need to consider this because there may be more than just one computer in the SCSI chain. I sometimes have a scenario like that, and this is also supported by the SCSI standard. Image your BSD Mac has SCSI ID 7 and is on the same chain as a MacOS Mac with SCSi ID 6. If both use the DaynaPort emulation you have to ensure that there is a delay for initiator ID 6, but not for initiator ID 7. The correct approach to resolving your issue would IMO be to only have a delay if the Mac driver that requires it is used. Otherwise there should be no delay. BSD does not work with it, the Atari does not need it. This means that having a delay should not be the rule, like now, but should be the exception, because there is only one broken driver that needs it. I will get back to you regarding a solution later this month. |
I understand the SCSI general case, but for the specifics of DaynaPort Ethernet over SCSI, more than one initiator was not the intended case. And is it even possible to have Mac with SSCI ID other than 7? |
I am quite sure that you can configure this for a Mac .With other platforms this is definitely possible, e.g. with regular PCs, Ataris and various workstations. |
Info
From Discord user "speakers#7740"
The text was updated successfully, but these errors were encountered: