Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4745594rdh; Wed, 29 Nov 2023 09:27:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0GmIfPR/JhTa7iMrY7/W4aNrB680FDrfKAobfD/5XHyYR4egQ5UWGmyETpxXU0O+HC/Mi X-Received: by 2002:a92:ca4a:0:b0:35c:f500:cfaa with SMTP id q10-20020a92ca4a000000b0035cf500cfaamr11916014ilo.24.1701278847976; Wed, 29 Nov 2023 09:27:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701278847; cv=none; d=google.com; s=arc-20160816; b=emlnOeAeTcJOeqbdnViPKQzqHZZ8I5wcnNsALM02upHoyzfVHSuJCJJ02oFi0r9jqB aFCu1xgVj/tr3RaIJ1IGUXo8mREzzqPWNaGWzxfNRZrBwyKQUUHwvw7nIq387/U2tW5n h80cgnpLgSxmQkZP5Fcwqi4RoNIYpDjiolmgpTBDu4oaQc0a6eIC4maANdpBEYaUBxGv tivuOpyRM9nyL20ApZlA2xSTH11sdeh+QfJDs/gIPXyxpvjcSVVtLlQo4gH4DHHw711F 9fYsiKwJ78AOugjtvAdKyhGAfzg+VCG0iEgpZJZDc+oOpwApAsB/P8c8XQ7jNRYHhemg a+mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=6CaoHoEiVWayOKN5+qiw+UOex+gWwV/fZ/NrtPizjuo=; fh=cvi+/cVnAxloSzMHxTJDH8XK0QMLHDCEhUajCaGJvks=; b=ARsIJXx6A4HVhcSiz4D7GTjMo2eBXwxVRvipKrCglpwbGdBAQcDleomslpWpsY/5XY 9TFPvU6sKVI0pSLrxDoYmdHAfuH5oDeeioL3VfHct6kUBS4r3nwVgHzwRIuzZcjSBBPJ 4tvUqvbj6S46uXnMsZnmDeBEA8cKa+arIJV+jeJmwqsEPuPzj+0YoXhAfkPKxmZJFSay qKNZDV+av3pOV6kzgfpivVrANur561QOAMhHu9z5Qxaz7LmAgkrlZQexJVlUOAGZ+AAx ar5ePPkSTX8CE56X9ZNJGZ71YKGY6erPY3MC07MM+C9OGIJ/okbsFdeG57khp0HQF7ZK j0Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dZ10D57Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f2-20020a635542000000b005c203ac7792si14358513pgm.152.2023.11.29.09.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 09:27:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dZ10D57Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 05B3B8043ECC; Wed, 29 Nov 2023 09:27:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjK2R1F (ORCPT + 99 others); Wed, 29 Nov 2023 12:27:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232118AbjK2R1A (ORCPT ); Wed, 29 Nov 2023 12:27:00 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBC18D6E for ; Wed, 29 Nov 2023 09:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701278825; x=1732814825; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=k2mWoObv1gssBSVnmPKejJUs1lly2wTPzdjAYt7xRog=; b=dZ10D57QLrO2D5WvU0IAcMyoSW+NktEROQ3v7noBF20Wb0NUL4cXxBp5 DXuuieYuFWnv2hruOP2qEv/9PzvYjOFKf+igV0+gP28R9fj3LNZt4wxvU sNmDt6ADoH6VKk+b21TfPyezO0mlVA+ozdClJQo0I4+MW4nU1AZCTrb36 1SlSuT/kaKVAHyv1aPd7uEA//XjT0HOY4Yp1bOEZxgncePig6F666Wr4o 1KY4su+9c/+IjPyahkyFPOuGa1lI/YeBKtBJDfvlS4gSdvk9XoHJFP1Sd 77h2u996OBdRMPsH1xlW0uN+C0jXq+K0WEjX5CNTec/y+Lw13ErxP49wB w==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="392942186" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="392942186" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 09:27:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="10413712" Received: from dstavrak-mobl.ger.corp.intel.com (HELO localhost) ([10.252.60.61]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 09:27:00 -0800 From: Jani Nikula To: heminhong , heminhong@kylinos.cn Cc: airlied@gmail.com, animesh.manna@intel.com, ankit.k.nautiyal@intel.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, joonas.lahtinen@linux.intel.com, linux-kernel@vger.kernel.org, rodrigo.vivi@intel.com, tvrtko.ursulin@linux.intel.com, kernel test robot , Ville =?utf-8?B?U3lyasOkbMOk?= , Uma Shankar Subject: Re: [PATCH v2] drm/i915: correct the input parameter on _intel_dsb_commit() In-Reply-To: <20231114024341.14524-1-heminhong@kylinos.cn> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20231113033613.30339-1-heminhong@kylinos.cn> <20231114024341.14524-1-heminhong@kylinos.cn> Date: Wed, 29 Nov 2023 19:26:57 +0200 Message-ID: <87fs0o5v32.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 29 Nov 2023 09:27:25 -0800 (PST) On Tue, 14 Nov 2023, heminhong wrote: > Current, the dewake_scanline variable is defined as unsigned int, > an unsigned int variable that is always greater than or equal to 0. > when _intel_dsb_commit function is called by intel_dsb_commit function, > the dewake_scanline variable may have an int value. > So the dewake_scanline variable is necessary to defined as an int. > > Fixes: f83b94d23770 ("drm/i915/dsb: Use DEwake to combat PkgC latency") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202310052201.AnVbpgPr-lkp@i= ntel.com/ > Cc: Ville Syrj=C3=A4l=C3=A4 > Cc: Uma Shankar > > Signed-off-by: heminhong Pushed to drm-intel-next, thanks for the patch. BR, Jani. > --- > drivers/gpu/drm/i915/display/intel_dsb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_dsb.c b/drivers/gpu/drm/i= 915/display/intel_dsb.c > index 78b6fe24dcd8..7fd6280c54a7 100644 > --- a/drivers/gpu/drm/i915/display/intel_dsb.c > +++ b/drivers/gpu/drm/i915/display/intel_dsb.c > @@ -340,7 +340,7 @@ static int intel_dsb_dewake_scanline(const struct int= el_crtc_state *crtc_state) > } >=20=20 > static void _intel_dsb_commit(struct intel_dsb *dsb, u32 ctrl, > - unsigned int dewake_scanline) > + int dewake_scanline) > { > struct intel_crtc *crtc =3D dsb->crtc; > struct drm_i915_private *dev_priv =3D to_i915(crtc->base.dev); --=20 Jani Nikula, Intel