Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp699826ybt; Fri, 10 Jul 2020 10:06:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHHPm5jCkeU48TwokD8/bAAVnI1m3oKw8y0B2ct25Ze9vB8xa2ChrJtveXPAG6x0Wz53UK X-Received: by 2002:a17:906:1403:: with SMTP id p3mr53024678ejc.106.1594400791130; Fri, 10 Jul 2020 10:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594400791; cv=none; d=google.com; s=arc-20160816; b=0E9RAhs4dVBmllPF156FWm4anAILrxc0tg8cCvjsT2/GTXkD3YjoWSzL7Zx0RyJ8ac OgOj53k8CZR15o63tVzxugJRCo4vahOLj0mNSn5FGxnVPHKjZk3fELO2wTduuj+FPT6c cdD4TGrm0WLjGyClzDEh9aSpF/p1f+mivtV4XI4lJQ5FscJjfNF3f6xLM9XbQVvwSeT0 FCCG4bApkv83oJONubt2huybwaEmhdO0KuhIkXHSK4iIf+IBU7z3FWlEeynKtbN+aNB2 fTx2Gmaa69X5ObgYOHOARcgsdX0M40ilbvZutH8P7CCnS15vRDsj7UsepMsQCKCVSayw OSSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=reStBEWqwPKkJ8MQVsMGy0nARiSpxbLhmkT/7W1Ki/k=; b=HDc4RJAzCdQtAZyFxfFAfJPgvx+1rRj4M+mRhJwl8PVaCj1xoi7Mz9lEpSaJkG+v54 lQIHy5WGSrcBhn4aiwQmDAs4RbcFyOe4S3gtjGDfdtALofk0d2/v3mJ4s7pCpgBPTk5V Sbw6jNVoeCnMFpsaCVc1IQKTzUU3azO1PMWX9DG1Qd2OcJ/eBVAnDnMiNJ808nrkt9Gd 6JiYhzJLHu7zhK25lzIdkEgyJ8kYMaIIuGgt8jvr46rB4USBJtgsAUA1Q7eSVRP0XDji enjZf2Tg+YN2YU/kZNwAfcaordVtmceoBcKe92zREzwWP+iUVvsDumBkiapy7ji6hfKp wR6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aZ8f2Sru; 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 j3si4109458ejy.311.2020.07.10.10.06.06; Fri, 10 Jul 2020 10:06:31 -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=aZ8f2Sru; 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 S1728406AbgGJRFf (ORCPT + 99 others); Fri, 10 Jul 2020 13:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726977AbgGJRFe (ORCPT ); Fri, 10 Jul 2020 13:05:34 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36AC1C08C5DC for ; Fri, 10 Jul 2020 10:05:34 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id a21so4675530otq.8 for ; Fri, 10 Jul 2020 10:05:34 -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; bh=reStBEWqwPKkJ8MQVsMGy0nARiSpxbLhmkT/7W1Ki/k=; b=aZ8f2SruCJLgagSV3Mv/cGvnmnhYag0B/CdIkS7qizWXboxInycnGm29Kzbq37la9R 1BOpwVDk5qIQG3UKrJgJX7QpEV+YC+JxZPaQB6xfCZodTUrKlPuBEnkAFlHevQu7C88m 9nzBW1ajSo/2+2VuXswqCJcOGFkm/Y2KXZs6ek08nfEdBpTJYNt4EtQ7DCXtvoAWw0OE nSbNtN+LTdKWG1I/XXkfR7M+80yJiCeZSK9zsjwUd2Mbsw1/TjV3pgj6cwjjW5kcxF0H uV4gcmVIBHftyFITzvBQP3uBVVqhO45TYG+KJEo0CMcTswYLYsoIZEhjWW7gzcXxMmTE BpZQ== 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; bh=reStBEWqwPKkJ8MQVsMGy0nARiSpxbLhmkT/7W1Ki/k=; b=onk3vxCaxgF4ri7sPME312QtcAE04UFt9wfsRYw/dx5tmwj4HPIZx60hrkYE3gZNZL LMotO5nyh6+ga9t9GWmHZqokoMqleT9F9Onai/6N+sG82fCjfYxApgmtLj9l7bcZ741T IUcftajlf1eaDJi1p+AQdwnGeVolsQd4i92XoRKg0Nc3IGNCP/bpkZ8Vh/6zH1EWH70N d9EEWrzy9LojuXSs4PreX0lh7Ym6ElAksQn+d4OxraUX1LaAvo+/467HyK2pvQYNzRlp 5MPmxLbCnyqiOohDnM4/jowZfL+eJ6mJq+QzFc/rmsP++eaWHHA1Mt0kqLgO0uQfgQbw bm9Q== X-Gm-Message-State: AOAM532fwLg4jxy4mfH2fzHWtvwwFJpm3n/8gMb6/fFELeqpUavX8xtL JnLIcQr5FVB7IpQZcdteFViUL4uRwo9AGMsD1yecGBDM X-Received: by 2002:a05:6830:42:: with SMTP id d2mr15899633otp.339.1594400733581; Fri, 10 Jul 2020 10:05:33 -0700 (PDT) MIME-Version: 1.0 References: <20200707212954.26487-1-oshpigelman@habana.ai> In-Reply-To: <20200707212954.26487-1-oshpigelman@habana.ai> From: Oded Gabbay Date: Fri, 10 Jul 2020 20:05:08 +0300 Message-ID: Subject: Re: [PATCH] habanalabs: remove unused hash To: Omer Shpigelman Cc: "Linux-Kernel@Vger. Kernel. Org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 8, 2020 at 12:30 AM Omer Shpigelman wrote: > > Remove an old hash that is not in use anymore. > > Signed-off-by: Omer Shpigelman > --- > drivers/misc/habanalabs/habanalabs.h | 2 -- > drivers/misc/habanalabs/mmu.c | 1 - > 2 files changed, 3 deletions(-) > > diff --git a/drivers/misc/habanalabs/habanalabs.h b/drivers/misc/habanalabs/habanalabs.h > index a61aab09778c..ea0fd178accb 100644 > --- a/drivers/misc/habanalabs/habanalabs.h > +++ b/drivers/misc/habanalabs/habanalabs.h > @@ -780,7 +780,6 @@ struct hl_va_range { > * struct hl_ctx - user/kernel context. > * @mem_hash: holds mapping from virtual address to virtual memory area > * descriptor (hl_vm_phys_pg_list or hl_userptr). > - * @mmu_phys_hash: holds a mapping from physical address to pgt_info structure. > * @mmu_shadow_hash: holds a mapping from shadow address to pgt_info structure. > * @hpriv: pointer to the private (Kernel Driver) data of the process (fd). > * @hdev: pointer to the device structure. > @@ -814,7 +813,6 @@ struct hl_va_range { > */ > struct hl_ctx { > DECLARE_HASHTABLE(mem_hash, MEM_HASH_TABLE_BITS); > - DECLARE_HASHTABLE(mmu_phys_hash, MMU_HASH_TABLE_BITS); > DECLARE_HASHTABLE(mmu_shadow_hash, MMU_HASH_TABLE_BITS); > struct hl_fpriv *hpriv; > struct hl_device *hdev; > diff --git a/drivers/misc/habanalabs/mmu.c b/drivers/misc/habanalabs/mmu.c > index a290d6b49d78..04303950e630 100644 > --- a/drivers/misc/habanalabs/mmu.c > +++ b/drivers/misc/habanalabs/mmu.c > @@ -502,7 +502,6 @@ int hl_mmu_ctx_init(struct hl_ctx *ctx) > return 0; > > mutex_init(&ctx->mmu_lock); > - hash_init(ctx->mmu_phys_hash); > hash_init(ctx->mmu_shadow_hash); > > return dram_default_mapping_init(ctx); > -- > 2.17.1 > This patch is: Reviewed-by: Oded Gabbay