Thanks for this information. As far as I can tell from your descriptions, Muslim slavery included the enslavement of Black people, but did not identify Black people as uniquely derserving of slavery, the way so many Christian cultures did. Islamic Slavery was unquestionably evil, but not racist. if you have some links describing your two examples, they might prove me wrong about this.
What I have found so far is this link, which says in part " It is important to note that slavery in Iran was not predicated on race. While Africans represented a large portion of enslaved persons in Iran, other minorities such as Georgians and Circassians (and even native Persians) were enslaved during this period." https://www.asiabyafrica.com/point-a-to-a/afro-iranians-slavery-legacy