From patchwork Tue Feb 18 18:04:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nirmoy Das X-Patchwork-Id: 11390663 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5829A109A for ; Wed, 19 Feb 2020 08:20:43 +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 34F8F2176D for ; Wed, 19 Feb 2020 08:20:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JbpY4xyN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34F8F2176D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 81A0F6EB1B; Wed, 19 Feb 2020 08:20:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4EBA26E3AC; Tue, 18 Feb 2020 18:02:32 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id w15so25089524wru.4; Tue, 18 Feb 2020 10:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SkMYoetILOEv+7/xvoq38HUxhCYQWFNpKsVv8JzZk4k=; b=JbpY4xyN8RLPl/9Obb7Akx//7SVyp7GAdBYVO1TbYHvp9Te2IV5wIyJ9Na3j+3ofpE BViVvzMNPM3qWUAtpAL5VwlJlgud8WTR7kp4rJf5C7xu1dYmWlpKNRkj/hXJqATZ81KQ PASqtwoeKeD339PFeS93Ot9dnHI08/fEyYl65ozUXDilHp0/pn6aK/GRv1f61XzrVR+T BxtbB5yBevO/PcQbCH07XdChqcjNl+e4aiOAwW1rKmTBJ2IGfCa2W3eI6UINfQ+twypH nYHHIUSsz5a3luJwOT1Pca/82RYpCtZpmfoyfSlcwQMvKxG1/6yfom2ovi4fzhcaofPQ EIgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SkMYoetILOEv+7/xvoq38HUxhCYQWFNpKsVv8JzZk4k=; b=iIcoi4WwVP7uuoQKhqbxg89NDMAMVFFDk/B/Wx1S5jRKPxoQJeGhPbi5PPriIWZSDa P8/uQWWbNsmMaQvrUG7AQVKV83xuifcuPDpKGVHvrCaBJU55iA7FHzpfU6f8Ft2npZ/r 9DM61jlKu59diIxtYBJwNvO5iaw1Qqz8djnmXMAtHI1JSmAt9mhN/Z8+JLzEiW7aTuzg 0QaAosFHvxQhMBO7WQasWFFiiegpiLHAFNo07Tai7e652EIcmg9+5WeBTJuCSwSIA/9J RygKzka3upa2pDXiVePina+mb4LktWTKRAPE64S5YrMojAvmCQu39bkvVPLnAH7mEN9E 6sgg== X-Gm-Message-State: APjAAAXFJ7oSNgRxXSuLiiTDcZ/xLAmFUlJexEVc7phmCoN5kI7g0lxu r8ZKI6ZrjKo8CAS4KTrl6gTChe/8D8+A0g== X-Google-Smtp-Source: APXvYqzX7QnOSG7Blk/2WrM68V3hAUUDv+pINKll2m20uNpQ9lO8BD50iUedKg3U2+hJJl79iSdgSw== X-Received: by 2002:a5d:4847:: with SMTP id n7mr29957242wrs.30.1582048950575; Tue, 18 Feb 2020 10:02:30 -0800 (PST) Received: from brihaspati.fritz.box (p200300C58F2CE900751228326401B174.dip0.t-ipconnect.de. [2003:c5:8f2c:e900:7512:2832:6401:b174]) by smtp.gmail.com with ESMTPSA id d16sm7872733wrg.27.2020.02.18.10.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 10:02:30 -0800 (PST) From: Nirmoy Das X-Google-Original-From: Nirmoy Das To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 7/8] drm/bochs: use drm_gem_vram_offset to get bo offset Date: Tue, 18 Feb 2020 19:04:53 +0100 Message-Id: <20200218180454.81866-8-nirmoy.das@amd.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200218180454.81866-1-nirmoy.das@amd.com> References: <20200218180454.81866-1-nirmoy.das@amd.com> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 19 Feb 2020 08:19:59 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thellstrom@vmware.com, airlied@linux.ie, kenny.ho@amd.com, brian.welty@intel.com, amd-gfx@lists.freedesktop.org, nirmoy.das@amd.com, linux-graphics-maintainer@vmware.com, bskeggs@redhat.com, alexander.deucher@amd.com, sean@poorly.run, christian.koenig@amd.com, kraxel@redhat.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Switch over to GEM VRAM's implementation to retrieve bo->offset Signed-off-by: Nirmoy Das Acked-by: Christian König --- drivers/gpu/drm/bochs/bochs_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c index 8066d7d370d5..b8e1079f077e 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -38,7 +38,7 @@ static void bochs_plane_update(struct bochs_device *bochs, state->crtc_x, state->crtc_y, state->fb->pitches[0], - state->fb->offsets[0] + gbo->bo.offset); + state->fb->offsets[0] + drm_gem_vram_offset(gbo)); bochs_hw_setformat(bochs, state->fb->format); }