Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2144193rbb; Tue, 27 Feb 2024 12:01:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWgiWEwlMVlqqyIpiYbEs7uiBjJCf4DamIYLbN+yxWUYX60Evc3Wo5djBQN5YEDqcViN1+wVRNFutWaIa9IF/2bpFNnT9eRVfqPCyDuqQ== X-Google-Smtp-Source: AGHT+IF5Xvw1QQr3G+2jLjDR68uOtNozEd8MJy/AKPjhJE23Q5uQmWF37C33St0ba5DVx15BlYGi X-Received: by 2002:a17:903:41ce:b0:1db:d826:45a1 with SMTP id u14-20020a17090341ce00b001dbd82645a1mr482661ple.9.1709064083762; Tue, 27 Feb 2024 12:01:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709064083; cv=pass; d=google.com; s=arc-20160816; b=mQWJEsEi04UaSaoB27fNBy2o6Fot0/0QOuqrLK5em+eUeRq3FWoffus20bgD2jekoX KZuIzsH5oLSdO2n7oxjcaAp0JwBnvAmNsj7mb+cJE8BnyIgdJsKLnSkrTKfAS0o51fuH 7KBMfbe6COpnsqcY5U3epk/1FN9UyjCUk0g1WCQz6Ouvsuj7TxeD9WfBi3vDeLBnUGPG +aUltOKx08qaK7qW6C9+s7ezJN0o7575Zy2HnnphzkqZh8jfE2vNVKhGwTBKu+yurPoH 1JPwwuiIC/QRHvOzNedwPxoi+/7KuMf+/9S0o/5sytJnvyjmltxqOeGGIF0m5iB0Myi8 Moww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=mhq+ZYoih/qrTYF14e3+nwNYDVyTycUAByxpGo4QvPY=; fh=xCiz9qrUMQk1beymUY3qHcgGpwCVgrXx2ge3UKrgez0=; b=NavN5dZZqN4ISl9mialdB4MHigApRuGWSd+XoiVqtp6nFfsK27fH8fHfvcCO94Wo9W YLZ10OZH9eyY0o6PCI+AWsKAt+74rknuRnawbfrB278PK1LVVJqP4RAOWS69gmvdrR1E 7yQKjkJGqR33k57a85d4rzLDPVFo/TyeJ64yM7xfwGb5i6wDgGI/kAn/tbBP0KO0BYsi +X9isMljvZdWJUqPEMopg4tvyCLk1vlqoXbdYVBsWKlMWgcqcZpsiP6RgRCeS8+h86gg tmqYzI+D1FJfE5RQAR8Hc1BcQYBqBIs3PFFqlWjZj9Bkpw7dj2iZmayH5Azs1XP2p+6E 0GrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cyAAu5FG; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-83917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s3-20020a170902ea0300b001dc8c54f079si1921608plg.80.2024.02.27.12.01.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 12:01:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cyAAu5FG; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-83917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 22411B292A0 for ; Tue, 27 Feb 2024 19:24:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63D51148319; Tue, 27 Feb 2024 19:22:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cyAAu5FG" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AED4051C5A for ; Tue, 27 Feb 2024 19:22:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709061772; cv=none; b=B8kNVHSVI6MtFPivX2gJXHv74I441AmhUNO9XIujEUp616Q1l5B9yH3YZiID2ccvnx0VFWX3CSqKbHVE4t2vLSCbYGtyvf/WqEngGE3ZKZpASHmcTZoZFwySAZ2krDhTxnEDpQgiD9evHOkTE7OExPoDMdWBcOuMjjBjtleseL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709061772; c=relaxed/simple; bh=6CQ5gmdtyYpJOht39IMv2Luza/449m9TszX8sO5JgoE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MTdBXzdzf+40pZtQqdvjsAXee/5hnGsAvFfO8st1WbPCsqtzotxgE+NirnUh3Qd5vkdEUVFiWP8PvEvwhJvHcQPZudLi6qG0GEGubSwHKYU4rIQ76ES2ODdAtSKiosvyr5D4cAj8LF76ukg46BPXFhnlWLmabQM6YZ/gq8BCQlw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=cyAAu5FG; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709061768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mhq+ZYoih/qrTYF14e3+nwNYDVyTycUAByxpGo4QvPY=; b=cyAAu5FGbpfTG3i9kn8VrBrrBRpYbjctDQSY5pQurYoZAmxdUWo1GAI81V0tB4+9spzMAU wPs5tdgRktwWVC5xwv6ERgumP2MSGMoVQgZW4S8VolpsA393YI/cmPJPMNM8wYgC4WtcrU b5FbjSwU2TTGU5KBKtPe+Uqafq/y6AI= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-645-aeF4PCWFO6ecbkM-owgRZQ-1; Tue, 27 Feb 2024 14:22:47 -0500 X-MC-Unique: aeF4PCWFO6ecbkM-owgRZQ-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-6800e52d47aso1974196d6.1 for ; Tue, 27 Feb 2024 11:22:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709061767; x=1709666567; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mhq+ZYoih/qrTYF14e3+nwNYDVyTycUAByxpGo4QvPY=; b=SiTxhfn4KgS9yY+PJ5tjRQ92atxk6zjqt+8t7cgkoLzpD4a0Hia35JrCP6wah27JJs Juvgmw/PGE+6x3KEef/N8xJXqy1OpgNf2kFCpccd/lbOd7vz6X5bvgvzFEQryYPbeK+w mh2jCJKaeJDJZaEIPPwinUXvzdUkMndAKkiE6evxYGdUh0DJp2O1WlEUc54Hrdm1BTj0 UUcsSzFJVeAqgPHF+C9wAhcDGh9xgrHObBOOJwzCuqxq5aKvUv/c19S34y68JGViS+Fq y28LyYlEo321j634aqjftqMB+BuoX1Is3TwhHbBBNLNXEqK9tDj1RsY79xaRNVTkbR+Z 6/ZA== X-Forwarded-Encrypted: i=1; AJvYcCVK5GaDno+YtSEandgiqKSGMY5UAZhOK6Vj8QLLKzTRcKMdClKgdJdsj5rstH5rogEGDxiYkIqLPZsLPoohpSuPxcweQpTDWcvFasx8 X-Gm-Message-State: AOJu0Yx30abD28S54uQcx29lH04TAKR7NLPf4RiazPGieOBBVaFo+eQG yXNhUORs+n9MHUFl1Cwwwwvk45NRvwE8QoK+OsFeg1Wi2qvK6k5PhX5y+8bZA+6E8w1PyDiKyDV Jeojjk4AOMjR54gjRWe7ektZHK267Sl8VRFfZcgXNYEd9Y9u/RAgLoWXHPPPTzA== X-Received: by 2002:a0c:a701:0:b0:68f:b941:3463 with SMTP id u1-20020a0ca701000000b0068fb9413463mr389406qva.3.1709061766853; Tue, 27 Feb 2024 11:22:46 -0800 (PST) X-Received: by 2002:a0c:a701:0:b0:68f:b941:3463 with SMTP id u1-20020a0ca701000000b0068fb9413463mr389376qva.3.1709061766538; Tue, 27 Feb 2024 11:22:46 -0800 (PST) Received: from fedora ([142.189.203.219]) by smtp.gmail.com with ESMTPSA id op10-20020a056214458a00b0068ff8d75a90sm3695560qvb.19.2024.02.27.11.22.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:22:46 -0800 (PST) Date: Tue, 27 Feb 2024 14:22:44 -0500 From: Lucas Karpinski To: Souradeep Chowdhury Cc: Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Bjorn Andersson , Rob Herring , Alex Elder , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Sibi Sankar , Rajendra Nayak Subject: Re: [PATCH V26 2/3] misc: dcc: Add driver support for Data Capture and Compare unit(DCC) Message-ID: References: <2624304811c253e1a28350668fb69cf463ac47f9.1691496290.git.quic_schowdhu@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2624304811c253e1a28350668fb69cf463ac47f9.1691496290.git.quic_schowdhu@quicinc.com> User-Agent: NeoMutt/20231221 On Tue, Aug 08, 2023 at 05:58:26PM +0530, Souradeep Chowdhury wrote: > diff --git a/Documentation/ABI/testing/debugfs-driver-dcc b/Documentation/ABI/testing/debugfs-driver-dcc > index 27ed5919d21b..7f588580a906 100644 > --- a/Documentation/ABI/testing/debugfs-driver-dcc > +++ b/Documentation/ABI/testing/debugfs-driver-dcc > @@ -1,4 +1,4 @@ > -What: /sys/kernel/debug/dcc/.../ready > +What: /sys/kernel/debug/qcom-dcc/.../ready > Date: December 2022 Looks like this patch set is getting closer to being accepted, please keep the date updated accordingly. > +#define DCC_LL_NUM_INFO 0x10 > +#define DCC_LL_LOCK 0x00 > +#define DCC_LL_CFG 0x04 > +#define DCC_LL_BASE 0x08 > +#define DCC_FD_BASE 0x0c > +#define DCC_LL_OFFSET 0x80 > +#define DCC_LL_TIMEOUT 0x10 > +#define DCC_LL_INT_ENABLE 0x18 > +#define DCC_LL_INT_STATUS 0x1c > +#define DCC_LL_SW_TRIGGER 0x2c > +#define DCC_LL_BUS_ACCESS_STATUS 0x30 > + > +/* Default value used if a bit 6 in the HW_INFO register is set. */ > +#define DCC_FIX_LOOP_OFFSET 16 > + > +/* Mask to find version info from HW_Info register */ > +#define DCC_VER_INFO_MASK BIT(9) > + > +#define MAX_DCC_OFFSET GENMASK(9, 2) > +#define MAX_DCC_LEN GENMASK(6, 0) > +#define MAX_LOOP_CNT GENMASK(7, 0) > +#define MAX_LOOP_ADDR 10 > + > +#define DCC_ADDR_DESCRIPTOR 0x00 > +#define DCC_ADDR_LIMIT 27 > +#define DCC_WORD_SIZE sizeof(u32) > +#define DCC_ADDR_RANGE_MASK GENMASK(31, 4) > +#define DCC_LOOP_DESCRIPTOR BIT(30) > +#define DCC_RD_MOD_WR_DESCRIPTOR BIT(31) > +#define DCC_LINK_DESCRIPTOR GENMASK(31, 30) > +#define DCC_STATUS_MASK GENMASK(1, 0) > +#define DCC_LOCK_MASK BIT(0) > +#define DCC_LOOP_OFFSET_MASK BIT(6) > +#define DCC_TRIGGER_MASK BIT(9) > + > +#define DCC_WRITE_MASK BIT(15) > +#define DCC_WRITE_OFF_MASK GENMASK(7, 0) > +#define DCC_WRITE_LEN_MASK GENMASK(14, 8) > + > +#define DCC_READ_IND 0x00 > +#define DCC_WRITE_IND (BIT(28)) > + > +#define DCC_AHB_IND 0x00 > +#define DCC_APB_IND BIT(29) > + > +#define DCC_MAX_LINK_LIST 8 > + > +#define DCC_VER_MASK2 GENMASK(5, 0) > + > +#define DCC_SRAM_WORD_LENGTH 4 > + > +#define DCC_RD_MOD_WR_ADDR 0xC105E > + > +enum dcc_descriptor_type { > + DCC_READ_TYPE, > + DCC_LOOP_TYPE, > + DCC_READ_WRITE_TYPE, > + DCC_WRITE_TYPE > +}; Can you fix the spacing in the macros? > +static int dcc_add_loop(struct dcc_drvdata *drvdata, unsigned long loop_cnt, int curr_list) u32 loop_cnt Lucas