Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96564C2FC0E for ; Thu, 17 Aug 2023 10:34:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OIEuDbBLiJq71+zsysATG04XcGnF/bU21CjRMk12+N0=; b=cIq/+GAGOm9T1G amPnIBr8OwlwULObjvnzFdqoB9QnzgL4y1YvChVhSd7IPN9RJNBYwFN5lowUnCBwN29hhssCgz13/ +gHopuQu7nQTRXOUwNsW53Z/kT7hPZSIA+RTuUkRdOSOjwjvfV2qooy4ueRF9UxZrPh7+6+7i9naC SV98uV2s4U8fyUmTGs6Ev6njQdnWLUfgEjoQAUz1dyoC4z7N5gE6oSAaRwRmP6eUSjm5Bgg90ffjo Ko3cxIeFAsFjWVL/WozZcgKjBmHLaYa7isqKjxHO3neJxGvxlcVI35PCJLXcTY31YI1yyTlGXhPGJ URn+E5OyjPpF/up5edmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWaJq-0066JB-1g; Thu, 17 Aug 2023 10:33:34 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWaJn-0066H8-35 for linux-arm-kernel@lists.infradead.org; Thu, 17 Aug 2023 10:33:33 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5FDFAD75; Thu, 17 Aug 2023 03:34:10 -0700 (PDT) Received: from [10.1.197.1] (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D3A323F64C; Thu, 17 Aug 2023 03:33:27 -0700 (PDT) Message-ID: Date: Thu, 17 Aug 2023 11:33:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 2/2] coresight: trbe: Allocate platform data per device Content-Language: en-US To: Anshuman Khandual , James Clark , hejunhao3@huawei.com Cc: coresight@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jonathan.cameron@huawei.com, leo.yan@linaro.org, mike.leach@linaro.org, linuxarm@huawei.com, yangyicong@huawei.com, prime.zeng@hisilicon.com References: <20230814093813.19152-1-hejunhao3@huawei.com> <20230816141008.535450-1-suzuki.poulose@arm.com> <20230816141008.535450-2-suzuki.poulose@arm.com> <9cd9f83c-7778-2d87-a175-a4cb7ceb8723@arm.com> <3f681660-a0f0-20cb-b79b-7b2e2f6a1b5c@arm.com> From: Suzuki K Poulose In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230817_033332_046945_9066A3EC X-CRM114-Status: GOOD ( 14.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 17/08/2023 11:16, Anshuman Khandual wrote: > > > On 8/17/23 15:31, Suzuki K Poulose wrote: >> On 17/08/2023 10:24, James Clark wrote: >>> >>> >>> On 17/08/2023 07:37, Anshuman Khandual wrote: >>>> Hi Suzuki, >>>> >>>> Seems like this patch is going to conflict with the below proposed change >>>> >>>> https://lore.kernel.org/all/20230817055405.249630-4-anshuman.khandual@arm.com/ >>>> >>>> Please let me know how should we resolve this conflict. >>> >>> We could merge them both, with the fixes: one first, just to acknowledge >>> that there was a problem. But I suppose your one will have to be rebased >>> on top. >>> >>>> >>>> On 8/16/23 19:40, Suzuki K Poulose wrote: >>>>> Coresight TRBE driver shares a single platform data (which is empty btw). >>>>> However, with the commit 4e8fe7e5c3a5 >>>>> ("coresight: Store pointers to connections rather than an array of them") >>>>> the coresight core would free up the pdata, resulting in multiple attempts >>>>> to free the same pdata for TRBE instances. Fix this by allocating a pdata per >>>>> coresight_device. >>>>> >>>>> Fixes: 3fbf7f011f24 ("coresight: sink: Add TRBE driver") >>>> >>>> The above mentioned commit i.e 4e8fe7e5c3a5 seems to be a more recent one which >>>> has triggered this problem. But would the problem be still there without that ? >>>> Else 'Fixes:' tag would need changing. >>>> >>> >>> Yes I think the fixes tag should point to 4e8fe7e5c3a5. >> >> Agreed, I will change the fixes tag and push this. > > In the first patch, the last hunk might not be required to fix the > IPI problem and in fact might be bit problematic as well. Besides, Please could you comment your concerns on the patch ? Suzuki > could you please hold off pushing this change into coresight tree > for some time ? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel