Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp662668pxj; Tue, 18 May 2021 11:16:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwim4GJzH10aXLyN3BLK4H6upiDSWeq3rsEVnoBSBWqYph5xcHsh5l3Jq2tGdrVmK268V1I X-Received: by 2002:a17:906:3042:: with SMTP id d2mr7418396ejd.234.1621361815121; Tue, 18 May 2021 11:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621361815; cv=none; d=google.com; s=arc-20160816; b=duuTNbalmeVo9qdCjedE8sNcklkQ+yRX8KgW0jO0v9+AlECdRJ2FXy21wMsyWj2EPZ ndNuazNItxfuyI53iLfh+3h8ro880MqGgy9p+Sx0E7XiRPKqzDo4sXvfoeSDs3KsTLW0 7sFYEz1nUFvc76bXc65Drtv87lEZ/QZydKKtsOhGgZaIx8dCmgnJEIqvuxdNyXDhfTl5 /BG63F3U/XZCyTriKsH3LlcSzzksGZLztWFs0aNkHB/k1F9IQHZYzxg+3FVgrXCs7aEC G6K2LXih7quaC/3FdlsADXrZUMdXUzU3cphVfd3c7xkwWszxYQri5T7NqoZ4a6IzRh5I KPVg== 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=CyjcFL1O/qWveQQ3eFt2WmkBqCbPI8GpMqxDbCX/XyY=; b=QvCE8oBjaSc4SnQzOJhoxKnYRDdBCfwWjNjen0zcMZFjPA+iIBZWys0eVHZfZfSqYP XklBsPwzgoPKyqul3Y6SH/qc26iFwjqC6rkwot8iPTsVdCovdqTQ9l2B76FeJIVb2FBU 0fLtdNzDYC30UNFbXtPsApgPGCBBJPQpRe+4OQiJdXikfGk7/ki+9JgLTlCINoh7RQ1M XdjWg3HwahZvh91CpV0kHyNY4Cos+nHgiWdN+ceum5jNMAmy9/x8aJMmRv5XwnyXamBH P342H7n5if/5cEzdnmTI0CgDd2VYAlxxBdSMjDrLwZcGSgyGLkf5FP+UxY5uI5aMx1O/ 6KoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hBSROMs8; 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 b12si6381360eju.490.2021.05.18.11.16.31; Tue, 18 May 2021 11:16:55 -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=hBSROMs8; 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 S1345478AbhEQQNA (ORCPT + 99 others); Mon, 17 May 2021 12:13:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:36524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245544AbhEQPsv (ORCPT ); Mon, 17 May 2021 11:48:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B1FD761D46; Mon, 17 May 2021 14:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262719; bh=DV6v08hIjtCuV/OAyyT9TFRA88JlEAEO4/Ts0IIT250=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hBSROMs8uA7/nBFuzgYydRF/GbNdIPQ/Wltk5OAMi0UuNhQn1cenwbBsMgFXDdy3g t3G2TnwG/8E88iW2nPplwbeIyWMlW1EG7Mi5U40dmeGIyF9euvwm15F6OVZcE4C4V9 RXWa8YkThffWuBhFyhTbng2ksTg5YbB4xQ2wqFu0= 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.10 278/289] drm/i915: Read C0DRB3/C1DRB3 as 16 bits again Date: Mon, 17 May 2021 16:03:23 +0200 Message-Id: <20210517140314.496369638@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@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 @@ -652,8 +652,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; }