Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp1015594rdb; Sun, 20 Aug 2023 13:04:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF35UWZIvTnbR7w7J9bzLegy9a5v2etQsCLKunMJwY1nfWG6i/mwXXW/CKdG8gzAZTRpJTj X-Received: by 2002:a05:6870:42cc:b0:1c0:3110:12cc with SMTP id z12-20020a05687042cc00b001c0311012ccmr7174747oah.55.1692561868232; Sun, 20 Aug 2023 13:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692561868; cv=none; d=google.com; s=arc-20160816; b=UyMgHeA1FQUKHPc3IJM+Okqrtmt0RuZN81YsNyDFeQELpNDt78kxnyqX9pch6h2rSh jPe7PvwIISKqamtfq5I5fw8K6HuI341zlvsNvDlsGSw7SSzObuapi0ha8XXAHVy31Uob K0IrQoxxyN1QlAORFHX9cW+2TZmLaxdpI/qTh1lLoogFTD7sgi8jj6rCIDOxrBX4ZHhg 7UGjaA4Jz/u5NdwrQL9E2cT7+WNxJKn9+sQ8umULvY3ch6P9z000nvJ5sq0fmlRbtFdg XNYckI7U8wmQr+2M2K6tyRt6LSLAeU9oXaC+OSl1+GrCQcc5pnEWFa48zFGjfHv9kf+A NCCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=1UhOdpM+TFut/mNbzvyNbxur3x7laN+L2y4IhIjyoyk=; fh=K76/CFEJ0V4E2u3tE6A5xd5NDPDXo3cpfI+7bWBqX+s=; b=hAUXiEAHFE/J04NFxPgFsgBtMKomAFhINw+VvvZl/JmGVNz4yw0sakU67cIEdspWSH 2omcxhIrPseQbb5T4bjjXUaqRxKILcf3Z4YD7fVpVh/zeWyIuQ6NXtIAthSuhcHqnZGK a6OyQXVCdt1qm2bVhHMw96sGf6ZI4mrnU1dJ+l47Q8N99uZRrXC5ntX5p+lpZkxQASi+ Re7PxIEonxxt9rf/0jNljyOdECS1a8uxHVjaAkjis8H0mputOJ1LKVxaUDWcCtheLvuG YQLMbDVnm+nyZytksNGIwvtx2MvjenBNqNbJdktOkjw0JhQHRF5M9k0IucyCkkbCgFUq fTpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 6-20020a630906000000b00563e9eab24asi5616117pgj.405.2023.08.20.13.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 13:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB3B93B696B; Sat, 19 Aug 2023 12:17:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349721AbjHQKQh (ORCPT + 99 others); Thu, 17 Aug 2023 06:16:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350091AbjHQKQd (ORCPT ); Thu, 17 Aug 2023 06:16:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 09E5030FF for ; Thu, 17 Aug 2023 03:16:11 -0700 (PDT) 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 8DFD6D75; Thu, 17 Aug 2023 03:16:51 -0700 (PDT) Received: from [10.163.56.152] (unknown [10.163.56.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 03A4D3F64C; Thu, 17 Aug 2023 03:16:05 -0700 (PDT) Message-ID: Date: Thu, 17 Aug 2023 15:46:03 +0530 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: Suzuki K Poulose , 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: Anshuman Khandual In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, could you please hold off pushing this change into coresight tree for some time ?