Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1285257pxb; Fri, 6 Nov 2020 06:04:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpG6Ix+tvC5hgyVhKy155Tgyz04gntfOC1uLqokIXoasYNq6J74IyCyxRIn7QZL5kNTIK5 X-Received: by 2002:a50:b584:: with SMTP id a4mr2138755ede.301.1604671445527; Fri, 06 Nov 2020 06:04:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604671445; cv=none; d=google.com; s=arc-20160816; b=uBLuH5ohwWSqOknlyL7/hHkKGf4lez38NlUvfDX40s6k0/v/sl1zIi8eQK4GSr80Ly jpMKXP/o1AwUTsDdjHSP4yKsEx7RFk3jcEjNOGROpfhlrzZi1x932d2OBiOzl3PkFN9K LKJUObCsBJSnXzPyFDbICjHTeTxktMH7tiMBMlwzZ4IzQRb8iQb7RA3qPY0v/XH7T5op UGttFjS9D2DpxYD3yTe2CA0Hep9KSPiBZSRbjfDW6i9effPFVUyuKSjMO8DBOrahcfZB 3Trqz8mUtDV3yqr1AggmracEeZn+Wc4NYHmphlF37a+zzp5s79yu8AtzJTpEJgyYFb2R XAsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=fvBWRhOsLXQxU+uIguEx0PbixKdSq4ZAqkAYf2vQAfE=; b=yL5ewJ+6mscvFgEsuXqQVGqcbZEslgs8ptAKOqy6DRP9WBxk7YGlackfOeYqXZTfgt yTc4EkC2DJ7tPEVg0zLDsefsvRFkJV91AQdr+l/PQ5ziM4lWA9SFdqywWhzjb2jX66dI SrtScMqcJEmG0FuKGxSjK4O6+kJPZ8wNiDnxjSrCuSaVs4qnsJ4uG3WlQWGsDmKMLTlW XEhf6a2/ZEJEZNfMa2YMoLUzVJq/H5Q3+gzFiYhYOHCYl3eAmUzipf/BKuddnysirXc9 mXcjLfaHr2B9b0ISwhUU7suCaxH1ggDN1bJ2/nK+J8CPfjKAOWGpGLpV9O3QPDKd9ysh 1SAg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si859435ejr.2.2020.11.06.06.03.36; Fri, 06 Nov 2020 06:04:05 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727170AbgKFOAg (ORCPT + 99 others); Fri, 6 Nov 2020 09:00:36 -0500 Received: from mga07.intel.com ([134.134.136.100]:5448 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbgKFOAg (ORCPT ); Fri, 6 Nov 2020 09:00:36 -0500 IronPort-SDR: jMoXYqN3jUrYWX2NsUGosBivCEdsu4wNeoEvh+cQNPidW72a4i+X/Q2vCuLXAwwtWMxKC6g91b syhUcYL0aQ+g== X-IronPort-AV: E=McAfee;i="6000,8403,9796"; a="233710303" X-IronPort-AV: E=Sophos;i="5.77,456,1596524400"; d="scan'208";a="233710303" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2020 06:00:35 -0800 IronPort-SDR: jfEEqQr+DIUmqSAevm2Rx2saI3qjkxtQLeU+nyASNQgr3QyWb72oIeMM/404eKa5zlSwQt8/S/ JZmclzPSwnmg== X-IronPort-AV: E=Sophos;i="5.77,456,1596524400"; d="scan'208";a="539848120" Received: from gliakhov-mobl2.ger.corp.intel.com (HELO ubuntu) ([10.252.35.112]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2020 06:00:34 -0800 Date: Fri, 6 Nov 2020 15:00:28 +0100 From: Guennadi Liakhovetski To: Mathieu Poirier Cc: ohad@wizery.com, bjorn.andersson@linaro.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 8/8] rpmsg: Turn name service into a stand alone driver Message-ID: <20201106140028.GB10889@ubuntu> References: <20201105225028.3058818-1-mathieu.poirier@linaro.org> <20201105225028.3058818-9-mathieu.poirier@linaro.org> <20201106131545.GA10889@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201106131545.GA10889@ubuntu> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 06, 2020 at 02:15:45PM +0100, Guennadi Liakhovetski wrote: > Hi Mathieu, Arnaud, > > On Thu, Nov 05, 2020 at 03:50:28PM -0700, Mathieu Poirier wrote: > > From: Arnaud Pouliquen > > > > Make the RPMSG name service announcement a stand alone driver so that it > > can be reused by other subsystems. It is also the first step in making the > > functionatlity transport independent, i.e that is not tied to virtIO. > > Sorry, I just realised that my testing was incomplete. I haven't tested > automatic module loading and indeed it doesn't work. If rpmsg_ns is loaded > it probes and it's working, but if it isn't loaded and instead the rpmsg > bus driver is probed (e.g. virtio_rpmsg_bus), calling > rpmsg_ns_register_device() to create a new rpmsg_ns device doesn't cause > rpmsg_ns to be loaded. A simple fix for that is using MODULE_ALIAS("rpmsg:rpmsg_ns"); in rpmsg_ns.c but that alone doesn't fix the problem completely - the module does load then but not quickly enough, the NS announcement from the host / remote arrives before rpmsg_ns has properly registered. I think the best solution would be to link rpmsg_ns.c together with rpmsg_core.c. You'll probably want to keep the module name, so you could rename them to just core.c and ns.c. Thanks Guennadi