Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1144612ybk; Wed, 20 May 2020 23:06:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLcxLhyu2gmGI2SkjnqKIB4U29k8EKroEqRGYDwDl6i7TY393ZSrpzkWt7cTiunkHHqMDL X-Received: by 2002:a50:ed03:: with SMTP id j3mr6339631eds.250.1590041178368; Wed, 20 May 2020 23:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590041178; cv=none; d=google.com; s=arc-20160816; b=E9hE+XG2bdC86s5P0y5pSxpF+4pTxR7qRNoWjpS+X0z/3rwM/oIymYFOtMjU/jJjtQ mOigILKMiNGmvAqh446uNify7O096Ur6SvAzyRz2k/V9u3I5WQkMJPFpG70yMmTREPxw z2Vfhhl5aSpbCZy/YAwxTG15ZX8+GqeZSPh68WY2Fkh1o7LRRYMePvV7dh+NIgGqAFzs li3lKRq9P4EnZUvEhTog8duUTeTu0fNMNcjBUMrI1TUHw2+0de3ieSyG9iuHJby3SbyV q1fMR5GUyBrVpBDkXuED/2Y4ukjhHTvkGWAueMqmLKaTXsASy3p5zHqIIeeR+7EwG/Av ruKQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nqZNNCwraQG3DufLiaAWTHDtBPB7vJAuN049dNeWG7w=; b=kyvLdX15Ehr1U5mU4quarBDgPBlJppdv/uaoYyj6yNDc5IhAoNY9OKi9THHqbzS1cQ LH9hD/bGUZ+4+gFMGoFoEIxm4zLK+4FnuzQZHqApa7qDfQdITrAppqg9XDeDAtmjTgc2 P1/kbOvMwDijNm3KOP3I7BNmag1O79UIXTdAL300Kk7tQg9dZ3Iq4/IjLba22sZUiOgX Udg4iKSMOOM2CNEA+lqdn9DYHIICzeUGSyWjibVmAFIhBr/1PRnhX4Cb10w95yT27qxX 9/yzGlFCE1Ek7f/bt6gHyWKcm9QbpDYc+m3+jfirUbQ9f1C8B81h+oSpZKhuJ5LifmaC Fs7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=R4eqdMGj; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x25si2724148edi.132.2020.05.20.23.05.53; Wed, 20 May 2020 23:06:18 -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=@chromium.org header.s=google header.b=R4eqdMGj; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728096AbgEUGE3 (ORCPT + 99 others); Thu, 21 May 2020 02:04:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727033AbgEUGE2 (ORCPT ); Thu, 21 May 2020 02:04:28 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D0D0C061A0E for ; Wed, 20 May 2020 23:04:28 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id k22so2417547pls.10 for ; Wed, 20 May 2020 23:04:28 -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=nqZNNCwraQG3DufLiaAWTHDtBPB7vJAuN049dNeWG7w=; b=R4eqdMGjaw2EyVbaOywCgxYajMNw0NCD3I+k0OdIjoHib6dMg1W7vBSiP83p+cfBcV dJbHRF3eALRT+4pIEAUzf4ItpVkH0YL6bnjWsU6mYBeYY1lf4k5mIOy1I5mG3U8uWDRp vbgKMhcT17954+UB7LGl1OVtxVdxT/GMm43q0= 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=nqZNNCwraQG3DufLiaAWTHDtBPB7vJAuN049dNeWG7w=; b=P+Zv+3S7ht1SKinDwYReWkAZN+C9uZ5pupBD44gAX/HbhnNBe/DmsEuU4l7+j3nR/q 9grGqmtXGS+jRs5BKxk45YfTJBBKdY5jMGm8mWLwg11Ppcg/erWH7A00ol8Hb5BHhA3D 6QjqfPLdAYUtyq6B53q8FJ1JiywAHVexbpm7BlfNpcSuLsG+R5s4MG9L8RwrYE/VdAod fbNQ5U8d2lM2HmigtFHhzhy6vHP9DZaXcuylE+Sp3/Veaq2YZ8fIlfaPmb9c3W3WSza0 MVHafv8X4Tw7g5q2aoi/mBuhGs+6du/GchgSC0OcDQJpbTdYEDjXYLpyk88Ax4IYg/tR JGbQ== X-Gm-Message-State: AOAM533aXhAeRncwH/EnpqJiqGhgEOOronWjz8XQpLoBxHxqBTPkWGIx rmkySfAvaupC4jskmwJ7xvCxuA== X-Received: by 2002:a17:90b:238d:: with SMTP id mr13mr8886374pjb.236.1590041068007; Wed, 20 May 2020 23:04:28 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id k18sm3590146pfg.217.2020.05.20.23.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 23:04:27 -0700 (PDT) From: Stephen Boyd To: Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Maulik Shah , Douglas Anderson Subject: [PATCH v3/RESEND 0/3] Even moar rpmh cleanups Date: Wed, 20 May 2020 23:04:22 -0700 Message-Id: <20200521060425.24285-1-swboyd@chromium.org> X-Mailer: git-send-email 2.26.2.761.g0e0b3e54be-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (Resent with more Ccs and To lines) We remove the tcs_is_free() API and then do super micro optimizations on the irq handler. I haven't tested anything here so most likely there's a bug (again again)! Changes from v2: * Went back in time and used the v1 patch for the first patch with the fixes to make it not so complicated Changes from v1: * First patch became even moar complicated because it combines find_free_tcs() with the check for a request in flight * Fixed subject in patch 2 * Put back unsigned long for bitmap operation to silence compiler warning * Picked up review tags Stephen Boyd (3): soc: qcom: rpmh-rsc: Remove tcs_is_free() API soc: qcom: rpmh-rsc: Loop over fewer bits in irq handler soc: qcom: rpmh-rsc: Fold WARN_ON() into if condition drivers/soc/qcom/rpmh-rsc.c | 65 +++++++++++++------------------------ 1 file changed, 22 insertions(+), 43 deletions(-) Cc: Maulik Shah Cc: Douglas Anderson base-commit: 1f7a3eb785e4a4e196729cd3d5ec97bd5f9f2940 -- Sent by a computer, using git, on the internet