Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1081560pxa; Sat, 1 Aug 2020 16:51:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLGPVoXJG+P8NIYxxgrhpqEv+hBG/T+3tEKTnqYlEIZx2W9rrI74iEmdta5bLUyiYoDkXS X-Received: by 2002:a50:bf09:: with SMTP id f9mr9615523edk.249.1596325916218; Sat, 01 Aug 2020 16:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596325916; cv=none; d=google.com; s=arc-20160816; b=gkJxDsfqinwdTqh3xjlc/ipkympUEtcBx6r4meXvCMvoIHixNVGL+FCPmMPaTBHhzB i7GJxjtu0phvC9cl3xZ1oWNL8q9WgTw8t/YyYsNmNnntu2vyIcj2rLGX290rnFrgjwjr uDPKdJMrgYElKokkTHD/49LVibIXMlpSzqlhpYd5iLpkiMdQWIMB0eBxUsJDS2UtgeMi Hku+KNusJkj/IoV0EPiCvrnHR6WtFiz9knWlDEOF4b03iMXjzyP3TVU2Oj2mtJuccPte C6mCD7oy+GfLMKT5SA+AoIQ6ZaXTSm/nqYBjX43e3rh4L+ZhrxU1pwHs7OFn3nKf4XZa w45w== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=c2+lSX3qXphEtp0El/spPJyT07uz4L50i2pjKePBzwE=; b=n0G+V1eMSTUSsromO6L0pAyOZG/j4pamQ9NcTKbhE0W15n4E5oO2aixt3XaA0yNy56 b85Qm9RBGyQmqurqcsciyUA83BGbq/lmC9/bXIlt96btDtsRFRh0DNh9h+NA78LzZ3rm JWwR2pRAbhxesX0kA3O3DjimTDnOr+ltGr+1s9d1Sjc8ZpPYUuxd+FTLroMRwUu0WXAY 9bOSkw+M6QtYAm/F3XfeAldD5UTuE8MoOJWVnHux19ACPcHBzH3LIAXofMA75O4wm1wW vnEbX5VkQ2cBJXX63nDHx8/qJpOGtPC5dPwajbhPjNjwwk7pGHAgBd95ZZZz3v0o6ERj kAbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GKa0b1n+; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si7509032ejc.460.2020.08.01.16.51.34; Sat, 01 Aug 2020 16:51:56 -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=@kernel.org header.s=default header.b=GKa0b1n+; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727893AbgHAXu4 (ORCPT + 99 others); Sat, 1 Aug 2020 19:50:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:57608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbgHAXuz (ORCPT ); Sat, 1 Aug 2020 19:50:55 -0400 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D47C420789; Sat, 1 Aug 2020 23:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596325855; bh=/RTX0rVm2iLBMlRdDM24nNOFTPRHcYFdhTxisdSjWDM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GKa0b1n++JBbGlBkW2Q8zcKWc/8G5g2kRJ1hJfSjcl0x25nRnPleix94G6SZQBMQf CQBVbFMYm+Bwo6LXpkuUFdKiPhsXf5MRx+q682XvJ9JLGD6PVliYxMZVYv37rXZsGT SRG9c33TAZhWB2sOk3/rPYxvyyMkSdpNP5xIvKPQ= Received: by mail-ed1-f52.google.com with SMTP id i26so21476911edv.4; Sat, 01 Aug 2020 16:50:54 -0700 (PDT) X-Gm-Message-State: AOAM533cETGWa34GDD1RTJGvLLnrmUYg7KS0o7sn7TrFzvqkG20r7JTU bCsruVDPh0ln68A13AoUYmCv4f2K1qJYOsCskg== X-Received: by 2002:a50:d2c7:: with SMTP id q7mr5358828edg.61.1596325853405; Sat, 01 Aug 2020 16:50:53 -0700 (PDT) MIME-Version: 1.0 References: <1596010690-13178-1-git-send-email-neal.liu@mediatek.com> <1596010690-13178-3-git-send-email-neal.liu@mediatek.com> In-Reply-To: <1596010690-13178-3-git-send-email-neal.liu@mediatek.com> From: Chun-Kuang Hu Date: Sun, 2 Aug 2020 07:50:41 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/2] soc: mediatek: add mtk-devapc driver To: Neal Liu Cc: Rob Herring , Matthias Brugger , devicetree@vger.kernel.org, wsd_upstream , lkml , "moderated list:ARM/Mediatek SoC support" , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Neal: Neal Liu =E6=96=BC 2020=E5=B9=B47=E6=9C=8829=E6=97= =A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=884:29=E5=AF=AB=E9=81=93=EF=BC=9A > > MediaTek bus fabric provides TrustZone security support and data > protection to prevent slaves from being accessed by unexpected > masters. > The security violation is logged and sent to the processor for > further analysis or countermeasures. > > Any occurrence of security violation would raise an interrupt, and > it will be handled by mtk-devapc driver. The violation > information is printed in order to find the murderer. > > Signed-off-by: Neal Liu > --- [snip] > + > +struct mtk_devapc_context { > + struct device *dev; > + u32 vio_idx_num; > + void __iomem *devapc_pd_base; This is devapc context, so prefix 'devapc' is redundant. And, what does 'pd' mean? Regards, Chun-Kuang. > + struct mtk_devapc_vio_info *vio_info; > + const struct mtk_devapc_pd_offset *offset; > + const struct mtk_devapc_vio_dbgs *vio_dbgs; > +}; > +