From patchwork Mon Apr 12 00:09:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 419411 Delivered-To: patch@linaro.org Received: by 2002:a02:c4d2:0:0:0:0:0 with SMTP id h18csp1308778jaj; Sun, 11 Apr 2021 17:10:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTPklcGVZWAluBcLq3Wq8ftqFpBHdfkAMbki5Bn/E7hIfKE05r7TuZ6r6SHzLkKEAxgxos X-Received: by 2002:a17:90b:3b81:: with SMTP id pc1mr2403906pjb.40.1618186201125; Sun, 11 Apr 2021 17:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618186201; cv=none; d=google.com; s=arc-20160816; b=vfRVc3ROH2zajgWkAQfuQv2IzD19wUkFY/s76dsWLK1NKjGiEoU5CJnRj2ML4hxYah 4e5ggRcOglURy6ZwxQdpoZiH78HBOSQANepu/szj8MHrMGdFmxq4yZUp+/LYDUnDh+Dj +QaYmoHi6/GwKqzneP+BUOSgnvU5eQu0a45lPEteRDv4uYfU5c++MgSIxtDtQYvHjTJg MeyHY3s5g4ctAQ01HN1UFFuU7M9/lN+K2rHx6lwcldcouSrE+RfXrL/un3zjfB5cSCKE wZCh4jpbhT3D2etmkgPmC+HhREor6hsbb1VYrLi4jzl2VsNZteQeXHmV2eOBS+aJphcu IenQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2oMyNmdOBQN3Shr+asOuK5lZYp7QDtf0TjwjEv7kY0I=; b=nF3SHdsK154Uv33YKp+V5Ix7qGzlHAMniwXwQ0hM8kIjFaJJ16e0U7iDY7KZ4wSs55 jh9mpxC69j9KvV2Ux7WwavLAFQddzed70Zwru/mWNOgfxjMnVjEvbz5Fh9fYdnAATkfM o92rOwWRuWpMdIFrt2q0z0wJbe3YEb2f2SVylFX7+vYP9JncWyUw+6do9N8ZX3g7N6QD v92tClZzD71HCPt3RskXcwJSyR+J7Ga90hkL7toGem5U+nPrswRTvg1lf8WXd7qTyGQy fk+1EuhK/JZrue0yq/E9GXDE2W4NfzZOD80uY5HNtFBBDajMnKhkV69sUE0Ygc+cfULY 1L/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OmvDZii4; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si13543185pfc.134.2021.04.11.17.10.00; Sun, 11 Apr 2021 17:10:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=OmvDZii4; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235722AbhDLAKQ (ORCPT + 16 others); Sun, 11 Apr 2021 20:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235095AbhDLAKQ (ORCPT ); Sun, 11 Apr 2021 20:10:16 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF64C061574 for ; Sun, 11 Apr 2021 17:09:59 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 12so18415880lfq.13 for ; Sun, 11 Apr 2021 17:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2oMyNmdOBQN3Shr+asOuK5lZYp7QDtf0TjwjEv7kY0I=; b=OmvDZii4vmb8/0sBD0CQQgLdaycbFPDwbuVJZBq8ACYRKsOn2rsvZXw7kT/7GOFCL+ USb7IO6es5ortDKX2IC4NXxIMo55eFrPgkYsZ3s4hbXhnU05v5HFruUC2/WONkiBmgEA Q97ctTW6Hs6dGtJ16jGNq23ChfGFEeTdRPP3RoR9RGfzlHcYaVanPriZNJ1KaRvR92wa plQPmjw0wlj5ZfAonnLQqoqV+VoPgS6fayZ2epVmbaBHPwobgkMvk2TiZtgXIukKkh8P ktwKbB3DU1D9Y3jWVeu0bK/NlNrzIp72xDDHj6wScVkW7K/4yn0tj6kpuWhQx6b5+fMn 7LeQ== 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=2oMyNmdOBQN3Shr+asOuK5lZYp7QDtf0TjwjEv7kY0I=; b=jaA0mzrb/r1kp8JC/8jDTXvbyPCEDfNiPXuhBEPIUCGYTWNeJxHV5a/+iFYnzgG4Ru h+TKi9wMccatfJqOoc+r2ryomYUrwRoDA+QAs4mhoemRLTZPqvqMbjfgoyIhc8F06+i8 sW0ME3ueWEtM/2s0odE1BJ+d9DAgBbckelkotmcHdIu2IKm69y0k4HDtKrV0MzEmMSGA db/W/4z5IgtkQu5mq5FiLfibZsce6+yNVGEENz0pf73YghXtyZd0I2vEnAJAD1rclKqy lgl+Joq0EGSUYNSUJiqnzZP1qNi045+CS6RhfJ4XYShA5lDztH9BWR6LcVtHu7WSHHug 8c9w== X-Gm-Message-State: AOAM531t3brN/kLreeCup29+k6yHoiHL0ShUIRK8IxyX6yTAnttWa5cn r9zTo3vO2tvH+LQsE4cTeayYCQ== X-Received: by 2002:ac2:52b9:: with SMTP id r25mr17758694lfm.25.1618186197646; Sun, 11 Apr 2021 17:09:57 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id s22sm2307212ljd.28.2021.04.11.17.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Apr 2021 17:09:57 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Jonathan Marek Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v1 0/3] drm/msm/dpu: rework irq handling Date: Mon, 12 Apr 2021 03:09:51 +0300 Message-Id: <20210412000954.2049141-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Simplify IRQ handling. dpu_irq_map is a huge table consisting of all possible IRQ entries (including a plenty of 'reserved' = not existing IRQs). It is always used to lookup the interrupt index (in the table) and then to use this index to lookup related interrupt register and mask. For the long period of time these indices had 1:1 correspondence to register/mask pairs. SC7280 introduced 'additional' IRQs removing this correpondence. Replace all IRQ lookup with stable irq indices, which correponds directly to the register/bit pair. The dpu_irq_map table is used only for the lookup of the irq index. Changes since RFC: - rebase on top of msm/msm-next to include SC7280 changes.