Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp226535pxj; Tue, 18 May 2021 01:49:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTjyyq0k7s5C/uA2cZs/Aoglz7R7PdhayI+/FB8fY6yr6yFyM+Ij3sOK9WH2mEClTIdn4E X-Received: by 2002:a05:6e02:1bef:: with SMTP id y15mr3275497ilv.305.1621327794791; Tue, 18 May 2021 01:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621327794; cv=none; d=google.com; s=arc-20160816; b=i5H+O530f7TfVwr4gmAXY87CImSEe9/O65hgArOMj2bYho8PIz5+3ZtM/Z14xCLTbe fibUlPjBd22h4LrqpbM/Vs5Dt6QdXOD+7Qx4OPP8HiPTS7TzcHurefi6x6kh2RcPBuih jYSMnIsxMflHHxGROYIw26z54+TyIpviTIHDzd1uvsbd/QSEQOnhPjhkq+6ueJcaWN1G My6FCMwKlAee+tz7A9VQefn/4LH2bZCAT97pkM4UjNsaRWqB7jl5HpBy2kbk5OU3K6bQ F6S9H5mqmU3UaW+qcaoxxXF4IwmcnuTNw8NQ3rdjA/e5RFkHPk+FqIGy/Tz5HMMKnGl5 /t0g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tZr+dXPQkU1/WkEPXDO1oyRWKtt1df+8KDPaCR+p+d4=; b=vJ/Rji4zP2rUhqc65i58EbPtlHEGI0uwzlNqK9amEGPYmRwdtafBPILWeAFaWTRBk+ g4QJ69B5h3Sv0tVPyU91iAr+j5X5SHTE24GqBPR6B1cGZnQDa1gjSbLUSM9ODqZWrgKs ZkpmS9peUDWciXS1QUFutyT23hxmVH+IJBDbg0bYF6mJSl6Obq7hX/p6/RQcJCSqD0Z3 dSBy3LI0lyyqWe6WzwRWch/Tos8eebz/9IUrF3JwXQHDFtyPIt+U0QzuawjOkSOeT3Ib 2LAA/xR0I5BamZFGWwS2SBBcjlpcPzHNwedVTy0BfErCxqj8PVCx3KikZ9dj0dKcCoo5 xTgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jIitNiqy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si23777964ila.138.2021.05.18.01.49.39; Tue, 18 May 2021 01:49:54 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jIitNiqy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241555AbhEQPCa (ORCPT + 99 others); Mon, 17 May 2021 11:02:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:48860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240245AbhEQOwb (ORCPT ); Mon, 17 May 2021 10:52:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CF9FD61285; Mon, 17 May 2021 14:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261432; bh=AJygNUVoXLm9cwR2YFmquQx+fAOqWhYWxBsp02vkKvY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jIitNiqycN7LNWGvNE9sLFHvC+a6dfj0WGJrzFmTcd8WF3b8MHg/vm/k11jfUoSEc Ifjiey7sNilIFVNy0N4Jna09Q2efQ2J0SjUDFRitfQ934zN110aS+Rx6IpLmv590wl OEo2z4utnXX+py7vkHygUPGon0lPpP8FnFQuZ+dM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Wilson , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Jani Nikula Subject: [PATCH 5.12 345/363] drm/i915: Read C0DRB3/C1DRB3 as 16 bits again Date: Mon, 17 May 2021 16:03:31 +0200 Message-Id: <20210517140314.265585190@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ville Syrjälä commit 04d019961fd15de92874575536310243a0d4c5c5 upstream. We've defined C0DRB3/C1DRB3 as 16 bit registers, so access them as such. Fixes: 1c8242c3a4b2 ("drm/i915: Use unchecked writes for setting up the fences") Reviewed-by: Chris Wilson Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20210421153401.13847-3-ville.syrjala@linux.intel.com (cherry picked from commit f765a5b48c667bdada5e49d5e0f23f8c0687b21b) Signed-off-by: Jani Nikula Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c +++ b/drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c @@ -670,8 +670,8 @@ static void detect_bit_6_swizzle(struct * banks of memory are paired and unswizzled on the * uneven portion, so leave that as unknown. */ - if (intel_uncore_read(uncore, C0DRB3) == - intel_uncore_read(uncore, C1DRB3)) { + if (intel_uncore_read16(uncore, C0DRB3) == + intel_uncore_read16(uncore, C1DRB3)) { swizzle_x = I915_BIT_6_SWIZZLE_9_10; swizzle_y = I915_BIT_6_SWIZZLE_9; }