From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5E021E2310; Mon, 20 Jan 2025 13:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737380689; cv=none; b=aqrxO/rdhGiuu9Mix5pMbW7Cd5DRFpgVOgR5zS4EiluvIFQOi4dBEXGj23IjHJq0qXH3BaeI1HBphCXWIrCw98N/9HyB7/2HSsnnrhkc69i1gkZq7+K94jSnRXiHfl+ouaTM6z+dEOVMkaEtXmH+qoZPgKb2f1LC/VFcmmCOqek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737380689; c=relaxed/simple; bh=SQDyF5UyvGaCrVQez1SV++bU8LnzZN+oV9LNGw2Iirw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tYjulSWrCDij7oZpzVgHjqNvMJiu9bQmCWO+S1dNAM0vzO0xBDwGtv1BcQXPdc2lGtE3o21z3du6H8kcRfp+twM+TeJ//XdQi6CxtgLT78fg6Qw52ue37d1W1XpHj8gg1K6/zTjNP1X4VRwuJISsVYf7doARI0R2JrIy6y8Z6ek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 46D7F1063; Mon, 20 Jan 2025 05:45:15 -0800 (PST) Received: from bogus (e133711.arm.com [10.1.196.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A82D93F740; Mon, 20 Jan 2025 05:44:45 -0800 (PST) Date: Mon, 20 Jan 2025 13:44:42 +0000 From: Sudeep Holla To: "Christian Marangi (Ansuel)" Cc: Ulf Hansson , kernel test robot , Sudeep Holla , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: Re: [linux-next:master 9185/10024] drivers/pmdomain/mediatek/airoha-cpu-pmdomain.c:59:2: error: write to reserved register 'R7' Message-ID: References: <202501201840.XmpHXpQ4-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Jan 20, 2025 at 02:37:19PM +0100, Christian Marangi (Ansuel) wrote: > Il giorno lun 20 gen 2025 alle ore 14:34 Sudeep Holla > ha scritto: > > > > On Mon, Jan 20, 2025 at 02:01:30PM +0100, Ulf Hansson wrote: > > > + Sudeep, > > > > > > On Mon, 20 Jan 2025 at 11:37, Christian Marangi (Ansuel) > > > wrote: [...] > > > > > > > > Mhhhh.... Any idea how to fix this? Maybe we have to exclude some flags? > > > > Error is "error: write to reserved register 'R7'" and I guess it's very specific > > > > to some kind of ARM ERRATA. > > > > > > I don't know to be honest. The arm-scmi transport driver > > > (drivers/firmware/arm_scmi/transports/smc.c) is having similar calls > > > with 9 parameters to arm_smccc_1_1_invoke(). Not sure why it's a > > > problem here and not there? > > > > > > > I think it is known issue and must be solved with the below patch if my > > understanding is right. > > > > If it's a known issue and affects also other use of smcc why we need > specific fix in the driver makefile instead of a more generic one. > IIUC, arm_smccc_1_1_invoke() is a macro which can be used anywhere. There are reasons why we can't move it to a module and export it. > Do you have a link for the known issue? > Nothing handy, but quick google search gave me this: https://bugs.llvm.org/show_bug.cgi?id=45826 -- Regards, Sudeep