Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp490615ybc; Tue, 19 Nov 2019 04:42:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyAxfXCLk3RtN7goJtcrVFMCU4X4eQrJYSIJWpBsv2cC36+GtnCg1R4tUbWIheq7cxXiCZn X-Received: by 2002:a17:906:194a:: with SMTP id b10mr35199681eje.123.1574167352263; Tue, 19 Nov 2019 04:42:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574167352; cv=none; d=google.com; s=arc-20160816; b=WAZAsm1SuXGco94PttZ8vLGvUm/taPHdzQM27+i2OlqXOaSNk9tUVaQBHPAcnJfct+ wWRYidOE+fSfYfDDKk4uKBeLeERTsjp8wqOeLIkeeFImfGicIgRLff6i9LRJxqJvQeTL BQtByU93mSlezX111K8Wc5zFn+y9h+sVjvbLzsyhnalomXzb0njnYv30T7fi+K3udMx9 KabcKlsx1B0JHiKUZ1JWNYXK8F8GYNL4YgELb8hL5Ddfaj62/KewO8+Sru2LO3zReNLb xfRLm3OKPEVPZYa3cfabdlgow4Hx6tsdUCThlc0YLz56IHrXjMau1SHWro1iR3cLHGG0 BI3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:user-agent:message-id :references:in-reply-to:subject:cc:to:from:date :content-transfer-encoding:mime-version:dkim-signature :dkim-signature; bh=EKdHcUIZ+9RkrM8yI/5ySznWFy8JACBkLg9JOdW3u0U=; b=r/UC7dzNLPucxgJMyd9Y9GnPdFYf/D2JovhNbXydXu4o1S+SzK5DrFwhtNBvtciX5J 3z1rz//IwkuANCMqzPrWohQ24KbFF8JhekRDTNyZP8PPtIeWsUZuv9zYraX+5i4bGKsE xmfANfoaU2LtY+fSn1ncogqRIqkTCLwcuv02X8tNv3tz+bocuXCQxrAQbs6RMq5BJ6tw mhbqliyTU8+eiFuUkHQJWn5y8UaoZicy8arfUjlZkm4kyJfB7uMwIP6DEaQcG28gNeSU zeV6K6K+1gu5C9uvTucuzjmL8lXWdQMD1e4jAkGJqY+4OR8AHrDt54BIvs+10MjQlJBV /zlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=mLOdS0dX; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=LBrMfl4h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n15si12875408ejj.68.2019.11.19.04.42.08; Tue, 19 Nov 2019 04:42:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=mLOdS0dX; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=LBrMfl4h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbfKSMk7 (ORCPT + 99 others); Tue, 19 Nov 2019 07:40:59 -0500 Received: from a27-55.smtp-out.us-west-2.amazonses.com ([54.240.27.55]:36250 "EHLO a27-55.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbfKSMk7 (ORCPT ); Tue, 19 Nov 2019 07:40:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1574167257; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID; bh=CEhdhlN+M1OpAxIH/yMj19nrltuBHW5P13jllfaEM2s=; b=mLOdS0dXbzUa+uX0R/zereNz9q7MmiC6XbuSA4SDhW8YZfJ6tYJ5OB+o3xIvzskf 9jOOQ0mrBuZ83orFXlon1SuZ3ERwQQ8TZe3xN2KEKLs63O4M0DEjq4+2uAFJd7dUXVb XPO+D71/lymMwfaUYGdlk4oLTUDHv9I8rbdQ/db8= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1574167257; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:Feedback-ID; bh=CEhdhlN+M1OpAxIH/yMj19nrltuBHW5P13jllfaEM2s=; b=LBrMfl4hZtt/1kyZzzfdG/56L+NfPWasqDltYDL6JXxHCD4wEvq5KtVlqkdVz2XC JDyV6ObB0Z+migTZEg4UC+PgLWxnqgR14k/+nZbtfgTI1ixIu+50Y8HK8u3H8E0sxnQ qKEj4GJz4fo+4sLsNf9zZKl97v4kYzg4AVjujMDI= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 19 Nov 2019 12:40:57 +0000 From: dhar@codeaurora.org To: Stephen Boyd Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, robdclark@gmail.com, seanpaul@chromium.org, hoegsberg@chromium.org, abhinavk@codeaurora.org, jsanka@codeaurora.org, chandanu@codeaurora.org, nganji@codeaurora.org Subject: Re: [v2] msm: disp: dpu1: add support to access hw irqs regs depending on revision In-Reply-To: <5dcd8f05.1c69fb81.bdd4.2b0a@mx.google.com> References: <1573710976-27551-1-git-send-email-dhar@codeaurora.org> <5dcd8f05.1c69fb81.bdd4.2b0a@mx.google.com> Message-ID: <0101016e83ae22b5-7a05918b-c1c4-40f1-ae17-5dd36a003c36-000000@us-west-2.amazonses.com> X-Sender: dhar@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-SES-Outgoing: 2019.11.19-54.240.27.55 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-11-14 22:59, Stephen Boyd wrote: > Quoting Shubhashree Dhar (2019-11-13 21:56:16) >> Current code assumes that all the irqs registers offsets can be >> accessed in all the hw revisions; this is not the case for some >> targets that should not access some of the irq registers. > > What happens if we read the irq registers that we "should not access"? > Does the system reset? It would be easier to make those registers > return > 0 when read indicating no interrupt and ignore writes so that > everything > keeps working without having to skip registers. > In some of the hw revisions, the whole hw block is absent and trying to access those registers causes system panic(bus noc error). >> This change adds the support to selectively remove the irqs that >> are not supported in some of the hw revisions. >> >> Change-Id: I6052b8237b703a1a9edd53893e04f7bd72223da1 > > Please remove these before sending upstream. > >> Signed-off-by: Shubhashree Dhar >> --- >> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 1 + >> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 3 +++ >> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 22 >> +++++++++++++++++----- >> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h | 1 + >> 4 files changed, 22 insertions(+), 5 deletions(-) >> >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h >> b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h >> index ec76b868..def8a3f 100644 >> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h >> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h >> @@ -646,6 +646,7 @@ struct dpu_perf_cfg { >> * @dma_formats Supported formats for dma pipe >> * @cursor_formats Supported formats for cursor pipe >> * @vig_formats Supported formats for vig pipe >> + * @mdss_irqs Bitmap with the irqs supported by the target > > Hmm pretty sure there needs to be a colon so that kernel-doc can match > this but maybe I'm wrong. > >> */ >> struct dpu_mdss_cfg { >> u32 hwversion;