From patchwork Sun Nov 20 18:25:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 9438567 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 B2E4760235 for ; Sun, 20 Nov 2016 18:25:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E27328544 for ; Sun, 20 Nov 2016 18:25:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 803222877B; Sun, 20 Nov 2016 18:25:58 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 ED77728544 for ; Sun, 20 Nov 2016 18:25:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 884B56E1AE; Sun, 20 Nov 2016 18:25:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-x244.google.com (mail-qk0-x244.google.com [IPv6:2607:f8b0:400d:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 411BA6E1AE for ; Sun, 20 Nov 2016 18:25:51 +0000 (UTC) Received: by mail-qk0-x244.google.com with SMTP id x190so42460537qkb.0 for ; Sun, 20 Nov 2016 10:25:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=SYzU+0bDywU3ZiPNbbNIyFtE/4h/4YiazWmSlIs91Us=; b=apR6Muwso0IUsg0yzVFV8vnnBIIZhYIdPU02BG1TuCSrU+SxCEPlF5OywXkyxkqMjU NF1AW7g4pZ6Mlr6mk+IkcHk/gMkaq+N31FEppwx6QlWqcC1AcKHBaSWG6vC5bE8RXd0D y9i0R3DaBrjV9gVpJEMQ9SM5FiTZEHUvUn8uLmh4bqSbX70Bforpjf6kebjkm70eaIgq l0Ij/+0SHYVrwEadfv7g/cRHiUIMFR12vuUr+Nmiy26+HKbESKMSBXfLKto1tkJhFnWa 1HpV2Q5RG4PBmYClwiz26RxDJ8LUzixHVkWGDC1YYYgmn4o6pCAGB3uwrLy4lMaPVmw2 B1hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SYzU+0bDywU3ZiPNbbNIyFtE/4h/4YiazWmSlIs91Us=; b=JahnLhEBxEziLcTZ6WOIq/tyHmucFfsSHMqRDNSljKJTp1tpcHpe/Xykgv9BOSMJQW uWBxVIrR2M7ROIk8Ezb8q5nxWzjvZJdhswYgFOnm3EN3bOaV7P9PeKbiVF3rEmwku9ET yypuwdRlF2w53P5vhNVYATe625HFINlYPEal5QltBTaemS1knSts5hvJgetzGQbc8rE/ 5q3jBdNfl2YG5WWs/NfwafwiVWdwovnTQG6YRvyyGRZk1JMt7nW8mUytlGlARDrHBTSW iS68IhRHAj6BZFbUzZSvYvO6YsMrG1eF8nG1UNbKKuHlLfPG3kS6j9dijvNYWbejJqop Yozg== X-Gm-Message-State: AKaTC01g8gIjwSwmMf/xJSBfwu3miGHfbwMLSwgPGTEYjaHA6066cgIPPts7MC66BvoJJA== X-Received: by 10.46.69.139 with SMTP id s133mr5771356lja.12.1479666350124; Sun, 20 Nov 2016 10:25:50 -0800 (PST) Received: from localhost.localdomain ([5.20.238.37]) by smtp.gmail.com with ESMTPSA id 206sm4621487ljj.32.2016.11.20.10.25.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Nov 2016 10:25:49 -0800 (PST) From: Grazvydas Ignotas To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] libdrm: random typo fixes Date: Sun, 20 Nov 2016 20:25:46 +0200 Message-Id: <1479666347-17581-1-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Just some trivial boring typo fixes all over the tree. READMEs and comments only. Signed-off-by: Grazvydas Ignotas Reviewed-by: Alex Deucher --- README | 2 +- include/drm/README | 2 +- intel/intel_bufmgr_fake.c | 4 ++-- intel/intel_bufmgr_gem.c | 6 +++--- radeon/radeon_cs_gem.c | 10 +++++----- radeon/radeon_surface.c | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README b/README index 603a1c1..7eeae38 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ libdrm - userspace library for drm This is libdrm, a userspace library for accessing the DRM, direct -rendering manager, on Linux, BSD and other operating systes that +rendering manager, on Linux, BSD and other operating systems that support the ioctl interface. The library provides wrapper functions for the ioctls to avoid exposing the kernel interface directly, and for chipsets with drm memory manager, support for tracking relocations diff --git a/include/drm/README b/include/drm/README index c3292f3..a50b02c 100644 --- a/include/drm/README +++ b/include/drm/README @@ -89,7 +89,7 @@ Nearly all headers: Status: Trivial. Most UMS headers: - - Not using fixed size interers - compat ioctls are broken. + - Not using fixed size integers - compat ioctls are broken. Status: ? Promote to fixed size ints, which match the current (32bit) ones. diff --git a/intel/intel_bufmgr_fake.c b/intel/intel_bufmgr_fake.c index 24b3732..641df6a 100644 --- a/intel/intel_bufmgr_fake.c +++ b/intel/intel_bufmgr_fake.c @@ -737,7 +737,7 @@ drm_intel_bufmgr_fake_wait_idle(drm_intel_bufmgr_fake *bufmgr_fake) /** * Wait for rendering to a buffer to complete. * - * It is assumed that the bathcbuffer which performed the rendering included + * It is assumed that the batchbuffer which performed the rendering included * the necessary flushing. */ static void @@ -1200,7 +1200,7 @@ static int assert(!(bo_fake->flags & (BM_NO_BACKING_STORE | BM_PINNED))); /* Actually, should be able to just wait for a fence on the - * mmory, hich we would be tracking when we free it. Waiting + * memory, which we would be tracking when we free it. Waiting * for idle is a sufficiently large hammer for now. */ drm_intel_bufmgr_fake_wait_idle(bufmgr_fake); diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index 15c79b3..612b125 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -256,7 +256,7 @@ struct _drm_intel_bo_gem { * Boolean of whether the GPU is definitely not accessing the buffer. * * This is only valid when reusable, since non-reusable - * buffers are those that have been shared wth other + * buffers are those that have been shared with other * processes, so we don't know their state. */ bool idle; @@ -294,7 +294,7 @@ struct _drm_intel_bo_gem { */ int reloc_tree_fences; - /** Flags that we may need to do the SW_FINSIH ioctl on unmap. */ + /** Flags that we may need to do the SW_FINISH ioctl on unmap. */ bool mapped_cpu_write; }; @@ -1719,7 +1719,7 @@ static int drm_intel_gem_bo_unmap(drm_intel_bo *bo) } /* We need to unmap after every innovation as we cannot track - * an open vma for every bo as that will exhaasut the system + * an open vma for every bo as that will exhaust the system * limits and cause later failures. */ if (--bo_gem->map_count == 0) { diff --git a/radeon/radeon_cs_gem.c b/radeon/radeon_cs_gem.c index 23f33af..f3dccb6 100644 --- a/radeon/radeon_cs_gem.c +++ b/radeon/radeon_cs_gem.c @@ -189,7 +189,7 @@ static int cs_gem_write_reloc(struct radeon_cs_int *cs, /* check domains */ if ((read_domain && write_domain) || (!read_domain && !write_domain)) { /* in one CS a bo can only be in read or write domain but not - * in read & write domain at the same sime + * in read & write domain at the same time */ return -EINVAL; } @@ -242,7 +242,7 @@ static int cs_gem_write_reloc(struct radeon_cs_int *cs, } /* new relocation */ if (csg->base.crelocs >= csg->nrelocs) { - /* allocate more memory (TODO: should use a slab allocatore maybe) */ + /* allocate more memory (TODO: should use a slab allocator maybe) */ uint32_t *tmp, size; size = ((csg->nrelocs + 1) * sizeof(struct radeon_bo*)); tmp = (uint32_t*)realloc(csg->relocs_bo, size); @@ -268,7 +268,7 @@ static int cs_gem_write_reloc(struct radeon_cs_int *cs, reloc->flags = flags; csg->chunks[1].length_dw += RELOC_SIZE; radeon_bo_ref(bo); - /* bo might be referenced from another context so have to use atomic opertions */ + /* bo might be referenced from another context so have to use atomic operations */ atomic_add((atomic_t *)radeon_gem_get_reloc_in_cs(bo), cs->id); cs->relocs_total_size += boi->size; radeon_cs_write_dword((struct radeon_cs *)cs, 0xc0001000); @@ -449,7 +449,7 @@ static int cs_gem_emit(struct radeon_cs_int *cs) &csg->cs, sizeof(struct drm_radeon_cs)); for (i = 0; i < csg->base.crelocs; i++) { csg->relocs_bo[i]->space_accounted = 0; - /* bo might be referenced from another context so have to use atomic opertions */ + /* bo might be referenced from another context so have to use atomic operations */ atomic_dec((atomic_t *)radeon_gem_get_reloc_in_cs((struct radeon_bo*)csg->relocs_bo[i]), cs->id); radeon_bo_unref((struct radeon_bo *)csg->relocs_bo[i]); csg->relocs_bo[i] = NULL; @@ -481,7 +481,7 @@ static int cs_gem_erase(struct radeon_cs_int *cs) if (csg->relocs_bo) { for (i = 0; i < csg->base.crelocs; i++) { if (csg->relocs_bo[i]) { - /* bo might be referenced from another context so have to use atomic opertions */ + /* bo might be referenced from another context so have to use atomic operations */ atomic_dec((atomic_t *)radeon_gem_get_reloc_in_cs((struct radeon_bo*)csg->relocs_bo[i]), cs->id); radeon_bo_unref((struct radeon_bo *)csg->relocs_bo[i]); csg->relocs_bo[i] = NULL; diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 16a8b00..965be24 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c @@ -981,7 +981,7 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man, /* bankw or bankh greater than 1 increase alignment requirement, not * sure if it's worth using smaller bankw & bankh to stick with 2D * tiling on small surface rather than falling back to 1D tiling. - * Use recommanded value based on tile size for now. + * Use recommended value based on tile size for now. * * fmask buffer has different optimal value figure them out once we * use it.