From owner-freebsd-ppc@freebsd.org Thu Apr 11 05:41:06 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2B51157A5DD for ; Thu, 11 Apr 2019 05:41:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-1.consmr.mail.bf2.yahoo.com (sonic301-1.consmr.mail.bf2.yahoo.com [74.6.129.40]) (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 17C7C772A9 for ; Thu, 11 Apr 2019 05:41:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: GWsURjcVM1lUZU6nIXmMk_pCHc18MlPBVHAOwf6WjhdKEWoE1ERt_qHR5aUOrkK Xw.e5Vys6hDitsGliU1hEl0dGbVQd4NbTkBzJSJaemEsAjpdtcUCwoNujPRfytaaX790LzaJne8s Sx_ESnl67BYLVc4ITIG8qBwwNEDIF.8kJFS6ztBz4hWpuygn2YaHq4l6gXUW0tN.z9CilHl9amHr E.NvbLVkrwNKnrPxkye_dBu0wpBQVNnVW0ha60JteQW1pUOr6xtrihAgMXnJOl6pINcNu7AA8E17 oGE9yHII91w5vCSH4Qh8VbyF2QamXkYQsf9EZzO5_d.jHtsYEPIvIyL4tKsTj6KRvxf6f.mpmq9e l0h76yDnXA1JqWyhKh1ZSwBx95xzxJu9fanz3OEodtBTZTtIS86CcSSDzqnKaCefqAK_BGA5HY62 BEZnTki0bgmegzT_OLDBb7y3oINCvGTANT.HVDKJAujxqgq5nWCIiiQpOGINPVCOSytM2FKu35zg 8I23AewdowNXLLcplRatKkag3N1UCDgJSpKC6oUCJ_qgzk8QHzoSfpxoV68Fr8ugmLXLKzuZd1tT OMqN8c8ArgbDlcCwhxWfiKoOaHvj_riS5h2LS0bOJ8zRKF3koZPU02_QQx5lgBXHL06NjAVRGaGH QaXO9kkhRqif3yntzV8Nw0s3UghQQ5NyEKhS_vAL7I_SmGb0ABshLUUEfBZTa4cVRLW2f4CeOF3F 5GqqMOBVdC8_61uG7hEM6DUFuVSLJFSWYzIgDqnkLKMbnYmhocP0gwRC_uikKnKoeRfFEKmezZ_i pdreta.gVPyr4hQHWoonEIKMWFLgdJlox.sa3ggr3OaylHf.Gf8p_9khR0vReXzIkhmcbaoO7DKx _msePUDrSPlKYNeh9ORZc1F2TBsg_8nZt0.1bUnm_kNxVY4vt_jQ9_UPPk5KVM_KbRgmxUY3DuFA hpSJEDLEq9Cp1ib8LsYsRgfANZlLsf88IEm_GAyJjy4QF1Ur6IMSlGnTtb42MGPZCMqdI1oxxwCi zEIg.loYieXG1d5DV3xJGeRf4n1QeAj_Av03NpHjl9j8PicpLF.D.aQHb3NZ1Jrqlo3P9yns2Jej dkQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.bf2.yahoo.com with HTTP; Thu, 11 Apr 2019 05:41:03 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.103]) ([76.115.7.162]) by smtp403.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9630a2ddbb0199ac6ca3c1fbc8d5a8c6; Thu, 11 Apr 2019 05:41:01 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Openfirmware node handling questions (associate with old PowerMac usefdt mode contexts and things not working) Message-Id: <372E571A-0D72-4511-89FA-C09A88370AC9@yahoo.com> Date: Wed, 10 Apr 2019 22:40:58 -0700 To: FreeBSD PowerPC ML , freebsd-hackers Hackers X-Mailer: Apple Mail (2.3445.104.8) X-Rspamd-Queue-Id: 17C7C772A9 X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.46 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; 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:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.85)[0.855,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.39)[ip: (4.15), ipnet: 74.6.128.0/21(1.60), asn: 26101(1.28), country: US(-0.06)]; NEURAL_SPAM_MEDIUM(0.14)[0.136,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.59)[0.588,0]; RCVD_IN_DNSWL_NONE(0.00)[40.129.6.74.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Apr 2019 05:41:06 -0000 Part of an old PowerMac3,6 G4 node tree looks like the below. Note the replications of the names gpio5, gpio6, gpio11, and extint-gpio15 : Node 0xff959ff0: pci Node 0xff95cb40: mac-io Node 0xff963f60: interrupt-controller Node 0xff9641d0: gpio Node 0xff964428: extint-gpio1 Node 0xff964728: programmer-switch Node 0xff964a10: gpio5 Node 0xff964c60: extint-gpio15 Node 0xff964f20: gpio6 Node 0xff965170: extint-gpio16 Node 0xff965498: extint-gpio14 Node 0xff965758: gpio12 Node 0xff9659a0: gpio11 Node 0xff965be8: gpio5 Node 0xff965e00: gpio6 Node 0xff966020: extint-gpio4 Node 0xff9662b0: gpio11 Node 0xff966500: extint-gpio15 The code that creates the fdt for this for usefdt mode rejects (skips) each Node that has a prior matching name already added in the parent node. (This seems to be keeping usefdt mode from identifying the ethernet port.) There is the same sort of issue for an old PowerMac11,2 G5 with a node tree that in part looks like the below: . . . Node 0xff994de0: i2c Node 0xff995a00: i2c-bus Node 0xff995bc8: codec Node 0xff995d00: codec Node 0xff995e38: i2c-bus Node 0xff996000: codec The "2nd" instance of i2c-bus is skipped based on the first one having already been added to the parent. (I've no clue which is first vs. second in the order of processing.) There are other duplicate subordinate names in other places that do not report a message about skipping. (I've yet to figure out what makes the distinction.) Is this rejection of the "later" instance of the same name(?) valid (officially)? Did Apple do something odd here? Is there something else I should look for that would indicate valid vs. invalid duplicate subordinate names under the same parent? Is the rejection of such duplicate subordinate names(?) just wrong? === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)