Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4519430yba; Mon, 29 Apr 2019 22:58:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNZs399190GN1kirMscMFrwh5Eza0A+HuE3ml6l1F2M0ICCGn4Z4fIPkzqDep6NDSnYm8K X-Received: by 2002:a17:902:28e4:: with SMTP id f91mr22563943plb.321.1556603926606; Mon, 29 Apr 2019 22:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556603926; cv=none; d=google.com; s=arc-20160816; b=mEvk685DolNNXl+rC1wj8hD81uC9ihw/bnjgsolDtUJXkKI3JQK6QZHVvIWYnFqxZi qvt5Th/8WG/wL+Zc+3n+BhZ1zv46rtvZa7IdQftk7E7OIYcSUJxUl/co9NxdhBB5Hfhm rNo2BA88QlDC9yyvQ0IOQa6Ijw8COLmkZQ6eXOym6Bx7lqpsGfDodpig5rkecM6VAa3S IMsv7YxInpgy4WAvCSa59zpAW0ddX1m6QBE0k3njHK6Y6uGbsEDT3nNpJlSjSPIj9KBu JTtTu69LmcAqG7qZEjuazLsqcBu7oPdIzu9mXUHW2JiP/io42Pcbud3nkPXzTS+VGaZ1 xhjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=hWKX2lq33x/bqH4d/le0jFr8W3N+Bkvqbw8w1QPkiFM=; b=yfVbL1HNO4Ubn5B2+3C+ONfFE4n5xHGFnPG4F0viOPrHTu+/5wxFFGy2doVG8U1VfL mEbJLN0uNBiiCtfpfkV/XD6yaHTErvofel0JjNDK29ycHJq5jGHi2CHzSAN8Ntae7Nlz nmDIvPCAQgjO4voc93D2AgUB9qWkHYJvbBtA1IvzicGyRHQoJJO10mFikqKj1jthVTfP DoRWCgxFXbDvosSeSO1580pqPQe7C54bTTo/LB2BDpIb9aGBv2cml9mEsi22u/DnRs3Y 7gm8Rk1L8KQEFO998cVNBH9D5EQ0Kls3Ev3x+9coczSCHt9ciasiuG/RUUedxJjj7UC4 ygPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Ov+Pp32o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si36387531pfa.163.2019.04.29.22.58.31; Mon, 29 Apr 2019 22:58:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Ov+Pp32o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbfD3F5R (ORCPT + 99 others); Tue, 30 Apr 2019 01:57:17 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:37482 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbfD3F5R (ORCPT ); Tue, 30 Apr 2019 01:57:17 -0400 Received: by mail-io1-f68.google.com with SMTP id a23so11166124iot.4 for ; Mon, 29 Apr 2019 22:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=hWKX2lq33x/bqH4d/le0jFr8W3N+Bkvqbw8w1QPkiFM=; b=Ov+Pp32oKqWJj+v2leV694xGyb6S9up7lYYPQ7oPHjhx3oukgMTTT/m041MXK0SWuF 8jCINE18h1zeq+ydDj0F62gr20ryYRJ85Dm5sTjO6KyiirqCrKrdtYGIjQhM59z6EAhL Wr1VtvCw1+jJAlFWtUgxPPCN51CN8gFH4tVTW/7mLD+fI1slgsPknuRb+Wb1gri/ycRv cnrc/bLP3jqEHaGqNnt3532193nrUmQbCJHp2CDs8DGxqFZBZpzu8r6BBCIyizEuq2sG B7P8TtttCHzh03mza9oh3/iZgqbqAEOa3zMUkHLnGB1p7+BxfihpKzCW4KeiWYkWqwO4 HT/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=hWKX2lq33x/bqH4d/le0jFr8W3N+Bkvqbw8w1QPkiFM=; b=gVy9alA+GLge4ovMIAbFRR1Wyo5/ulk2giXeMmvgd7hBskyOAtdLQwyheT1XNpYZen p7odoWcaEUQ0btzWJPvqVB2HDMu1mk8qLR+4x8pm+CCfnS/d+M7YqmjIcYxSVDNwQXnS sCk20gGkHK7ilOg3hSy9vQeCJTsdpXnNCuavwBzpx5+70wRJ15hWMxDe9GO5dVbp4P8j VdgrihH/NusoxZR+gxIYwn94wJuiD+FddhS48gkx+fdmo6XK3C0j6lO4VjtoB/iofRTj n1sYn4AePuiMveHFI9ctb1ANakHKE1B+Ng68VDKS61NZCCeYsshpYufdNjFPxGvxpKH3 GBLQ== X-Gm-Message-State: APjAAAUJCJXVtAHo5UeYjHNYK5oNwaLeAA4S9pp28XtXaYtwb3zaUg4s Gwt83Wt+LsGyauvQBvGQfnRl4A== X-Received: by 2002:a5e:d702:: with SMTP id v2mr3816669iom.236.1556603836719; Mon, 29 Apr 2019 22:57:16 -0700 (PDT) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id a124sm926073itc.18.2019.04.29.22.57.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Apr 2019 22:57:16 -0700 (PDT) Date: Mon, 29 Apr 2019 22:57:15 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Stephen Boyd cc: Paul Walmsley , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Paul Walmsley , Wesley Terpstra , Palmer Dabbelt , Michael Turquette , Megan Wachs Subject: Re: [PATCH v3 1/3] clk: analogbits: add Wide-Range PLL library In-Reply-To: <155657878993.168659.6676692672888882237@swboyd.mtv.corp.google.com> Message-ID: References: <20190411082733.3736-2-paul.walmsley@sifive.com> <155632691100.168659.14460051101205812433@swboyd.mtv.corp.google.com> <155657878993.168659.6676692672888882237@swboyd.mtv.corp.google.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 29 Apr 2019, Stephen Boyd wrote: > Quoting Paul Walmsley (2019-04-29 12:42:07) > > On Fri, 26 Apr 2019, Paul Walmsley wrote: > > > On Fri, 26 Apr 2019, Stephen Boyd wrote: > > > > > > > Quoting Paul Walmsley (2019-04-11 01:27:32) > > > > > Add common library code for the Analog Bits Wide-Range PLL (WRPLL) IP > > > > > block, as implemented in TSMC CLN28HPC. > > > > > > > > I haven't deeply reviewed at all, but I already get two problems when > > > > compile testing these patches. I can fix them up if nothing else needs > > > > fixing. > > > > > > > > drivers/clk/analogbits/wrpll-cln28hpc.c:165 __wrpll_calc_divq() warn: should 'target_rate << divq' be a 64 bit type? > > > > drivers/clk/sifive/fu540-prci.c:214:16: error: return expression in void function > > > > > > Hmm, that's odd. I will definitely take a look and repost. > > > > I'm not able to reproduce these problems. The configs tried here were: > > > > - 64-bit RISC-V defconfig w/ PRCI driver enabled (gcc 8.2.0 built with > > crosstool-NG 1.24.0) > > > > - 32-bit ARM defconfig w/ PRCI driver enabled (gcc 8.3.0 built with > > crosstool-NG 1.24.0) > > > > - 32-bit i386 defconfig w/ PRCI driver enabled (gcc > > 5.4.0-6ubuntu1~16.04.11) > > > > Could you post the toolchain and kernel config you're using? > > > > I'm running sparse and smatch too. OK. I was able to reproduce the __wrpll_calc_divq() warning. It's been resolved in the upcoming revision. But I don't see the second error with either sparse or smatch. (This is with sparse at commit 2b96cd804dc7 and smatch at commit f0092daff69d.) - Paul