From patchwork Wed Sep 26 18:02:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 10616489 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 04563112B for ; Wed, 26 Sep 2018 18:03:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED8B728D3E for ; Wed, 26 Sep 2018 18:03:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBE5B2B66C; Wed, 26 Sep 2018 18:03:10 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A2562B663 for ; Wed, 26 Sep 2018 18:03:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728577AbeI0ARL (ORCPT ); Wed, 26 Sep 2018 20:17:11 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33430 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727411AbeI0ARL (ORCPT ); Wed, 26 Sep 2018 20:17:11 -0400 Received: by mail-pf1-f196.google.com with SMTP id d4-v6so13846189pfn.0 for ; Wed, 26 Sep 2018 11:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r7x8vU+QPzqkl1b1HK/UQe87tsHfAWdX6bNhK7HjKn8=; b=KLCwlDf1ZDopLBuSaLeYuU/36YMrRKzFJqJFEBtl7D3BpTGtBbtiaYGyCiC6yaVDwV DhGyj9O0HkpwsN8oD6AhMqRMiI+AmxQ7j0JwqcXXcph7oLz30sSVAucH+BJpEY1etnQN Cggw1cHVREJCZKsE1HKByntrCdknJbLY2/la8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r7x8vU+QPzqkl1b1HK/UQe87tsHfAWdX6bNhK7HjKn8=; b=OqcuuZN+t6dEgwf37dUHnV0a/EKB7mz+0Dx8FNBQqddWFPiXSH7igtEkYw5u1Kz9KV RzSrkzTzJGgQkvTILSBRcFKg3i6dT+5T9HZFtvaO/zCf73Crp61UaariWA+sJk/A4CH1 yHru6PnJkFwCl6J9izElJMbdToQYvgfNW5+lRAZzhUYFVTZwC9vqLVsoKbBw6rAb6F/J 5HRgVM09G6N9pAm0+uG8Nk1mwWMKRoD1sxK3N1p7snajwrHnTB4hL2Xo76LRl4ImZ1B3 12Eq6MqZkQBI7NgFyqO442ao+2UgesT71CfTBjGKXvykUpq/I+rS/a80YVjmRd4TrHjN nTkg== X-Gm-Message-State: ABuFfojRteZ3yTU86euTSVyCfWFeH3hpUPC6lhZ/cWzEMGZuPahNri8K TotV8IMwvvQbMoK3x0Z8yIh8hQ== X-Google-Smtp-Source: ACcGV63Ou3/2Z/BJ7imdDbfBJNqqwKoSOQT65mr0Gf1ijgwqEqlue5R/gqxicAHnWaGPU5pG9+YL4A== X-Received: by 2002:a63:78cc:: with SMTP id t195-v6mr6629237pgc.329.1537984984227; Wed, 26 Sep 2018 11:03:04 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:7e28:b9f3:6afc:5326]) by smtp.gmail.com with ESMTPSA id j16-v6sm12246816pfk.125.2018.09.26.11.02.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Sep 2018 11:02:45 -0700 (PDT) From: Stephen Boyd To: Andy Gross Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Mahesh Sivasubramanian , Lina Iyer , Bjorn Andersson , Evan Green , Jordan Crouse , Rob Clark Subject: [PATCH v3 0/2] qcom: remove memcpy()ing from cmd-db driver Date: Wed, 26 Sep 2018 11:02:32 -0700 Message-Id: <20180926180234.55620-1-swboyd@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A couple patches for the cmd-db code to not do any more copying of memory. Instead, we'll just hand out pointers to things inside cmd-db. Changes from v2: * Consolidated GPU code some more per Jordan's suggestion Changes from v1: * Fixed patch#2 for GPU wreckage Cc: Mahesh Sivasubramanian Cc: Lina Iyer Cc: Bjorn Andersson Cc: Evan Green Cc: Jordan Crouse Cc: Rob Clark Stephen Boyd (2): soc: qcom: cmd-db: Remove memcpy()ing from cmd_db_get_header() soc: qcom: cmd-db: Stop memcpy()ing in cmd_db_read_aux_data() drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 54 ++++++---------- drivers/soc/qcom/cmd-db.c | 93 +++++++++------------------ include/soc/qcom/cmd-db.h | 12 +--- 3 files changed, 51 insertions(+), 108 deletions(-)