From nobody Mon Aug 29 06:34:12 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MGLJ53skVz4bQC3 for ; Mon, 29 Aug 2022 06:34:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MGLJ46Wb2z3Z2n for ; Mon, 29 Aug 2022 06:34:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MGLJ45XywzLVv for ; Mon, 29 Aug 2022 06:34:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 27T6YC7g011321 for ; Mon, 29 Aug 2022 06:34:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27T6YCcY011320 for bugs@FreeBSD.org; Mon, 29 Aug 2022 06:34:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266093] [nxprtc] My PCF8523 fails to initialize properly after 2444018f7dd3c0ecd1099d63de0a856e7f6b1984 Date: Mon, 29 Aug 2022 06:34:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: t_uemura@macome.co.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661754852; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zVizbbYT1/DRiDqPZoImpoaSgncrmXcxLoqrCcFp3fE=; b=GUvjlDeq2TCgetnBgtiZFHZH+kEsVCYgPrC2dbGT9p2vJBYgY7qTHqVw14ft8tdDMON2Ta RHi8lvonBL1f8yN1cNDnshlkim+8sL8YwOh+XrJ2TAgiVLjKayR/bbqF8tTsXKUO3ysOVF zG+IJY2Nuisfd9OGVEvNEzugIEF/+AQ+n3aiNNIYoCM4ZxMSnBF6YEDLJEm+yEHzzKiH1k /3QtCmlvKTy2uPrIZi7JUMj7mZB5nN55f5ywaUZ7Qe9bVoHzkTJEl92KnHZFWWUsd6HRL4 qQ798nkcqywPGGOYgz7HpJeBypqWcXKtuHRdnXZE5+5EfRv7xKz+WXgSbiktFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661754852; a=rsa-sha256; cv=none; b=hAmSA8khuVaJCpH09cCIq8e4uy1LYl0fQMcUL2Tdmk7nY0/CuqnXEPi/O9S8pcFyIJvNa1 tzdUJIF9JEEol9jWlKza+4HdrY6glGVLQ2U/8oxS2FmaPmiHBOqFlUzynX0I8RMgE6ZWIg wy15/l8KvOAdx4saFwzB+SpNJ2k4Y0fZ4dtGNfIND2ijJnf9ojaDdFR11gPeruc7k8tGKD VONYMrss52+FqveHGq7hgQnBs6IH/P6dULnAtigvgSEJNK/LTj+ch8Cil/XSeBYEnFyIoV +TQElDcjh+FcEFMSL7/gtXRRI7Sj63ymAuEG3qde7+BOb5O2icsj2ryqUlz1cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266093 Bug ID: 266093 Summary: [nxprtc] My PCF8523 fails to initialize properly after 2444018f7dd3c0ecd1099d63de0a856e7f6b1984 Product: Base System Version: 13.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: t_uemura@macome.co.jp I've noticed that on 13.1-STABLE stable/13-n251859-8d4ccb9da29-dirty, my Adafruit PCF8523 RTC on either RPi2B or RPi3B+ failed to work around 80 ~ 9= 0 % of boot-ups, by printing the following log lines. nxprtc0: at addr 0xd0 on iicbus0 nxprtc0: cannot set up timer Warning: no time-of-day clock registered, system time will not be set accurately The following log could be seen rarely but on successful boot-ups. nxprtc0: at addr 0xd0 on iicbus0 nxprtc0: registered as a time-of-day clock, resolution 0.015625s I've tried the same kernel but with the old 18cd8a2df868a3a7154172348f8bc61f699e78d4 nxprtc.ko and found it worked like= a charm. The next revision 2444018f7dd3c0ecd1099d63de0a856e7f6b1984 seemed to introduce a hitch. "cannot set up timer" was printed because pcf8523_start_timer(sc) returned non-zero in nxprtc_start(), so I've added some device_printf() calls and observed that one of the following register access failed. read_reg(sc, PCF8523_R_TMR_A_FREQ, &tmrfreq) read_reg(sc, PCF8523_R_TMR_CLKOUT, &clkout) write_reg(sc, sc->tmcaddr, 0) pcf8523_start_timer() itself was unmodified in 2444018f7dd3c0ecd1099d63de0a856e7f6b1984 so I couldn't guess the root cause= of the above register access failure. --=20 You are receiving this mail because: You are the assignee for the bug.=