[PATCH RFC RESEND 6/6] iommu/riscv: support nested iommu for flushing cache
Jason Gunthorpe
jgg at ziepe.ca
Tue May 7 09:27:02 PDT 2024
On Tue, May 07, 2024 at 11:35:16PM +0800, Zong Li wrote:
> > > + default:
> > > + pr_warn("The user command: 0x%x is not supported\n", opcode);
> > > + return -EOPNOTSUPP;
> >
> > No userspace triggerable warnings.
>
> I don't complete understand about this. Could I know whether we should
> suppress the message and return the error directly, or if we should
> convert the warning to an error (i.e. pr_err)?
A userspace system call should never print to dmesg. Return an error
code. Put a pr_debug if you really care.
Jason
More information about the linux-riscv
mailing list