From owner-freebsd-ppc@freebsd.org Mon Feb 1 23:46:49 2021 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 580064EC017 for ; Mon, 1 Feb 2021 23:46:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DV4NQ75Ktz3QG2 for ; Mon, 1 Feb 2021 23:46:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1612223205; bh=mMX3f35KZNj0twwn4lCdZAJvT+2SDoZIBjneFTt4Ba1=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=r2RsCh5H/VzAbcSUfueLUcrcKnb4lgi0df9hKrXrdyZemAZ4ZqgHQQQHc93CzJRlwcF5dII7tKwsFJRTw/PCxAclqi5SQ3JDk7mzbB7/HP792MlXE/8Fu5ZtBl0Vjv1wVe6f8vpHiSCBtEgjBw5ijzlkUpXNJZF1pzDNo5WBKHHa8Up3yIV4s8PhfKq2nEG6N8MfXgEL2bnlcWtXLL2+gD9mCR5iNd9v35QxzArK8CsnmW+XgyNElv/dpHb9LoVBLQ6LAUEnjvT21mGDudMiKKZI19qWWwEWyfUjWWpFgNiThkes84JkOZdv+TSuTRXul4FLZsgX4/XJDuRhu7PyAA== X-YMail-OSG: YziwkB8VM1kKboayETmmeMvtnCO6szHOMXXBVPT2HQcRBJ0E2lpr7sXfZT6GMey 7YMUQl2VWyTrxoeS80jbNyA.ecWjpvcNujtqwV5NdVqfr46oZPpc53ybGKhwJS4xW99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ktZ sE98UVJzICKp2udEgEBcwDL2pyrnUThRM5tDfTC9kkg_fQorm2gNH1hJxhVySi0Ks411Zy93DG_V NFiPw82GXvC9ffCgqz_88vBSuqJKVX6K7_7UGGIzDZ_nAJ9wId1zwBQsxZuVLli.phxa_.JBuQGm KEupiCDq8Xg95WLFYgqXmnI2qegYVRZXIKZPDbOOjyoASiQtxNvE8rAq7gw04OGCgD1ZfeDQTkn6 sVa7KpweNamFrd9trtsJag9nPVoKJgPT4z.kImZOkwOM.4znLhVQc1z3uAjglcT1Sj2yx8snb2L6 cWEoBPj6lIYJLr0oUS21yuCsCNsMUY2WRDXv7lmUJrJG5tkpM.XwcFVDHPX2_PZYmU_pVGp3jzTm CtcU- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Mon, 1 Feb 2021 23:46:45 +0000 Received: by smtp413.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 20f634982610bee05aa3357aed6c82b5; Mon, 01 Feb 2021 23:46:39 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: Expected issue? Old PowerMac G5 [...] vs. USB [...] [RealTek EtherNet] devices (...) From: Mark Millard In-Reply-To: <20210201222854.GV31099@funkthat.com> Date: Mon, 1 Feb 2021 15:46:38 -0800 Cc: freebsd-ppc Content-Transfer-Encoding: quoted-printable Message-Id: <38B76FA1-2564-4EE0-ADAE-D12F693358EB@yahoo.com> References: <20210201194702.GU31099@funkthat.com> <1C53A656-75ED-4E7C-9FB0-6C605BCDEC14@yahoo.com> <20210201222854.GV31099@funkthat.com> To: John-Mark Gurney X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Rspamd-Queue-Id: 4DV4NQ75Ktz3QG2 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.68.206:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.68.206:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.206:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.206:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ppc] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2021 23:46:49 -0000 On 2021-Feb-1, at 14:28, John-Mark Gurney wrote: > Mark Millard wrote this message on Mon, Feb 01, 2021 at 13:34 -0800: >> On 2021-Feb-1, at 11:47, John-Mark Gurney = wrote: >>=20 >>> Mark Millard wrote this message on Sun, Jan 31, 2021 at 13:45 -0800: >>>> . . . >>=20 >> I'm working on seeing if I can get Firewire/dcons based >> access going in hopes of getting more evidence that way. >>=20 >> I hope that such can be done via a 32-bit PowerMac G4 >> against the 64-bit PowerMac G5: it looks like the only >> other G5 no longer can reliably boot (overheating that >> fast now). >=20 > I think that it should just work.. I haven't looked at the dcons code, > but IIRC, it should... If not, it should be easy to fix to make it > work.. I've got a basic telnet/dconschat going, allowing me to copy/paste text reproted via telnet output. I've replied earlier with some information gathered. I'll use some of that background to respond to later questions below. I'll presume context from the prior reply. >>>> So I tried a non-RealTek USB3 capable EtherNet device, both >>>> with and without hw.usb.xhci.use_polling=3D1 : >>>>=20 >>>> axge0 numa-domain 0 on uhub4 >>>> axge0: on usbus4 >>>> miibus1: numa-domain 0 on axge0 >>>> rgephy0: PHY 3 on = miibus1 >>>> rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, = 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, = 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow >>>> ue0: on axge0 >>>> ue0: Ethernet address: 00:05:1b:af:1a:21 >>>> ue0: link state changed to DOWN >>>> ue0: link state changed to UP >>>>=20 >>>> So far it seems to be working just fine. I'm using it >>>> without hw.usb.xhci.use_polling=3D1 . >>>=20 >>> Is the axge a USB3 or USB3 device? The driver attached to both... >>=20 >> The axge, like all my USB Ethernet devices, is USB3 capable but >> is supposed to support use in USB2 contexts. The PowerMac, of >> course, is old and only has USB2. >=20 > Then why bother w/ xhci? Since that should apply only to USB3 > controllers... If your mac isn't USB3 compatible, shouldn't be > detected/probed/used, and you should only have ehci... I've no clue why it operates as it does. But I have example boots for ure0 also working just fine and one where axge0 had the problem. So, both sometimes work just fine, sometimes not. The problem seems to always be at the initial probing, be the device already plugged in a power up vs. plugged in later. If that initial activity works, then the device is generally operational. (I've not tried plug-in/unplug/plug-in/unplug sequences.) > This is why I was puzzled, tweaking xhci implies that the system is > USB3 capable... I'm not aware that I did anything special, other than just plugging in the devices. My kernel configurations are based on GENERIC64 (via includes), with some overrides but not of usb things. > (if xhci changes USB2 behavior, then it needs to be renamed)... No clue. >>> [...] >>>=20 >=20 > Have you verified that it works w/ other operating systems on the Mac? > Could it be that the device itself isn't compatible w/ the USB2 > controller on the mac? I have example boots for ure0 also working just fine and one where axge0 had the problem, all the same FreeBSD 14 build on the same PowerMac G5, just rebooted and trying again. I take that both devices sometimes work just fine as evidence that a USB2 controller compatibility problem in the PowerMac is unlikely for both devices. > Have you tried to add in a USB controller card and use that instead of > the onboard USB controller? No. I've no access to such a separate card as stands. (And there is the "sometimes works" evidence as well.) >>> I assume it was a hard lock enough that you were unable to break = into >>> ddb? Without more information, it will be impossible for me to = debug >>> this. >>=20 >> Yep. I CC'd you mostly so if if any other similar reports >> came in that you would know of my context's prior failure. >=20 > Yeah, I haven't heard of any, (though I've only worked on it for less > than a year)... >=20 >> I am working on seeing if I can get Firewire/dcons to operate >> in hopes of getting some information about the crash. If >> I get that going and get some more information, I'll report >> it with you CC'd again. >=20 > Yeah, dcons is a good choice, and the good thing is that short of a > complete system bus crash, you'll be able to at least get the latest > logs off of the system... And . . . I just got the telnet login console going in the telnet/dconschat so I'm no longer restricted to the display's console for all input. I'm not familiar with the Firewire/dcons context, so read a little, try a little, read . . . =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)