From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94303C4363A for ; Thu, 8 Oct 2020 13:41:34 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3DC1420754 for ; Thu, 8 Oct 2020 13:41:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3DC1420754 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7D6F06E323; Thu, 8 Oct 2020 13:41:33 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 20D4E6E323 for ; Thu, 8 Oct 2020 13:41:32 +0000 (UTC) IronPort-SDR: nNNycDTBhzW3r0Obli8zpCX/DEWwh948IBJ6AfPoN7u8ZztB0WmSFNz7c4old5DQcVltE34O+5 MWPLD0Fm9J+g== X-IronPort-AV: E=McAfee;i="6000,8403,9767"; a="182762530" X-IronPort-AV: E=Sophos;i="5.77,350,1596524400"; d="scan'208";a="182762530" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2020 06:41:13 -0700 IronPort-SDR: H4pfMznqxZF4lUhfg3mzWcBx44ZMDI6l3aWdeoci5LkxHUCgyRVvoAe1ys8iJhh+4iXgz8CIIa Rv681KvdGFfA== X-IronPort-AV: E=Sophos;i="5.77,350,1596524400"; d="scan'208";a="461813734" Received: from ideak-desk.fi.intel.com ([10.237.68.141]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2020 06:41:11 -0700 Date: Thu, 8 Oct 2020 16:41:07 +0300 From: Imre Deak To: Ville Syrjala Message-ID: <20201008134107.GC1784305@ideak-desk.fi.intel.com> References: <20201008101608.8652-1-ville.syrjala@linux.intel.com> <20201008101608.8652-3-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201008101608.8652-3-ville.syrjala@linux.intel.com> Subject: Re: [Intel-gfx] [PATCH 3/3] drm/i915: s/int/u32/ for aux_offset/alignment X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: imre.deak@intel.com Cc: intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Thu, Oct 08, 2020 at 01:16:08PM +0300, Ville Syrjala wrote: > From: Ville Syrj=E4l=E4 > = > ggtt offsets/alignments are u32 everywhere else. Don't use > a signed int for them here. > = > Signed-off-by: Ville Syrj=E4l=E4 Reviewed-by: Imre Deak > --- > drivers/gpu/drm/i915/display/intel_display.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > = > diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/d= rm/i915/display/intel_display.c > index 34ba34f84b2a..fe482ca721f8 100644 > --- a/drivers/gpu/drm/i915/display/intel_display.c > +++ b/drivers/gpu/drm/i915/display/intel_display.c > @@ -4026,8 +4026,8 @@ static int skl_check_nv12_aux_surface(struct intel_= plane_state *plane_state) > = > if (is_ccs_modifier(fb->modifier)) { > int ccs_plane =3D main_to_ccs_plane(fb, uv_plane); > - int aux_offset =3D plane_state->color_plane[ccs_plane].offset; > - int alignment =3D intel_surf_alignment(fb, uv_plane); > + u32 aux_offset =3D plane_state->color_plane[ccs_plane].offset; > + u32 alignment =3D intel_surf_alignment(fb, uv_plane); > = > if (offset > aux_offset) > offset =3D intel_plane_adjust_aligned_offset(&x, &y, > -- = > 2.26.2 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx