From mboxrd@z Thu Jan 1 00:00:00 1970 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 14E36C83F12 for ; Mon, 28 Aug 2023 21:36:15 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4vkcV3S2WHNHmpNWadR99WlwuFpOXwnXoKklBhFJZXg=; b=nuERoTi7xWeKD1 pC5aDBK8Zt37KLZvlkZJq5UWLmsVuaFmyM0wqX76KJ81LMyhN6wtf3NQd62toG6aHmQuUmJwoe6Dw 7do7Pp/Tw1ExfkodXDBW64p2iAdljz1OGY7+yPRz9lZ5aP3UNmvVWSGM6CapgGbb4OCV3FPetCI6z 4Vakk6GPxMyvO2AS6KO+Ort5J5o0b+qkfDKeaDL9XtBNT7z+1MBznDMk9/uROLqgchl02U+ge0pM3 z0JBbadylZyJ0+MKHIb1Wva7xAkARcHFrLEBT52OT03G32tieJYHuBAG7Dw/ivusj4O9AT/EkMV/f gQk+AKpVSGJ8/DamrQVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qajtn-00AJuI-0y; Mon, 28 Aug 2023 21:35:51 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qajtk-00AJtc-2F for linux-arm-kernel@lists.infradead.org; Mon, 28 Aug 2023 21:35:49 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0C23961707; Mon, 28 Aug 2023 21:35:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF13FC433C7; Mon, 28 Aug 2023 21:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693258547; bh=NEgimGcrzmezQkF7I4C28Tb0IMasaq++3rxZDBFmRj8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mg/VCPJRGBhdqqnZShz3cA0SHojyR5lr3FtT4zfN9APlDFO5w3m0aiCGCqqmF8Urp /wq40aZGxXN/jrUk8HPqVvEB2jQj9rKvH/YO8qrZZroFecFrNYtZVoI7T4yXNHj4bs Cz+U4kaJqmTeWKef1EcjKkJsn0W7mcXqy9lKOclKGwKxUIwDb5X60SHFGMXRKGQ4rC Ve6RfCabaP6u0KkUcKFK141qgK8Q7EHs27J10xiW+uy+2h1BfZOlNsdKQQMAl5Xyei T4g+ZwUw372fsSC3AE9KTPbfIpmu4KX7xKKaYHHVoA4Wf1XWIv2xR6wkOfAqGr+xyB RJerCPZgNulAQ== Date: Mon, 28 Aug 2023 22:35:37 +0100 From: Will Deacon To: Suzuki K Poulose Cc: Anshuman Khandual , linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, kernel-team@android.com, Alexander Shishkin , coresight@lists.linaro.org, linux-kernel@vger.kernel.org, James Clark , Mike Leach , yangyicong@huawei.com, Mark Rutland , Sami Mujawar , Leo Yan Subject: Re: [PATCH V5 0/4] coresight: trbe: Enable ACPI based devices Message-ID: <20230828213537.GA27629@willie-the-truck> References: <20230817055405.249630-1-anshuman.khandual@arm.com> <169237557557.1402587.14721093106016169238.b4-ty@kernel.org> <20230821112851.GC19469@willie-the-truck> <311d0ecf-dddf-dcf5-9545-3f8a51634a9a@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <311d0ecf-dddf-dcf5-9545-3f8a51634a9a@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230828_143548_776592_78442F48 X-CRM114-Status: GOOD ( 20.26 ) 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Aug 27, 2023 at 11:11:16PM +0100, Suzuki K Poulose wrote: > On 21/08/2023 12:28, Will Deacon wrote: > > Hmm, the rationale behind your change to make the pdata allocation > > per-device in ("coresight: trbe: Allocate platform data per device") > > confuses me: with Anshuman's change to allocate the pdata using > > devm_kzalloc(), there shouldn't be any connections for the coresight > > core to trip over, should there? > > Anshuman's patch is working around the problem of "TRBE platform > device with ACPI doesn't have a valid companion device" - this is a problem > for the acpi_get_coresight_platform_data(). The work > around is to move the "allocation" from coresight_get_platform_data() > to the driver (given we don't need anything else from the ACPI except > the IRQ). That doesn't change *how* it is allocated. > Also please note that, the TRBE driver creates a TRBE coresight_device > per-CPU and the platform data is shared by all of these devices, which > the coresight core driver doesn't cope with. The other option is to > move the releasing of these platform-data to the individual drivers, > which is quite an invasive change. Or, make the core driver tolerate > a NULL platform data, which is also again invasive. So the merged fix > is correct and is still valid after this patch. Ah, ok, so the problem with TRBE isn't anything to do with its connections, but simply because the pdata is shared? Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel