Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1725513pxb; Thu, 16 Sep 2021 14:04:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyShMj+ghG8xPUrjXbOojgdV9XGqd6b/Nzf0QQU4JmOHccxScAtz1ruSz2qem+gFKCMCbaf X-Received: by 2002:a17:907:2651:: with SMTP id ar17mr8405607ejc.15.1631826286142; Thu, 16 Sep 2021 14:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631826286; cv=none; d=google.com; s=arc-20160816; b=0PxqwTD4PTOsLHd/Edu5dcZfA+lWlSyMIiz/0DLDAk5Bi7Q8vhcnDYPIg7LR3lKFs3 XjjZ+ZlAlRgg8Fy3Lcq6C+m61TqHtXlcTq6f+IVTERRZZ8YlZfZBWH7zopX3nuP3NIdo r7rSwub2OT4SPXeWBerW8rEY5mPTAWtJtHjfBXPEgvpcKww/++q94JyvxZt9iMEs2BDr z15M3s2f9ditOQKw/jKY5HgRGLmFPgIO13/nbRho1Dpe9BdBip4FuabostVkgGzBJ+Qz 4Uu2YkkMBQPS5EnLHmFZ1XWoVakntSTGpalFm3LEaT0cDMN1rcZ+mckuMXPWPAsZDR81 b+tA== 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=0ZS7fJA1dmVcj6G4C8Fy8wm3/3q1QEYNcAp8KTyyERI=; b=CgG9PL28IDrpCwh4JQ2x2c2qVosq81W77SG2mlprkaCHtdH4ewvotxeCZ8Qsn6WOSW bnBYC9bOey7RTswmtHxkTa6VRM2Iz3bMwTU+NQ399i205guUZaBgCHiZayAliZbbwZEy fQtmNt5dIfYtHxwdCGu8L+2qCQoF4dItehH6kOucjZyuaFDu4FD9vuqB2tGaIKGUw/Jq lyV2VPyqCtZRdax/rw/9RgKv8w01apJ6Ny9Vyn9Xwktax05sRDtQoIeeUh5NYpxS/ZvY Jl3n/11cqiK9z1nqWIL9P792ycgtEDhhKu2OLOvfINPT7XRAKkTyZRRP2kPM5VHscZ0y y3mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=laWqUb4P; 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 i13si4615397edq.512.2021.09.16.14.04.13; Thu, 16 Sep 2021 14:04:46 -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=laWqUb4P; 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 S232775AbhIPQdp (ORCPT + 99 others); Thu, 16 Sep 2021 12:33:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:37898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241184AbhIPQZ3 (ORCPT ); Thu, 16 Sep 2021 12:25:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4D31610D1; Thu, 16 Sep 2021 16:16:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808999; bh=KogY5S6F5QZJobUtOmE8FKHvh/DEuFLnpzoyhr91zvo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=laWqUb4PJfsqq/ykpvsNU4uU+/ztH4hrZnMTUw2aFZGOvcK1iukNlpFlo/4m/ub4d symys1eZLHc4Pr5LaVGlqyt1tEieUgd6G0Jooh2WBKVVd0DPEyBtudv8c80COJDmp6 RFtvb9YLU41zTZZDtHSdGbz/+qmvv99LFMlobtKE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, stable@kernel.org, Andrey Grodzovsky , =?UTF-8?q?Christian=20K=C3=B6nig?= Subject: [PATCH 5.10 300/306] drm/amdgpu: Fix BUG_ON assert Date: Thu, 16 Sep 2021 18:00:45 +0200 Message-Id: <20210916155804.317306408@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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: Andrey Grodzovsky commit ea7acd7c5967542353430947f3faf699e70602e5 upstream. With added CPU domain to placement you can have now 3 placemnts at once. CC: stable@kernel.org Signed-off-by: Andrey Grodzovsky Reviewed-by: Christian König Link: https://patchwork.freedesktop.org/patch/msgid/20210622162339.761651-5-andrey.grodzovsky@amd.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -207,7 +207,7 @@ void amdgpu_bo_placement_from_domain(str c++; } - BUG_ON(c >= AMDGPU_BO_MAX_PLACEMENTS); + BUG_ON(c > AMDGPU_BO_MAX_PLACEMENTS); placement->num_placement = c; placement->placement = places;