Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5070686pjb; Mon, 27 Jul 2020 12:09:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmZrtUBCiknsq2wEd6T13V+Atyq3riMN+/Vq5Sj3NVdpvkKamPCQzzFYf+vM05JKfRyu+j X-Received: by 2002:a17:906:868d:: with SMTP id g13mr15266448ejx.242.1595876962306; Mon, 27 Jul 2020 12:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595876962; cv=none; d=google.com; s=arc-20160816; b=EEkj1E4NbsGaY+05+AuDC9M4bB8zM0B6ZOQ2b8DKsnYX6dgg2Q5afsJh9UJzbl9Z5S qOIM/qYxVIfZFrnn35BT0l+eBMWCgwmTEpVe89ZJR4znUmL9+ZSaKgcmoN5HuLZV+g3C anu7tHLokNj+DIlGOAq5IJ1m8BrlrD6mo9fr7hTyzxVY2EaUSq3YSGvyoU/379imYMKF yazE6RUPugzFm5mYY40hvk0elzQi+Y7HlhGX8Br394uvvbkJJEFO7VESBzt4WN2G8C9G D0U94iBX8JK2S9FYlpV25wCi7iKxf72+SbZYuK9s4tTflxkbpLaGUKFYxXgQtfDTex6A Labg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=n+cjMJexAD4hVslCLfZxYw0xSj4v32Cg73ix8mAo6lQ=; b=cXTJ9zWMlnXkMOXeHzihnp84uxz/qiqQOHlQu3FBzCqckZrNF3bZU4jzscxX7o2wm4 SC2HqErg+dXT9LBh/b0QByOukm3ZQ70WH6+p/y5R07kh67Q8cewdQFyeMt5NTCPWgTe/ UdVGhcKob3lg/OAEoMWy4vgBnHRQdRBJRfeYpR5sILEJYPsX9JSab3s3vS8fR1ON6OvF WTZEBpjjo1rg1iYrlHZodX25fHlv97jzzd3eysHJr0zdFLbkgt0ifxMmvv0HsDoas2GQ 1no79gWtauXRkis0yefjpCuwdASfdPFw5Q9B7hTgs/UT3tktsKilPIt34giWOEpbGiOC 8CXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rvXZRTq8; 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 u24si3180682ejx.88.2020.07.27.12.08.59; Mon, 27 Jul 2020 12:09:22 -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=rvXZRTq8; 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 S1729801AbgG0SMN (ORCPT + 99 others); Mon, 27 Jul 2020 14:12:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728312AbgG0SMM (ORCPT ); Mon, 27 Jul 2020 14:12:12 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB92C061794; Mon, 27 Jul 2020 11:12:12 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id f1so15271761wro.2; Mon, 27 Jul 2020 11:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=n+cjMJexAD4hVslCLfZxYw0xSj4v32Cg73ix8mAo6lQ=; b=rvXZRTq8JQeLezn3Y8PtrvIvpSkDiBHveZhfRmIRsSBeDJZnjKqBGy+QWwELGHHK9h IcMm8HWjNIwnu3YVdbwj7AmtnCfpAhFZ+Rpc4w8N91b/7XRDjPtMUQxHAY+v6x5JU1nS 3XcXWMQ8Z6v41HCiM/COJFtN8CNp79O9B+gMY9IdeHjA7WwIXl3acZ7NJYKKF2pW6le1 9956/PiAmuH96Npac+3FjCpIR1YH8sTu6ZSf+wTE+16ZZ4Wm2B1q9cjwtZTrnH27vFLU Os2LTJRtUv0ccsrNI3bsAmwtod5CkcmTpMeDKKx+aTuxVAdxyuvYtKYrRed634svN5W2 SgpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=n+cjMJexAD4hVslCLfZxYw0xSj4v32Cg73ix8mAo6lQ=; b=qq7G3SgGR7kOnfXrQfxqFwOxK/OuoXzma4U7I3ST2E2L1GlVjes1Uxq4mezZjy7hx5 nkAIfhVgdHkKUT+7+MuVM+pMstmdYwl2ND1+U2w11PFB5wuQDGcFZlrkohscb1hjgyoe ZKYiJ8hEUUR8yeVDljolzTebJigAZ4IcgN50fIkNdD9H6HHyZd0tvMR1GuUdfUrbeQZ/ 3c8+iXDtpoRCZuO0uWDOgsyuQIjoC32rwmrYQonP3H1lCMY2/idVVpmkn+oLs/2FlW9J vGBWaXVlaldkEPhYT9z6cgkIcW+/Q6MwnCmmngqULEIV/aJxU01k/t8e/1LVO3CpuZm1 FYSQ== X-Gm-Message-State: AOAM533gHrys5Ac8UysKXYDfih6ujTdw/uXgKlq+oXYuTHxT5TOjZb60 TQCYAoA4rwHi4RLOvmWTB0u4O7JL714DDl9+BF8= X-Received: by 2002:adf:a351:: with SMTP id d17mr21027063wrb.111.1595873530004; Mon, 27 Jul 2020 11:12:10 -0700 (PDT) MIME-Version: 1.0 References: <20200727103436.50793-1-christophe.jaillet@wanadoo.fr> <898acaf6-9975-40b1-1104-586b64689ccd@gmail.com> In-Reply-To: <898acaf6-9975-40b1-1104-586b64689ccd@gmail.com> From: Alex Deucher Date: Mon, 27 Jul 2020 14:11:58 -0400 Message-ID: Subject: Re: [PATCH 2/2] drm/radeon: avoid a useless memset To: Christian Koenig Cc: Christophe JAILLET , "Deucher, Alexander" , Dave Airlie , Daniel Vetter , kernel-janitors@vger.kernel.org, amd-gfx list , Maling list - DRI developers , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Mon, Jul 27, 2020 at 9:41 AM Christian K=C3=B6nig wrote: > > 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=C3=B6nig > > > --- > > 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/rad= eon/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 =3D ptr; > > - memset((void *)rdev->gart.ptr, 0, rdev->gart.table_size); > > return 0; > > } > > > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx