From owner-freebsd-arm@freebsd.org Thu Jul 18 20:20:59 2019 Return-Path: Delivered-To: freebsd-arm@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 22AEBB0813 for ; Thu, 18 Jul 2019 20:20:59 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from mail.kronometrix.org (mail.kronometrix.org [95.85.46.90]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.kronometrix.org", Issuer "mail.kronometrix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C0BA57047A for ; Thu, 18 Jul 2019 20:20:58 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from [192.168.1.164] (82-203-143-70.bb.dnainternet.fi [82.203.143.70]) (authenticated bits=0) by mail.kronometrix.org (8.15.2/8.15.2) with ESMTPSA id x6IKKtDR041666 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 18 Jul 2019 20:20:56 GMT (envelope-from sparvu@kronometrix.org) X-Authentication-Warning: mail.kronometrix.org: Host 82-203-143-70.bb.dnainternet.fi [82.203.143.70] claimed to be [192.168.1.164] From: Stefan Parvu Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0 Date: Thu, 18 Jul 2019 23:20:50 +0300 References: <41A4CA5C-B487-490F-8A19-2D51F43E1004@kronometrix.org> <95616620-bbaf-dbc3-49eb-3e2562638d49@bunyatech.com.au> <74E3E782-8481-4B5B-A0AF-A04590C27D6D@kronometrix.org> <790afcb5f0809a89b45982958a85f1539fec05c7.camel@freebsd.org> <36088812-2135-4433-BC49-0BC433EC6767@kronometrix.org> <86CC4711-47AC-45C6-B6D3-71C9FFDD4A91@kronometrix.org> <2ec7d7f63de31065b9cab396c662fe24f0107078.camel@freebsd.org> <2AC05799-7D11-4200-8D16-38E3718470BB@kronometrix.org> <91E26684-07A0-4F03-92BC-8D49359B1358@kronometrix.org> <5F33E59B-7EA5-4B8B-A95A-CD1FB569ACDC@kronometrix.org> <6a39f74088d2984b5426e8585b5f7e864a6766f8.camel@freebsd.org> <571EABD9-364C-4D91-9177-CC25CB382D76@kronometrix.org> <2dd107308cb7fc21bab793218d8e37039dbc108e.camel@freebsd.org> To: freebsd-arm@freebsd.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: C0BA57047A X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of sparvu@kronometrix.org designates 95.85.46.90 as permitted sender) smtp.mailfrom=sparvu@kronometrix.org X-Spamd-Result: default: False [1.38 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_SPAM_MEDIUM(0.94)[0.938,0]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mail.kronometrix.org]; NEURAL_SPAM_LONG(0.47)[0.473,0]; DMARC_NA(0.00)[kronometrix.org]; NEURAL_HAM_SHORT(-0.73)[-0.732,0]; IP_SCORE(0.51)[ip: (0.39), ipnet: 95.85.0.0/18(1.13), asn: 14061(1.08), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:14061, ipnet:95.85.0.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jul 2019 20:20:59 -0000 > > I guess if it only works when you load the driver, that's a good sign > it's not in the kernel. You can also do 'kldstat' and if it's in the > output, it was loaded and is being used. of course the thing is loaded. I forgot to mention. The kernel module is active and loaded even if the RTC clock failed to keep the time. Something is odd. root@k1:/var/tmp # kldstat Id Refs Address Size Name 1 9 0xffff000000000000 13d1480 kernel 3 1 0xffff000001415000 40ea8 nxprtc.ko 4 1 0xffff000053600000 41000 tmpfs.ko 5 1 0xffff000053641000 31000 mac_ntpd.ko And bsed on my nm function symbols I do really believe im using your latest version. Something else is problematic here. Stefan From owner-freebsd-arm@freebsd.org Thu Jul 18 20:22:32 2019 Return-Path: Delivered-To: freebsd-arm@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 C3BE2B0A0B for ; Thu, 18 Jul 2019 20:22:32 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3D15470785 for ; Thu, 18 Jul 2019 20:22:32 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1563481344; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=FV0CliqD5PIA84A7+pwWF3hvN31yv8zmtIf5MeS/cKsVFqrxEU2a6J65YNa3C0P5k5ZtUOGoAVLHG jSRX/cinvgqee6CmGxSecG/NJkJQtQYekAOZEkfrubnW0576rpfkpL5Km6qyWsZsg0MBxF4O9yJ5vb etJ4VYdZLy9Hh2Y0VWJz/KLL6dhkJkCaIUsba+IurShV2yGi0ruzyavsdiC+u79/2ZTHbAZ7+zRDAT v7bNZNJRGOVtG1ajS84KJbxyvLbM0oZdlzu/cP9h6QrFm6OKbVy5Q21ni4GY/5RIDcnn+g9PxzXb21 uvq0FcrVjAm3481W0FehKOPgXQUKqUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=AWUh8qt3DFMgy1Lj60KfipI9kNY8ZUxgkLXW3PPX5Qc=; b=GwpR+g7PownwveeKS9jXilbzBftWYk9nfsENZnYvsgm5FxvJUrTYVXdoU8E6zP5a8OKow8InbAmz1 IEq+6geisxV+19hrCUnyOVu84PKZfw5UjaNg4whr6loRPFJeEl+X2coRTRuGcbZFEIYUY55WeeJ8QJ LGMxHcGZWoOQ0a0Uxmbbj4deZuWUhoch5kfIaZmJuW/ZRDVf+ikc5G3zkChsHkUzxgPEL2oK2iysnE OoeSroHWyfdedL46R7qQc0sHcv18h23Da9E85kCTOnNCeVMG2UNcKn3Of79GmyyhXo5hQ7zH5HZhIr 2luligcwU4Aj2I4J/zVYuiehxYFcuYw== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=AWUh8qt3DFMgy1Lj60KfipI9kNY8ZUxgkLXW3PPX5Qc=; b=DyU/0tFjHvVtkYXg7iDvoUmQR6pBFiuz83Of9J3YozO38ePc89gJKzOiKt8mk8FIl09/LpGfM3C3s Ox0QqK+cHfkhkHOOQy3khJ/RabYTTMxzeAKLE5WExVVWJS4wi3KmHYhtYPfg8Lzb5P8+AsYvQ18AGS 8FVNCbMM/qk1Se9og4SbfUzJBRx6yBu89ZVGx76dgvFb8P2fptOzNG8vbIbc3+61Mo3P9qiqOb5V+v 8VMw3b3tXEnMtbSnCgJ2drgSbQXJ/mq/006sWI05k99+li3kVhSt/FyjXN5oGQXZPKqGF57BghucER JqFoDl+NMpEs6lVoJchlTCPI3rk+jFA== X-MHO-RoutePath: aGlwcGll X-MHO-User: bf9ea3a0-a999-11e9-9d30-d9f4e14f47a7 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id bf9ea3a0-a999-11e9-9d30-d9f4e14f47a7; Thu, 18 Jul 2019 20:22:23 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x6IKMLgA045806; Thu, 18 Jul 2019 14:22:21 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0 From: Ian Lepore To: Stefan Parvu , freebsd-arm@freebsd.org Date: Thu, 18 Jul 2019 14:22:21 -0600 In-Reply-To: References: <41A4CA5C-B487-490F-8A19-2D51F43E1004@kronometrix.org> <95616620-bbaf-dbc3-49eb-3e2562638d49@bunyatech.com.au> <74E3E782-8481-4B5B-A0AF-A04590C27D6D@kronometrix.org> <790afcb5f0809a89b45982958a85f1539fec05c7.camel@freebsd.org> <36088812-2135-4433-BC49-0BC433EC6767@kronometrix.org> <86CC4711-47AC-45C6-B6D3-71C9FFDD4A91@kronometrix.org> <2ec7d7f63de31065b9cab396c662fe24f0107078.camel@freebsd.org> <2AC05799-7D11-4200-8D16-38E3718470BB@kronometrix.org> <91E26684-07A0-4F03-92BC-8D49359B1358@kronometrix.org> <5F33E59B-7EA5-4B8B-A95A-CD1FB569ACDC@kronometrix.org> <6a39f74088d2984b5426e8585b5f7e864a6766f8.camel@freebsd.org> <571EABD9-364C-4D91-9177-CC25CB382D76@kronometrix.org> <2dd107308cb7fc21bab793218d8e37039dbc108e.camel@freebsd.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 3D15470785 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.985,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jul 2019 20:22:32 -0000 On Thu, 2019-07-18 at 23:16 +0300, Stefan Parvu wrote: > I think after your latest commit I see a function from nxprtc module > which does not > exist in the original module. Take a look: > > root@k1:/var/tmp # nm -A -a /boot/kernel/nxprtc.ko | grep readfrom > /boot/kernel/nxprtc.ko:0000000000010ab8 t nxprtc_readfrom > > which I do not see under original nxprtc module such thing. > > root@k1:/var/tmp # nm -A -a /var/tmp/nxprtc.original.ko | grep > readfrom > /var/tmp/nxprtc.original.ko: U iicdev_readfrom > > Is this right ? Is this something you have fixed on the latest and > the greatest > nxprtc version ? > > Yep, that is good confirmation that the fix is in that module. I almost hesitate to say it, but... the symptoms you're seeing are exactly what would happen if the battery was installed upside-down. :) -- Ian