Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3191141ybk; Mon, 18 May 2020 21:07:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye7A5psbcz6QxFwpGqITdWtd4ZopVD3L6ewrJ9MeF6/gfyPcShXtbUcE+Lgri17wnKIP1a X-Received: by 2002:a50:a883:: with SMTP id k3mr16407949edc.198.1589861230251; Mon, 18 May 2020 21:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589861230; cv=none; d=google.com; s=arc-20160816; b=KmH56sCbvmm6Baf7wLvfXPmKiF7INaXSZ49GDn4etNABunuu3VRnI9ZK0C/l0WarnB elfXmAqu1lqIzyZoXBNEBvJWe1JXJF9eR04bbnaVSuz3Ily79Nn3IB/AkN0RZzIVC77R oTwhKxmKVNRN7OR7xptXZwgtEfFVt1LbhH56umJBcXwLO8BczRlbvpAa3vMo5uq18PP9 DDDKa82+CCH69bUiOVdo7otFtEHsEqgnC1F1CCz9073gEiiok5yqV67WyqLNZ1SWKJkr YY7b0UpxKCES9Cff6SAQQxD0oLwaBzGvcchg4FzYVUG5noQsbU8TCi//UM60DQJbpFqm y1Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3tOm8zzhCxaJy3Xz/20xYyI/RssQ51tXhkdhSGs8XvM=; b=GY4bCAw/ZZ4xh9WB9QGaiUQZuZzBRKjZlSGkgIAHwXBiyLwTdoKafH/6YJzPF1wjWp 6piA+K9lv75Xn67ddQXCKPSWzULuuUhGKKSFJ1sBUwiz5LSM3/P78QQUbxwveE5jQagH trwkHZow7No7w1+jwqcXZ1ALACrH7IFHCpTi7QAWsY4mMR3eVJD28xQ0ln+liBq1YJ6X yDbB58Lo/1452brpTREcE/6YBI885q7eK2Y4vPXuenEJWcyXfwg1G9AdMl+YBBfmJmON 4KVf4ckilh6RRD3NiZPjRn1Ivf1v2b7Z5XQCqzMJLbTAjYKDMcSTv6PesX90UoI1Pw52 qL1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PZ2PdY14; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo9si7301098edb.433.2020.05.18.21.06.45; Mon, 18 May 2020 21:07:10 -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=@gmail.com header.s=20161025 header.b=PZ2PdY14; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726323AbgESEFR (ORCPT + 99 others); Tue, 19 May 2020 00:05:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbgESEFQ (ORCPT ); Tue, 19 May 2020 00:05:16 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 754B3C061A0C; Mon, 18 May 2020 21:05:16 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id a14so6733141ilk.2; Mon, 18 May 2020 21:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3tOm8zzhCxaJy3Xz/20xYyI/RssQ51tXhkdhSGs8XvM=; b=PZ2PdY14xr+Ro5d+ddOFHl4D+ksurvlmAHT//qsqdw6SDeJ+Njtcdx18griVnejEdH RyRkSXIYdKX/QnNCX73NqkQSMFny0/TLKJVmtHCqogKergXIYgNPnC+sWShWwHid6DgO rZChs500Frt8l+dJeR9HN/bKB6DMTCd43fpRBI1StRoTu2ypdjcromQ1EdKQGaF7jUL2 k1Mo4tt2cZ/sfBEpHouIAjKpsEHx2ZvW/f3+q1ym8GsM6In6VWrj0ykApbU5WXFbKW7n XTBb6Te9L3nMOrMTEcdrlWbdIKxPWpZW8GAUT+UEjPomvSFpmSDC9JtXZ3rsk5ZiVxU/ WhyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3tOm8zzhCxaJy3Xz/20xYyI/RssQ51tXhkdhSGs8XvM=; b=T7hS6eiX9hjyx5uu9VCuWXApHIhBBc0i/O+qN4lA99Jp8DCjqFOltpsmW5Cd0SQ9hF nadUTLMoXxurxckuqPhakmaxFlwfvRggmqxT6Wn5tUEoaVNo4paXLIcnUp8ora3NrUAr 4Zf1Gdph5MiBZV5MJMMrP6MKY8xu5mv1My/20okDHygFKMlgyzEXzSAlPWfhAe2SO1qe x0wM+nk+RaKhnJLevJpIUfW1fufK6AWvAfqby/X+N+kPasliDzzE+Mo3tItNtJFDHgiU 6Y4TPjSkavpO3omAdPnFlaYaHjFCD7JJ+FtPkdfRqkmUGTfZEQ4/HMdpz3N3O9qoE6ZK mXMw== X-Gm-Message-State: AOAM533lBqsfE7e9rNmRB817eN/GIOocKXrEkB8musNRkURf1R3BlJu+ vTikTDHxiB64bKjIA2mc+AlpTSTBuIkaogY3zSs= X-Received: by 2002:a92:d40a:: with SMTP id q10mr20463435ilm.87.1589861114283; Mon, 18 May 2020 21:05:14 -0700 (PDT) MIME-Version: 1.0 References: <0a50f0cf5593baeb628dc8606c523665e5e2ae6c.1589519600.git.viresh.kumar@linaro.org> <20200519012927.GT2165@builder.lan> <20200519034055.hfvifqz442yfduhg@vireshk-i7> In-Reply-To: <20200519034055.hfvifqz442yfduhg@vireshk-i7> From: Jassi Brar Date: Mon, 18 May 2020 23:05:03 -0500 Message-ID: Subject: Re: [RFC] dt-bindings: mailbox: add doorbell support to ARM MHU To: Viresh Kumar Cc: Bjorn Andersson , Arnd Bergmann , Rob Herring , Frank Rowand , Vincent Guittot , linux-arm-kernel , Sudeep Holla , Devicetree List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 18, 2020 at 10:40 PM Viresh Kumar wrote: > > On 18-05-20, 18:29, Bjorn Andersson wrote: > > On Thu 14 May 22:17 PDT 2020, Viresh Kumar wrote: > > > This stuff has been doing rounds on the mailing list since several years > > > now with no agreed conclusion by all the parties. And here is another > > > attempt to get some feedback from everyone involved to close this once > > > and for ever. Your comments will very much be appreciated. > > > > > > The ARM MHU is defined here in the TRM [1] for your reference, which > > > states following: > > > > > > "The MHU drives the signal using a 32-bit register, with all 32 > > > bits logically ORed together. The MHU provides a set of > > > registers to enable software to set, clear, and check the status > > > of each of the bits of this register independently. The use of > > > 32 bits for each interrupt line enables software to provide more > > > information about the source of the interrupt. For example, each > > > bit of the register can be associated with a type of event that > > > can contribute to raising the interrupt." > > > > > > > Does this mean that there are 32 different signals and they are all ORed > > into the same interrupt line to trigger software action when something > > happens? > > > > Or does it mean that this register is used to pass multi-bit information > > and when any such information is passed an interrupt will be triggered? > > If so, what does that information mean? How is it tied into other Linux > > drivers/subsystems? > > I have started to believe the hardware is written badly at this point > :) > H/W is actually fine :) Its just that the driver is written to _also_ support a platform (my original) that doesn't have shmem and need to pass data via 32bit registers. Frankly, I am not against the doorbell mode, I am against implementing two modes in a driver. If it really helped (note the past tense) the SCMI, we could implement the driver only in doorbell mode but unfortunately SCMI would still be _broken_ for non-doorbell controllers.