From patchwork Thu Jun 17 14:09:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 462189 Delivered-To: patch@linaro.org Received: by 2002:a17:906:71d0:0:0:0:0 with SMTP id i16csp642620ejk; Thu, 17 Jun 2021 07:09:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCCBoG9sqxlbsENHrJaBH21HyVHRUZRg1K1xzYinjdeD07Q8ysDAJUxa39uO+aoY6ryi2H X-Received: by 2002:a05:6e02:1d03:: with SMTP id i3mr3723999ila.35.1623938954268; Thu, 17 Jun 2021 07:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623938954; cv=none; d=google.com; s=arc-20160816; b=hLVrfMZfafl2GX+UCkOHUwf0ymOZlWSMa+4TdnQOD1YYMYlAjKV2bDfbQQNIyZaGdx 2jaqPkrFaib4UryBghJBP75a7gVPhoc7LMPJ17Sdwg8rDaPxloCwBNAHmmvhhW2l/DNI HakhaVV4/u3uGrN069z22jpVkdwNbvXgj3zL1L7ChrQQfPtjpIuS1BFJG74fb4INOBVA LaBHUyzKHrYeAZYDWmCKIGXyH8misO5mQVP/QWrHuchWY5KX6RmKrJ/DlLqKCoF+Xs7Z NsdK2PWCTX4LvsIGG1EFQu0Djx7vXg7G0CGOsdhEHR+Uc9v7iJ9+rFjfbpc0bOeTbJrC wzxw== 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=OcvYXvvlVYeL9756xuKyQfsfVibJtIpmm8tnGhiSsFo=; b=Hlqphk64VzBClHvxvq2t9p8ae5hMbR1Pbynfys9ZNdq0mFgAvDhGFJ5PodEprwaWsB YG/1kdXqTeqqj+v9flPU6/ObpS3pkzwGLr2pIGjcTj8tfQaYQ7OtnEULpftTDq4frRko va+sJvSu46my7cdnFk0o32IwNLVC8Dh7qimsvV9AqFAenhAFGp847hl5xDZ4PFuIUcbB vWl7H50gHVoy3zLKFfFJ+MC55jZ6FpT4nAdrp6UwikZeunJaWuYGccDjMy3/K9pcnpLK 3II5PHGJo9PWKHlLIKIKbUOS7LPxgbHumqwJ+CvE8T2492Dtf6ZJf393Pr7xzyWdCBfi UHag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KhZep3Bs; 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 y18si6654216jat.52.2021.06.17.07.09.13; Thu, 17 Jun 2021 07:09:14 -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=KhZep3Bs; 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 S231196AbhFQOLU (ORCPT + 17 others); Thu, 17 Jun 2021 10:11:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbhFQOLU (ORCPT ); Thu, 17 Jun 2021 10:11:20 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 669D2C061574 for ; Thu, 17 Jun 2021 07:09:12 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id b37so9156878ljr.13 for ; Thu, 17 Jun 2021 07:09:12 -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=OcvYXvvlVYeL9756xuKyQfsfVibJtIpmm8tnGhiSsFo=; b=KhZep3BslUxz+3xsZvo6Z/Yyk3DmRKr+i0q6JZgu+dnIuQT/ITq7o4Z/9QgnEDTrc5 hSYuosp6Get0mB/weYIj9TWmKOWqLFVo1/ytl4p+WKZsD8w8reI1pvfCZ9KuScZd9aZd xyS6o43Z/BkVF5h+1hdrjP9a7Ktp7Ga8kjfLsU5dRGsPQPN4DQ5SsIVGFU6BAD4qIhJ+ UE8Bz97L8zmVmiaKAX4MmqEAMfWt5I4x1eIpXmVjgzaNxAEq0Y2OEcBQl+v3ZdoKRZz7 ber3gW3L6fPLXUUK8NWEgWcKLCiyF6QOtiK42PkGwRjI/r6RZG189iZzdlxYZQZQdy28 +GyQ== 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=OcvYXvvlVYeL9756xuKyQfsfVibJtIpmm8tnGhiSsFo=; b=IznvucWV0lUfHPhtIZYNhxOVhA/hsBxLPagwKLoNCE3l/gdaOJcxC9fEoDQqKp6xa1 BRP+mNZ6ZaTtmniRpLhhj3nW1akWnva6n8H0RAJAJsSTf7L0gbaBNsx1nDsOJ/mVK7jP tLxU/CcOtc6RJhB38QIN95M47dBGLyh96IB+6ve0fSn+AsQX4UAW7+LP5aUbN1OlFxhv L96s8xllO0VOANw23PKkAvUVsTnT1oFvRIHg+Rs36CxNd8owhXaWh+A4685UKixBZieS yasft2zfSPTl7U2QBWSDFlt1mh+27Q5XkmHzRQ81URzXNvwjQWKVfiDudSgogSnRrt+a L8Cg== X-Gm-Message-State: AOAM530JsBdL2E0sQe18WOVERdes+Gasg5Bj7zXZDweHJ5cfcegs9r6r Wr4MlHfYaUPbtlMwtYfoF0h2SA== X-Received: by 2002:a2e:9cc3:: with SMTP id g3mr4819609ljj.366.1623938950459; Thu, 17 Jun 2021 07:09:10 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id f23sm592471lfm.128.2021.06.17.07.09.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jun 2021 07:09:09 -0700 (PDT) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Cc: Jonathan Marek , Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 0/7] drm/msm/dpu: merge dpu_core_irq into dpu_hw_interrupts Date: Thu, 17 Jun 2021 17:09:01 +0300 Message-Id: <20210617140908.412298-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 This patch series reworks DPU's irq handling code by merging dpu_core_irq into dpu_hw_intr, reworking/dropping irq-related helpers and wrappers, etc. Dependencies: https://lore.kernel.org/linux-arm-msm/20210611170003.3539059-1-bjorn.andersson@linaro.org/ ---------------------------------------------------------------- Dmitry Baryshkov (7): drm/msm/dpu: squash dpu_core_irq into dpu_hw_interrupts drm/msm/dpu: don't clear IRQ register twice drm/msm/dpu: merge struct dpu_irq into struct dpu_hw_intr drm/msm/dpu: hide struct dpu_irq_callback drm/msm/dpu: remove extra wrappers around dpu_core_irq drm/msm/dpu: get rid of dpu_encoder_helper_(un)register_irq drm/msm/dpu: remove struct dpu_encoder_irq and enum dpu_intr_idx drivers/gpu/drm/msm/Makefile | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.c | 256 ----------------- drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.h | 30 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 111 ++------ drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 66 +---- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 99 +++---- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 56 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 306 ++++++++++++++++----- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h | 92 +------ drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 27 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 25 -- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 49 ++-- 12 files changed, 383 insertions(+), 735 deletions(-) delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.c