Message ID | Y/Tlx8j3i17n5bzL@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [GIT,PULL] Please pull IOMMUFD subsystem changes | expand |
On Tue, Feb 21, 2023 at 7:39 AM Jason Gunthorpe <jgg@nvidia.com> wrote: > > iommufd for 6.3 > > Some polishing and small fixes for iommufd: Hmm. About half the patches seem to not be about iommufd, but about 'isolated_msi', which isn't even mentioned in the pull request at all (well, it's there in the shortlog, but not in the actual "this is what happened") I already merged it, and am not sure what I would add to the commit message, but I really would have liked to see that mentioned, considering that it wasn't some small part of it all. Linus
The pull request you sent on Tue, 21 Feb 2023 11:39:51 -0400:
> git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git tags/for-linus-iommufd
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/143c7bc6496c886ce5db2a2f9cec580494690170
Thank you!
On Fri, Feb 24, 2023 at 02:50:45PM -0800, Linus Torvalds wrote: > On Tue, Feb 21, 2023 at 7:39 AM Jason Gunthorpe <jgg@nvidia.com> wrote: > > > > iommufd for 6.3 > > > > Some polishing and small fixes for iommufd: > > Hmm. About half the patches seem to not be about iommufd, but about > 'isolated_msi', which isn't even mentioned in the pull request at all > (well, it's there in the shortlog, but not in the actual "this is what > happened") Ah, it is perhaps somewhat cryptically mentioned in the tag: "Remove IOMMU_CAP_INTR_REMAP, instead rely on the interrupt subsystem" In retrospect I can see that is pretty obtuse, but from my POV that was the goal of that series :) > I already merged it, and am not sure what I would add to the commit > message, but I really would have liked to see that mentioned, > considering that it wasn't some small part of it all. I think the missing paragraph is something like: This PR includes some rework of MSI isolation/security capability detection that touches irq, iommu, vfio and iommufd. It consolidates two partially overlapping approaches into a single one. Do you like this sort of explanation in the email or the tag? Honestly, after 5 years (wow time flies) of sending PRs for rdma I'm still a bit unclear on the best way to write the tag message. I suppose you noticed, but I've followed John Corbet's suggestion to capture the cover letters in internal merge commits. Eg isolated-msi has a lot of words in commit fc3873095a Thanks, Jason
On Fri, Feb 24, 2023 at 4:02 PM Jason Gunthorpe <jgg@nvidia.com> wrote: > > Do you like this sort of explanation in the email or the tag? Either works, I really don't have a strong preference. Some people do one, others do the other. And some people (like Rafael) do both - with the summary list in the tag (and thus also as part of the pull request), but an overview at the top of the email. > Honestly, after 5 years (wow time flies) of sending PRs for rdma I'm > still a bit unclear on the best way to write the tag message. Heh. Probably because there isn't any "one correct" way. Whatever works best for you. The thing I personally care about is just that there _is_ an explanation, and that it makes sense in the context of a human reader who looks at the merge later. So no automatically generated stuff that you could just get with some git command anyway, but an actual overview. And I'll edit things to make sense in a commit message anyway, so I'll remove language like "This pull request contains.." because that doesn't make sense once it's just a merge commit and no longer is a pull request. So I'll generally edit that kind of laniage down to "This contains.." instead or something like that. I also try to *generally* make the merge commit messages look roughly the same, so that when people use wildly different whitespace (tabs vs spaces) or use different bullet points - "-" vs "o" vs "*" etc) I generally try to make those kinds of things also be at least *somewhat* consistent. And for that, it can certainly make my life easier if you look at what merge messages look like, and don't try to make your pull request message wildly different. But it's really not a big deal - I do that kind of reformatting as part of simply reading the message, so it's all fine. Finally - remember that the merge message is for humans reading it later, and not everybody necessarily knows the TLA's that may be obvious to you as a maintainer of that subsystem. So try to make it somewhat legible to a general (kernel developer) public. And then if I feel like the message doesn't cover all of the changes, I'll prod you, like I did in this case. Linus
--- a/drivers/remoteproc/qcom_q6v5_adsp.c +++ b/drivers/remoteproc/qcom_q6v5_adsp.c @@ -367,7 +367,8 @@ static int adsp_map_carveout(struct rproc *rproc) iova = adsp->mem_phys | (sid << 32); ret = iommu_map(rproc->domain, iova, adsp->mem_phys, - adsp->mem_size, IOMMU_READ | IOMMU_WRITE); + adsp->mem_size, IOMMU_READ | IOMMU_WRITE, + GFP_KERNEL); if (ret) { dev_err(adsp->dev, "Unable to map ADSP Physical Memory\n"); return ret;