Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp262037ybz; Thu, 23 Apr 2020 23:19:50 -0700 (PDT) X-Google-Smtp-Source: APiQypJTwqFdKiUQCu7N43zAiv5wzOdtN8/pyX8J/03lAYOgA8GzH6FZ8sxtRgrK2ptBalVgYoHf X-Received: by 2002:a50:d1c6:: with SMTP id i6mr5555750edg.241.1587709189822; Thu, 23 Apr 2020 23:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587709189; cv=none; d=google.com; s=arc-20160816; b=ftUTTZZowSqMGbSWF27m8H4NGMvzBRzN+W/aIf/8QBqjQxUYai01YNhsdtKLGh572S cqSoL2xoWkpETYyaAXmmx/YYlmueJoWNxTtuDrRhtbGEWPzYKGOV53uKV69CRKr3Bpir rGAkdlFhNGqpm/t3Ai+peEA7qrKonW4vSwrfkV4CrKREqSy83McymMHoje31Up/JlZZ4 90v9Lo0OAjS4F3wjMP8qrGdxq1EJZKAbOM3NmImhHk3ncvYct12GquzfOS36w7+/qz0v 9iGbg3cngLC2v6xzsBS9XN1w4lJP2LQt7zmzm4sQiqw2D8pmUYm/JsVfYENtqnUJafNy K9Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:organization:in-reply-to:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=LD/S9IAsJug0y6Gl6E26On69uZ07ThtTMnXIm/PfN4g=; b=zm1CYAKSPqDr/pdBsPYcRx0EhuhA+CGU2pb5YNNael8IXtu8b3oql5xNRvbIImQJBB h9kOaz61s+7rbmsr/Kq5gvunjhRPnrS5Hmeohiix7+ljOhf2fyRh6MEigA4cduGeLfD2 S0oVJyBYDP0rRQCOVWGMZiDfd5CevXT1J/j1u3Jobqnx+okApgt+lWhh5OIN+Nx/+3Ar gne43yUyOnfsuKmp7Flm/kSkc/CUPlQI038gACwTJGSZ2UYcMsobWuSpwjKv9g8iRiFq GYd2YZeeJ+RUeiFG21KPbC7BdCZSUXTHMVt3GagEbGZFo6U2QF1xhiMDHjQFimsb2Xjv Z73g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g11si2670541ejd.148.2020.04.23.23.19.26; Thu, 23 Apr 2020 23:19:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726386AbgDXGSG convert rfc822-to-8bit (ORCPT + 99 others); Fri, 24 Apr 2020 02:18:06 -0400 Received: from mga02.intel.com ([134.134.136.20]:24165 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbgDXGSF (ORCPT ); Fri, 24 Apr 2020 02:18:05 -0400 IronPort-SDR: XsfrEoUXBWMjuIa+yga4mJn1c+hKQE3rrK6ZUTN/E+oQifx6BCa8r1tRIIRrzbiTD3/ZOOyIAX LRHv4MUsehSA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2020 23:18:05 -0700 IronPort-SDR: CMMh7MOlW2PHOf69i2rCxZUoGQjBYXzGWUKRrghXshWnbMa4J890SrsF0POzKmQwBnpobtHclZ 6P4wnWvYB6hA== X-IronPort-AV: E=Sophos;i="5.73,310,1583222400"; d="scan'208";a="430652200" Received: from khelzel-mobl.ger.corp.intel.com (HELO localhost) ([10.252.52.65]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2020 23:18:00 -0700 From: Jani Nikula To: Guru Das Srinagesh , linux-pwm@vger.kernel.org Cc: Guru Das Srinagesh , David Collins , David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Chris Wilson , Thierry Reding , Uwe =?utf-8?Q?Kleine-K=C3=B6ni?= =?utf-8?Q?g?= , Subbaraman Narayanamurthy Subject: Re: [PATCH v13 01/11] drm/i915: Use 64-bit division macro In-Reply-To: <4a3acf8673c08308848fb7ae73d992b6feb758d3.1587523702.git.gurus@codeaurora.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <4a3acf8673c08308848fb7ae73d992b6feb758d3.1587523702.git.gurus@codeaurora.org> Date: Fri, 24 Apr 2020 09:17:58 +0300 Message-ID: <87ftctbe5l.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Apr 2020, Guru Das Srinagesh wrote: > Since the PWM framework is switching struct pwm_state.duty_cycle's > datatype to u64, prepare for this transition by using DIV_ROUND_UP_ULL > to handle a 64-bit dividend. > > To: Jani Nikula > Cc: Joonas Lahtinen > Cc: David Airlie > Cc: Daniel Vetter > Cc: Chris Wilson > Cc: "Ville Syrjälä" > Cc: intel-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Superfluous blank line. Anyway, please preserve the existing acks and reviews [1] so people don't have to do it again. BR, Jani. [1] http://lore.kernel.org/r/87h7yleb0i.fsf@intel.com > Signed-off-by: Guru Das Srinagesh > --- > drivers/gpu/drm/i915/display/intel_panel.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_panel.c b/drivers/gpu/drm/i915/display/intel_panel.c > index 276f438..81547a0 100644 > --- a/drivers/gpu/drm/i915/display/intel_panel.c > +++ b/drivers/gpu/drm/i915/display/intel_panel.c > @@ -1920,7 +1920,7 @@ static int pwm_setup_backlight(struct intel_connector *connector, > return retval; > } > > - level = DIV_ROUND_UP(pwm_get_duty_cycle(panel->backlight.pwm) * 100, > + level = DIV_ROUND_UP_ULL(pwm_get_duty_cycle(panel->backlight.pwm) * 100, > CRC_PMIC_PWM_PERIOD_NS); > panel->backlight.level = > intel_panel_compute_brightness(connector, level); -- Jani Nikula, Intel Open Source Graphics Center