From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FEBF179BF for ; Mon, 27 Jan 2025 10:24:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737973455; cv=none; b=ealVf67OhDkV8+WIDmVAsiDSABIDmLAB/IK3GedTBlKTTLe9iZf/LBFDZWjRJbKT2OEN1hIAssX8me2WGcs9GxAF0ZSg5m5eykqUxTIjORbckxRgfEEce+OZmndbYiKzP3TGzW7fs45qBqY5oGxF/RGVxRQktU6aArZT94KuRFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737973455; c=relaxed/simple; bh=PeguVylUEoEAW+1MGSCEGHhKkC9BF25hVfkYll0Mi0I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IccLBWnUXoR1CYBEC3Mk6abpMXdGHOIleGpIh2p6et63J7dY51VxfoFaIVVrxsHlB1hl9tHNpBkQYcxFI0VJuUF+K9YiHvgQILvTWQC+1TAc3wZyG2kcXmab4cZK49XQJQ46QY+LSSeBDN/Cv9VHaIzirzFBH9FG2Xi7JUeE+j8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=ZoJXuiN1; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="ZoJXuiN1" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50R0xopd031640 for ; Mon, 27 Jan 2025 10:24:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= zqJcBRYJ7hADnVgOR6KgK89epzxGP9SaDVydnZCx8rk=; b=ZoJXuiN1aGAA+iOK Hq6ai7JrGHk5tj59plC7YXv9AKsY4Pcf46ZR28kxNgHtEcDPWwVEmrhKJYxG+j7r g08mINZ8Do2A0hNlqXe0dUpZjv27CMG+KejHojsllSxDeVdJw0wOhYqP9X82yRdo TuEzX9rEdH3aVc4c2Bg6GVmRpKx5KzkYIaj8t+rNVHVRfyYqJlP8jmniA520u9UB gEp7uXDNIFwFzLwpEWbq4+Mrpoew5uHIvcD79GOovmfriWr+5pmURSWVBH0vSYcx ehXaQck9Djs/alNXaVUnkqXoSPCFronL3hNANNPzvf/IH9jntKViHSk9dMCr/pBX q1aXUA== Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44dhu9ht0g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 27 Jan 2025 10:24:13 +0000 (GMT) Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-6e1a2a15514so7093246d6.2 for ; Mon, 27 Jan 2025 02:24:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737973452; x=1738578252; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zqJcBRYJ7hADnVgOR6KgK89epzxGP9SaDVydnZCx8rk=; b=d2gPXMj358U+TX2UB4+TZ9RR271FzLPRTQEHgiZfisMSlWXZfBcHyB7rdcyZh+FpTq JsTXUi1kG9pbAwoCzQKNpWSAKA4LKMi6cZpFpUS5BTvwScSqYLSEGJX6gK9FNax7CDaU 9evzP0K7hM+Idgwiv9bTSMggCHZrmBg8/XfbQrvkeXuskWZViQXY87XqqNNFU6Yq2fSi ZvEBxE3Hjj+M4klxEsly3Ya6nZ8r41/EDkpy6xXjb59x3C6jwyC55b1kjne9KqZvsUF2 Ld8ifAA6ec5BTa4TgzDANmbr9zUHLWtPDWVKrok7DmUOaFHn+UbAVooPmCxDCpPRRWPf ZTig== X-Forwarded-Encrypted: i=1; AJvYcCX+YUio2C3hMMNkAJlgSkP+Wlve7KQCUD1WC5m3g8jWDi/JfF0I472rO/vETYvgYZ1HLKHSWR0dznnGux4=@vger.kernel.org X-Gm-Message-State: AOJu0Ywqlp4hc/WR3XpXyHyJDBV5PHeQjC4eyYwg+kJwJfAQPPX3XxTt xMGvQE2tLX961XZ/bQJlyMQs+1Wvc9CQSbIh+itNRMC66ohqbfDdggdk1B4DUgtCeafs1lDXaK2 SMTbS/jhFmSDo2nMuAmQ4wCucbYStH+VvvzOyNdSWX5Jn4Jbz9igNrVgOe7E7VuA= X-Gm-Gg: ASbGncsqZQHw+0VMH3kJJw4uboBLDdsxZEP3Xeyl1cFJGbFfyBSgMMB933n7av8W6E6 FuGiL7LbYGwMtSxTAS/gAzoyLzQelvSFlWKWaUGLz0CU1vX/nfc2ARkrwL4nxmF+0drUGRq672b Hgl0SvsCJh/Icw5yOogjVvChbRHPM5om45bdMIlHR+tbp7IPl0zPEAIYN95pE9SvYhJcJtT7+Bg KmbjvBfmNh0zmJ4WCXHnDUGJw4Wn/VwvlRp82krdNojf89NFg4a82cGbqRi+K3d5gg1A+DnLXj3 /iIbCAVqRmMdq0kwKC3/LBlo/MD8CLWPuPyHKQo1RFLxLA7e5jesD4OakT8= X-Received: by 2002:a05:620a:24c8:b0:7b6:d26e:9d76 with SMTP id af79cd13be357-7be6325c432mr2277212585a.14.1737973452427; Mon, 27 Jan 2025 02:24:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFI5PkaDqCqGnOLm5QnUI6GZTKsLoTu1/eoVLVVx4da1WuKh4k1qwmx2Qeio9Ul4VLt4wA5NQ== X-Received: by 2002:a05:620a:24c8:b0:7b6:d26e:9d76 with SMTP id af79cd13be357-7be6325c432mr2277211685a.14.1737973452102; Mon, 27 Jan 2025 02:24:12 -0800 (PST) Received: from [192.168.65.90] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab6760fbb94sm563446266b.139.2025.01.27.02.24.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jan 2025 02:24:11 -0800 (PST) Message-ID: <70614c91-326e-47ee-80da-12f829d13459@oss.qualcomm.com> Date: Mon, 27 Jan 2025 11:24:10 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp-blackrock: switch to uefi rtc offset To: jens.glathe@oldschoolsolutions.biz, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold References: <20250122-jg-blackrock-rtc-v1-1-3b05cd85bdfa@oldschoolsolutions.biz> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20250122-jg-blackrock-rtc-v1-1-3b05cd85bdfa@oldschoolsolutions.biz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: aLUzd1UEe9avbjuwzVs8UCRri1cYxBl6 X-Proofpoint-ORIG-GUID: aLUzd1UEe9avbjuwzVs8UCRri1cYxBl6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-27_04,2025-01-27_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 phishscore=0 adultscore=0 mlxlogscore=793 suspectscore=0 malwarescore=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501270083 On 22.01.2025 7:41 AM, Jens Glathe via B4 Relay wrote: > From: Jens Glathe > > On many Qualcomm platforms the PMIC RTC control and time registers are > read-only so that the RTC time can not be updated. Instead an offset > needs be stored in some machine-specific non-volatile memory, which a > driver can take into account. > > Switch to using the Qualcomm specific UEFI variable that is used by the > UEFI firmware (and Windows) to store the RTC offset. > > This specifically means that the RTC time will be synchronised between > the UEFI firmware setup (or UEFI shell), Windows and Linux. > > Note however that Windows stores the RTC time in local time by default, > while Linux typically uses UTC (i.e. as on X86). > > Based on a patch by Johan Hovold. [1] > > Link: https://lore.kernel.org/all/20250120144152.11949-7-johan+linaro@kernel.org/ # [1] > Signed-off-by: Jens Glathe > --- Reviewed-by: Konrad Dybcio Konrad