[PATCH 0/3] escc: fix R_STATUS when SDLC mode is enabled

Mark Cave-Ayland posted 3 patches 2 years, 7 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210829100103.1950-1-mark.cave-ayland@ilande.co.uk
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>
hw/char/escc.c | 174 ++++++++++++++++++++++++++++++-------------------
1 file changed, 106 insertions(+), 68 deletions(-)
[PATCH 0/3] escc: fix R_STATUS when SDLC mode is enabled
Posted by Mark Cave-Ayland 2 years, 7 months ago
Here is another small set of ESCC fixes from my attempts to boot MacOS on the q800
machine.

When MacOS loads the OpenTransport extension on boot it attempts to enable
SDLC mode on the ESCC. QEMU's emulation doesn't support SDLC mode, but without
these fixes the active low STATUS_SYNC bit in R_STATUS is continually
asserted causing the extension to hang on startup as it believe it is constantly
receiving LocalTalk responses during its initial negotiation phase.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


Mark Cave-Ayland (3):
  escc: checkpatch fixes
  escc: fix R_STATUS channel reset value
  escc: fix STATUS_SYNC bit in R_STATUS register

 hw/char/escc.c | 174 ++++++++++++++++++++++++++++++-------------------
 1 file changed, 106 insertions(+), 68 deletions(-)

-- 
2.20.1


Re: [PATCH 0/3] escc: fix R_STATUS when SDLC mode is enabled
Posted by Peter Maydell 2 years, 7 months ago
On Sun, 29 Aug 2021 at 11:05, Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk> wrote:
>
> Here is another small set of ESCC fixes from my attempts to boot MacOS on the q800
> machine.
>
> When MacOS loads the OpenTransport extension on boot it attempts to enable
> SDLC mode on the ESCC. QEMU's emulation doesn't support SDLC mode, but without
> these fixes the active low STATUS_SYNC bit in R_STATUS is continually
> asserted causing the extension to hang on startup as it believe it is constantly
> receiving LocalTalk responses during its initial negotiation phase.

The ESCC data sheet is the first one I've ever encountered that includes
a multiple-choice test on features of the device ("ESCC Questions and Answers"
on pages 385/386: http://www.zilog.com/docs/serial/scc_escc_um.pdf ) :-)

-- PMM

Re: [PATCH 0/3] escc: fix R_STATUS when SDLC mode is enabled
Posted by Mark Cave-Ayland 2 years, 7 months ago
On 29/08/2021 14:19, Peter Maydell wrote:

> On Sun, 29 Aug 2021 at 11:05, Mark Cave-Ayland
> <mark.cave-ayland@ilande.co.uk> wrote:
>>
>> Here is another small set of ESCC fixes from my attempts to boot MacOS on the q800
>> machine.
>>
>> When MacOS loads the OpenTransport extension on boot it attempts to enable
>> SDLC mode on the ESCC. QEMU's emulation doesn't support SDLC mode, but without
>> these fixes the active low STATUS_SYNC bit in R_STATUS is continually
>> asserted causing the extension to hang on startup as it believe it is constantly
>> receiving LocalTalk responses during its initial negotiation phase.
> 
> The ESCC data sheet is the first one I've ever encountered that includes
> a multiple-choice test on features of the device ("ESCC Questions and Answers"
> on pages 385/386: http://www.zilog.com/docs/serial/scc_escc_um.pdf ) :-)

I wonder why the idea never took hold? :D


ATB,

Mark.