Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4376815ybi; Mon, 15 Jul 2019 08:03:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqy45sbPn+AhkSDdAgOxDqIW8t4lHDE5RhOCd/dS2VpKocQSCO3NZOgXlj3AELyNwxhls2NL X-Received: by 2002:a17:902:4c88:: with SMTP id b8mr29889004ple.29.1563203016655; Mon, 15 Jul 2019 08:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563203016; cv=none; d=google.com; s=arc-20160816; b=J2HJIpHpkNNEANt9PrATlUY/Q2PRMqmXU9w38HYVtVVzJBp6lWERJ19tI22dre3M70 uK4UStJX+tcGDVjjexhCp+wMMih815VMwMnc4mtetAXZRu10mBGijCrAC5ZmLnAVzvWV nGAUo/Uqum4rRqHboCQmxf0QGEr2z8TK+4mUTjO1G2TQJ1QEha/EZGrCmhn5TM1A9hxP pSulo1TuCtD+tewinTc6omyDnSiQXb8HjIJ3FEkFmBhm5oyVjC59dZnTmwjexRYuuN2y J8PJyaDwz+NpFgeIvZQd9Tjn+EHQ/isxDzRsaruQf8l0+CtlfwJxIKY8TIKT+OI7hZsH Jgsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+kIXA8GU85p3Yokp73M6SuuvQd6PpNvvlT7z0N2F4io=; b=zJ98CeUvetgUDancw0YUINsM/JIZIcWVLbysJios/UrkkYCr9z6YIqxwIh4QCfsl0z 3xzduwHwOryqnCO0syya5xZ4Xi0RyBxuQHI233BnkQfEE8c9OGKV0AdyL9If7/8IDkN3 gf7Pi7APsMR/uCxCk9DsXtqsZQYmid/mJd2gbFSCLpA+Ge5RCMO5xU5nkqaOoK0DBwT5 VS3HiPyEzYIdcEuIRqurnjxXjClRUJEGvBrqu9AmSTHo/BxzILwuew2wKMucaJXqzmTh /g9He0+DQHAP4875iUpdF94vk/1WYviPtKIUgMOFR8OAzW3DGZhwrjjYYwW2Lu0MzODu feUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uwOKluNF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v76si12847820pgb.311.2019.07.15.08.03.20; Mon, 15 Jul 2019 08:03:36 -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=@gmail.com header.s=20161025 header.b=uwOKluNF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390429AbfGOPCG (ORCPT + 99 others); Mon, 15 Jul 2019 11:02:06 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:43696 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389254AbfGOPCD (ORCPT ); Mon, 15 Jul 2019 11:02:03 -0400 Received: by mail-io1-f66.google.com with SMTP id k20so34528369ios.10 for ; Mon, 15 Jul 2019 08:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+kIXA8GU85p3Yokp73M6SuuvQd6PpNvvlT7z0N2F4io=; b=uwOKluNFh794Wb7BC3FTX0afdBMT1OJ6kZ7FACFrFkihCtoLPhrfNIgoArARcCPDoC B7SsB+3pXOpcJNCX5VZFyh7ssMJLqdrKjI4z/4SL/JNj4id4zVwuQA0/OPDFcXc+SVC6 CcXxEqZce5f7qQkJnzx4Z4rxuJ1phGq1YbxhwUPnIrO3PfJlF9iaPS7dgpegpkJZ6+Sn U2nrDtUxdhBMhUX7ejnCMJRIbEefmz8JIfWoMbxZzEusfuYZNCLygcBGtVCeFwqZhg2Y yI+NHqRKLMZBLE6Isp5g8Eh0PrCBT01MCHMONSs+p/5ECGqihpPOenvXW6wYUIlU7xen +BYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+kIXA8GU85p3Yokp73M6SuuvQd6PpNvvlT7z0N2F4io=; b=CsTReTCkLtJH1tYKD6ORYPv/U8gFuY1bRhR9F6r1la/15nRX0AjTY79bnitSePU0bV 7rgspOKXgGKuRLfT7NRMNlXqQxQSqw83rBCkC/1biYrclALr32e2falGWda/zbzAWL5T QNRCJJuqERZnICx4U4pfQueHRRLYDNynyCV2AqtykLR8g/J05Y5lNx++M3snmL6rxET4 KDz6gP3gjZJCz68blTrRw4ZoIPg2wDfQHKVlpPjkaYPy/B2Zc9CmdERdU28CKYSgrk9i 0I8c3weMnRuQNXJhK7lFErX/zaOq/CGBt7zc2M2fdP41QN2f8ifZE62D3g2r//CCCL8+ As0Q== X-Gm-Message-State: APjAAAXvHiETZExde9UhumDRGJUDFEn1uTUYpoheH9NbWis4RzcSESMm gjG2lZSyCILppGhCb8WZYovFrWeVXxqKW7xV3A== X-Received: by 2002:a6b:b756:: with SMTP id h83mr25547012iof.147.1563202922237; Mon, 15 Jul 2019 08:02:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Avi Fishman Date: Mon, 15 Jul 2019 18:01:15 +0300 Message-ID: Subject: Re: [PATCH] clocksource/drivers/npcm: fix GENMASK and timer operation To: Thomas Gleixner Cc: Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Daniel Lezcano , OpenBMC Maillist , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, Thanks, Avi On Mon, Jul 15, 2019 at 3:37 PM Thomas Gleixner wrote: > > Avi, > > On Mon, 15 Jul 2019, Avi Fishman wrote: > > > NPCM7XX_Tx_OPER GENMASK was wrong, > > That part is already fixed upstream: > > 9bdd7bb3a844 ("clocksource/drivers/npcm: Fix misuse of GENMASK macro") The automatic fix changed from GENMASK(3, 27) to GENMASK(27, 3) I reviewd again the code to check how it worked so far and saw that it should have been GENMASK(28, 27) - this is a different value than 9bdd7bb3a844 For our fortune this wrong value didn't effect the our final write to the register. But still this should be fixed. > > > npcm7xx_timer_oneshot() did wrong calculation > > That changelog is pretty unspecific. It does not tell what is wrong and > which consequences that has. Please be a bit more specific. OK I will fix > > Thanks, > > tglx -- Regards, Avi