Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4856342pjb; Mon, 27 Jul 2020 06:59:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf4hx5f6G2+Jn8X0kQBTPWgPBv1icyaqckwMy0+Hmg6J6cb9Bq9En3sJ+cQvxDxXyDXfWA X-Received: by 2002:a17:906:748:: with SMTP id z8mr21662096ejb.257.1595858342475; Mon, 27 Jul 2020 06:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595858342; cv=none; d=google.com; s=arc-20160816; b=C/sJX6ayyqlf+Td2t20OetRVQzKzEN8X3YqReLYL+LuQv+4HdduISYq2YfWa5/S0q4 nA9/HT4V+XGYtls+BeTAVgoB244AYt+SThQEYGX1u1vD6PCTA9GTToL8Snbb6ydU9mcu VRRNp8AO/QPgvPYWmEWhDGUnhvfyjYihsVdpRwOCMHfF4MKT6zJksiiS1LuZUSKmk1n4 Ry5V6aRdr15dnXLjhxdgFjcfzefmVz9j0KnD3R7W/lw0DLytz2xpxbpuRKvIjBSijF0F 9aanZL44aJxzD9OZsorLQlpoHmRvzz1zW6khz4/gI/ZMcUomuqrce3W0CdAVdVMlUlI4 NpRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature; bh=WRU4i5nuotlpyXHsJ/GhJzUxBSJEh2EwvWzY/0mhtJs=; b=Mos9sNfycpAM0f+LcCtz+WmxeMs8lUI2GvelWW17mNzBoD51bZWQqtci0Lle+RNOWI OygHAEWGz9so479t4OmhxinX6rpYmaUmX0SrNxXE/xPDGS32EUyMKR+77Hlp0A6CdHnq JAoGIeCaWlQFwrJj4tVFdKeSPj+0Gz8Iau0X3aHj6Qr9ZfGWTEqZC0v4PaJWOkuL4hoO hEJTexNgOx41FG4o7Huj3lcX51GhCxKT2yzAnXmGaYCv5OQfEKBqsa0D6208jgZ8YxXB xebRCMPXWu6uoYvqVZQvqOkzyDm1g60V0ODxFN3701nDM5Xaq4RodQrGEFWfgPRKVzPF Wt/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="mFD/ySOZ"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si2856865edp.312.2020.07.27.06.58.40; Mon, 27 Jul 2020 06:59:02 -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=@gmail.com header.s=20161025 header.b="mFD/ySOZ"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728300AbgG0NlZ (ORCPT + 99 others); Mon, 27 Jul 2020 09:41:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726555AbgG0NlY (ORCPT ); Mon, 27 Jul 2020 09:41:24 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49DBBC0619D2; Mon, 27 Jul 2020 06:41:23 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id o18so17087299eje.7; Mon, 27 Jul 2020 06:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=WRU4i5nuotlpyXHsJ/GhJzUxBSJEh2EwvWzY/0mhtJs=; b=mFD/ySOZnh4it4pc167jVC6Z34oW7cMd8EdI/V69L+eE5UfUVpA0w/wnxhr4dXFW9z LFiExckvP8rfz/TYYUgH+E1vDKzNZsx3rCTKEWxBtycZ6+gMWOCgcjSmg7mom3w2/kwf iQF1Tsv489AjXrDW9JlBgaIs/w1rLl9JtXftS5lwWS1LvgdlXY5xQxDijG5tNDY7jakQ oPJLsDI5NnIb7jqcoZF4iEFQYrfZvu3usWajfcMIEtPYAzF74ds8cFcDFDl/tzCKAllP zDXlxyeVU/+9v45b/WDh8wjgQvKDVX2HfOGwY+4Gx6NeA389zat2buQigFyMFaW0ZVT/ 65QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=WRU4i5nuotlpyXHsJ/GhJzUxBSJEh2EwvWzY/0mhtJs=; b=Ig75W7khuqZB0ZVKabrpSIo1ynhyozQibzI+GrVxJIj92q5hqcfmje7blXkOTuMwUz uRQXhSPvFZ/U+cMbyV64GGnlZQYQgLzAZRcpQlvqKGk3D4zr83/ahOQXEr9f2qDFRACt LEZlXk447hHMpkksLGQ5yS7XwAiMAhvatvaKBKp++icQ9i6SvwnC4Jaaf3ZH2ZY56gD0 ta1btdknJtOVVs/zhppcbxle1N2ZA5w5Qsfu9+6GRHInLgoF5XwW2myuMnFskdDXE9zQ xiEGUN3KmbBzfXH1AyTmW9NShRsoN3xbn9zRcgIZOqe7uPEddmFLvoSG9jU5qqsTnuW4 dUcw== X-Gm-Message-State: AOAM530teN2d6l9t7pol9jyGCBD+SOWrCT/zv7UEe7f3wlxqFAyFdyiT o62n87edtuk/LKNHZF+tTPQqVEHg X-Received: by 2002:a17:906:a88b:: with SMTP id ha11mr5428219ejb.545.1595857281845; Mon, 27 Jul 2020 06:41:21 -0700 (PDT) Received: from ?IPv6:2a02:908:1252:fb60:be8a:bd56:1f94:86e7? ([2a02:908:1252:fb60:be8a:bd56:1f94:86e7]) by smtp.gmail.com with ESMTPSA id s2sm754721ejh.95.2020.07.27.06.41.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jul 2020 06:41:21 -0700 (PDT) Reply-To: christian.koenig@amd.com Subject: Re: [PATCH 2/2] drm/radeon: avoid a useless memset To: Christophe JAILLET , alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch Cc: kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20200727103436.50793-1-christophe.jaillet@wanadoo.fr> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <898acaf6-9975-40b1-1104-586b64689ccd@gmail.com> Date: Mon, 27 Jul 2020 15:41:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200727103436.50793-1-christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 27.07.20 um 12:34 schrieb Christophe JAILLET: > Avoid a memset after a call to 'dma_alloc_coherent()'. > This is useless since > commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") > > Signed-off-by: Christophe JAILLET Reviewed-by: Christian König > --- > drivers/gpu/drm/radeon/radeon_gart.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c > index b7ce254e5663..3808a753127b 100644 > --- a/drivers/gpu/drm/radeon/radeon_gart.c > +++ b/drivers/gpu/drm/radeon/radeon_gart.c > @@ -85,7 +85,6 @@ int radeon_gart_table_ram_alloc(struct radeon_device *rdev) > } > #endif > rdev->gart.ptr = ptr; > - memset((void *)rdev->gart.ptr, 0, rdev->gart.table_size); > return 0; > } >