Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1639782lql; Wed, 13 Mar 2024 04:17:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbxq9Apf9NKXOBRyyEIHApYqcdmjhAdAVx+ntQ31O+k5CdWL7YtQK7/frOJIbMXmuvia/XLN7WaQ8xpvaKGivyRPH8GU2MommG1q8hjg== X-Google-Smtp-Source: AGHT+IG6f3bZFHqEU4H0xRKFHysamvZ1bd0kz9k+tIDNIOYGQoS4Lm84sYGcDz93u9SiQUDNynHY X-Received: by 2002:a05:6a20:430b:b0:1a1:4c14:8f73 with SMTP id h11-20020a056a20430b00b001a14c148f73mr7098646pzk.53.1710328648406; Wed, 13 Mar 2024 04:17:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710328648; cv=pass; d=google.com; s=arc-20160816; b=HmTc5021TNOylxuiqGNeRL6FUMJoXsOXdFbHanuvtGSP7zVjpNRBAeAOWS6HG+Bm4x uwU8n5YgOCayu3CqgxrNQC56LKaZz+Q3UK5+QOlzpBfABTu4+RWLs7MO3+rcSErUCBx9 XyuOl4aaALNLuMFIcuI/RGxStYRCxYSSkHNunFqJtVmtluOtjPW9XNBXf1/vXJQOtjmd LuXHM22qqWtvb5dvhe7q8MkuwfiXkf75iGZZKrWCGnfCH4FROlhRLt5yXmXNpsO0cIgD mqLrwyVoHKyiaOV2DdaIh3tMpzMEd+srERGZYXnAgXTQoQ1povcgyLZf5PzImlMxtbB6 RI8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7woccNPj4UXd7qVtmOU390S3k1KzIAZsbOQ4xioXn0Y=; fh=XPrgpmnLC0BK3xpa6a5/9ogOTAjdboJgc3c31CukBLw=; b=ufBEcYZy+H2YLlUV/n34QMGtLdWuxHvfaSHvTbhd8wnhlOIppNg+4hkqphAzV1WJfR yov2kuY7EsPNLx44nExik3QuW9WZjT9lWokcFFrnI/+aMPT1cjyEaTdikOwkBC7PsjM3 bW1CrnwgSeZ+GqPmhZORTXdxJ0bomI5A2LxYZbtSwu4ygMY63z1SyZWGRuWEXpZCUCuT HIHgCA9Jm1bq/7taFobM+IXGEP4nwBbVCvwdMBn3GgSe3c3rCRo7KfK1V5lSKWv+haFN u3Y+ncuiKeJATJeJBYeJLOBKxJRDFpNxAqXC12aOlD0k8XypV4AoDVGjJP+i12I25jFd g6Ug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tb62GcZW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-101420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101420-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c23-20020aa781d7000000b006e66701a2c5si8604500pfn.389.2024.03.13.04.17.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 04:17:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tb62GcZW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-101420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101420-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 738C92826DE for ; Wed, 13 Mar 2024 11:12:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D4713FB1D; Wed, 13 Mar 2024 11:11:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tb62GcZW" Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61E463FB15 for ; Wed, 13 Mar 2024 11:11:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710328291; cv=none; b=cjOT8Adbnk1dQwYy2aVMxjmfwF+gwg4YDm4tmer/MDIAT7BY15Fdz7ZpcYLpGsAcRfWOtw0nMpcozYXw7oGGLheqq/2SO8gePkesnVN6vaHM+nz7FeV0t1LnuL4yAV4EfUMSAFlxI+wy0EUsTIAtAvJ6gKEcBtSHRW4b5q8gRtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710328291; c=relaxed/simple; bh=XPlJIgNStuf4buDRYYaVRnoP93BKyAR1MZDwhRIxozo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ln2tos+VOcjzrDBjcxbfayAxmIi9TcIzeCj5WjNxX4YvZyvzYuBHy2cbHkXzhkC+tDZKfzYlrQGsWP0UJFr5c004Lv6JMB+/4Lae1qMBQD1tDZlQWQ7PZAIyntTDXlKWuFPIfiTh3TII4UoqL835Wi4BRmD4ZV6Qa/Egow5WdYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tb62GcZW; arc=none smtp.client-ip=209.85.208.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2d4541bf57eso11841811fa.2 for ; Wed, 13 Mar 2024 04:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710328287; x=1710933087; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7woccNPj4UXd7qVtmOU390S3k1KzIAZsbOQ4xioXn0Y=; b=tb62GcZWF+aKn8urZeZx0rDkEcuKin4vFCozuxlvpkeV2FzuapFPziW/tdzItOYsQq gU9FRsdPjRFISi3piATgvbnfePpsBu18Tk0yjoL4DaUdy+l+Gd53QNSoeNX7WCfDQ3O5 FSPVhfQA6fA02I2PhU3GSnBcLgvZjAhqhe4axaRDX5qx/rg5ZZIs6RWIERdSvDombUYw g+80ICaYQ+50aZzWcK1BMzTka9WMDdPC6H6nAka57OJga8b7Ty92NN/Kr1Lv47/TO5ek tAYpAL6saiWWAA2TixccJXb+uxI2Ki+7VUUy4vCLVhRX6KwUfCDHLpdKZMJgH0sKJml6 E/bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710328287; x=1710933087; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7woccNPj4UXd7qVtmOU390S3k1KzIAZsbOQ4xioXn0Y=; b=T1VDEz5BmLD6QY2lQJcqI3mD0vajcFCB0n53CeiizvOnoKSpzjKp9i+qo8p2Ka5zdc 207n01GI2weP+OVHTJQNFt89J9nJWfRhelSZ7oMunkctyIQ/lqeAvA119iPoTQSDV3k+ ovhlb3URwRAkk3+ins1R66lZ7icFCSmuYlmcXV2UkXPMd/mtDGrblUyHSR78rQ2zaPUG u+KSxejV0t8VzDYb+rhTAQSc+k2mAtVGZrDq4KJ2txTcuvBFsQXvtFIfiIJVuah+ILK1 jDRV4Z8Ezzr7nUCaDIc5f9YoDJoQi543XddDNYoJ5/HJZP6vtzYec2NaX2oZBVUkWEot 5H+g== X-Forwarded-Encrypted: i=1; AJvYcCUIA5BwWVDZ+grfIZkJ7sbFIG1qlCAWahfdcTI1jY46P9ZLVPeFFgQRiMbzIB8CocunTZYiupj5jb1nOSVv9H2SLpCj8liQoKjmpaeV X-Gm-Message-State: AOJu0YyrzeV2RrVgBlp8RslSWk4zIEe7jhX7QsNEaelXWZyznfpPo8kg u8Phi2Qcspe22cvURIzWW8/yHuZ8FIIE8/W89iECuPA5y6waORP1WPdYtQDOvB4= X-Received: by 2002:ac2:59c6:0:b0:513:c790:792a with SMTP id x6-20020ac259c6000000b00513c790792amr1252418lfn.38.1710328287456; Wed, 13 Mar 2024 04:11:27 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id q11-20020adff94b000000b0033e95bf4796sm7905988wrr.27.2024.03.13.04.11.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Mar 2024 04:11:27 -0700 (PDT) Message-ID: <4ac22b8b-9230-4489-8b38-a2ba79c16d16@linaro.org> Date: Wed, 13 Mar 2024 12:11:26 +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 v3] clocksource: timer-riscv: Clear timer interrupt on timer initialization Content-Language: en-US To: Ley Foon Tan , Thomas Gleixner , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: atishp@rivosinc.com, Samuel Holland , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Ley Foon Tan , stable@vger.kernel.org References: <20240306172330.255844-1-leyfoon.tan@starfivetech.com> From: Daniel Lezcano In-Reply-To: <20240306172330.255844-1-leyfoon.tan@starfivetech.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 06/03/2024 18:23, Ley Foon Tan wrote: > In the RISC-V specification, the stimecmp register doesn't have a default > value. To prevent the timer interrupt from being triggered during timer > initialization, clear the timer interrupt by writing stimecmp with a > maximum value. > > Fixes: 9f7a8ff6391f ("RISC-V: Prefer sstc extension if available") > Cc: > Signed-off-by: Ley Foon Tan > > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog