Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2248476pxu; Fri, 9 Oct 2020 11:35:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp9eYmZtpOy7PRVOqEuYtvCoOJy2xzyP+KYZG/i6Q4I5ZYBsx+ybiKeQ8u/AeZpt8XkknC X-Received: by 2002:a05:6402:2055:: with SMTP id bc21mr534568edb.67.1602268503254; Fri, 09 Oct 2020 11:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602268503; cv=none; d=google.com; s=arc-20160816; b=ued33sroi0zOzsydzCRSI1ckOvsP3OUeVPwvcObo3UTNAHDvMsSG4WuZtO4m6PMcSH EgMQ7vTQkUaffRCIj/HxVtDOzC9cMtuYzP/iCssF5PfBJfb5kBbOxEvFLg23ZWkZKab4 y09dQIQAsFb0laMFMhKthKgYY4TNzDyng1n+VGPDK5lPbuv1pbCJdzm0da0Yzo7TlmId oit4yfCbLLcHN5tjzHuYh6Se640fA8f4J2fAgnLag/yYTnFWqMCFEEI9iO09dBEVEaKF Dxgpp2Y3RKU3Pc6d/qjSJEtytSDViaI9abkstHAuM8WgxxF8g3eqKs6aqAZbM1kyUErW manQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=qgDTb5NaCDYtNaBm1Q/RuK2VhXk+/OEdh/DeoCMF5ZA=; b=HcPT9cXQYCN2L5WLr/LroxNWPPkoobZtUcAF3CBak4qwY+u/vbx5arJL/knPIATni0 aCKvxgRUpqc2vgBeDoVLpIQ7QFwxsLk36zANhoLoiU34vYdYhTNXBoaD24nWTpVNP/iB x/lAyT0N6ZtE6FtBxcvBQM2TH0DYI0bQTgYGvHZMHlTCw07NPGfM15hr/tPVtqdqfjzW 925mSRwNzg8O1jy/6ASdYmx/yF8Bn5OpmyB/t6tfUM3fzUiNB1Sl1Itub/DMo6XJsS1X c36DaoTpYaiu0CFxTpC3qcX25+82MQLbbgGy0uSTZGlbcfLzQ14wF2TPgWnk++ksyoX6 jHOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Pac+TYB4; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 65si6581647edc.222.2020.10.09.11.34.40; Fri, 09 Oct 2020 11:35:03 -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=@ti.com header.s=ti-com-17Q1 header.b=Pac+TYB4; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388373AbgJIMKV (ORCPT + 99 others); Fri, 9 Oct 2020 08:10:21 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39886 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732957AbgJIMKV (ORCPT ); Fri, 9 Oct 2020 08:10:21 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 099CAHM0071489; Fri, 9 Oct 2020 07:10:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1602245417; bh=qgDTb5NaCDYtNaBm1Q/RuK2VhXk+/OEdh/DeoCMF5ZA=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=Pac+TYB4KYeHavnl67OaFh0gN85QRtDg4kvnlL4cnYYpvYArFKYUSITyzqSandYg2 dvf6xjJ2mEMTkhN2NSd98koCnSXR5LexIl4fh55Q9mSAlTmssXSIGTqF980GxFqUqL XNMDntz4oXBvZwg7uo9Pb+/0mHyjKBIe2bXJur5Y= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 099CAH3r100261 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 9 Oct 2020 07:10:17 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 9 Oct 2020 07:10:17 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 9 Oct 2020 07:10:16 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 099CAFID114253; Fri, 9 Oct 2020 07:10:15 -0500 Subject: Re: [PATCH v2 10/11] soc: ti: k3-ringacc: Use correct device for allocation in RING mode To: Nishanth Menon CC: , , , , , References: <20201008115224.1591-1-peter.ujfalusi@ti.com> <20201008115224.1591-11-peter.ujfalusi@ti.com> <20201009030204.3i3d6azsmfekl5qx@whole> <6d8f5331-251d-5409-4a1c-e3e42d340071@ti.com> <20201009115946.fl4lvkg5yk7f43pz@calculus> From: Peter Ujfalusi Message-ID: <016056c8-ce56-6d28-1915-46451476fbba@ti.com> Date: Fri, 9 Oct 2020 15:10:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 In-Reply-To: <20201009115946.fl4lvkg5yk7f43pz@calculus> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/2020 14.59, Nishanth Menon wrote: > On 10:43-20201009, Peter Ujfalusi wrote: >> Nishanth, >> >> On 09/10/2020 6.02, Nishanth Menon wrote: >>> On 14:52-20201008, Peter Ujfalusi wrote: >>>> - ring->ring_mem_virt = dma_alloc_coherent(ringacc->dev, >>>> + ring->ring_mem_virt = dma_alloc_coherent(ring->dma_dev, >>>> ring->size * (4 << ring->elm_size), >>>> &ring->ring_mem_dma, GFP_KERNEL); >>> >>> Any chance of getting a cleanup of the file for 5.11? I know this series >>> has'nt introduced this warning or set of warnings, but I am starting to >>> get concerned that we are carrying over too much of a debt now? >>> >>> https://pastebin.ubuntu.com/p/tT2kPDsCWD/ >> >> Right, you know that git blame points the finger at you on ti_sci.c errors? >> >> Never the less, I have run the tool locally on my linux-next-wip with >> these patches: >> https://pastebin.ubuntu.com/p/myJwjvKYw8/ >> >> and I don't see the noise you see. > > > Hmm.. Looks like gcc9/10 make W=2 does generate those warnings with > container_of .. I will investigate it later today.. just checking to see > if it is just me seeing this.. It looks that way. W=2 is a kind of noisy if you throw it at a random file, like: make kernel/exec_domain.o W=2 > Yes, I introduced the container_of() usage, which is pretty standard > usage in other subsystems as well, but lots of checks have gotten > stricter and catches new issues since I introduced things in 2016.. > Time to get the new issues (if valid) fixed up. > >> >>> Checkpatch does point this: >>> >>> --- /tmp/kernel-patch-verify.25812/ptest_check-start 2020-10-08 >>> 19:33:31.025898581 +0000 >>> +++ /tmp/kernel-patch-verify.25812/ptest_check-end 2020-10-08 >>> 19:33:31.593893830 +0000 >>> @@ -0,0 +1,6 @@ >>> +CHECK: Alignment should match open parenthesis >>> +#84: FILE: drivers/soc/ti/k3-ringacc.c:657: >>> ++ ring->ring_mem_virt = dma_alloc_coherent(ring->dma_dev, >>> + ring->size * (4 << ring->elm_size), >> >> Yes, that's correct. Readability VS very long lines > > > checkpatch limit in linux kernel is now 100 chars (I know, it is > hard to update .vimrc etc.. to the new norm..)but, anyways.. will > be good not to see such warnings esp when you are touching the same > lines. Right, I can send v3 on Monday after a bit of re-adjustment of my editors ;) - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki