From patchwork Thu Dec 20 18:47:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chia-I Wu X-Patchwork-Id: 10739343 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5882314E2 for ; Thu, 20 Dec 2018 18:47:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A72628BDC for ; Thu, 20 Dec 2018 18:47:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EBE928C11; Thu, 20 Dec 2018 18:47:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DA6C228C1F for ; Thu, 20 Dec 2018 18:47:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0194E6F4B5; Thu, 20 Dec 2018 18:47:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by gabe.freedesktop.org (Postfix) with ESMTPS id A812A6F4B5; Thu, 20 Dec 2018 18:47:04 +0000 (UTC) Received: by mail-pl1-x644.google.com with SMTP id a14so1264684plm.12; Thu, 20 Dec 2018 10:47:04 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=wjRDP2PpG1RL7N6j2uEe65ZbndPFQ2qcBW79OGHW4OQ=; b=LYQfnDodwyrdkXINc51ECP6Y0WaDJFo9/0KIcWsTOWqB0vFSElQENE+f9b28ZdB8uz YBUkmzgelIOhoXqMyU5arSOCSJSQH/cP8IMTOh0yFqHaXScfidQd8O/aTpr+sM4sxEk+ bAmNNJF/duHVbZoPipxQi8mEQAToVDEVOC90lBM+0n7S05f/zHe1rrHbbRqrwwaxyAc+ bLSMrhczz25blYqaW79y79Og+cD1h3USek3wgtiEhWk4j15g3sjNPUIYykds/DyMXveo zlOjHo4+DOQAxcYFAGb8ocYvKkk56fJzrCxTxdWHrhMwA9AS5LCuA9BSBz9Dg3cGTDhJ pn1g== X-Gm-Message-State: AA+aEWZy0/vsrvfu9miYvnt+6zaBqMLedvqTQLq3QHPhEdK9KE0laAKU bx4sd0qlZXjL5qigaepN/p6QLLQgPJ8= X-Google-Smtp-Source: AFSGD/XRCkMFRiwLbMPjBXaVlcNx0eDyicQdCp1jOI3IKZTlAecLjbIhKg/rStL4/3P7AccEmwDYBg== X-Received: by 2002:a17:902:2dc3:: with SMTP id p61mr24609906plb.166.1545331623800; Thu, 20 Dec 2018 10:47:03 -0800 (PST) Received: from olv0.mtv.corp.google.com ([2620:15c:202:201:9649:82d6:f889:b307]) by smtp.gmail.com with ESMTPSA id o189sm32928060pfg.117.2018.12.20.10.47.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 10:47:02 -0800 (PST) From: Chia-I Wu To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/msm/gpu: fix bo size for msm_rbmemptrs Date: Thu, 20 Dec 2018 10:47:02 -0800 Message-Id: <20181220184702.103067-1-olvaffe@gmail.com> X-Mailer: git-send-email 2.20.1.415.g653613c723-goog MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP memptrs_bo is used to store msm_rbmemptrs. Size it correctly. Signed-off-by: Chia-I Wu --- drivers/gpu/drm/msm/msm_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index 11aac8337066..d23049eb29c4 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -917,7 +917,7 @@ int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev, goto fail; } - memptrs = msm_gem_kernel_new(drm, sizeof(*gpu->memptrs_bo), + memptrs = msm_gem_kernel_new(drm, sizeof(struct msm_rbmemptrs) * nr_rings, MSM_BO_UNCACHED, gpu->aspace, &gpu->memptrs_bo, &memptrs_iova);