Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2027301pxk; Sat, 26 Sep 2020 13:53:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbpmzvVxc5ZTtDpxZOSwDWOoE+K9Wjy40JSRVWvt/Das/Nf3qKJVSOThjmbux2YcfFDFE6 X-Received: by 2002:a17:906:8690:: with SMTP id g16mr8541934ejx.187.1601153587231; Sat, 26 Sep 2020 13:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601153587; cv=none; d=google.com; s=arc-20160816; b=jnMZTLBF80aU013Mv1bP62Mp+W1j4aE2rdCE+gHA5DODdS9/xuT6uFTvV5ks8I6AEW ynhVB1DlHDJqr8NhrglF1y9PcKkmPGOck1zfRNMws0SmLSwjvLe3OLgi/A7HP8ZW/Rxe Lq+41yr7GB0fJTwHLruzTGigpMrilMBf/N7YVNcxJE297Q5d2CunuXIIYopZBN67+akt +HOlND7Ups9qx4AmztnB2N1cVBiD2NnFJR2Ua1WOYxf64xFJL9LE5IcHXXifvFl2D7gb rsq8xnmyVs6zvYRhW1Z6K6VL/WFB12EuMJeQLfkcMTPEvJLjIAfbpy9ngDJQF6gwo1HD Ikag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=b1LsEDzYh/afCLYmoLqrrCQU7xNxPJMMTUnhrbGVuhE=; b=IIPFrOznyBQwLavv02/j0CLp1NF2YvaSJ26aIoSdvONm27w2K3HG5fm8Gbv7J+dRC9 E/tOq5ZTJsADigPRYKzxJskm2nuBN02+vTk8EBmV2r7CFqYLOgTYYI0xGnAcnFG5cuBV MjFVEeC+z+gBL15hvZJ3tEICFUOgZWI4THAKVZ7QmljCYAZMqSvjVFHRAgUeGTEAug5K SiNl3a8GMW3fjQ3LXPaFCVmQnz0+8czrT+R1uJD92RWkiN3hi0uuvCfZO+qoEvBTj4iG zHrkgnKBQsUzXaFd+I1pSmaUfri/ms5xlZ8MPjHkvBADnAuHLppDR93bbXTCmoNS7vaj FS/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yixz3jPa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do12si4675484ejc.114.2020.09.26.13.52.44; Sat, 26 Sep 2020 13:53:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yixz3jPa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727172AbgIZUvR (ORCPT + 99 others); Sat, 26 Sep 2020 16:51:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:36322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726311AbgIZUvR (ORCPT ); Sat, 26 Sep 2020 16:51:17 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E6207207EA; Sat, 26 Sep 2020 20:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601153476; bh=RqI2XkUJnGfTSYFp3HDfs/QKnRhvBG5itC4b0KZfLFE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yixz3jPary8hkalk5k87l/xp1SnOuwY3rJU/c7GSsSsNCt+Jp86+pVo0uKZsuQzRF AM9CMvDpow13UdBkne6TjU0AvZlCRiVBaE1XP+VLS8bXHm2rC7GfqODCsxoSe+gV9O +Z+1p73CjAKJ8z7QueCYIaMf0LZa6NWbA2urMtcM= Date: Sat, 26 Sep 2020 16:51:14 -0400 From: Sasha Levin To: Palmer Dabbelt Cc: Damien Le Moal , linux-kernel@vger.kernel.org, stable@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH AUTOSEL 5.8 20/20] riscv: Fix Kendryte K210 device tree Message-ID: <20200926205114.GB2219727@sasha-vm> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 26, 2020 at 12:42:42PM -0700, Palmer Dabbelt wrote: >>On Tue, 22 Sep 2020 17:27:42 PDT (-0700), Damien Le Moal wrote: >>>On 2020/09/21 23:41, Sasha Levin wrote: >>>From: Damien Le Moal >>> >>>[ Upstream commit f025d9d9934b84cd03b7796072d10686029c408e ] >>> >>>The Kendryte K210 SoC CLINT is compatible with Sifive clint v0 >>>(sifive,clint0). Fix the Kendryte K210 device tree clint entry to be >>>inline with the sifive timer definition documented in >>>Documentation/devicetree/bindings/timer/sifive,clint.yaml. >>>The device tree clint entry is renamed similarly to u-boot device tree >>>definition to improve compatibility with u-boot defined device tree. >>>To ensure correct initialization, the interrup-cells attribute is added >>>and the interrupt-extended attribute definition fixed. >>> >>>This fixes boot failures with Kendryte K210 SoC boards. >>> >>>Note that the clock referenced is kept as K210_CLK_ACLK, which does not >>>necessarilly match the clint MTIME increment rate. This however does not >>>seem to cause any problem for now. >>> >>>Signed-off-by: Damien Le Moal >>>Signed-off-by: Palmer Dabbelt >>>Signed-off-by: Sasha Levin >>>--- >>> arch/riscv/boot/dts/kendryte/k210.dtsi | 6 ++++-- >>> 1 file changed, 4 insertions(+), 2 deletions(-) >>> >>>diff --git a/arch/riscv/boot/dts/kendryte/k210.dtsi b/arch/riscv/boot/dts/kendryte/k210.dtsi >>>index c1df56ccb8d55..d2d0ff6456325 100644 >>>--- a/arch/riscv/boot/dts/kendryte/k210.dtsi >>>+++ b/arch/riscv/boot/dts/kendryte/k210.dtsi >>>@@ -95,10 +95,12 @@ sysctl: sysctl@50440000 { >>> #clock-cells = <1>; >>> }; >>>- clint0: interrupt-controller@2000000 { >>>+ clint0: clint@2000000 { >>>+ #interrupt-cells = <1>; >>> compatible = "riscv,clint0"; >>> reg = <0x2000000 0xC000>; >>>- interrupts-extended = <&cpu0_intc 3>, <&cpu1_intc 3>; >>>+ interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 >>>+ &cpu1_intc 3 &cpu1_intc 7>; >>> clocks = <&sysctl K210_CLK_ACLK>; >>> }; >>> >> >>Sasha, >> >>This is a fix for a problem in 5.9 tree. 5.8 kernel is fine without this patch. >>And I think applying it to 5.8 might actually break things since the proper >>clint driver was added to kernel 5.9 and does not exist in 5.8. > >IIUC this won't actually break anything on 5.8, as the reason nobody noticed >that the old one was broken is because the old CLINT driver just didn't care >about what's in the device tree. These interrupt numbers are defined by the >ISA manual so we jut had them encoded into the arch/riscv first-level interrupt >controller driver. > >That said, it definately doesn't fix anything so it seems safer to just not >backport it. Sure, I'll drop it. Thanks! -- Thanks, Sasha