From patchwork Fri Jan 26 18:29:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "StDenis, Tom" X-Patchwork-Id: 10186719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6449760383 for ; Fri, 26 Jan 2018 18:30:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53158297F7 for ; Fri, 26 Jan 2018 18:30:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45A7329C0C; Fri, 26 Jan 2018 18:30: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=-2.6 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, T_DKIM_INVALID 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 E75B0297F7 for ; Fri, 26 Jan 2018 18:30:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7319F6E73C; Fri, 26 Jan 2018 18:29:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0071.outbound.protection.outlook.com [104.47.36.71]) by gabe.freedesktop.org (Postfix) with ESMTPS id 51AFC6E733; Fri, 26 Jan 2018 18:29:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bsB48MV73bn+w9YUK/a62z5Et135JAzTElRe69wLAL4=; b=b4yytbLv0AKs7Gj1IOSbankt/dTQB3cPrI8VtdUC0rhpbTAB8BktUiY2y9lOOfb+9qp2RZppzkAUOUnZLILkMJa9fRs8i+CM2aM0IVLvLkKa7iqXwVLXx+BrhzlyPccxfj4trq401ilk21Nabym5kbtd9iqdL1hE5YZVFfzMDSw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Tom.StDenis@amd.com; Received: from fx8.amd.com (165.204.55.251) by DM5PR1201MB0076.namprd12.prod.outlook.com (10.174.106.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Fri, 26 Jan 2018 18:29:34 +0000 From: Tom St Denis To: amd-gfx@lists.freedesktop.org Subject: [PATCH 11/12] drm/ttm: Fix 'buf' pointer update in ttm_bo_vm_access_kmap() Date: Fri, 26 Jan 2018 13:29:10 -0500 Message-Id: <20180126182911.20761-12-tom.stdenis@amd.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180126182911.20761-1-tom.stdenis@amd.com> References: <20180126182911.20761-1-tom.stdenis@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: MWHPR03CA0027.namprd03.prod.outlook.com (10.174.173.144) To DM5PR1201MB0076.namprd12.prod.outlook.com (10.174.106.18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9c501e88-6368-4ad4-5b25-08d564eac03e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM5PR1201MB0076; X-Microsoft-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8h+BJuB1ei2UCrcXa4MJOvsBc73y2DeK8BVsjTDEBEvQU1C1Lupb5zgpHj1lGwV8BQ4uuwxC5Yd/YjVqNowibggBR8AK83GD5EViBlgsURKoabQ2xW3uwS0jdIN3YRaKFlUD/ZXnj6EN05mRqCpDlSSDd3eMGY6gjQalRyVj2F8Oow7jud3LQh6YxBSRtDQa6iUTjn1oTOeou5HjkohUKdACQHee9u9yF6KqQeuKUjUNT8GhITyMlshLLYoYMyQRp2sb+4CkCTI6ozkRxt7lF2TWw0G2VkzprtGvM8lsy2yT/klN/N/KeuYxLfNqEQYRou+x06PKu0UrPWnxblSFJZ1POAdiilakXrUiiGM7CQgkBMH+6ghI5an7asqdF2Z1J; 4:JuDGp6KuHj0Cyd51AdcxD9KJY+i1+X3q/rebG2zeAfeAz7CQCt2yiOWPK3Ga6R4Y3YHtN0PRPutC3qsv7ygPN+VJ6vW0FSTuRY9WBnkx12YwHcvmpWWyXKj0E9Qw/MGsBes+zDsQ9eN1QaBSRd9AiqBhfeXcXRZeZP04kfrogN7jV8EcG/OxJI9EOElWsqZslN3iuNW9lGU7x6I32HtCYq647bERn76buPS7rADTQu2OAeehZ8pUh0aW2NZkM/pEAZk2VB2I9fmjDT3MSG9Rgte+FrWgI7ckYg+TO59MhzJYzpByxDb9otmrjv3p+hgR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231075)(2400081)(944501161)(93006095)(93001095)(6055026)(6041288)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM5PR1201MB0076; BCL:0; PCL:0; RULEID:; SRVR:DM5PR1201MB0076; X-Forefront-PRVS: 05641FD966 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(376002)(396003)(39380400002)(346002)(199004)(189003)(6916009)(2950100002)(6666003)(7736002)(305945005)(5660300001)(1076002)(6486002)(6116002)(3846002)(53936002)(86362001)(51416003)(16526019)(81156014)(7696005)(52116002)(186003)(26005)(8676002)(97736004)(59450400001)(386003)(50226002)(53416004)(76176011)(8936002)(81166006)(25786009)(36756003)(316002)(478600001)(72206003)(47776003)(50466002)(68736007)(16586007)(48376002)(450100002)(66066001)(4326008)(2361001)(106356001)(105586002)(2906002)(2351001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR1201MB0076; H:fx8.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR1201MB0076; 23:mDKVWGsivnyqFaGZ2cABLSlo+w6DGNwpLIu87of?= =?us-ascii?Q?qOOo4XvXf/CzNfl3OWXR9cq/LmxwY4+A8GaUheg5o+vsJprmUexzE7yOGRHc?= =?us-ascii?Q?yuVKCCVmtBkQdL7uoRsUez6qgcz73xwBfwf43Ry8kzGvMJkiZJZMpMNanPBU?= =?us-ascii?Q?iElpKEo6UI3VYex8gAAi8nFm0zeFc2Rk1x2yGlDAOEwjNxme8TbN/U6TBuDt?= =?us-ascii?Q?4l2ZsuBaa5SCz7EZ6xywTmbdp1cvteH+sJPxArZuHBYvLZDZRcJ0cNA6cKyQ?= =?us-ascii?Q?P0pGzdOkHZ96AaWY/+GevVjFlHsZLkHdPqx3BctzmbTbuzvSMbiIhpFlF0cA?= =?us-ascii?Q?Kk8ljLVeF6ozTxf3mSCvZ2EfxTuLhVKIp0Yga2tVMUaWgttq+lo4b5+2DJXM?= =?us-ascii?Q?JFsbqUgxaKqef7ZZjhDZ9bldAP9dwWyd8eHWfThKn01y8v4APlw4yUQ8736t?= =?us-ascii?Q?KOaa1HgaAPWEB0jABlN1mMr/lTfVsxCWFEj7urh4e2ceA6kbY89nMlheUmiT?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zkprU7lH3fNCIGHIIEKmwe9y3Qw+cwCJkvM3omEcKNl/ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2018 18:29:34.6980 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9c501e88-6368-4ad4-5b25-08d564eac03e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0076 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: Tom St Denis , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Tom St Denis --- drivers/gpu/drm/ttm/ttm_bo_vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo_vm.c b/drivers/gpu/drm/ttm/ttm_bo_vm.c index 07b22f04b969..6311f8a481ea 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_vm.c +++ b/drivers/gpu/drm/ttm/ttm_bo_vm.c @@ -345,6 +345,7 @@ static int ttm_bo_vm_access_kmap(struct ttm_buffer_object *bo, page++; bytes_left -= bytes; offset = 0; + buf += bytes; } while (bytes_left); return len;