Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2564709lkm; Mon, 20 Sep 2021 18:50:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOkSAsf3ZgwEh0E1+3KhLbCXa1N2+uFeZeTBp/3E8EgesiD0Fope9LocpxoWwTV3XBrB5L X-Received: by 2002:a92:c84c:: with SMTP id b12mr19647704ilq.105.1632189034938; Mon, 20 Sep 2021 18:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189034; cv=none; d=google.com; s=arc-20160816; b=WpIss6p0/RFxsLv4534OFN2625ZzLt/rC30W+eWincZcvraie+UjX169GgqB2GrxTD Ke7DQdQmjH8Xrf0lg2ZADZUyZ1hRSN0yzxFntCgeemUSPjJzg+TcHFP3+SEwbWuoaO9R OY7URwFvYKUWqFy7OTBIgbZpg7k30Cgo7dbO+UeVW2mkE2eFZD9NqK7h+FxNA4bQbv2P lCQNhEDk7AFgTEu0P4vRzM/eOJFsL3jve9YU9JwbObQ9WtE2BDtO+3rBG4d1xLdIc3MZ cAMxhYLq6jxwdZTUARmENauv3PS4yGa+V+zCC6joaqOwaLghiIgabFniLc8+vKIejews Vjyg== 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=sAJmcMUBZuf7nAqqpC+lxGQMDEWt4swxfc1txAn0Z+A=; b=bR5HOGXFxcBS0dWqb/sLP3Mq/ek/b96n2AEpfJNrgHz1hXbBr78Doc/jPrnzevjcOF 1J1rbOcK/AajU02PIwNa0wgSZE6PxtgWZl4p7VwGFUgYdIL+FmCjLLFdERuI438MUkz+ ygdWS72YnnEkJ0+x5zsilTj3GhEjAad+3Kl8pfp3palTt1Pk6iyqqHW7J9wpYEvTuFi1 zR7+8rx2dpxnMQUujo3RkagOKZB3wdhEkPRYvsykdvUKNNFPnvAevBwEuQxbL8Yd66NY y+0ZdnhOOLdyPN7Qr4XSIfkqOXmLqkz+sWSiIOovvLnKaXva00fNwpkYAi/J9P+gDkX9 R1MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C4Z6KgMQ; 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 b125si14796933jab.33.2021.09.20.18.50.23; Mon, 20 Sep 2021 18:50:34 -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=C4Z6KgMQ; 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 S1347762AbhITSDY (ORCPT + 99 others); Mon, 20 Sep 2021 14:03:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:56862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355814AbhITR4m (ORCPT ); Mon, 20 Sep 2021 13:56:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D3E463213; Mon, 20 Sep 2021 17:14:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158069; bh=OMpf2Tq8oqeZg1jpXlPCZQeyvBrPcPMumc5M0Ak/rXc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C4Z6KgMQeUWxSDwtmVBNtHQ3FV6z684vmmD02qKLN0pi9rNrmh7rMa67DJyPbnrgm SoZG2Ez3GG2YcjZdS8mW1jHRS2Q856pm2a/pkDlREHJJv50IG2FdudL8TOEWrjFEt5 7xarBQYrb79jkS42lWc/lU2UYiXE6jw0k+CYD/gs= 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 4.19 249/293] drm/amdgpu: Fix BUG_ON assert Date: Mon, 20 Sep 2021 18:43:31 +0200 Message-Id: <20210920163941.917793075@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163933.258815435@linuxfoundation.org> References: <20210920163933.258815435@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 @@ -216,7 +216,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;